/* =========================================================
   Ant White v2
   Natalie LeRoy-style structure in Ant's blues: a dark glowing
   hero band, light paper sections, gradient-topped quest cards.
   ---------------------------------------------------------
   Type: Copernicus (headings + reading), Instrument Sans (nav,
   buttons), JetBrains Mono (labels, tags). Max size 64px.
   ========================================================= */

@font-face { font-family: "Copernicus"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Copernicus-Book.woff2") format("woff2"); }
@font-face { font-family: "Copernicus"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Copernicus-BookItalic.woff2") format("woff2"); }
@font-face { font-family: "Copernicus"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Copernicus-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Copernicus"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Copernicus-Bold.woff2") format("woff2"); }
@font-face { font-family: "Copernicus"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/Copernicus-Extrabold.woff2") format("woff2"); }

:root {
  --blue: #1585E8;          /* Ant's hyperlink blue */
  --blue-hi: #5DB2FF;
  --blue-deep: #0B3FA8;
  --cyan: #3FD0FF;
  --indigo: #5B5CF0;

  /* Dark band */
  --d-bg: #05070D;
  --d-ink: #F2F5FB;
  --d-dim: rgba(232, 238, 252, 0.7);
  --d-faint: rgba(232, 238, 252, 0.42);
  --d-line: rgba(140, 175, 255, 0.16);

  /* Light paper */
  --l-bg: #EDEFF3;
  --l-card: #E0E4EB;
  --l-ink: #0A0E18;
  --l-dim: #465066;
  --l-faint: #737D92;
  --l-line: rgba(10, 14, 24, 0.13);

  /* Pastel tags, blue family */
  --tag-0: #C9DEFF; --tag-1: #C8EDFA; --tag-2: #DAD6FF; --tag-3: #BFC9F2; --tag-4: #D3E2EC;

  --hairline: linear-gradient(90deg, #8FB8FF 0%, #3FD0FF 25%, #1585E8 50%, #8B8CFF 75%, #8FB8FF 100%);
  --grad-text: linear-gradient(100deg, #7FD8FF 0%, #5DB2FF 40%, #1585E8 70%, #7B7CFF 100%);

  --serif: "Copernicus", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Type scale, capped at 64px */
  --t-hero: clamp(44px, 6vw, 64px);
  --t-h1: clamp(40px, 5vw, 56px);
  --t-h2: clamp(32px, 4vw, 48px);
  --t-h3: clamp(24px, 2.2vw, 30px);
  --t-lede: clamp(19px, 1.6vw, 22px);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--l-bg); color: var(--l-ink); font: 400 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.band--dark :focus-visible { outline-color: var(--cyan); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 900; background: var(--blue); color: #fff; padding: 10px 16px; font: 600 14px var(--sans); transition: top .3s; }
.skip:focus { top: 16px; }
.eyebrow { display: inline-block; font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.band--light .eyebrow { color: var(--l-dim); }

/* =========================================================
   Bands
   ========================================================= */
.band--dark { position: relative; background: var(--d-bg); color: var(--d-ink); isolation: isolate; overflow: hidden; --gx: 50%; --gy: 30%; }
.band--light { position: relative; background: var(--l-bg); color: var(--l-ink); }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.aurora span:nth-child(1) { width: 34vw; height: 120%; left: 30%; top: -10%; background: radial-gradient(closest-side, rgba(21, 133, 232, .95), transparent); animation: sway-a 16s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 26vw; height: 110%; left: 46%; top: -5%; background: radial-gradient(closest-side, rgba(91, 92, 240, .75), transparent); animation: sway-b 19s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 22vw; height: 100%; left: 18%; top: 10%; background: radial-gradient(closest-side, rgba(63, 208, 255, .5), transparent); animation: sway-c 22s ease-in-out infinite alternate; }
.aurora span:nth-child(4) { width: 18vw; height: 90%; left: 60%; top: 20%; background: radial-gradient(closest-side, rgba(11, 63, 168, .9), transparent); animation: sway-a 25s ease-in-out infinite alternate-reverse; }
@keyframes sway-a { to { transform: translate3d(8vw, 4%, 0) scale(1.15, .95); } }
@keyframes sway-b { to { transform: translate3d(-10vw, -6%, 0) scale(.9, 1.1); } }
@keyframes sway-c { to { transform: translate3d(12vw, -4%, 0) scale(1.2); } }
.band--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(93, 178, 255, .18), transparent 60%), linear-gradient(90deg, var(--d-bg) 0%, transparent 22%, transparent 78%, var(--d-bg) 100%); }
.band--dark::after { content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay; animation: grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>"); }
.band--quiet .aurora { opacity: .5; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-4%); } 75% { transform: translate(-4%,-1%); } }
.motion-paused .aurora span, .motion-paused .band--dark::after, .motion-paused .marquee__track { animation-play-state: paused; }

/* Cursor dot */
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; display: none; }
.cursor i { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 0 18px var(--blue), 0 0 40px rgba(63, 208, 255, .6); transition: transform .3s var(--ease); }
.cursor.is-big i { transform: scale(2.6); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* =========================================================
   Nav: dark bar, gradient hairline that fills as you scroll
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 500; background: var(--d-bg); color: var(--d-ink); }
.nav__line { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(143, 184, 255, .25); }
.nav__line i { display: block; height: 100%; background: var(--hairline); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); box-shadow: 0 0 12px rgba(63, 208, 255, .5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { font: 700 22px var(--serif); letter-spacing: -.02em; text-decoration: none; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font: 600 15px var(--sans); text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav__links a:hover { background-size: 100% 2px; color: var(--blue-hi); }
.nav__links a[aria-current="page"] { background-size: 100% 2px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--d-line); color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--d-bg); border-bottom: 1px solid var(--d-line); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { display: block; padding: 14px 0; font-size: 18px; }
}

/* =========================================================
   Buttons, tags, highlight
   ========================================================= */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate; padding: 17px 26px; border: 2px solid var(--blue); border-radius: var(--r); cursor: pointer; font: 600 16px/1 var(--sans); color: #fff; background: var(--blue); text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s, background .2s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(21, 133, 232, .5), 0 0 50px rgba(63, 208, 255, .25); }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.band--dark .btn--ghost { border-color: rgba(242, 245, 251, .55); }
.btn--ghost:hover { background: rgba(21, 133, 232, .12); border-color: var(--blue); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.tag { display: inline-block; padding: 3px 9px; font: 500 12px/1.5 var(--mono); color: var(--l-ink); background: var(--tag-0); border-radius: 2px; }
.tag[data-t="1"] { background: var(--tag-1); } .tag[data-t="2"] { background: var(--tag-2); } .tag[data-t="3"] { background: var(--tag-3); } .tag[data-t="4"] { background: var(--tag-4); }
.hl { background: var(--blue); color: #fff; padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: 0 0 26px rgba(21, 133, 232, .6); }
.text-link { font: 500 13px var(--mono); color: inherit; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { color: var(--blue-hi); }
.band--light .text-link:hover { color: var(--blue); }
p a, .link { color: var(--blue); text-underline-offset: 3px; }
.band--dark p a { color: var(--blue-hi); }
.pulse { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3BE3A1; box-shadow: 0 0 10px #3BE3A1; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #3BE3A1; animation: ping 2s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: clamp(72px, 12vh, 130px) 0 clamp(72px, 11vh, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__name { font-size: var(--t-hero); line-height: 1; margin: 14px 0 18px; letter-spacing: -.03em; text-shadow: 0 0 40px rgba(21, 133, 232, .4); }
.hero__line { font: 700 clamp(24px, 2.6vw, 34px)/1.2 var(--serif); letter-spacing: -.015em; margin: 0 0 14px; }
.rotator { position: relative; display: grid; margin-top: 4px; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.5em); filter: blur(10px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease); }
.rotator__word.is-in { opacity: 1; transform: none; filter: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-.5em); filter: blur(10px); }
.rotator__word span { padding-bottom: .08em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(21, 133, 232, .55)); }
.hero__lede { font-size: var(--t-lede); line-height: 1.6; max-width: 600px; margin: 28px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
[data-split] .ch { display: inline-block; will-change: transform; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin-bottom: -.1em; }

/* Abstract glow orb */
.orb { --ox: 0px; --oy: 0px; position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1; }
.orb > span { position: absolute; pointer-events: none; }
.orb__blob { inset: 8%; mix-blend-mode: screen; filter: blur(20px); will-change: transform, border-radius; }
.orb__blob--a { background: radial-gradient(circle at 30% 30%, rgba(127, 216, 255, .9), var(--blue) 40%, rgba(11, 63, 168, .6) 60%, transparent 74%); animation: morph-a 14s ease-in-out infinite alternate, spin 40s linear infinite; translate: calc(var(--ox) * .6) calc(var(--oy) * .6); transition: translate 1.2s var(--ease); }
.orb__blob--b { inset: 14%; background: radial-gradient(circle at 70% 45%, #9B8CFF, var(--indigo) 38%, transparent 68%); opacity: .9; animation: morph-b 17s ease-in-out infinite alternate, spin 55s linear infinite reverse; translate: calc(var(--ox) * -.3) calc(var(--oy) * -.3); transition: translate 1.4s var(--ease); }
.orb__blob--c { inset: 20% 4% 4% 20%; background: radial-gradient(circle at 50% 60%, var(--cyan), rgba(21, 133, 232, .6) 40%, transparent 70%); opacity: .7; animation: morph-c 12s ease-in-out infinite alternate, spin 30s linear infinite; translate: calc(var(--ox) * .9) calc(var(--oy) * .9); transition: translate 1s var(--ease); }
.orb__core { inset: 38%; opacity: .75; border-radius: 50%; background: radial-gradient(circle at 45% 40%, rgba(255, 255, 255, .95), rgba(165, 227, 255, .55) 30%, transparent 70%); filter: blur(14px); animation: breathe 7s ease-in-out infinite; translate: calc(var(--ox) * -.4) calc(var(--oy) * -.4); transition: translate 1.2s var(--ease); }
.orb__ring { inset: 0; border-radius: 50%; border: 1px solid rgba(165, 227, 255, .2);
  -webkit-mask: conic-gradient(from 0deg, transparent 0 15%, #000 35%, transparent 55% 70%, #000 85%, transparent); mask: conic-gradient(from 0deg, transparent 0 15%, #000 35%, transparent 55% 70%, #000 85%, transparent);
  box-shadow: 0 0 40px rgba(63, 208, 255, .15) inset; animation: spin 24s linear infinite; }
@keyframes morph-a { 0% { border-radius: 42% 58% 62% 38% / 45% 40% 60% 55%; } 50% { border-radius: 58% 42% 38% 62% / 60% 55% 45% 40%; } 100% { border-radius: 50% 50% 45% 55% / 38% 62% 38% 62%; } }
@keyframes morph-b { 0% { border-radius: 60% 40% 45% 55% / 50% 60% 40% 50%; } 50% { border-radius: 40% 60% 60% 40% / 40% 45% 55% 60%; } 100% { border-radius: 55% 45% 40% 60% / 62% 38% 62% 38%; } }
@keyframes morph-c { 0% { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; } 100% { border-radius: 38% 62% 45% 55% / 55% 45% 60% 40%; } }
@keyframes breathe { 50% { opacity: .45; scale: 1.15; } }
.motion-paused .orb span { animation-play-state: paused; }
@media (max-width: 960px) { .orb { position: absolute; z-index: -1; right: -22%; top: 24px; width: min(340px, 80vw); opacity: .55; } }

/* =========================================================
   Logo strip
   ========================================================= */
.logos { padding: 52px 0 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 45s linear infinite; }
.marquee__item { font: 700 24px var(--sans); letter-spacing: -.02em; white-space: nowrap; opacity: .8; }
.marquee__item:nth-child(3n+2) { font: italic 400 28px var(--serif); }
.marquee__item:nth-child(3n) { font: 600 18px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos__foot { display: flex; justify-content: flex-end; margin-top: 22px; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(80px, 11vh, 130px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.section__title { font-size: var(--t-h2); line-height: 1.05; margin-top: 8px; }
.section__sub { max-width: 440px; color: var(--l-dim); font-size: 17px; }
.band--dark .section__sub { color: var(--d-dim); }

.statement { font: 400 clamp(26px, 3vw, 40px)/1.32 var(--serif); letter-spacing: -.012em; max-width: 1020px; }
.statement .w { color: rgba(10, 14, 24, .2); transition: color .5s var(--ease); }
.statement .w.is-lit { color: var(--l-ink); }
.statement em { font-style: italic; }
.statement em .w.is-lit { color: var(--blue); }

.page-head { padding: clamp(72px, 12vh, 130px) 0 clamp(64px, 10vh, 100px); }
.page-head__title { font-size: var(--t-hero); line-height: 1; margin: 14px 0 22px; letter-spacing: -.03em; }
.page-head__lede { max-width: 640px; font-size: var(--t-lede); color: var(--d-dim); }

/* =========================================================
   Glow card: spotlight border follows the pointer
   ========================================================= */
.glow-card { --mx: 50%; --my: 50%; position: relative; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.glow-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 2px;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--blue), rgba(63, 208, 255, .6) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.glow-card:hover::before { opacity: 1; }
.glow-card:hover { box-shadow: 0 28px 70px -28px rgba(21, 133, 232, .55); }

/* =========================================================
   Main quest cards (Natalie's featured work)
   ========================================================= */
.quest-grid { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .quest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 640px) { .quest-grid { grid-template-columns: 1fr; } }
.quest { display: flex; flex-direction: column; background: var(--l-card); color: var(--l-ink); text-decoration: none; min-height: 540px; overflow: hidden; }
.quest.is-hidden { display: none; }
.quest__art { --c1: #1E40AF; --c2: #3FD0FF; --c3: #6366F1; position: relative; height: 230px; overflow: hidden; flex: none; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
.quest__art i { position: absolute; border-radius: 50%; filter: blur(36px); transition: transform 1.6s var(--ease); }
.quest__art i:nth-child(1) { width: 70%; height: 150%; left: -12%; top: -45%; background: var(--c1); }
.quest__art i:nth-child(2) { width: 58%; height: 120%; left: 28%; top: -30%; background: var(--c2); opacity: .9; }
.quest__art i:nth-child(3) { width: 55%; height: 130%; left: 62%; top: -55%; background: var(--c3); }
.quest__art::after { content: ""; position: absolute; inset: 0; opacity: .2; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>"); }
.quest:hover .quest__art i:nth-child(1) { transform: translate(18%, 10%) scale(1.1); }
.quest:hover .quest__art i:nth-child(2) { transform: translate(-14%, 14%) scale(.9); }
.quest:hover .quest__art i:nth-child(3) { transform: translate(-20%, 8%) scale(1.15); }
.quest__status { position: absolute; z-index: 2; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(5, 7, 13, .78); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.quest__status--complete .pulse { background: var(--blue-hi); box-shadow: 0 0 10px var(--blue-hi); }
.quest__status--complete .pulse::after { display: none; }
.quest__status--drafting .pulse { background: #FFC44F; box-shadow: 0 0 10px #FFC44F; }
.quest__status--drafting .pulse::after { border-color: #FFC44F; }
.quest__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 30px 30px; margin-top: -16px; }
.quest__sector { margin: auto 0 10px; font: 600 16px var(--sans); }
.quest__title { font-size: var(--t-h3); line-height: 1.08; margin-bottom: 12px; }
.quest__summary { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.quest__impact { font: 400 14px/1.5 var(--sans); color: var(--l-dim); margin-bottom: 20px; }
.quest__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.quest__go { position: absolute; right: 22px; top: -8px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 17px; opacity: 0; transform: translate(-8px, 8px); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 0 24px rgba(21, 133, 232, .6); }
.quest:hover .quest__go, .quest:focus-visible .quest__go { opacity: 1; transform: none; }

/* Side quests: compact rows (main's "shorter studies") */
.side-list { display: grid; gap: 16px; }
.side { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 16px; padding-right: 28px; background: var(--l-card); color: var(--l-ink); text-decoration: none; }
.side__art { --c1: #3B3FD0; --c2: #3FD0FF; --c3: #8B5CF6; position: relative; height: 112px; overflow: hidden; }
.side__art i { position: absolute; border-radius: 50%; filter: blur(22px); transition: transform 1.4s var(--ease); }
.side__art i:nth-child(1) { width: 80%; height: 130%; left: -20%; top: -30%; background: var(--c1); }
.side__art i:nth-child(2) { width: 60%; height: 110%; left: 30%; top: -10%; background: var(--c2); }
.side__art i:nth-child(3) { width: 60%; height: 120%; left: 60%; top: -40%; background: var(--c3); }
.side:hover .side__art i:nth-child(1) { transform: translate(30%, 10%); }
.side:hover .side__art i:nth-child(2) { transform: translate(-20%, 10%) scale(1.2); }
.side__sector { font: 600 14px var(--sans); color: var(--l-dim); }
.side__title { font-size: 24px; line-height: 1.15; margin: 4px 0 6px; }
.side__summary { font-size: 17px; color: var(--l-dim); }
.side__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) { .side { grid-template-columns: 1fr; padding-right: 16px; } .side__tags { justify-content: flex-start; } }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tabs button { cursor: pointer; padding: 9px 16px; border: 1.5px solid var(--l-line); border-radius: var(--r); background: transparent; font: 500 13px/1 var(--mono); color: var(--l-dim); transition: all .2s; }
.tabs button:hover { color: var(--l-ink); border-color: var(--l-ink); }
.tabs button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 22px rgba(21, 133, 232, .45); }

/* =========================================================
   How I work (dark band)
   ========================================================= */
.pillars { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 30px; min-height: 360px; background: rgba(11, 16, 32, .72); box-shadow: inset 0 0 0 1px var(--d-line); }
.pillar__num { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--d-faint); }
.pillar__icon { width: 64px; height: 64px; color: var(--blue-hi); filter: drop-shadow(0 0 12px rgba(21, 133, 232, .9)); }
.pillar__title { font-size: var(--t-h3); line-height: 1.1; margin-top: 6px; }
.pillar__body { color: var(--d-dim); font-size: 17px; }
.pillar__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--d-line); display: flex; justify-content: space-between; gap: 12px; align-items: center; font: 500 14px var(--sans); }
.pillar__foot a { color: var(--d-ink); text-underline-offset: 3px; }
.pillar__foot a:hover { color: var(--blue-hi); }
.pillar__stat { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.spin-slow { animation: spin 18s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
.draw-loop { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawloop 3.6s var(--ease) infinite alternate; }
@keyframes drawloop { to { stroke-dashoffset: 0; } }

/* =========================================================
   Writing & speaking (list rows)
   ========================================================= */
.wlist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--l-ink); }
.wrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto 24px; gap: 24px; align-items: baseline; padding: 22px 8px; border-bottom: 1px solid var(--l-line); text-decoration: none; color: inherit; transition: background .3s, padding .4s var(--ease); }
a.wrow:hover { background: var(--l-card); padding-left: 18px; }
.wrow__kind { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.wrow__title { font: 600 22px/1.25 var(--serif); }
.wrow__meta { font: 400 15px var(--sans); color: var(--l-dim); white-space: nowrap; }
.wrow__go { color: var(--blue); transition: transform .3s var(--ease); }
a.wrow:hover .wrow__go { transform: translateX(4px); }
.wrow--soon .wrow__title, .wrow--soon .wrow__kind { color: var(--l-faint); }
@media (max-width: 700px) { .wrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; } .wrow__kind { grid-column: 1 / -1; } .wrow__meta { grid-column: 1; white-space: normal; } .wrow__go { grid-row: 2; grid-column: 2; } }

/* =========================================================
   CV
   ========================================================= */
.two { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.prose p { margin-bottom: 18px; }
.prose p:first-of-type { font-size: var(--t-lede); line-height: 1.55; }
.prose p + p { color: var(--l-dim); }
.timeline { position: relative; list-style: none; margin: 8px 0 0; padding: 0 0 0 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--blue), rgba(21, 133, 232, .1)); }
.timeline > li { margin-bottom: 6px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -31px; top: 22px; width: 14px; height: 14px; background: var(--l-bg); border: 2px solid var(--blue); transition: background .3s; }
.tl--current::before { background: var(--blue); box-shadow: 0 0 16px var(--blue); }
.tl:hover::before, .tl[open]::before { background: var(--blue); }
.tl summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; transition: background .25s; }
.tl summary::-webkit-details-marker { display: none; }
.tl summary:hover, .tl[open] summary { background: var(--l-card); }
.tl__org { font: 700 22px/1.25 var(--serif); }
.tl__years { font: 500 12px var(--mono); color: var(--l-faint); align-self: center; }
.tl__role { grid-column: 1 / -1; color: var(--l-dim); font: italic 400 17px var(--serif); }
.tl__notes { margin: 0; padding: 12px 18px 18px 36px; background: var(--l-card); color: var(--l-dim); font-size: 17px; }
.tl__notes li { margin: 4px 0; }
.tl__notes li::marker { color: var(--blue); }
.facts { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.fact { padding: 26px; background: var(--l-card); display: grid; gap: 4px; }
.fact strong { margin-top: 8px; font: 700 21px var(--serif); }
.fact span:last-child { color: var(--l-dim); font-style: italic; }

/* CV layout: sticky summary + section links, sections on the right */
.cvgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .cvgrid { grid-template-columns: 1fr; } }
.cvside { position: sticky; top: 110px; display: grid; gap: 24px; justify-items: start; }
@media (max-width: 960px) { .cvside { position: static; } }
.cvnav { display: grid; gap: 2px; width: 100%; border-left: 2px solid var(--l-line); }
.cvnav a { padding: 6px 14px; font: 500 15px var(--sans); color: var(--l-dim); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.cvnav a:hover { color: var(--blue); border-left-color: var(--blue); }
.cvsec { scroll-margin-top: 100px; }
.cvsec + .cvsec { margin-top: 72px; }
.cvsec__title { font-size: var(--t-h3); }
.cvsec__intro { color: var(--l-dim); margin: 12px 0 18px; }
.tl__clients { list-style: none; margin: 6px 0 10px 18px; padding: 4px 0 4px 20px; border-left: 2px solid rgba(21, 133, 232, .35); }
.tl__clients > li { margin-bottom: 4px; }
.tl--client::before { display: none; }
.tl--client summary { padding: 10px 14px; }
.tl--client .tl__org { font-size: 19px; }
.tl--client .tl__notes { padding-left: 32px; }
.entries { display: grid; gap: 26px; margin-top: 20px; }
.entry__org { font-size: 21px; }
.entry__detail { font-style: italic; color: var(--l-dim); margin-top: 2px; }
.entry__notes { margin: 8px 0 0; padding-left: 20px; color: var(--l-dim); }
.entry__notes li { margin: 3px 0; }
.entry__notes li::marker { color: var(--blue); }
.entry__prose { color: var(--l-dim); margin-top: 8px; max-width: 62ch; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills .tag { font-size: 13px; padding: 6px 12px; }

/* =========================================================
   Contact form
   ========================================================= */
.form { display: grid; gap: 18px; padding: 32px; background: var(--l-card); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--l-dim); padding: 0; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--r); background: var(--l-bg); color: var(--l-ink); font: 18px/1.5 var(--serif); border: 1.5px solid var(--l-line); transition: border-color .2s, box-shadow .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 133, 232, .18), 0 0 30px rgba(21, 133, 232, .2); }
.choices { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.choices input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.choices label { cursor: pointer; margin: 0; padding: 8px 14px; border: 1.5px solid var(--l-line); border-radius: var(--r); font: 500 13px var(--mono); text-transform: none; letter-spacing: 0; color: var(--l-dim); transition: all .2s; }
.choices input:checked + label { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 20px rgba(21, 133, 232, .4); }
.choices input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

/* =========================================================
   CTA + footer (dark), footer columns as on main
   ========================================================= */
.cta { padding: clamp(96px, 14vh, 150px) 0 clamp(72px, 10vh, 110px); text-align: center; }
.cta__title { font-size: var(--t-h1); line-height: 1; margin: 14px 0 20px; }
.cta p { max-width: 520px; margin: 0 auto 32px; font-size: 19px; color: var(--d-dim); }
.footer { padding: 48px 0 40px; border-top: 1px solid var(--d-line); color: var(--d-dim); }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--d-faint); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--d-ink); text-decoration: none; font-size: 17px; }
.footer a:hover { color: var(--blue-hi); }
.footer__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--d-line); font: 400 14px var(--sans); color: var(--d-faint); }

/* =========================================================
   Reveal + reduced motion
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(32px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .statement .w { color: var(--l-ink); }
}

/* =========================================================
   Password gate (soft gate: keeps casual visitors out)
   ========================================================= */
.gate { display: none; }
html.is-locked body { overflow: hidden; }
html.is-locked body > *:not(.gate) { display: none !important; }
html.is-locked .gate { display: grid; position: fixed; inset: 0; z-index: 2000; place-items: center; padding: 24px var(--gutter); overflow-y: auto; }
.gate__card { position: relative; width: min(560px, 100%); padding: clamp(28px, 5vw, 48px); background: rgba(5, 7, 13, .78); box-shadow: 0 0 0 1px var(--d-line), 0 40px 120px -30px rgba(21, 133, 232, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gate__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hairline); box-shadow: 0 0 14px rgba(63, 208, 255, .5); }
.gate__brand { font: 700 22px var(--serif); margin-bottom: 26px; }
.gate h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.08; margin: 10px 0 14px; }
.gate p { color: var(--d-dim); font-size: 17px; }
.gate form { display: grid; gap: 16px; margin-top: 26px; }
.gate label { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--d-dim); }
.gate input[type="password"] { width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: var(--r); background: rgba(4, 6, 13, .9); color: var(--d-ink); font: 18px/1.5 var(--sans); border: 1.5px solid var(--d-line); transition: border-color .2s, box-shadow .3s; }
.gate input[type="password"]:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(21, 133, 232, .25), 0 0 30px rgba(21, 133, 232, .3); }
.gate__remember { display: flex; align-items: center; gap: 10px; font: 400 15px var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.gate__remember input { width: 18px; height: 18px; accent-color: var(--blue); }
.gate__error { min-height: 1.5em; color: #FF8FA3; font: 500 15px var(--sans); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gate.is-wrong .gate__card { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* =========================================================
   Quest (case study) pages
   ========================================================= */
.qhead { padding: clamp(56px, 9vh, 100px) 0 clamp(48px, 8vh, 80px); }
.qhead__back { display: block; width: max-content; margin-bottom: 28px; font: 500 14px var(--sans); color: var(--d-dim); text-decoration: none; transition: color .2s; }
.qhead__back:hover { color: var(--blue-hi); }
.qhead__title { font-size: var(--t-h1); line-height: 1.05; max-width: 22ch; margin: 14px 0 20px; letter-spacing: -.025em; }
.qhead__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.qtag { font: 500 12px/1.5 var(--mono); padding: 3px 9px; background: rgba(93, 178, 255, .14); box-shadow: inset 0 0 0 1px rgba(93, 178, 255, .3); color: var(--d-ink); }
.qmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--d-line); }
.qmeta div { padding: 18px 20px 0 0; }
.qmeta dt { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--d-faint); margin-bottom: 6px; }
.qmeta dd { margin: 0; font-size: 17px; color: var(--d-ink); }

.qbody { padding: clamp(56px, 9vh, 96px) 0 24px; }
.qbody__wrap { display: grid; gap: 48px; }
.qprose { max-width: 720px; }
.qprose h2 { font-size: var(--t-h3); line-height: 1.15; margin: 56px 0 16px; }
.qprose > h2:first-child { margin-top: 0; }
.qprose p { font-size: 19px; line-height: 1.7; margin-bottom: 20px; }
.qprose p strong { font-weight: 700; color: var(--blue-deep); }
.qprose a:not(.btn) { color: var(--blue); }
.qprose ul, .qprose ol { font-size: 19px; line-height: 1.7; padding-left: 22px; margin: 0 0 20px; }
.qprose li::marker { color: var(--blue); }
.qquote { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--blue); box-shadow: -14px 0 30px -20px rgba(21, 133, 232, .8); }
.qquote p { font: italic 400 clamp(22px, 2.2vw, 28px)/1.45 var(--serif) !important; color: var(--l-ink); margin: 0; }

.qfig { margin: 40px 0; }
.qprose .qfig { margin: 40px 0; width: min(960px, calc(100vw - 2 * var(--gutter))); }
.qfig__row { display: grid; gap: 16px; }
.qfig--2up .qfig__row { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .qfig--2up .qfig__row { grid-template-columns: 1fr; } }
.qfig__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: end start; padding: 14px 16px;
  background: radial-gradient(90% 120% at 80% 0%, hsla(var(--h), 95%, 62%, .85), transparent 60%), radial-gradient(80% 100% at 0% 100%, hsla(calc(var(--h) + 40), 90%, 60%, .6), transparent 60%), linear-gradient(160deg, hsl(var(--h), 70%, 16%), #070B16); }
.qfig--2up .qfig__art { aspect-ratio: 4 / 3; }
.qfig__art::after { content: ""; position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>"); }
.qfig__art span { position: relative; z-index: 1; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.qfig__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qfig figcaption { margin-top: 12px; max-width: 720px; font: italic 400 16px/1.5 var(--serif); color: var(--l-dim); }

.qdraft { max-width: 640px; padding: 32px; background: var(--l-card); display: grid; gap: 16px; justify-items: start; }
.qdraft p { font-size: 19px; margin: 0; }
.qdraft p a { color: var(--blue); }

.qnext-wrap { padding: 32px 0 clamp(72px, 10vh, 110px); }
.qnext { position: relative; display: grid; gap: 10px; padding: 32px 90px 32px 32px; background: var(--l-card); color: var(--l-ink); text-decoration: none; }
.qnext__title { font: 700 var(--t-h3)/1.15 var(--serif); max-width: 30ch; }
.qnext__go { position: absolute; right: 28px; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 20px; box-shadow: 0 0 24px rgba(21, 133, 232, .55); transition: transform .4s var(--ease); }
.qnext:hover .qnext__go { transform: translateX(4px); }
