/* ==========================================================================
   Roman Fedoseev — personal site
   Ink & paper editorial system, vermilion accent
   ========================================================================== */

:root {
  --ink: #0c0b09;
  --ink-2: #14120f;
  --ink-3: #1c1915;
  --paper: #ece6d9;
  --paper-2: #e3dccd;
  --paper-3: #d6cdb9;
  --accent: #ff4f1f;

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(236, 230, 217, .6);
  --faint: rgba(236, 230, 217, .34);
  --line: rgba(236, 230, 217, .14);
  --card: var(--ink-2);

  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 3.4vw, 56px);
  --nav-h: 76px;
  --radius: 22px;
}

body[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: rgba(12, 11, 9, .62);
  --faint: rgba(12, 11, 9, .38);
  --line: rgba(12, 11, 9, .14);
  --card: var(--paper-2);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .9s var(--ease-io), color .9s var(--ease-io);
}

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.skip {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

.blink { animation: blink 1.2s steps(2, start) infinite; }

.org-link {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  color: inherit;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.org-link i {
  font-family: var(--f-body);
  font-style: normal;
  font-size: .62em;
  color: var(--accent);
  transition: transform .45s var(--ease);
}
.org-link:hover { background-size: 100% 1px; }
.org-link:hover i { transform: translate(2px, -2px); }

.voices__note .org-link,
.portrait figcaption .org-link {
  display: inline;
  background-image: linear-gradient(var(--faint), var(--faint));
  background-size: 100% 1px;
}
.voices__note .org-link:hover,
.portrait figcaption .org-link:hover {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- Preloader ---------- */

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: block;
  color: var(--paper);
  pointer-events: none;
}
.loader.is-done { display: none !important; }

.loader__panels { position: absolute; inset: 0; display: flex; }
.loader__panels i {
  flex: 1;
  margin-right: -1px;
  background: var(--ink);
  transform-origin: 50% 0;
  transition: transform 1.15s var(--ease-io);
}
.loader__panels i:nth-child(1) { transition-delay: 0ms; }
.loader__panels i:nth-child(2) { transition-delay: 60ms; }
.loader__panels i:nth-child(3) { transition-delay: 120ms; }
.loader__panels i:nth-child(4) { transition-delay: 180ms; }
.loader__panels i:nth-child(5) { transition-delay: 240ms; }

.loader__top {
  position: absolute;
  top: 26px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: rgba(236, 230, 217, .5);
}

.loader__word {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(30px, 4.2vw, 64px);
  white-space: nowrap;
}

.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  display: flex;
  align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(88px, 17vw, 260px);
  line-height: .8;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.loader__count sup {
  margin: .08em 0 0 .12em;
  font-size: .18em;
  letter-spacing: 0;
  color: var(--accent);
}

.loader__bar {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  width: min(260px, 32vw);
  height: 1px;
  background: rgba(236, 230, 217, .18);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.loader__top, .loader__word, .loader__count, .loader__bar {
  transition: opacity .45s ease, transform .9s var(--ease);
}

body.is-loaded .loader__panels i { transform: scaleY(0); }
body.is-loaded .loader__top,
body.is-loaded .loader__word,
body.is-loaded .loader__count,
body.is-loaded .loader__bar { opacity: 0; transform: translateY(-40px); }

/* ---------- Language curtain ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.curtain i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.curtain b {
  position: relative;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 160px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(30px);
}
.curtain.is-in i { transform: scaleY(1); transition: transform .55s var(--ease-io); }
.curtain.is-in b { opacity: 1; transform: none; transition: opacity .3s .2s, transform .6s .15s var(--ease); }
.curtain.is-out i { transform: scaleY(0); transform-origin: 50% 0; transition: transform .65s var(--ease-io); }
.curtain.is-out b { opacity: 0; transform: translateY(-30px); transition: opacity .25s, transform .5s var(--ease); }

/* ---------- Grain, cursor, progress ---------- */

.grain {
  position: fixed;
  inset: -120px;
  z-index: 9100;
  pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-46px, 22px); }
  40% { transform: translate(34px, -30px); }
  60% { transform: translate(-22px, 44px); }
  80% { transform: translate(40px, 12px); }
  100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9500;
  pointer-events: none;
  mix-blend-mode: difference;
  display: none;
  transition: opacity .3s;
}
.has-cursor .cursor { display: block; }
.cursor.is-hidden { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  transition: opacity .3s;
}
.cursor__ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  display: grid;
  place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease),
              background-color .35s, border-color .35s, scale .3s var(--ease);
}
.cursor__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  white-space: nowrap;
  transition: opacity .2s;
}
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: #fff; border-color: #fff; }
.cursor.is-link .cursor__dot, .cursor.has-label .cursor__dot { opacity: 0; }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-card .cursor__ring { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
.cursor.has-label.is-soft .cursor__ring { background: transparent; border-color: rgba(255, 255, 255, .9); }
.cursor.is-soft .cursor__label { color: #fff; }
.cursor.is-down .cursor__ring { scale: .82; }

.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg);
  transition: opacity 1s var(--ease) .35s, transform 1.2s var(--ease) .35s, color .9s var(--ease-io);
}
.js body:not(.is-ready) .nav { opacity: 0; transform: translateY(-18px); }

.nav__logo { display: inline-flex; transition: transform .5s var(--ease); }
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.05em;
}
.logo em {
  margin-left: .02em;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2em;
  letter-spacing: 0;
}
.logo b {
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 18, 15, .5);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: border-color .9s var(--ease-io), background-color .9s var(--ease-io);
}
.nav__links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s, color .35s;
}
.nav__links a:hover,
.nav__links a.is-active { background: var(--fg); color: var(--bg); }

.nav__right { display: flex; align-items: center; gap: 22px; }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; }
.lang button { padding: 6px 2px; letter-spacing: .06em; opacity: .42; transition: opacity .3s; }
.lang button:hover, .lang button[aria-pressed="true"] { opacity: 1; }
.lang__sep { opacity: .3; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 15px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .5s var(--ease), background-color .9s var(--ease-io), color .9s var(--ease-io);
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 31, .55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 79, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 31, 0); }
}

[data-magnetic] { transition: transform .5s var(--ease); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.burger i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.burger i:nth-child(1) { top: 18px; }
.burger i:nth-child(2) { top: 24px; }
.menu-open .burger i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.menu-open .nav {
  --fg: var(--paper);
  --bg: var(--ink);
  --line: rgba(236, 230, 217, .18);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 5vh) var(--gutter) 28px;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .85s var(--ease-io), visibility 0s .85s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .85s var(--ease-io); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(46px, 12.5vw, 96px);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.menu__links a span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.menu-open .menu__links a span { transform: none; transition-delay: calc(.18s + var(--k, 0) * 60ms); }
.menu__links sup { margin-top: 1.3em; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; color: rgba(236, 230, 217, .5); }

/* ---------- Text split & reveal ---------- */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .08em .12em 0;
  margin: 0 -.08em -.12em 0;
}
.wi { display: inline-block; }
.ch { display: inline-block; }

.js [data-reveal] .wi {
  transform: translate3d(0, 115%, 0) rotate(5deg);
  transform-origin: 0 0;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 34ms + var(--d, 0ms));
}
.js [data-reveal].is-in .wi { transform: none; }

.js .fade[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1.2s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .fade[data-reveal].is-in { opacity: 1; transform: none; }

.js .label[data-reveal] {
  opacity: 0;
  transform: translate3d(-14px, 0, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}
.js .label[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.4vh) var(--gutter) 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.hero__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero.gl-ready .hero__gl { opacity: 1; }
.hero.no-gl .hero__gl { display: none; }

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 50% at 72% 42%, rgba(255, 79, 31, .16), transparent 70%),
    radial-gradient(45% 55% at 18% 82%, rgba(236, 230, 217, .07), transparent 70%),
    var(--ink);
}

.hero__kicker { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.hero__kicker i { width: 32px; height: 1px; background: var(--accent); flex: none; }

.hero__name {
  margin: 0 -.03em;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(64px, min(16.4vw, 25vh), 300px);
  line-height: .8;
  letter-spacing: -.066em;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: .06em 0 .02em;
  white-space: nowrap;
}
.hero__line--2 { text-align: right; }
.hero .ch { will-change: transform, font-weight; }

.js .hero .ch {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.js body.is-ready .hero .ch { transform: none; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: end;
}

.hero__lead {
  max-width: 23ch;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.35vw, 40px);
  line-height: 1.12;
  letter-spacing: -.028em;
}
.hero__lead em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  letter-spacing: -.01em;
  color: var(--accent);
}
.js .hero__lead .wi {
  transform: translate3d(0, 115%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms + 650ms);
}
.js .hero__lead.is-in .wi { transform: none; }

.hero__roles { justify-self: end; display: grid; width: min(380px, 100%); }
.hero__roles li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(236, 230, 217, .16);
  font-size: 14px;
  color: var(--muted);
}
.hero__roles li .mono { color: var(--accent); font-size: 11px; }
.hero__roles .org-link { font-weight: 500; font-size: 16px; color: var(--paper); }
.hero__roles .org-link i { font-size: .85em; }

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  color: var(--muted);
}
.hero__clock { display: inline-flex; gap: 10px; }
.hero__clock .sep { opacity: .5; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); transition: color .3s; }
.status:hover { color: var(--accent); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s infinite; }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(236, 230, 217, .2); }
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

.js .hero__top, .js .hero__roles, .js .hero__bottom {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
.js .hero__top { transition-delay: .25s; }
.js .hero__roles { transition-delay: .85s; }
.js .hero__bottom { transition-delay: 1.05s; }
.js body.is-ready .hero__top,
.js body.is-ready .hero__roles,
.js body.is-ready .hero__bottom { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(110px, 16vh, 200px) var(--gutter); }

.section__head { margin-bottom: clamp(52px, 8vh, 100px); }
.section__head--split {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  gap: 3vw;
  align-items: start;
}
.section__head--split .label { margin-top: 1.2em; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 7.2vw, 124px);
  line-height: .96;
  letter-spacing: -.052em;
}
.display--md { font-size: clamp(40px, 5.4vw, 92px); }
.display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--accent);
}

/* ---------- About ---------- */

.manifesto {
  max-width: 1320px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 4.35vw, 74px);
  line-height: 1.07;
  letter-spacing: -.042em;
}
.manifesto em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
.js .manifesto .wi { opacity: .13; }

.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .44fr);
  gap: 5vw;
  align-items: end;
}
.about__intro .manifesto { font-size: clamp(30px, 3.9vw, 68px); }

.portrait { position: relative; }
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2a2a29;
}
.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(236, 230, 217, .08);
  pointer-events: none;
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(var(--s, 1.14));
  transform-origin: 50% 40%;
  filter: grayscale(1) sepia(.14) contrast(1.06) brightness(.95);
  transition: filter 1.1s var(--ease);
  will-change: transform;
}
.portrait:hover .portrait__frame img { filter: none; }
.portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--muted);
}
.portrait figcaption span { white-space: nowrap; }
.portrait figcaption span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.portrait figcaption span:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.js .portrait[data-reveal] .portrait__frame {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.6s var(--ease-io);
}
.js .portrait[data-reveal].is-in .portrait__frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .portrait[data-reveal] figcaption {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .9s var(--ease) .7s, transform 1s var(--ease) .7s;
}
.js .portrait[data-reveal].is-in figcaption { opacity: 1; transform: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(70px, 11vh, 130px);
  border-top: 1px solid var(--line);
}
.stat { position: relative; padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  display: flex;
  align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(66px, 8.2vw, 144px);
  line-height: .88;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { margin: .08em 0 0 .04em; font-size: .38em; line-height: 1; color: var(--accent); }
.stat__txt { max-width: 22ch; margin-top: 16px; font-size: 15px; color: var(--muted); }

.js .stats .stat {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--k, 0) * 100ms);
}
.js .stats.is-in .stat { opacity: 1; transform: none; }

.about__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.4vw;
  margin-top: clamp(60px, 10vh, 120px);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.about__cols p:nth-child(2) { --d: 120ms; }
.about__edu { align-self: end; font-size: 11.5px !important; line-height: 1.8 !important; --d: 240ms; }

/* ---------- Now / bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  min-height: 310px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  perspective: 1100px;
  transition: background-color .9s var(--ease-io), border-color .9s var(--ease-io);
}
.card--ims { grid-column: span 7; grid-row: span 2; min-height: 600px; }
.card--engine {
  grid-column: span 5;
  grid-row: span 2;
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}
.card--kf { grid-column: span 6; }
.card--alta { grid-column: span 3; }
.card--talk { grid-column: span 3; }

.js .card[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0) scale(.97);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), background-color .9s var(--ease-io), border-color .9s var(--ease-io);
  transition-delay: calc(var(--k, 0) * 90ms), calc(var(--k, 0) * 90ms), 0s, 0s;
}
.js .card[data-reveal].is-in { opacity: 1; transform: none; }

.card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(24px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}

.card__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 79, 31, .17), transparent 62%);
  opacity: 0;
  transition: opacity .5s;
}
.card:hover .card__glow { opacity: 1; }

.card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); }
.card__meta span + span::before { content: "/"; margin-right: 12px; opacity: .5; }

.card__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: .96;
  letter-spacing: -.045em;
}
.card__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
.card__title--xl { margin-top: auto; font-size: clamp(56px, 7.4vw, 130px); line-height: .9; }
.card__text { max-width: 40ch; font-size: clamp(15px, 1.1vw, 18px); color: var(--muted); }

.card__orb {
  position: absolute;
  right: -10%;
  top: -14%;
  z-index: -1;
  width: min(64%, 560px);
  aspect-ratio: 1;
  filter: blur(34px);
  opacity: .85;
  pointer-events: none;
}
.card__orb i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: orb 14s var(--ease-io) infinite alternate;
}
.card__orb i:nth-child(1) { inset: 12% 22% 30% 10%; background: var(--accent); }
.card__orb i:nth-child(2) { inset: 30% 4% 8% 36%; background: #f0b08a; animation-duration: 18s; animation-direction: alternate-reverse; }
.card__orb i:nth-child(3) { inset: 26% 30% 22% 24%; background: #cdbb9c; animation-duration: 11s; }
@keyframes orb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12%, 9%) scale(1.16); }
  100% { transform: translate(9%, -7%) scale(.9); }
}

.engine { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.card--engine .card__body {
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(12, 11, 9, .96) 22%, rgba(12, 11, 9, 0) 62%);
}
.card--engine .card__meta, .card--engine .card__text { color: rgba(236, 230, 217, .66); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(236, 230, 217, .22); color: var(--paper); }
.chips li:last-child { border-color: var(--accent); color: var(--accent); }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin-top: auto;
}
.services li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.services .mono { font-size: 11px; color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background-color .35s, color .35s, border-color .35s;
}
.link-arrow:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.link-arrow span:last-child { display: inline-block; transition: transform .45s var(--ease); }
.link-arrow:hover span:last-child { transform: translate(2px, -2px); }
.card--alta .link-arrow { margin-top: auto; }
.card--ims .link-arrow { margin-top: 4px; }

.talk { margin-top: 4px; }
.talk li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(19px, 1.55vw, 26px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.talk li::before { content: "→"; margin-right: 10px; font-size: .8em; color: var(--accent); }

/* ---------- Achievements (stacked cards) ---------- */

.stack { position: relative; }

.ach {
  position: sticky;
  top: calc(var(--nav-h) + 3vh + var(--i, 0) * 16px);
  height: min(76vh, 720px);
  margin-bottom: 7vh;
}
.ach:last-child { margin-bottom: 0; }

.ach__inner {
  position: relative;
  height: 100%;
  padding: clamp(26px, 3vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(236, 230, 217, .1);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 79, 31, .07), transparent 60%),
    linear-gradient(160deg, #1b1814 0%, #100e0b 62%);
  color: var(--paper);
  transform-origin: 50% 0;
  will-change: transform;
}
.ach__inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 64%);
}

.ach__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.ach__num {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(66px, 9vw, 152px);
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 230, 217, .42);
}
.ach__year { font-size: 13px; color: var(--accent); }

.ach__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: end;
}
.ach__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4.3vw, 76px);
  line-height: .98;
  letter-spacing: -.046em;
}
.ach__text { font-size: clamp(15px, 1.12vw, 19px); line-height: 1.6; color: rgba(236, 230, 217, .72); }
.ach__src {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(236, 230, 217, .2);
  color: rgba(236, 230, 217, .52);
  transition: color .3s, border-color .3s;
}
.ach__src:hover { color: var(--accent); border-color: var(--accent); }

.ach__word {
  position: absolute;
  right: clamp(26px, 3vw, 50px);
  top: 47%;
  translate: 0 -50%;
  z-index: 1;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: 1;
  white-space: nowrap;
  color: rgba(236, 230, 217, .075);
  pointer-events: none;
  will-change: transform;
}
.ach__word i { font-style: normal; color: rgba(255, 79, 31, .35); }

.ach__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #050404;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Path (horizontal) ---------- */

.path { position: relative; }

.path__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--nav-h) + 3vh) 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4vh;
  overflow: hidden;
}

.path__head { display: flex; flex-direction: column; gap: 20px; padding: 0 var(--gutter); }

.path__track {
  display: flex;
  padding: 0 var(--gutter);
  will-change: transform;
}

.step {
  position: relative;
  flex: 0 0 clamp(290px, 30vw, 470px);
  min-height: 44vh;
  padding: 0 34px 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border-left: 1px solid var(--line);
}
.step:last-child { margin-right: 18vw; }
.step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(236, 230, 217, .5);
  background: var(--ink);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.step.is-active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px rgba(255, 79, 31, .16); }

.step__year {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(84px, 10vw, 172px);
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 230, 217, .32);
  transition: color .7s var(--ease), -webkit-text-stroke-color .7s var(--ease);
}
.step.is-active .step__year { color: var(--paper); -webkit-text-stroke-color: transparent; }
.step--now.is-active .step__year { color: var(--accent); }

.step__role { margin-bottom: 14px; font-size: 11.5px; line-height: 1.5; color: var(--accent); }
.step__org {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.1vw, 54px);
  line-height: 1;
  letter-spacing: -.01em;
}
.step__note { max-width: 30ch; margin-top: 14px; font-size: 15px; color: var(--muted); }

.path__foot { display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); color: var(--muted); }
.path__bar { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line); }
.path__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Voices ---------- */

.voices { padding-top: clamp(90px, 13vh, 150px); overflow: hidden; }

.marquee {
  display: grid;
  gap: 4px;
  margin: 0 calc(var(--gutter) * -1) clamp(90px, 13vh, 160px);
}
.mq { overflow: hidden; white-space: nowrap; }
.mq__inner {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 8.6vw, 152px);
  line-height: 1.04;
  letter-spacing: -.05em;
  will-change: transform;
}
.mq__inner i {
  margin: 0 .42em;
  font-style: normal;
  font-size: .42em;
  color: var(--accent);
}
.mq--alt .mq__inner {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--muted);
}

.voices__wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: 5vw;
  align-items: start;
}
.voices__aside { position: sticky; top: calc(var(--nav-h) + 4vh); display: flex; flex-direction: column; gap: 22px; }
.voices__note { color: var(--muted); }

.qctrl { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.qctrl__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform .5s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.qctrl__btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.qctrl__count { color: var(--muted); }
.qctrl__count b { font-weight: 500; color: var(--fg); }

.qbars { display: flex; gap: 6px; max-width: 260px; }
.qbars i { position: relative; flex: 1; height: 2px; overflow: hidden; background: var(--line); }
.qbars b { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.quotes { display: grid; touch-action: pan-y; }
.quote { grid-area: 1 / 1; visibility: hidden; }
.quote.is-active, .quote.is-leaving { visibility: visible; }
.quote blockquote {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(26px, 2.9vw, 50px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.quote blockquote::before {
  content: "“";
  margin-right: .05em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 2.3em;
  line-height: 0;
  vertical-align: -.42em;
  color: var(--accent);
}
.quote figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 38px; }
.quote figcaption b { font-size: 17px; font-weight: 500; }
.quote figcaption span { font-size: 15px; color: var(--muted); }

.js .quote .wi { transform: translate3d(0, 115%, 0); transition: transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 13ms); }
.js .quotes.is-in .quote.is-active .wi { transform: none; }
.js .quotes.is-in .quote.is-leaving .wi { transform: translate3d(0, -115%, 0); transition-duration: .55s; transition-delay: calc(var(--i, 0) * 5ms); }
.js .quote figcaption { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .6s, transform .9s var(--ease); }
.js .quotes.is-in .quote.is-active figcaption { opacity: 1; transform: none; transition-delay: .4s; }

/* ---------- Writing ---------- */

.writing__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr);
  gap: 5vw;
  align-items: start;
}
.writing__visual { position: sticky; top: calc(var(--nav-h) + 4vh); }

.art__frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
}
.art__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--s, 1.2));
  transform-origin: 50% 32%;
  will-change: transform;
}
.js .art[data-reveal] .art__frame {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.7s var(--ease-io);
}
.js .art[data-reveal].is-in .art__frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.art figcaption { margin-top: 14px; color: var(--muted); }

.writing__content .display { margin-top: 26px; }
.writing__intro { max-width: 46ch; margin-top: 28px; font-size: clamp(16px, 1.2vw, 20px); color: var(--muted); }

.posts { margin-top: clamp(44px, 6vh, 72px); border-top: 1px solid var(--line); }
.post {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 30px;
  align-items: baseline;
  gap: 18px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .65s var(--ease);
}
.post:hover { color: var(--paper); }
.post:hover::before { transform: scaleY(1); }
.post__n { color: var(--accent); }
.post__t {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 27px);
  line-height: 1.18;
  letter-spacing: -.025em;
  transition: transform .65s var(--ease);
}
.post:hover .post__t { transform: translateX(10px); }
.post__m { white-space: nowrap; color: var(--muted); transition: color .5s; }
.post:hover .post__m { color: rgba(236, 230, 217, .6); }
.post__a { justify-self: end; font-size: 20px; transition: transform .55s var(--ease), color .3s; }
.post:hover .post__a { transform: rotate(45deg); color: var(--accent); }

.js .posts li {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--k, 0) * 70ms);
}
.js .posts.is-in li { opacity: 1; transform: none; }

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(70px, 11vh, 130px); }

.focus { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1180px; margin: 38px 0 clamp(44px, 8vh, 90px); }
.focus li {
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: background-color .35s, color .35s, border-color .35s;
}
.focus li:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.js .focus[data-reveal] li {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.96);
  transition: opacity .8s var(--ease), transform 1s var(--ease), background-color .35s, color .35s, border-color .35s;
  transition-delay: calc(var(--k, 0) * 55ms), calc(var(--k, 0) * 55ms), 0s, 0s, 0s;
}
.js .focus[data-reveal].is-in li { opacity: 1; transform: none; }

.cta {
  display: block;
  width: fit-content;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(64px, 13.4vw, 258px);
  line-height: .86;
  letter-spacing: -.062em;
}
.cta__line { display: block; overflow: hidden; padding-bottom: .05em; white-space: nowrap; }
.cta__line--em {
  padding-left: 8vw;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--accent);
}
.js .cta .ch {
  transform: translate3d(0, 108%, 0);
  transition: transform 1.25s var(--ease);
  transition-delay: calc(var(--i, 0) * 38ms);
}
.js .cta.is-in .ch { transform: none; }
.cta:hover .ch { animation: wave 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); }
@keyframes wave {
  0% { transform: none; }
  38% { transform: translate3d(0, -16%, 0); }
  100% { transform: none; }
}

.contact__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5vw;
  align-items: end;
  margin-top: clamp(52px, 8vh, 96px);
}
.contact__sub { max-width: 44ch; font-size: clamp(16px, 1.2vw, 20px); color: var(--muted); }
.contact__links { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.js .contact__links[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s; }
.js .contact__links[data-reveal].is-in { opacity: 1; transform: none; }

.email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 40px);
  letter-spacing: -.03em;
  text-align: left;
  transition: border-color .4s;
}
.email:hover { border-color: var(--accent); }
.email__hint {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: .08em;
}
.socials { display: flex; flex-wrap: wrap; gap: 24px; }
.socials a { position: relative; }
.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease);
}
.socials a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.totop { transition: color .3s; }
.totop:hover { color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9200;
  translate: -50% 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card--ims, .card--engine { grid-column: span 6; grid-row: auto; min-height: 480px; }
  .card--engine { min-height: 620px; }
  .card--kf { grid-column: span 6; }
  .card--alta, .card--talk { grid-column: span 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 30px; border-top: 1px solid var(--line); }
  .about__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__edu { grid-column: 1 / -1; }
  .about__intro { grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links, .pill { display: none; }
  .burger { display: block; }
  .nav__right { gap: 16px; }

  .section__head--split { grid-template-columns: 1fr; gap: 22px; }
  .section__head--split .label { margin-top: 0; }

  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__roles { justify-self: stretch; width: 100%; }

  .about__intro { grid-template-columns: 1fr; gap: 48px; }
  .about__intro .manifesto { font-size: clamp(30px, 4.6vw, 56px); }
  .portrait { max-width: 460px; }

  .ach { height: auto; margin-bottom: 4vh; }
  .ach__inner { height: auto; min-height: min(72vh, 620px); gap: 36px; }
  .ach__main { grid-template-columns: 1fr; gap: 22px; }
  .ach__word { top: 34%; }

  .path__pin { position: relative; height: auto; overflow: visible; padding-bottom: 70px; }
  .path__track { flex-direction: column; margin-top: 30px; transform: none !important; }
  .step { flex: none; min-height: 0; padding: 26px 0 34px 26px; gap: 18px; }
  .step:last-child { margin-right: 0; }
  .step__year { font-size: 76px; }
  .path__foot { display: none; }

  .voices__wrap { grid-template-columns: 1fr; gap: 40px; }
  .voices__aside { position: relative; top: 0; }

  .writing__grid { grid-template-columns: 1fr; gap: 48px; }
  .writing__visual { position: relative; top: 0; max-width: 560px; }

  .contact__row { grid-template-columns: 1fr; gap: 36px; }
  .contact__links { align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav__right .lang { gap: 4px; }
  .hero__name { font-size: 19.5vw; }
  .hero__line--2 { text-align: left; }
  .hero__bottom { flex-wrap: wrap; }
  .scroll-cue { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: auto; min-height: 0; }
  .bento .card--ims { min-height: 420px; }
  .bento .card--engine { min-height: 640px; }
  .services { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .about__cols { grid-template-columns: 1fr; }

  .ach__inner { padding: 24px; }
  .ach__num { font-size: 64px; }

  .post { grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 12px; padding: 20px 4px; }
  .post__m { grid-column: 2; grid-row: 2; }
  .post__a { grid-column: 3; grid-row: 1; }

  .cta { font-size: 17vw; }
  .cta__line--em { padding-left: 0; }
  .email { font-size: 21px; flex-wrap: wrap; }

  .footer { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js .wi, .js .ch, .js .fade[data-reveal], .js .card[data-reveal], .js .label[data-reveal],
  .js .stats .stat, .js .posts li, .js .focus[data-reveal] li, .js .contact__links[data-reveal],
  .js .hero__top, .js .hero__roles, .js .hero__bottom {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .manifesto .wi { opacity: 1 !important; }
  .js .art[data-reveal] .art__frame,
  .js .portrait[data-reveal] .portrait__frame { clip-path: none !important; }
  .js .portrait[data-reveal] figcaption { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
}
