/* ------------------------------------------------------------------
   Aditya Tayal — CV
   Archivo (variable width + weight), Instrument Serif, JetBrains Mono
------------------------------------------------------------------- */

:root {
  --ink: #0d0d0b;
  --bone: #ebe6da;
  --accent: #ff5a1f;
  --bg: var(--ink);
  --bg-2: #141412;
  --fg: var(--bone);
  --mute: #8f897d;
  --line: rgba(235, 230, 218, .14);
  --on-accent: #0d0d0b;
  --pad: clamp(16px, 3.6vw, 52px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ece7dc;
  --bg-2: #e3ddd0;
  --fg: #121210;
  --mute: #6b665c;
  --line: rgba(18, 18, 16, .16);
  --accent: #f04a0e;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.band--a, .menu, .panel, .panel__cover { transition: background-color .6s var(--ease), color .6s var(--ease); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.accent { color: var(--accent); }

/* ---------- texture, progress ---------- */
.grain {
  position: fixed; inset: -10%; z-index: 90; pointer-events: none; opacity: .07; will-change: transform;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.anim .grain { animation: grain 1.2s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); } 80% { transform: translate(4%, 3%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; left: 0; top: 0; z-index: 95; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- loader ---------- */
#loader { display: none; }
.anim #loader {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px var(--pad); background: var(--bg); color: var(--fg);
}
.loader__top { display: flex; justify-content: space-between; }
.loader__count {
  font-weight: 900; font-variation-settings: "wdth" 62; line-height: .78; text-align: right;
  font-size: clamp(120px, 34vw, 520px); letter-spacing: -.02em;
}
.loader__bar { height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor .cursor { display: block; }
  .cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot { position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
  .cursor__ring {
    position: fixed; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #fff; display: grid; place-items: center;
    transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background-color .35s;
  }
  .cursor__label { font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #000; font-style: normal; opacity: 0; transition: opacity .2s; }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; left: -32px; top: -32px; background: #fff; }
  .cursor.is-label .cursor__ring { width: 92px; height: 92px; left: -46px; top: -46px; background: #fff; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px var(--pad); color: #fff; mix-blend-mode: difference;
}
/* Past the hero the nav becomes a solid bar, so it never sits on top of text. */
.nav { transition: background-color .35s var(--ease), padding .35s var(--ease); }
.nav.is-solid { mix-blend-mode: normal; color: var(--fg); background: var(--bg); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.nav__mark { font-weight: 900; font-size: 20px; font-variation-settings: "wdth" 75; letter-spacing: .01em; }
.nav__mark span { font-weight: 400; opacity: .6; }
.nav__links { display: none; gap: 28px; font: 500 12px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__clock { display: none; opacity: .75; }
.theme-toggle, .menu-btn { padding: 6px 0; border-bottom: 1px solid currentColor; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1200px) { .nav__clock { display: inline; } }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 96px var(--pad) 28px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 15vw, 110px); line-height: .92; font-variation-settings: "wdth" 70;
  border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.menu__links .mono { font-size: 12px; }
.menu__foot { margin-top: 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(20px, 3vw, 40px);
  padding: 88px var(--pad) 28px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > *:not(.hero__canvas) { position: relative; z-index: 1; }
.hero__coords { position: absolute !important; top: 76px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; color: var(--mute); }
.hero__name {
  contain: layout style;
  font-weight: 800; text-transform: uppercase; line-height: .8; letter-spacing: -.015em;
  font-size: clamp(64px, 20.5vw, 380px);
  font-variation-settings: "wght" 800, "wdth" 92;
}
.hero__line { display: block; overflow: hidden; padding-top: .04em; }
.hero__line--right { display: flex; justify-content: flex-end; align-items: flex-end; gap: 2vw; }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__tag {
  font-size: clamp(14px, 2.1vw, 34px); text-transform: none; line-height: 1.1; padding-bottom: .9em;
  color: var(--mute); display: none; max-width: 14ch;
}
@media (min-width: 700px) { .hero__tag { display: block; } }
@media (max-width: 699px) {
  .hero__name { font-size: 23.5vw; }
  .hero__coords span + span { display: none; }
}
@media (hover: none) { .hover-only { display: none; } }
@media (hover: hover) { .touch-only { display: none; } }
.char { display: inline-block; font-variation-settings: "wght" 800, "wdth" 92; }
.hero__meta { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.hero__lede { font-size: clamp(17px, 1.6vw, 24px); line-height: 1.35; max-width: 34em; }
.hero__lede .serif { font-size: 1.25em; color: var(--accent); }
.hero__facts li { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hero__facts span { color: var(--accent); }
@media (min-width: 900px) {
  .hero__meta { grid-template-columns: 1.3fr 1fr; gap: 6vw; align-items: end; }
}
.hero__scroll { position: absolute !important; right: var(--pad); top: 50%; display: none; align-items: center; gap: 10px; writing-mode: vertical-rl; color: var(--mute); }
.hero__scroll i { width: 1px; height: 64px; background: var(--mute); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 900px) { .hero__scroll { display: flex; } }

/* ---------- marquee bands ---------- */
.bands { position: relative; padding: clamp(48px, 8vw, 110px) 0; overflow: hidden; }
.band { white-space: nowrap; overflow: hidden; }
.band__track {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); padding: 14px 0;
  font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5.4vw, 84px);
  font-variation-settings: "wdth" 70; line-height: 1; will-change: transform;
}
.band__track b { font-weight: 400; }
.band--a { background: var(--accent); color: var(--on-accent); transform: rotate(-2.6deg) scale(1.06); position: relative; z-index: 2; }
.band--b { color: var(--fg); border-block: 1px solid var(--line); transform: rotate(1.8deg) scale(1.06); margin-top: -10px; }
.band--b .band__track { -webkit-text-stroke: 1px var(--fg); color: transparent; }
.band--b .band__track b { -webkit-text-stroke: 0; color: var(--accent); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 11vw, 160px) var(--pad); }
.sec-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 20px;
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(36px, 6vw, 88px);
}
.sec-head > .mono:first-child { color: var(--accent); align-self: start; padding-top: 6px; }
.sec-head__title {
  font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(44px, 9.4vw, 160px); font-variation-settings: "wdth" 72;
}
.sec-head__aside { color: var(--mute); text-align: right; padding-bottom: 6px; }
@media (max-width: 640px) {
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head__aside { grid-column: 1 / -1; text-align: left; }
}

/* word mask used by split reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > .wi { display: inline-block; will-change: transform; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.stat { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.stat__n {
  font-weight: 900; line-height: .86; letter-spacing: -.02em; white-space: nowrap;
  font-size: clamp(60px, 7vw, 124px); font-variation-settings: "wdth" 100;
}
.stat__l { color: var(--mute); margin-top: 14px; max-width: 30ch; }
@media (min-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 28px 34px 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 28px; }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat, .stat:nth-child(even) { padding: 34px 28px 38px; border-right: 1px solid var(--line); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-child(3n + 1) { padding-left: 0; }
}

/* ---------- selected work ---------- */
.work__head { padding-bottom: 0; }
.work__head .sec-head { margin-bottom: clamp(24px, 4vw, 48px); }
.work__count b { color: var(--fg); font-weight: 500; }
.work__track { display: flex; flex-direction: column; gap: 28px; padding: 0 var(--pad) clamp(72px, 10vw, 140px); }
.panel { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--bg-2); }
.panel__text { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.panel__idx { color: var(--accent); }
.panel__title {
  font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(40px, 4.4vw, 80px); font-variation-settings: "wdth" 68; overflow-wrap: anywhere;
}
.panel__lede { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; }
.panel__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.panel__stats li { padding: 12px 10px 12px 0; display: grid; gap: 4px; }
.panel__stats li + li { border-left: 1px solid var(--line); padding-left: 10px; }
.panel__stats b { font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 90; }
.panel__stats .mono { font-size: 10px; color: var(--mute); }
.panel__body { color: var(--fg); opacity: .82; font-size: 15px; line-height: 1.5; }
.panel__stack { color: var(--mute); }
.panel__links { margin-top: auto; display: flex; gap: 22px; }
.panel__links a { border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.panel__links a:hover { color: var(--accent); }
.panel__links span { color: var(--mute); }
.panel__cover { position: relative; aspect-ratio: 4 / 3; border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.panel__cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel__cover figcaption { position: absolute; left: 12px; bottom: 10px; max-width: calc(100% - 24px); padding: 4px 8px; background: var(--bg); color: var(--mute); font-size: 10px; pointer-events: none; }
@media (max-width: 899px) {
  .panel__cover { aspect-ratio: auto; }
  .panel__cover canvas { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; }
  .panel__cover figcaption { position: static; max-width: none; padding: 10px 14px 12px; background: none; border-top: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .work__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .work__track { flex-direction: row; gap: 3vw; padding: 0 var(--pad); will-change: transform; }
  .panel { flex: 0 0 min(82vw, 1240px); height: min(76vh, 720px); grid-template-columns: 1fr 1.15fr; }
  .panel__text { padding: clamp(22px, 2.4vw, 38px); overflow: hidden; }
  .panel__cover { aspect-ratio: auto; border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .panel__body { display: none; }
}

/* ---------- accordion (experience + index) ---------- */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }

/* ---------- experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp__item { border-bottom: 1px solid var(--line); }
.xp__row {
  position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: 1fr 28px; gap: 4px 16px;
  padding: 22px 0; isolation: isolate; transition: color .35s, padding .5s var(--ease);
}
.xp__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease);
}
.xp__date { grid-column: 1; color: var(--mute); transition: color .35s; }
.xp__co { grid-column: 1; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 68px); line-height: .9; font-variation-settings: "wdth" 70; white-space: nowrap; transition: font-variation-settings .6s var(--ease); }
.xp__role { grid-column: 1; color: var(--mute); transition: color .35s; }
.xp__plus { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 22px; height: 22px; position: relative; }
.xp__plus::before, .xp__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.xp__plus::after { transform: rotate(90deg); }
.acc.is-open .xp__plus::after { transform: rotate(0deg); }
.acc.is-open .xp__plus::before { transform: rotate(180deg); }
@media (hover: hover) {
  .xp__row:hover { color: var(--on-accent); }
  .xp__row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .xp__row:hover .xp__date, .xp__row:hover .xp__role { color: var(--on-accent); }
  .xp__row:hover .xp__co { font-variation-settings: "wdth" 94; }
}
.xp .acc__inner > * { max-width: 70ch; }
.xp .acc__inner ul { padding: 4px 0 6px; display: grid; gap: 10px; }
.xp .acc__inner li { position: relative; padding-left: 22px; opacity: .88; }
.xp .acc__inner li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.xp .acc__inner p { padding: 4px 0 6px; opacity: .88; }
.acc__stack { color: var(--mute); padding: 10px 0 26px !important; opacity: 1 !important; }
.xp .acc__lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; opacity: 1 !important; padding-top: 6px; }
.acc__nums { display: flex; flex-wrap: wrap; gap: 0; margin: 14px 0 6px; border-block: 1px solid var(--line); }
.xp .acc__inner .acc__nums { padding: 0; display: flex; max-width: none; width: fit-content; }
.xp .acc__inner .acc__nums li { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); opacity: 1; display: grid; gap: 2px; color: var(--mute); }
.xp .acc__inner .acc__nums li:last-child { border-right: 0; margin-right: 0; }
.xp .acc__inner .acc__nums li::before { content: none; }
.acc__nums b { font-family: "Archivo", sans-serif; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; color: var(--fg); letter-spacing: 0; text-transform: none; line-height: 1; }
.acc__group { color: var(--accent); font-weight: 500; margin: 18px 0 2px; }
@media (min-width: 900px) {
  .xp__row { grid-template-columns: 190px minmax(0, 1.35fr) minmax(0, .85fr) 28px; align-items: center; padding: 26px 0; }
  .xp__date, .xp__co, .xp__role { grid-column: auto; }
  .xp__plus { grid-column: auto; grid-row: auto; }
  .xp .acc__inner { padding-left: 206px; }
}

/* ---------- leadership ---------- */
.lead__statement {
  font-weight: 700; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -.01em;
  font-variation-settings: "wdth" 86; max-width: 22em;
}
.lead__statement .serif { color: var(--accent); font-size: 1.08em; }
.anim .lead__statement .lw { opacity: .14; }
.lead__top { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .lead__top { grid-template-columns: minmax(0, 1fr) minmax(260px, 27vw); align-items: end; } }
.lead__photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); max-width: 420px; }
.lead__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.08); will-change: transform; }
.lead__photo figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 8px; background: var(--bg); color: var(--mute); font-size: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(32px, 5vw, 64px) 0; }
.chips li { border: 1px solid var(--line); padding: 10px 14px; }
.chips b { color: var(--accent); font-weight: 500; }
.roles { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.role { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.role__when { color: var(--accent); }
.role h3 { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; font-variation-settings: "wdth" 85; }
.role p:last-child { opacity: .78; max-width: 46ch; }
@media (min-width: 900px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .role { padding: 28px 28px 32px; border-right: 1px solid var(--line); }
  .role:nth-child(3n) { border-right: 0; }
  .role:nth-child(3n + 1) { padding-left: 0; }
}

/* ---------- index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 26px; }
.filters button { padding: 6px 0; color: var(--mute); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filters button::before { content: "[ "; }
.filters button::after { content: " ]"; }
.filters button:hover { color: var(--fg); }
.filters button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.filters sup { font-size: 9px; margin-left: 2px; }
.plist { border-top: 1px solid var(--line); counter-reset: p; }
.prow { border-bottom: 1px solid var(--line); }
.prow.is-hidden { display: none; }
.prow__head {
  width: 100%; text-align: left; display: grid; grid-template-columns: 52px 1fr 22px; gap: 2px 14px; align-items: baseline;
  padding: 16px 0; transition: padding .45s var(--ease), color .3s;
}
.prow__y { color: var(--mute); grid-row: 1 / span 2; }
.prow__name { font-weight: 700; font-size: clamp(19px, 2vw, 28px); line-height: 1.15; font-variation-settings: "wdth" 88; }
.prow__ctx { color: var(--mute); grid-column: 2; }
.prow__arrow { grid-column: 3; grid-row: 1; color: var(--accent); transition: transform .45s var(--ease); }
.prow.is-open .prow__arrow { transform: rotate(90deg); }
.prow .acc__inner { padding-left: 66px; }
.prow__body { display: grid; gap: 14px; padding-bottom: 22px; }
.prow__desc { padding: 2px 0 6px; max-width: 70ch; opacity: .85; }
.prow__fig { position: relative; height: 200px; margin: 0; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.prow__fig canvas, .pv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 900px) {
  .prow__body { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 32px; align-items: start; }
  .prow__fig { height: 220px; }
}
/* floating preview of a project's animation, desktop only */
.pv {
  position: fixed; left: 0; top: 0; z-index: 85; width: 340px; height: 212px; pointer-events: none;
  border: 1px solid var(--line); background: var(--bg); visibility: hidden; opacity: 0;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.pv__label { position: absolute; left: 0; bottom: -26px; color: var(--accent); white-space: nowrap; }
.prow__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mute); }
.prow__meta a { color: var(--accent); border-bottom: 1px solid var(--accent); }
@media (hover: hover) {
  .prow__head:hover { padding-left: 14px; color: var(--accent); }
}
@media (min-width: 900px) {
  .prow__head { grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 22px; align-items: center; }
  .prow__y { grid-row: auto; }
  .prow__ctx { grid-column: auto; }
  .prow__arrow { grid-column: auto; grid-row: auto; }
  .prow .acc__inner { padding-left: 84px; }
}

/* ---------- recognition ---------- */
.aw { border-top: 1px solid var(--line); }
.aw__row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease);
}
.aw__rank {
  grid-column: 1 / -1; color: var(--accent); font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(40px, 6.4vw, 104px); font-variation-settings: "wdth" 66;
}
.aw__what { display: grid; gap: 4px; }
.aw__what b { font-size: clamp(18px, 1.8vw, 26px); font-weight: 700; line-height: 1.15; }
.aw__what span { opacity: .75; }
.aw__yr { color: var(--mute); }
@media (min-width: 900px) {
  .aw__row { grid-template-columns: minmax(220px, 26vw) 1fr auto; align-items: center; }
  .aw__rank { grid-column: auto; }
}
@media (hover: hover) { .aw__row:hover { padding-left: 18px; } }

.certs__title { color: var(--accent); font-weight: 500; margin: clamp(48px, 7vw, 96px) 0 14px; }
.certs { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
.certs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.certs li > span:first-child { grid-column: 1 / -1; color: var(--mute); }
.certs b { font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.25; }
.certs li > span:last-child { color: var(--mute); }
@media (min-width: 900px) {
  .certs { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .certs li { grid-template-columns: 200px 1fr auto; }
  .certs li > span:first-child { grid-column: auto; }
}

/* ---------- toolbox ---------- */
.tools__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.tool { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.tool h3 { color: var(--accent); font-weight: 500; }
.tool p { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; font-variation-settings: "wdth" 90; }
@media (min-width: 700px) {
  .tools__grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .tools__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- contact ---------- */
.contact { padding: clamp(80px, 12vw, 180px) var(--pad) clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); overflow: hidden; }
.contact__kicker { color: var(--mute); }
.contact__big {
  --wdth: 62;
  font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -.02em; white-space: nowrap;
  font-size: clamp(64px, 18.5vw, 380px); font-variation-settings: "wdth" var(--wdth);
  margin: 18px 0 clamp(28px, 4vw, 56px);
}
.contact__row { display: grid; gap: 28px; }
.contact__email {
  text-align: left; display: grid; gap: 8px; justify-self: start;
  font-weight: 700; font-size: clamp(22px, 3.6vw, 56px); line-height: 1; font-variation-settings: "wdth" 80;
  border-bottom: 2px solid var(--accent); padding-bottom: 10px; word-break: break-all;
}
.contact__hint { color: var(--mute); font-weight: 400; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.contact__links a { display: inline-block; padding: 6px 0; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.contact__links a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 1000px) { .contact__row { grid-template-columns: 1fr auto; align-items: end; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px var(--pad) 28px; color: var(--mute); border-top: 1px solid var(--line); }
.foot a:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 140%);
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; visibility: hidden;
  transform: translate(-50%, calc(100% + 40px)); transition: transform .5s var(--ease), visibility 0s .5s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

/* ---------- initial states for animations (only when JS + motion are on) ---------- */
.anim .hero__word .char, .anim .hero__tag { transform: translateY(105%); }
.anim .hero__coords, .anim .nav { opacity: 0; }
.anim [data-reveal] { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* horizontal-scroll readout (desktop only) */
.work__hud { display: none; }
@media (min-width: 900px) {
  .work__pin { position: relative; }
  .work__hud {
    position: absolute; left: var(--pad); right: var(--pad); bottom: 3.2vh; display: flex; align-items: center; gap: 24px;
    color: var(--mute);
  }
  .work__hud b { color: var(--fg); font-weight: 500; }
  .work__hud i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
  .work__hud em { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
}

/* ---------- light motion (transform and opacity only) ---------- */
.anim .lead__photo { clip-path: inset(100% 0 0 0); }
.sec-head { position: relative; }
.anim .sec-head { border-top-color: transparent; }
.anim .sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(var(--draw, 0)); transform-origin: 0 50%; }
.nav__links a.is-current { color: var(--accent); }
.nav.is-solid .nav__links a.is-current::after { transform: scaleX(1); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.anim .live-dot { animation: live 2s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }
.anim .chips li, .anim .prow { opacity: 0; transform: translateY(16px); }
