/* ==========================================================================
   Ishtiaq Shaheer — Portfolio
   ========================================================================== */

:root {
  --bg: #0A0A0A;
  --bg-soft: #121212;
  --card: #141414;
  --card-2: #1A1A1A;
  --text: #F3F0EA;
  --muted: #8F8A82;
  --line: rgba(243, 240, 234, .1);
  --line-strong: rgba(243, 240, 234, .22);
  --accent: #ECF39E;
  --brand: #ECF39E;
  --brand-rgb: 236, 243, 158;
  --brand-fg: #ECF39E; /* accent for text and thin lines; dark ink on light sections */
  --ink: #0A0A0A;
  --paper: #F3F0EA;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1480px;
  --r-lg: clamp(20px, 2.4vw, 32px);
  --r-md: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 90px; /* capsule height + top gap */
}

body.is-light {
  --bg: #F3F0EA;
  --bg-soft: #EAE6DE;
  --card: #FFFFFF;
  --card-2: #F7F5F1;
  --text: #0F0F0F;
  --muted: #6B665F;
  --line: rgba(15, 15, 15, .1);
  --line-strong: rgba(15, 15, 15, .22);
  --brand-fg: #0A0A0A;
  --focus-ring: #0A0A0A; /* lime focus rings vanish on cream */
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring, var(--brand)); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--brand); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(88px, 10vw, 150px) 0; position: relative; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* Grain + cursor ---------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .3s, opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--brand); mix-blend-mode: normal; }
.cursor__label { font-size: 13px; font-weight: 500; color: var(--ink); opacity: 0; transform: scale(.6); transition: .4s var(--ease); white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
@media (pointer: coarse) { .cursor { display: none; } }

/* Preloader + page wipe --------------------------------------------------- */
/* First visit in a session only: the signature writes itself while the counter runs. */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper);
  display: none; flex-direction: column; justify-content: space-between; padding: var(--pad);
}
html.js.first-visit .preloader { display: flex; }
.preloader::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .12), transparent 70%); pointer-events: none; }
.preloader__top { display: flex; justify-content: space-between; font-size: 13px; color: #8F8A82; text-transform: uppercase; letter-spacing: .12em; position: relative; }
.preloader__mid { position: relative; display: grid; justify-items: center; gap: 28px; }
.sig--pre { width: min(520px, 72vw); height: auto; --sig-w: 16; --sig-d: .7s; --sig-step: .1s; color: var(--paper); }
.preloader__role { display: flex; gap: 14px; align-items: center; font-size: 14px; color: #8F8A82; letter-spacing: .02em; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.preloader__role span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .5; }
.preloader.is-named .preloader__role { opacity: 1; transform: none; }
.preloader__bottom { display: flex; align-items: flex-end; gap: 24px; position: relative; }
.preloader__count { font-size: clamp(56px, 9vw, 140px); line-height: .8; font-weight: 500; letter-spacing: -.06em; font-variant-numeric: tabular-nums; min-width: 3ch; }
.preloader__bar { flex: 1; height: 2px; background: rgba(243, 240, 234, .14); margin-bottom: 12px; position: relative; overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.preloader__hint { font-size: 13px; color: #8F8A82; margin-bottom: 4px; white-space: nowrap; }
@media (max-width: 599px) { .preloader__hint { display: none; } }
html.no-js .preloader, .preloader.is-done { display: none !important; }

/* Page transition: a dark panel with the destination's name sweeps in, then away on the next page. */
.wipe {
  position: fixed; inset: 0; z-index: 990; background: var(--ink); color: var(--paper); pointer-events: none;
  display: grid; place-items: center; clip-path: inset(100% 0 0 0);
}
.wipe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); }
.wipe__label { font-size: clamp(36px, 6vw, 88px); letter-spacing: -.05em; font-weight: 500; line-height: 1; display: inline-flex; align-items: center; gap: .35em; }
.wipe__label::before { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--brand); }
html.js.wipe-in .wipe { clip-path: inset(0 0 0 0); }

/* Scroll progress (top hairline) */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 805; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, rgba(var(--brand-rgb), .4), var(--brand)); transform-origin: left; transform: scaleX(0); }

/* Back to top with progress ring */
.totop { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 780; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .4s; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop circle { fill: none; stroke-width: 2; }
.totop__track { stroke: var(--line-strong); }
.totop__ring { stroke: var(--brand-fg); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.totop__arrow { position: relative !important; inset: auto !important; width: 18px !important; height: 18px !important; transform: none !important; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease) !important; }
.totop:hover .totop__arrow { transform: translateY(-3px) !important; }
.totop:active { transform: scale(.94); }

/* Buttons + links --------------------------------------------------------- */
/* Animated outline: a conic gradient sweeps 0→360° around the pill. Calm at rest,
   brighter with a soft halo on hover, a small press on click. The button never moves with the pointer. */
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --ring: 360deg; } }
.btn {
  --h: 54px;
  --ring-a: var(--brand); --ring-b: #FFFFFF; --ring-o: .5;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .25s var(--ease), box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ring), transparent 0deg, transparent 150deg, color-mix(in srgb, var(--ring-a) 40%, transparent) 210deg, var(--ring-a) 290deg, var(--ring-b) 340deg, transparent 360deg);
  animation: ring 3.6s linear infinite;
}
.btn::before {
  padding: 1.5px; z-index: 1; opacity: var(--ring-o); transition: opacity .5s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn::before, .btn::after {
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Halo: blurred copy of the ring, masked so it only glows outside the edge, never over the fill */
.btn::after { z-index: 0; inset: -10px; padding: 10px; filter: blur(9px); opacity: 0; transition: opacity .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn:hover::after, .btn:focus-visible::after { opacity: .55; }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn > * { position: relative; z-index: 2; }
body.is-light .btn { --ring-b: #0A0A0A; }
.btn--dark { --ring-a: var(--brand); --ring-b: #0A0A0A; }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn::after { animation: none; --ring: 200deg; } }
.btn__spin { position: absolute !important; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0; transform: scale(.4); transition: .3s var(--ease); }
.is-loading .btn__spin, .btn.is-loading .btn__spin { opacity: 1; transform: none; animation: spin .7s linear infinite; }
.btn.is-loading .roll, .btn.is-loading .btn__arrow { opacity: 0; }
.btn.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 64px; padding: 0 34px; font-size: 17px; }
.btn--accent { background: var(--brand); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 34px rgba(var(--brand-rgb), .16); }
.btn--accent:hover { background: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--brand); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--brand); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: rotate(45deg); }

/* Rolling text on hover */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: inline-block; transition: transform .55s var(--ease); }
.roll::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  transform: translateY(105%); transition: transform .55s var(--ease);
}
a:hover > .roll > span, .btn:hover .roll > span, .roll:hover > span { transform: translateY(-105%); }
a:hover > .roll::after, .btn:hover .roll::after, .roll:hover::after { transform: translateY(0); }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; position: relative; padding-bottom: 4px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); flex: none; }
a:hover .link__arrow { transform: rotate(45deg); }

.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-fg); position: relative; flex: none; display: inline-block; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* Labels + headings ------------------------------------------------------- */
.label { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: color-mix(in srgb, var(--text) 3%, transparent); }
.label span { color: var(--brand-fg); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.h2 { font-size: clamp(32px, 4vw, 60px); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; max-width: 15ch; }
.h2 .serif { letter-spacing: -.02em; }
.head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); justify-items: start; }
.head--split { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .head--split { grid-template-columns: 1fr auto; align-items: end; column-gap: 64px; }
  .head--split .label { grid-column: 1 / -1; }
  .head--split .head__aside, .head--split > .btn { justify-self: end; }
}
.head__aside { max-width: 36ch; color: var(--muted); font-size: 17px; }

/* Split text helpers (added by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .18em 0; margin: 0 -.08em -.18em 0; }
.w__i { display: inline-block; will-change: transform; }

/* Navigation -------------------------------------------------------------- */
/* Floating capsule: transparent at the top, frosted glass once the page scrolls. */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 800; margin: 0 auto;
  width: min(calc(100% - 2 * var(--pad) + 20px), calc(var(--max) - 2 * var(--pad) + 20px)); height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 9px 0 10px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .7s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 68%, transparent); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); box-shadow: none; }
body.menu-open .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.nav__logo { display: flex; align-items: center; gap: 14px; padding-left: 10px; height: 100%; }
.nav__role { display: none; color: var(--muted); font-size: 13px; padding-left: 14px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
@media (min-width: 1240px) { .nav__role { display: block; } }
.nav__links { display: none; position: relative; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; padding: 4px; border-radius: 999px; }
.nav__links a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; transition: color .3s; color: color-mix(in srgb, var(--text) 78%, transparent); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; pointer-events: none; }
.nav__links a.is-active::before { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-fg); }

/* Signature (single-stroke paths drawn with stroke-dashoffset) */
.sig { display: block; overflow: visible; }
.sig path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--sig-w, 40); stroke-dasharray: 1; stroke-dashoffset: 0; }
.sig .sig__swash { stroke: var(--brand); }
body.is-light .sig .sig__swash { stroke: var(--text); }
.sig--nav { height: 36px; width: auto; --sig-w: 52; }
.sig--nav path { transition: stroke-dashoffset 0s; }
.sig.is-drawing path { animation: sigDraw var(--sig-d, .55s) cubic-bezier(.55, .1, .35, 1) both; animation-delay: calc(var(--i) * var(--sig-step, .07s)); }
@keyframes sigDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html.js .sig--pre path, html.js .sig--footer path { stroke-dashoffset: 1; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__status { display: none; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.nav__right .btn { display: none; }
.nav__burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-content: center; gap: 6px; position: relative; z-index: 2; }
.nav__burger > span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__right .btn { display: inline-flex; }
  .nav__burger { display: none; }
}
@media (min-width: 1240px) { .nav__status { display: inline-flex; } }

.menu {
  position: fixed; inset: 0; z-index: 790; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-size: clamp(44px, 12vw, 80px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; display: flex; gap: 14px; align-items: baseline; }
.menu__links small { font-size: 14px; color: var(--brand); letter-spacing: 0; }
.menu__foot { display: flex; flex-direction: column; gap: 10px; color: #8F8A82; }
body.menu-open .nav { color: var(--paper); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 60px) 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .04) 45%, transparent 70%);
  filter: blur(20px);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero .container { position: relative; }
.hero__eyebrow { margin-bottom: clamp(24px, 3vw, 40px); text-wrap: balance; }
.hero__title { font-size: clamp(42px, min(7vw, 12.5vh), 112px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.hero__title .serif { color: var(--brand); padding-right: .04em; }
.line { display: block; overflow: hidden; padding: 0 .1em .18em 0; margin: 0 -.1em -.18em 0; }
.line__in { display: inline-block; will-change: transform; }
.hero__pill {
  display: inline-block; width: 1.55em; height: .78em; border-radius: 999px; overflow: hidden; vertical-align: .02em;
  margin-left: .06em; background: var(--card-2);
}
.hero__pill img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); transition: filter .8s var(--ease); }
.hero__pill { box-shadow: 0 0 0 1px var(--line-strong); }
.hero__title:hover .hero__pill img { filter: none; }
@media (max-width: 699px) { .hero__pill { display: none; } }
.hero__bottom { display: grid; gap: 32px; margin-top: clamp(32px, 4vw, 56px); }
.hero__intro { max-width: 48ch; font-size: clamp(16px, 1.15vw, 18px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px;
}
.hero__meta dt { color: var(--muted); margin-bottom: 4px; }
.hero__meta dd { font-weight: 500; }
.hero__scroll { display: none; }
.hero__scroll-line { display: block; width: 1px; height: 28px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--brand); animation: scrollLine 2s var(--ease-in-out) infinite; }
@keyframes scrollLine { to { top: 100%; } }
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
  .hero__scroll { display: block; justify-self: end; text-align: right; }
  .hero__scroll dd { display: flex; justify-content: flex-end; }
}

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; position: relative; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.logos { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.logos__item { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; padding: 0 28px; white-space: nowrap; color: var(--text); opacity: .82; }
.logos__sep { color: var(--brand); font-size: 14px; }
.logos__item { display: inline-flex; align-items: center; text-decoration: none; transition: opacity .3s; }
a.logos__item:hover { opacity: 1; }
.logos__logo { display: block; height: clamp(24px, 2.4vw, 34px); width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }
.logos .marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* Manifesto + stats ------------------------------------------------------- */
.manifesto__text { font-size: clamp(24px, 3vw, 46px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; margin-top: 32px; max-width: 30ch; }
.manifesto__text .sw { opacity: .14; transition: none; }
html.no-js .manifesto__text .sw { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: clamp(64px, 10vw, 140px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; transition: background-color .7s var(--ease); }
.stat__num { font-size: clamp(38px, 4.2vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 500; }
.stat__note { color: var(--muted); font-size: 15px; }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Work stack -------------------------------------------------------------- */
.work .head { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .work .head { grid-template-columns: 1fr auto; align-items: end; } .work .head .label { grid-column: 1 / -1; } }
.stack { display: grid; gap: 24px; }
.pcard {
  display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -20px 60px rgba(0, 0, 0, .35);
  position: relative; transform-origin: 50% 0; will-change: transform;
}
/* Darkening layer animated by JS as newer cards stack on top. */
.pcard__shade { position: absolute; inset: 0; z-index: 4; background: #050505; opacity: 0; pointer-events: none; border-radius: inherit; }
/* Desktop: every card pins at the same spot and is sized to fit the screen, so nothing is ever cut off. */
@media (min-width: 1000px) {
  .stack { gap: 6vh; padding-bottom: 4vh; }
  .stack__item { position: sticky; top: calc(var(--nav-h) + 40px); }
  .pcard { height: clamp(480px, calc(100svh - var(--nav-h) - 72px), 680px); }
  .pcard__info { overflow: hidden; }
}
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.pcard__info { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.8vw, 44px); min-height: 0; }
.pcard__top { display: flex; align-items: center; gap: 14px; }
.pcard__index { font-family: var(--serif); font-style: italic; font-size: 22px; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.pcard__title { font-size: clamp(28px, 2.9vw, 46px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.pcard__headline { color: var(--muted); font-size: clamp(15.5px, 1.15vw, 18px); max-width: 34ch; }
.pcard__foot { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.pcard__metric { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.pcard__metric strong { font-size: clamp(28px, 2.5vw, 38px); letter-spacing: -.04em; font-weight: 500; color: color-mix(in srgb, var(--accent) 80%, #fff); line-height: 1; }
.pcard__metric span { color: var(--muted); font-size: 15px; max-width: 22ch; }
.pcard__meta { font-size: 14px; color: var(--muted); }
.pcard__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.pcard__media { position: relative; min-height: 320px; padding: 0 clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px); }
@media (min-width: 1000px) {
  .pcard { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pcard__media { padding: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) 0; min-height: 0; }
}

/* Media (screens or art) */
.media { position: relative; height: 100%; min-height: inherit; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, var(--card-2)); }
.media__main { position: absolute; inset: 0; overflow: hidden; }
.media__main img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.media--card .media__main { inset: 8% 0 0 8%; border-radius: 14px 0 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.media__float { position: absolute; width: 42%; left: 4%; bottom: 6%; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12); }
.media__float img { width: 100%; height: auto; }
.pcard:hover .media__main img { transform: scale(1.04); }

.media--art { display: grid; place-items: center; }
.art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.art__glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent), transparent); filter: blur(30px); opacity: .55; animation: float 12s var(--ease-in-out) infinite alternate; }
@keyframes float { to { transform: translate(8%, -6%) scale(1.1); } }
.art__window {
  position: relative; width: 86%; max-width: 640px; border-radius: 16px; overflow: hidden;
  background: rgba(14, 14, 14, .72); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 40px 100px rgba(0, 0, 0, .5); color: #F3F0EA;
  transition: transform 1s var(--ease);
}
.pcard:hover .art__window { transform: translateY(-6px) rotate(-.6deg); }
.art__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #8F8A82; }
.art__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.art__bar span { margin-left: 10px; }
.art__body { display: grid; grid-template-columns: 38% 1fr; min-height: 250px; }
.art__side { padding: 14px; border-right: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 6px; align-content: start; font-size: 12.5px; }
.art__side li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: #A9A49B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art__side li i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.art__side li.is-on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; }
.art__side li.is-on i { background: var(--accent); border-color: var(--accent); }
.art__main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.art__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art__row b { height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.art__row b:first-child { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.art__chart { height: 96px; display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.art__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 50%, transparent), var(--accent)); transform-origin: bottom; animation: bar 2.4s var(--ease) infinite alternate; }
.art__chart span:nth-child(odd) { animation-delay: .4s; opacity: .7; }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.art__bubble { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); width: 80%; }
.art__bubble em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: #0A0A0A; }
.art__bubble span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); flex: 1; }
.art__bubble span + span { flex: .6; }

/* Results ----------------------------------------------------------------- */
.results__grid { display: grid; gap: 16px; }
.result {
  display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.result::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .12), transparent); }
.result__num { font-size: clamp(48px, 5.2vw, 84px); line-height: .9; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.result__pre { color: var(--brand); }
.result__suf { font-size: .5em; letter-spacing: -.03em; }
.result__label { font-weight: 500; font-size: 19px; }
.result__note { color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .results__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .results__grid { grid-template-columns: repeat(4, 1fr); } .result { min-height: 280px; align-content: space-between; } }

/* Archive ----------------------------------------------------------------- */
.archive { padding: 0 0 clamp(88px, 10vw, 150px); }
.archive__head { display: grid; gap: 16px; margin-bottom: 40px; }
.archive__count { font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.03em; font-weight: 500; max-width: 26ch; }
.archive__count span { color: var(--brand); }
@media (min-width: 1000px) { .archive__head { grid-template-columns: auto 1fr auto; align-items: end; column-gap: 48px; } }
.marquee--shots + .marquee--shots { margin-top: 16px; }
.shot { width: clamp(260px, 30vw, 460px); aspect-ratio: 16 / 10; margin-right: 16px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); flex: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Process ----------------------------------------------------------------- */
.process__grid { display: grid; gap: 56px; }
.process__aside { display: grid; gap: 28px; align-content: start; }
.process__lead { color: var(--muted); max-width: 40ch; font-size: 18px; }
.process__steps { display: grid; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--brand); line-height: 1; }
.step__title { font-size: clamp(20px, 1.8vw, 27px); letter-spacing: -.035em; font-weight: 500; line-height: 1.1; margin-bottom: 10px; }
.step__body { color: var(--muted); max-width: 52ch; }
@media (min-width: 1000px) {
  .process__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .process__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
}
.toolkit { display: grid; gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.toolkit__col { padding: 24px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); font-size: 15.5px; }
.toolkit__label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; font-weight: 500; }
@media (min-width: 700px) { .toolkit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .toolkit { grid-template-columns: repeat(4, 1fr); } }

/* Experience -------------------------------------------------------------- */
.experience .h2 { max-width: 18ch; }
.tl { margin-bottom: clamp(56px, 8vw, 110px); padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.tl__track { position: relative; height: 66px; }
.tl__seg {
  position: absolute; top: 0; height: 30px; border-radius: 8px; cursor: pointer; transform-origin: left;
  transition: filter .3s, box-shadow .3s, opacity .3s;
}
.tl__seg--lane1 { top: 36px; }
.tl__seg--building { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--text); }
.tl__seg--design { background: var(--text); }
.tl__seg--roots { background: color-mix(in srgb, var(--text) 30%, transparent); }
.tl__seg:hover, .tl__seg:focus-visible, .tl__seg.is-active { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--brand-fg); z-index: 2; }
.tl__tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; font-size: 13px; white-space: nowrap;
  display: grid; gap: 2px; transition: .35s var(--ease); z-index: 5;
}
.tl__tip strong { font-weight: 500; font-size: 14px; }
.tl__seg:hover .tl__tip, .tl__seg:focus-visible .tl__tip { opacity: 1; transform: translate(-50%, 0); }
.tl__ticks { position: relative; height: 22px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__ticks span { position: absolute; top: 6px; transform: translateX(-50%); }
.tl__ticks span:first-child { transform: none; }
.tl__ticks span:last-child { transform: translateX(-100%); }
.tl__legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.tl__key { display: inline-flex; align-items: center; gap: 8px; }
.tl__key i { width: 14px; height: 14px; border-radius: 4px; }
.tl__key--building i { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--text); }
.tl__key--design i { background: var(--text); }
.tl__key--roots i { background: color-mix(in srgb, var(--text) 30%, transparent); }
@media (max-width: 699px) { .tl__ticks span:nth-child(even) { display: none; } }

.xp { display: grid; gap: 40px; }
.xp__aside { display: none; }
@media (min-width: 1000px) {
  .xp { grid-template-columns: 3fr 9fr; gap: 64px; }
  .xp__aside { display: block; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}
.xp__year { font-size: clamp(56px, 6vw, 96px); line-height: .85; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.xp__era { display: inline-block; margin-top: 16px; padding: 4px 14px; border-radius: 999px; background: var(--brand); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; }
.xp__progress { margin-top: 28px; width: 100%; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.xp__progress span { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); }
.xp__era-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 40px 0 16px; border-bottom: 1px solid var(--line-strong); }
.xp__era-head:first-child { padding-top: 0; }
.xp__era-head h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.xp__era-head span { font-size: 14px; color: var(--muted); }

.job { display: grid; gap: 14px; padding: 32px 0; border-bottom: 1px solid var(--line); position: relative; }
.job::before { content: ""; position: absolute; left: -24px; top: 38px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-fg); transform: scale(0); transition: transform .5s var(--ease); }
.job.is-active::before { transform: scale(1); }
@media (max-width: 999px) { .job::before { display: none; } }
@media (min-width: 700px) { .job { grid-template-columns: 220px 1fr; gap: 40px; } }
.job__dates { font-weight: 500; font-variant-numeric: tabular-nums; }
.job__dur { color: var(--muted); font-size: 14px; margin-top: 2px; }
.job__now { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--brand); color: var(--ink); font-weight: 500; font-size: 12px; line-height: 20px; }
.job__company { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.job__company a { display: inline-flex; align-items: center; gap: 8px; }
.job__company a:hover { color: var(--muted); }
.job__company small { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.job__role { margin-top: 6px; font-weight: 500; }
.job__role span { color: var(--muted); font-weight: 400; }
.job__summary { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.job__list { margin-top: 16px; display: grid; gap: 10px; max-width: 66ch; }
.job__list li { position: relative; padding-left: 22px; }
.job__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--brand-fg); }
.job__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.job__tags span { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--text); }
.job--compact { padding: 22px 0; }
.job--compact .job__company { font-size: clamp(18px, 1.4vw, 21px); }
.job--compact .job__summary { margin-top: 4px; }

/* Ventures ---------------------------------------------------------------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 800px) { .bento { grid-template-columns: repeat(6, 1fr); } .venture--lg { grid-column: span 6; } .venture--md { grid-column: span 3; } .venture--sm { grid-column: span 3; } }
@media (min-width: 1200px) { .venture--lg { grid-column: span 4; grid-row: span 2; } .venture--md { grid-column: span 2; } .venture--sm { grid-column: span 3; } }
.venture {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 28px; min-height: 300px; overflow: hidden;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.venture:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.venture__spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.venture:hover .venture__spot { opacity: 1; }
.venture__top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.venture__kind { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.venture__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color .4s, border-color .4s; }
.venture__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.venture:hover .venture__go { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.venture:hover .venture__arrow { transform: rotate(45deg); }
.venture__body { position: relative; display: grid; gap: 10px; margin-top: auto; }
.venture__name { font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -.045em; font-weight: 500; line-height: 1; }
.venture--lg .venture__name { font-size: clamp(40px, 4.8vw, 76px); }
.venture__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.venture__desc { color: var(--muted); max-width: 52ch; font-size: 15.5px; }
.venture__foot { position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.venture__url { margin-left: auto; color: var(--text); }

/* Testimonials ------------------------------------------------------------ */
.quotes { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.quotes__pin { overflow: hidden; }
.quotes__track { display: flex; gap: 20px; padding: 0 var(--pad); width: max-content; }
.quote {
  width: min(460px, 82vw); min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); flex: none;
}
.quote:nth-child(3n + 2) { background: var(--brand); color: var(--ink); border-color: transparent; }
.quote:nth-child(3n + 2) .quote__by { color: rgba(10, 10, 10, .7); }
.quote:nth-child(3n + 2) .quote__mark { color: var(--ink); }
.quote:nth-child(3n + 2) .quote__avatar { background: var(--ink); color: var(--paper); }
.quote__mark { font-family: var(--serif); font-size: 72px; line-height: .6; color: var(--brand); height: 40px; }
.quote__text { font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.45; letter-spacing: -.01em; }
.quote__by { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.quote__by strong { display: block; color: inherit; font-weight: 500; font-size: 16px; }
.quote:not(:nth-child(3n + 2)) .quote__by strong { color: var(--text); }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; flex: none; }
@media (max-width: 999px) {
  .quotes__pin { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .quotes__pin::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: center; }
}

/* Contact ----------------------------------------------------------------- */
.contact__grid { display: grid; gap: 64px; }
.contact__intro { display: grid; gap: 28px; align-content: start; }
.contact__title { max-width: 14ch; }
.contact__lead { color: var(--muted); font-size: 18px; max-width: 42ch; }
.contact__direct { display: grid; border-top: 1px solid var(--line); }
.contact__direct li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__direct span { color: var(--muted); }
.contact__direct a { font-weight: 500; text-align: right; word-break: break-word; }
.contact__direct a:hover { color: var(--brand); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: 96px; } .contact__intro { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }

.form { display: grid; gap: 28px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; gap: 28px; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__set { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.form__set legend { font-size: 14px; color: var(--muted); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; transition: background-color .3s, color .3s, border-color .3s; }
.chip-opt:hover span { border-color: var(--text); }
.chip-opt input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form__status { font-size: 15px; color: var(--muted); }
.form__status.is-ok { color: var(--brand); }
.form__status.is-err { color: #FF6B6B; }

/* Footer ------------------------------------------------------------------ */
.footer { padding: clamp(80px, 10vw, 140px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; gap: 40px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col a:not(.btn) { width: fit-content; color: var(--muted); transition: color .3s; }
.footer__col a:not(.btn):hover { color: var(--text); }
.footer__col--lead { gap: 28px; }
.footer__lead { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; max-width: 13ch; }
.footer__lead .serif { color: var(--brand); }
.footer__label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.footer__time { font-size: 28px; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.footer__muted { color: var(--muted); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
/* Giant signature, written as the footer scrolls into view */
.footer__giant { position: relative; margin-top: clamp(56px, 7vw, 110px); display: flex; align-items: flex-end; gap: 2vw; user-select: none; }
.sig--footer { width: min(62vw, 980px); height: auto; --sig-w: 15; color: var(--text); }
.footer__surname { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 9vw, 160px); line-height: .8; color: color-mix(in srgb, var(--text) 48%, transparent); padding-bottom: 4%; letter-spacing: -.02em; }
@media (max-width: 699px) { .footer__giant { flex-direction: column; align-items: flex-start; } .sig--footer { width: 88vw; } }

/* Reveal defaults (JS sets initial states, so no-JS shows everything) ----- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); }
html.js.reduced [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 7vw, 96px); position: relative; }
.page-hero__title { font-size: clamp(46px, 7.6vw, 128px); line-height: .9; letter-spacing: -.06em; font-weight: 500; }
.page-hero__title .serif { color: var(--brand); }
.page-hero__sub { color: var(--muted); max-width: 48ch; font-size: clamp(17px, 1.4vw, 20px); margin-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-bottom: 40px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(-135deg); }

/* Work index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; transition: .3s; }
.filter:hover { border-color: var(--text); }
.filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter sup { font-size: 11px; margin-left: 3px; color: inherit; opacity: .6; }
.grid { display: grid; gap: clamp(28px, 3vw, 44px) 24px; }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.gcard { display: grid; gap: 18px; transition: opacity .5s var(--ease); }
.gcard.is-hidden { display: none; }
.gcard__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.gcard__media .media { position: absolute; inset: 0; min-height: 0; border-radius: inherit; }
.gcard__media .media__main img { height: 100%; transition: transform 1.2s var(--ease); }
.gcard:hover .media__main img { transform: scale(1.05); }
.gcard__metric { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: rgba(10, 10, 10, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #F3F0EA; font-size: 13px; }
.gcard__metric strong { color: color-mix(in srgb, var(--accent) 80%, #fff); font-size: 16px; font-weight: 600; }
.gcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gcard__title { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.04em; font-weight: 500; line-height: 1.05; }
.gcard__year { color: var(--muted); font-size: 14px; white-space: nowrap; }
.gcard__headline { color: var(--muted); max-width: 48ch; }
.gcard__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.masonry { columns: 1; column-gap: 16px; }
@media (min-width: 700px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry__item { break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: block; width: 100%; cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform .8s var(--ease); }
.masonry__item:hover img { transform: scale(1.03); }
.masonry__item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 980; background: rgba(5, 5, 5, .92); display: grid; place-items: center; padding: 5vmin; opacity: 0; visibility: hidden; transition: .4s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-size: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brand); color: var(--ink); }

/* Case study */
.case-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.case-hero::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -20vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.case-hero .container { position: relative; }
.case-hero__kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.case-hero__title { font-size: clamp(42px, 6vw, 96px); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.case-hero__headline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; color: color-mix(in srgb, var(--accent) 80%, #fff); max-width: 30ch; margin-top: 18px; }
.case-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: clamp(40px, 5vw, 72px); }
.case-meta div { background: var(--bg); padding: 18px 20px; }
.case-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { font-weight: 500; font-size: 15.5px; }
@media (min-width: 900px) { .case-meta { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .case-meta { grid-template-columns: repeat(6, 1fr); } }

.case-cover { margin-top: 16px; }
.case-cover .media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
.case-cover .media__main img { height: 115%; }
.case-cover .art__window { max-width: 760px; }
@media (max-width: 699px) { .case-cover .media { aspect-ratio: 4 / 5; } }

.case-body { display: grid; gap: 48px; padding-top: clamp(72px, 10vw, 140px); }
@media (min-width: 1000px) { .case-body { grid-template-columns: 3fr 9fr; gap: 72px; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .toc a { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 6px 0; font-size: 15px; transition: color .3s; }
  .toc a::before { content: ""; width: 14px; height: 1.5px; background: currentColor; transition: width .4s var(--ease); }
  .toc a.is-active { color: var(--text); }
  .toc a.is-active::before { width: 32px; background: var(--accent); }
}
.case-section { padding-bottom: clamp(56px, 7vw, 100px); }
.case-section__title { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; line-height: 1; font-weight: 500; margin-bottom: 32px; }
.case-section__title .serif { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.case-lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -.02em; max-width: 40ch; }
.cards { display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards--3 { }
@media (min-width: 1200px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.icard { padding: 28px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.icard__n { font-family: var(--serif); font-style: italic; font-size: 22px; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.icard__t { font-size: 21px; letter-spacing: -.025em; font-weight: 500; line-height: 1.2; }
.icard__b { color: var(--muted); }
.numbered { display: grid; }
.numbered li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered__n { font-family: var(--serif); font-style: italic; font-size: 28px; color: color-mix(in srgb, var(--accent) 80%, #fff); line-height: 1; }
.numbered__t { font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.035em; font-weight: 500; line-height: 1.15; margin-bottom: 8px; }
.numbered__b { color: var(--muted); max-width: 58ch; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding: 24px; border-radius: var(--r-md); background: var(--card); border: 1px dashed var(--line-strong); }
.flow__label { width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.flow__step { padding: 10px 16px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.flow__step:first-of-type { background: var(--accent); color: var(--ink); border-color: transparent; }
.flow__sep { color: var(--muted); }
.big-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); background: var(--accent); color: var(--ink); margin-bottom: 24px; }
.big-metric strong { font-size: clamp(48px, 5.6vw, 88px); letter-spacing: -.06em; line-height: .9; font-weight: 500; }
.big-metric span { font-size: clamp(18px, 1.6vw, 24px); max-width: 24ch; letter-spacing: -.02em; }

.shots { display: grid; gap: 16px; margin: clamp(40px, 6vw, 80px) 0; }
.shots figure { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.shots img { width: 100%; height: auto; }
@media (min-width: 800px) { .shots { grid-template-columns: repeat(2, 1fr); } .shots figure:first-child { grid-column: 1 / -1; } }

.next { display: block; padding: clamp(80px, 12vw, 180px) 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.next__label { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.next__title { font-size: clamp(42px, 6.6vw, 112px); line-height: .95; letter-spacing: -.06em; font-weight: 500; margin-top: 18px; transition: color .5s var(--ease); }
.next:hover .next__title { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.next__headline { color: var(--muted); margin-top: 16px; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.nf__code { font-size: clamp(120px, 26vw, 360px); line-height: .8; letter-spacing: -.08em; font-weight: 500; }
.nf__code .serif { color: var(--brand); }
.nf p { color: var(--muted); margin: 24px 0 32px; }

/* Premium surfaces: soft vertical gradient + hairline top highlight ------- */
.result, .venture, .toolkit__col, .tl, .form, .icard, .quote:not(:nth-child(3n + 2)), .stats {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.stat { background: transparent; }
.stats { gap: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 999px) {
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
body.is-light .tl { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .05); }
.ventures { padding-bottom: clamp(48px, 6vw, 96px); }
.work { padding-bottom: clamp(40px, 5vw, 72px); }
.hero__glow { opacity: .9; }
.hero__bg::after {
  content: ""; position: absolute; width: 50vmax; height: 50vmax; left: -25vmax; bottom: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), .06), transparent 70%);
}

/* ==========================================================================
   v3: pages, loaders and micro-interactions
   ========================================================================== */

/* Floating-label fields with an animated underline */
.field { display: block; position: relative; padding-top: 22px; }
.field input, .field textarea {
  display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: 18px; padding: 8px 0 12px; border-radius: 0; outline: none; resize: none;
}
.field textarea { min-height: 110px; line-height: 1.5; }
.field__label { position: absolute; left: 0; top: 30px; font-size: 18px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .3s; }
.field input:focus ~ .field__label, .field textarea:focus ~ .field__label,
.field input:not(:placeholder-shown) ~ .field__label, .field textarea:not(:placeholder-shown) ~ .field__label { transform: translateY(-28px) scale(.78); }
.field input:focus ~ .field__label, .field textarea:focus ~ .field__label { color: var(--text); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field--area .field__line { bottom: 28px; }
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF4D4D; }
.field.is-invalid .field__label { color: #FF6B6B; }
.field.is-invalid { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field__count { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.form__flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--line); }
.form__flash.is-ok { color: var(--brand); border-color: rgba(var(--brand-rgb), .4); }
.form__flash.is-err { color: #FF6B6B; }
.chip-opt span { transition: background-color .3s, color .3s, border-color .3s, transform .2s var(--ease); }
.chip-opt:active span { transform: scale(.95); }
.form__status.is-ok::before { content: "✓ "; }

/* Breadcrumbs */
.crumbs { margin-bottom: clamp(28px, 4vw, 48px); font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Inner page hero extras */
.page-hero .label { margin-bottom: 28px; }
.page-hero__title { max-width: 16ch; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page-hero::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -25vmax; top: -35vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .1), transparent 70%); pointer-events: none; z-index: -1; }
.page-hero { isolation: isolate; overflow: hidden; }
body.is-light .page-hero::after { opacity: .6; }
.page-hero--contact .page-hero__title { max-width: 14ch; }

.about-hero { display: grid; gap: 48px; align-items: end; }
.about-hero .page-hero__title { font-size: clamp(44px, 6.4vw, 104px); }
.about-hero__portrait { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--card-2); max-width: 460px; }
.about-hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(.25) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.about-hero__portrait:hover img { filter: none; transform: scale(1.03); }
.about-hero__portrait figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 10, 10, .7); color: #F3F0EA; font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 1000px) { .about-hero { grid-template-columns: 1fr minmax(320px, 420px); gap: 80px; } }

.story__grid { display: grid; gap: 40px; }
.story__aside { display: grid; gap: 28px; align-content: start; }
.story__body { display: grid; gap: 22px; max-width: 64ch; color: var(--muted); font-size: 18px; }
.story__lead { color: var(--text); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.35; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: 1fr; margin-top: 20px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); font-weight: 500; }
.facts a:hover { color: var(--brand-fg); }
@media (min-width: 1000px) { .story__grid { grid-template-columns: 5fr 7fr; gap: 80px; } .story__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }
.manifesto--about { padding-top: 0; }

/* Home: manifesto head, experience teaser */
.manifesto__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.head__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1000px) { .head--split > .head__btns { justify-self: end; } }
.roles { display: grid; border-top: 1px solid var(--line-strong); }
.role a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease); }
.role a::before { content: ""; position: absolute; inset: 0 -16px; border-radius: 14px; background: var(--card); opacity: 0; transition: opacity .4s; z-index: -1; }
.role { position: relative; isolation: isolate; }
.role a:hover { padding-left: 12px; padding-right: 12px; }
.role a:hover::before { opacity: 1; }
.role__dates { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; grid-column: 1; }
.role__company { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; font-weight: 500; line-height: 1.1; grid-column: 1; }
.role__title { color: var(--muted); grid-column: 1; }
.role__go { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color .4s, color .4s, border-color .4s; }
.role a:hover .role__go { background: var(--text); color: var(--bg); border-color: var(--text); }
.role a:hover .link__arrow { transform: rotate(45deg); }
@media (min-width: 900px) {
  .role a { grid-template-columns: 200px 1fr 1fr auto; align-items: center; }
  .role__dates, .role__company, .role__title { grid-column: auto; }
  .role__go { grid-column: auto; grid-row: auto; }
}
.experience--teaser .tl { margin-bottom: clamp(40px, 5vw, 64px); }
a.tl__seg { display: block; }

/* FAQ */
.faq__grid { display: grid; gap: 40px; }
.faq__aside { display: grid; gap: 28px; align-content: start; }
.faq__lead { color: var(--muted); }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; }
.qa__q::-webkit-details-marker { display: none; }
.qa__q h3 { font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -.025em; font-weight: 500; line-height: 1.25; transition: color .3s; }
.qa__q:hover h3 { color: var(--brand-fg); }
.qa__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--brand); border-color: var(--brand); color: var(--ink); transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 64px 28px 0; color: var(--muted); max-width: 70ch; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; } .faq__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }

/* CTA band */
.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(88px, 10vw, 140px); }
.cta__card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 96px); border-radius: calc(var(--r-lg) + 8px); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); display: grid; gap: 24px; justify-items: start; }
.cta__glow { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--brand-rgb), .22), transparent 70%); animation: float 14s var(--ease-in-out) infinite alternate; }
.cta__title { font-size: clamp(34px, 5vw, 76px); line-height: 1; letter-spacing: -.05em; font-weight: 500; max-width: 16ch; }
.cta__title .serif { color: var(--brand); }
.cta__lead { color: var(--muted); max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Ventures page */
.why__grid { display: grid; gap: 28px; }
.why__cols { display: grid; gap: 16px; margin-top: 24px; }
.why__cols > div { padding: 28px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.why__cols h3 { font-size: 21px; letter-spacing: -.025em; font-weight: 500; margin-bottom: 10px; }
.why__cols p { color: var(--muted); }
@media (min-width: 900px) { .why__cols { grid-template-columns: repeat(3, 1fr); } }

/* Contact page */
.contact__steps { padding: 24px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.contact__steps ol { display: grid; gap: 14px; }
.contact__steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; color: var(--muted); font-size: 15.5px; }
.contact__steps li span { font-family: var(--serif); font-style: italic; color: var(--brand-fg); font-size: 19px; line-height: 1.3; }
.toolkit--flush { margin-top: 0; }
.nf__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Image loading: shimmer until the picture arrives, then a soft focus-in */
:where([data-load]) { position: relative; }
html.js [data-load]:not(.is-loaded)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--text) 7%, transparent) 50%, transparent 70%) var(--card-2);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
html.js [data-load] img { opacity: 0; filter: blur(12px); transition: opacity .8s var(--ease), filter 1s var(--ease); }
html.js [data-load].is-loaded img { opacity: 1; filter: none; }

/* Scroll reveal for media: wipes up from the bottom while the image settles from a zoom */
html.js [data-reveal-img] { clip-path: inset(18% 0 0 0); opacity: 0; }
html.js.reduced [data-reveal-img] { clip-path: none; opacity: 1; }

/* Stagger hover on cards */
.gcard__title, .venture__name { transition: color .4s var(--ease); }
.gcard:hover .gcard__title { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.gcard__media { transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.gcard:hover .gcard__media { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.result, .toolkit__col, .icard { transition: border-color .5s var(--ease), transform .6s var(--ease); }
.result:hover, .toolkit__col:hover, .icard:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.shot { transition: transform .6s var(--ease); }
.shot:hover { transform: scale(1.03); }
.link:active, .qa__q:active { opacity: .7; }

.cursor.is-hidden { opacity: 0; }
.lightbox.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); border-right-color: transparent; animation: spin .7s linear infinite; }
.lightbox img { transition: opacity .3s; }
.lightbox.is-busy img { opacity: .3; }
/* Light theme: lime is a fill, never text */
body.is-light .page-hero__title .serif, body.is-light .cta__title .serif, body.is-light .footer__lead .serif { color: var(--text); background: linear-gradient(transparent 64%, rgba(var(--brand-rgb), .95) 64%, rgba(var(--brand-rgb), .95) 90%, transparent 90%); padding: 0 .06em; }
body.is-light .btn--light { background: var(--ink); color: var(--paper); }
body.is-light .btn--light:hover { background: var(--brand); color: var(--ink); }
body.is-light .hero__title .serif { color: var(--text); }
.page-hero--contact .eyebrow { display: flex; margin-bottom: clamp(28px, 3vw, 44px); }
.page-hero--contact { padding-bottom: clamp(36px, 5vw, 72px); }
/* Experience page sits fully on the light theme */
.page-experience .page-hero { background: transparent; }

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .manifesto__text .sw { opacity: 1 !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js [data-reveal-img] { clip-path: none; opacity: 1; }
  html.js .sig--pre path, html.js .sig--footer path { stroke-dashoffset: 0; }
}

/* Archive: long full-page captures preview as a cropped top slice; the lightbox shows them whole */
.masonry__item { position: relative; }
.masonry__item.is-tall { aspect-ratio: 4 / 5; }
.masonry__item.is-tall img { height: 100%; object-fit: cover; object-position: 50% 0; }
.masonry__item.is-tall::after { content: "Full page"; position: absolute; inset: auto 0 0; padding: 48px 16px 14px; font-size: 12px; letter-spacing: .02em; color: var(--text); background: linear-gradient(to top, rgba(10, 10, 10, .92), transparent); pointer-events: none; }
.masonry__item.is-capped { display: none; }
.masonry__more { display: flex; justify-content: center; margin-top: 40px; }
.masonry__more[hidden] { display: none; }
@media (min-width: 480px) and (max-width: 699px) { .masonry { columns: 2; column-gap: 12px; } .masonry__item { margin-bottom: 12px; } }
/* Keep the fixed back-to-top button clear of the footer's last line */
.footer__bar { padding-right: 72px; }
@media (max-width: 699px) { .footer__bar { padding-right: 64px; } }

/* Case page: admin-controlled screens (caption, size, placement) and extra results */
.shot-fig { margin: 0; }
.shot-fig figcaption { padding: 14px 18px 16px; font-size: 14px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
@media (min-width: 800px) {
  .shots .shot-fig.is-wide { grid-column: 1 / -1; }
  .shots .shot-fig.is-half:first-child { grid-column: auto; }
}
.case-metrics { margin-top: 40px; }
.case-metrics__title { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; font-weight: 500; margin-bottom: 18px; }
.case-metrics__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.case-metric { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: border-color .5s var(--ease), transform .6s var(--ease); }
.case-metric:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.case-metric strong { font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.05em; font-weight: 500; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.case-metric span { font-size: 16px; letter-spacing: -.01em; }
.case-metric small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.result--link { color: inherit; }
.result__go { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.result__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.result--link:hover .result__go svg { transform: translate(2px, -2px); }
.result--link:hover { border-color: var(--line-strong); }

/* Venture logos replace the name; the name stays as alt text for screen readers and search. */
.venture__name--logo { line-height: 0; }
.venture__logo { display: block; width: auto; height: clamp(30px, 2.6vw, 40px); max-width: 100%; object-fit: contain; object-position: left center; }
.venture--lg .venture__logo { height: clamp(48px, 5vw, 84px); }
body.is-light .venture__logo { filter: invert(1) hue-rotate(180deg); }
/* Bento adapts to any number of ventures (after the large card and two medium ones, small cards fill rows). */
@media (min-width: 800px) and (max-width: 1199px) {
  .bento > .venture:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .venture--sm { grid-column: span 2; }
  .bento > .venture--sm:nth-child(3n + 4):last-child { grid-column: 1 / -1; }
  .bento > .venture--sm:nth-child(3n + 4):nth-last-child(2),
  .bento > .venture--sm:nth-child(3n + 4):nth-last-child(2) + .venture--sm { grid-column: span 3; }
}
.hero__book { color: inherit; border-bottom: 1px solid var(--line-strong); transition: border-color .4s var(--ease), color .4s var(--ease); }
.hero__book:hover { color: var(--brand); border-color: var(--brand); }
.draft-bar { position: relative; z-index: 5; margin: 96px auto 0; width: min(100% - 32px, 1100px); padding: 12px 18px; border-radius: 12px; background: #FFC45A; color: #0A0A0A; font-size: 14px; font-weight: 500; text-align: center; }
.draft-bar a { text-decoration: underline; }
/* The menu overlay is always dark, even on light pages */
body.is-light .menu { --focus-ring: var(--brand); }
