/* ==========================================================================
   Shiva Shankar — portfolio
   Look taken from his 2026 portfolio and Figma boards: off-white canvas, heavy
   editorial serif, handwritten signature, red zig-zag geometry, a yellow sun,
   soft gradient washes that shift colour section by section. See DESIGN-PREFERENCES.md.
   ========================================================================== */

@property --a1 { syntax: "<color>"; inherits: true; initial-value: #D6EAF5; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #E4DFF8; }
@property --a3 { syntax: "<color>"; inherits: true; initial-value: #FFF7C2; }

@view-transition { navigation: auto; }

:root {
  --canvas: #F6F7F5;
  --surface: #FFFFFF;
  --ink: #121212;
  --ink-2: #4B4E57;
  --ink-3: #8D919B;
  --line: rgba(18, 18, 18, .12);
  --night: #0D0E12;

  --red: #E2322B;          /* the zig-zag shards: the one strong colour */
  --sun: #FFEE5A;          /* the yellow sun */
  --royal: #2643D9;        /* italic accent words */
  --aqua: #5BE3D6;
  --violet: #7B6CF6;

  --wash-sky: #D6EAF5;
  --wash-lilac: #E4DFF8;
  --wash-mint: #D9F5E6;
  --wash-blush: #FBE3E6;
  --wash-sun: #FFF7C2;

  --accent: var(--red);    /* per case page */

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --pad: clamp(16px, 5vw, 80px);
  --max: 1320px;
  --sec: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --a1: var(--wash-sky); --a2: var(--wash-lilac); --a3: var(--wash-sun);
  transition: --a1 1.4s ease, --a2 1.4s ease, --a3 1.4s ease;
}
[data-tone="sky"]   { --a1: #CFE6F6; --a2: #E4DFF8; --a3: #DDF6EE; }
[data-tone="lilac"] { --a1: #E4DFF8; --a2: #FBE3E6; --a3: #D6EAF5; }
[data-tone="mint"]  { --a1: #D3F4E4; --a2: #D6EAF5; --a3: #FFF7C2; }
[data-tone="blush"] { --a1: #FBE0E4; --a2: #FFF2C4; --a3: #E4DFF8; }
[data-tone="sun"]   { --a1: #FFF3A8; --a2: #D9F5E6; --a3: #FBE3E6; }
[data-tone="night"] { --a1: #DCD8FB; --a2: #C9F4EF; --a3: #E4DFF8; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 17px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the shifting aura behind everything ---------- */
.aura { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; width: 62vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.aura i:nth-child(1) { background: var(--a1); left: -18vmax; top: -22vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aura i:nth-child(2) { background: var(--a2); right: -22vmax; top: 18vh; animation: drift2 32s ease-in-out infinite alternate; }
.aura i:nth-child(3) { background: var(--a3); left: 20vw; bottom: -36vmax; width: 52vmax; animation: drift3 38s ease-in-out infinite alternate; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.1); } }

/* ---------- type ---------- */
.mono { font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 14px 0 0 -2px var(--sun); margin-right: 14px; }
.h2 { font: 800 clamp(2.3rem, 5.4vw, 5rem)/.98 var(--serif); letter-spacing: -.035em; word-spacing: .1em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.h3 { font: 700 clamp(1.4rem, 2.3vw, 2.05rem)/1.12 var(--serif); letter-spacing: -.02em; word-spacing: .06em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.h2 em, .h3 em, .lede em, .hero__lede em { font-style: italic; font-weight: 600; color: var(--royal); }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.body-copy { color: var(--ink-2); max-width: 62ch; }
.body-copy + .body-copy { margin-top: 1em; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.sec { padding-block: var(--sec); position: relative; }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.head .label { grid-column: 1 / -1; }
.head__note { color: var(--ink-2); max-width: 42ch; justify-self: end; }

/* ---------- cursor ---------- */
.cur, .cur-dot { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cur, .has-cursor .cur-dot { opacity: 1; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--red); }
.cur { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--ink); display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s; }
.cur span { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cur.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); background: rgba(226, 50, 43, .08); }
.cur.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--red); border-color: var(--red); }
.cur.is-label span { opacity: 1; }
.cur.is-down { transform: scale(.85); }
.on-dark .cur { border-color: #fff; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.trail { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--red); opacity: .8; }

/* ---------- progress + top bar ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 80; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--red), var(--violet), var(--aqua)); }
.top {
  position: fixed; z-index: 70; top: 12px; left: 50%; width: min(100% - 24px, 1360px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 22px; border-radius: 999px;
  transition: transform .6s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.top.is-solid { background: rgba(255, 255, 255, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 40px -18px rgba(18, 18, 18, .25), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.top.is-hidden { transform: translate(-50%, -140%); }
.sig { font: 600 40px/1 var(--hand); text-decoration: none; letter-spacing: -.01em; transform: rotate(-4deg); transition: transform .6s var(--ease); display: inline-block; }
.sig:hover { transform: rotate(-9deg) scale(1.06); }
.sig--sm { font-size: 34px; }
.top__role { font: 600 11px/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.top__nav { margin-left: auto; display: flex; gap: 4px; }
.top__nav a { position: relative; white-space: nowrap; font-weight: 500; font-size: 14.5px; text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: color .3s; }
.top__nav a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .3s; z-index: -1; }
.top__nav a:hover, .top__nav a.is-here { color: #fff; }
.top__nav a:hover::before, .top__nav a.is-here::before { transform: none; opacity: 1; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.menu-btn i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--red); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 8px; right: 8px; height: 1.5px; background: #fff; top: 11px; transition: transform .5s var(--ease); }
.menu-btn i::after { top: 16px; }
.menu-open .menu-btn i::before { transform: translateY(2.5px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- full-screen index menu ---------- */
.index { position: fixed; inset: 0; z-index: 65; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; padding: 110px var(--pad) 40px;
  background: var(--night); color: #fff; clip-path: circle(0 at calc(100% - 60px) 36px); visibility: hidden; transition: clip-path .9s var(--ease), visibility 0s .9s; overflow: auto; }
.menu-open .index { clip-path: circle(150vmax at calc(100% - 60px) 36px); visibility: visible; transition: clip-path .9s var(--ease); }
.menu-open .top { background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
.index__list { align-self: center; counter-reset: i; }
.index__list a { display: block; text-decoration: none; padding: 6px 0; font: 800 clamp(2.2rem, 5.6vw, 4.8rem)/1.04 var(--serif); letter-spacing: -.04em; word-spacing: .08em; font-variation-settings: "opsz" 144; transition: transform .6s var(--ease), color .3s; }
.index__list a::before { counter-increment: i; content: "0" counter(i); font: 500 12px/1 var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .45); display: inline-block; vertical-align: top; margin: .9em 18px 0 0; }
.index__list a:hover { transform: translateX(16px); color: var(--sun); }
.index__list a:hover em { color: var(--aqua); }
.index__list em { font-style: italic; font-weight: 500; color: rgba(255, 255, 255, .5); transition: color .3s; }
.index__side { align-self: end; display: grid; gap: 28px; color: rgba(255, 255, 255, .7); }
.index__side h3 { font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.index__side a { text-decoration: none; }
.index__side a:hover { color: var(--sun); }
.index__cases a { display: block; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.index .glow { position: absolute; width: 40vmax; aspect-ratio: 1; right: -10vmax; bottom: -10vmax; border-radius: 50%; background: radial-gradient(circle, rgba(91, 227, 214, .35), rgba(123, 108, 246, .2) 45%, transparent 70%); pointer-events: none; }
.js .index__list li { opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .8s var(--ease); }
.menu-open .index__list li { opacity: 1; transform: none; }
.menu-open .index__list li:nth-child(2) { transition-delay: .06s; } .menu-open .index__list li:nth-child(3) { transition-delay: .12s; }
.menu-open .index__list li:nth-child(4) { transition-delay: .18s; } .menu-open .index__list li:nth-child(5) { transition-delay: .24s; } .menu-open .index__list li:nth-child(6) { transition-delay: .3s; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em; isolation: isolate; transition: transform .6s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn .arr { display: inline-block; transition: transform .6s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; min-height: min(100svh, 1000px); padding: 120px var(--pad) 56px; max-width: 1500px; margin-inline: auto; }
.hero__copy { display: grid; gap: 30px; align-content: center; }
.hero__title { font: 800 clamp(2.4rem, 5.8vw, 6.2rem)/.92 var(--serif); letter-spacing: -.045em; word-spacing: .08em; font-variation-settings: "opsz" 144; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: inline-block; }
.js .hero__title .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .is-loaded .hero__title .ln > span { transform: none; }
.js .is-loaded .hero__title .ln:nth-child(2) > span { transition-delay: .1s; }
.js .is-loaded .hero__title .ln:nth-child(3) > span { transition-delay: .2s; }
.chaos { position: relative; display: inline-block; }
.chaos::before { content: attr(data-text); position: absolute; left: -.04em; top: -.035em; z-index: -1; color: transparent; -webkit-text-stroke: .025em var(--red); transition: transform .9s var(--ease); }
.chaos::after { content: attr(data-text); position: absolute; left: .03em; top: .05em; z-index: -2; color: var(--red); opacity: .9; clip-path: inset(0 0 52% 0); transition: transform .9s var(--ease); }
.chaos:hover::before, .hero__title:hover .chaos::before { transform: translate(-.05em, -.04em) rotate(-2deg); }
.chaos:hover::after, .hero__title:hover .chaos::after { transform: translate(.05em, .03em); }
.hero__lede { font-size: clamp(1.08rem, 1.45vw, 1.34rem); line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: inline-flex; align-items: center; gap: 12px; font: italic 500 clamp(15px, 1.25vw, 18px)/1.3 var(--serif); letter-spacing: 0; color: var(--ink-2); min-height: 28px; }
.hero__meta [data-thought] { transition: opacity .6s var(--ease); }
.morph { flex: none; }
/* hero mark: a shard that reshapes into structure, a heart, then a whole */
.morph { width: 28px; height: 28px; overflow: visible; }
.morph__o { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.morph__c { fill: var(--red); transform-origin: 12px 12px; animation: pulse 2.25s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); } }
.scroll-cue { position: absolute; left: var(--pad); bottom: 24px; display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.stage { position: relative; margin: 0; display: grid; gap: 10px; justify-items: center; width: min(100%, 500px); justify-self: center; }
.stage::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); right: 6%; top: 4%; z-index: -1; filter: saturate(1.1); animation: sunfloat 9s ease-in-out infinite alternate; }
@keyframes sunfloat { to { transform: translate(-18px, 22px) scale(1.06); } }
.stage__svg { width: min(100%, 660px); aspect-ratio: 1; overflow: visible; touch-action: pan-y; }
.stage__cap { color: var(--ink-3); }
.build .dot { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 1.5 5; }
.build .dot--faint { stroke-opacity: .25; }
.build .ln1 { fill: none; stroke: var(--ink); stroke-opacity: .7; stroke-width: 1.3; }
.build .ln1--soft { stroke-opacity: .3; }
.js .build > * { stroke-dashoffset: var(--len, 0); }
.js .build.is-drawn > * { transition: stroke-dashoffset 1.8s var(--ease); }
[data-shards] polygon { fill: url(#zig); stroke: var(--red); stroke-width: .6; stroke-linejoin: round; }


/* ---------- manifesto (word-by-word reveal) ---------- */
.manifesto { font: 700 clamp(1.8rem, 4.2vw, 3.9rem)/1.12 var(--serif); letter-spacing: -.03em; word-spacing: .06em; font-variation-settings: "opsz" 120; max-width: 22ch; }
.manifesto .w { opacity: .14; transition: opacity .4s; }
.manifesto .w.on { opacity: 1; }
.manifesto em { font-style: italic; font-weight: 500; color: var(--royal); }
.manifesto__by { margin-top: 32px; display: flex; align-items: center; gap: 16px; color: var(--ink-2); }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.nums > div { padding: 28px 20px 30px 0; display: grid; gap: 8px; align-content: start; }
.nums > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.nums b { font: 800 clamp(2.4rem, 4.6vw, 4.4rem)/1 var(--serif); letter-spacing: -.045em; font-variation-settings: "opsz" 144; }
.nums b sup { font-size: .5em; vertical-align: .6em; color: var(--red); margin-left: 2px; }
.nums > div > span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.inf { display: inline-block; width: 1.5em; height: .75em; overflow: visible; }

/* ---------- work list ---------- */
.works { border-top: 1px solid var(--ink); }
.work { position: relative; border-bottom: 1px solid var(--line); isolation: isolate; }
.work::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wash); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); border-radius: 0; }
.work:hover::before { transform: none; }
.work a { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 300px) 56px; gap: 24px; align-items: center; padding: 34px 18px; text-decoration: none; }
.work__n { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .1em; }
.work__t { display: grid; gap: 10px; }
.work__t strong { font: 700 clamp(1.35rem, 2.5vw, 2.35rem)/1.1 var(--serif); letter-spacing: -.025em; word-spacing: .05em; font-variation-settings: "opsz" 96; text-wrap: balance; transition: transform .7s var(--ease); }
.work:hover .work__t strong { transform: translateX(10px); }
.work__t span { color: var(--ink-2); font-size: 15px; }
.work__k { display: grid; gap: 6px; justify-items: end; text-align: right; }
.work__k b { font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--serif); color: var(--accent, var(--red)); letter-spacing: -.03em; }
.work__k span { color: var(--ink-2); font-size: 13px; }
.work__go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); transition: background .4s, color .4s, transform .7s var(--ease); }
.work:hover .work__go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.work__img { display: none; }
/* ---------- AI in the loop: cards that stack as you scroll ---------- */
.aistack { display: grid; gap: 24px; }
.aistack > li { position: sticky; top: calc(96px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(140deg, #fff, var(--tint)); box-shadow: inset 0 0 0 1px var(--line), 0 -20px 50px -40px rgba(18, 18, 18, .4); }
.aistack__n { font: 800 clamp(3rem, 6vw, 5.4rem)/.8 var(--serif); letter-spacing: -.05em; color: var(--ink); opacity: .12; }
.aistack h3 { font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.025em; margin: 6px 0 12px; }
.aistack p { color: var(--ink-2); margin-bottom: 16px; }
/* the UI floats on the card: cut-out screens, no slide background */
.aistack__pic { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.aistack__pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 28px rgba(18, 18, 18, .16)); }
@keyframes fill { to { width: calc(100% - 44px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- teaching / education ---------- */
.teach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.teach__big { font: 800 clamp(2.6rem, 6vw, 5.6rem)/.95 var(--serif); letter-spacing: -.045em; word-spacing: .1em; font-variation-settings: "opsz" 144; }
.teach__big .hand { font: 600 1.05em/1 var(--hand); color: var(--red); letter-spacing: 0; display: inline-block; transform: rotate(-4deg); }
.milestones { border-top: 1px solid var(--ink); }
.milestones li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); }
.milestones li:hover { padding-left: 10px; }
.milestones .mono { color: var(--ink-3); padding-top: 5px; }
.milestones b { display: block; font: 700 1.2rem/1.25 var(--serif); letter-spacing: -.01em; margin-bottom: 4px; }
.milestones p { color: var(--ink-2); font-size: 15.5px; }
.rituals { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: 15px; }
.rituals li::before { content: "↗"; color: var(--red); margin-right: 8px; }

/* ---------- studio (dark) ---------- */
.studio { background: var(--night); color: #fff; border-radius: var(--r-lg); margin-inline: clamp(8px, 1.6vw, 24px); overflow: hidden; }
.studio .label { color: rgba(255, 255, 255, .6); }
.studio .h2 em { color: var(--aqua); }
.studio .head__note { color: rgba(255, 255, 255, .65); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 330px); gap: 16px; overflow-x: auto; padding: 8px var(--pad) 28px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.card { scroll-snap-align: start; position: relative; display: grid; grid-template-rows: 250px auto; border-radius: var(--r-md); overflow: hidden; background: #15161c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .7s var(--ease); user-select: none; }
.card:hover { transform: translateY(-8px); }
.card__top { position: relative; padding: 24px; display: grid; align-content: space-between; overflow: hidden; background: #050507; }
.card__top::after { content: ""; position: absolute; width: 140%; aspect-ratio: 1; right: -60%; bottom: -70%; border-radius: 50%; background: conic-gradient(from 200deg, transparent, var(--aqua), var(--violet), transparent 60%); filter: blur(34px); opacity: .7; transition: transform 1.2s var(--ease), opacity .5s; }
.card:hover .card__top::after { transform: rotate(40deg) scale(1.1); opacity: 1; }
.card__top .art { position: absolute; right: 20px; bottom: 18px; z-index: 1; width: 96px; height: auto; transform-origin: 100% 100%; transition: transform 1s var(--ease); }
.card:hover .card__top .art { transform: scale(1.12) rotate(-3deg); }
.art * { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .hl { stroke: var(--aqua); }
.art .rd { stroke: var(--red); }
.art .fl { fill: var(--red); stroke: none; }
.art .dash { stroke-dasharray: 3 5; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.card__top h3 { position: relative; z-index: 1; font: 700 15px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.card__top h3 span { display: block; font-weight: 400; color: rgba(255, 255, 255, .6); margin-top: 8px; }
.card__top .mono { position: relative; z-index: 1; color: rgba(255, 255, 255, .55); }
.card__body { padding: 20px 24px 24px; display: grid; gap: 14px; align-content: start; background: #EAFBFA; color: var(--ink); }
.card__body p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card__body ul { display: flex; flex-wrap: wrap; gap: 6px; }
.card__body li { font: 500 11px/1 var(--sans); padding: 6px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(18, 18, 18, .18); }
.rail-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); color: rgba(255, 255, 255, .55); }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .3s, color .3s; }
.rail-ctrl button:hover { background: #fff; color: var(--ink); }
.contrib { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 56px var(--pad) 0; background: rgba(255, 255, 255, .12); border-radius: var(--r-md); overflow: hidden; }
.contrib div { background: var(--night); background: color-mix(in srgb, var(--night) 94%, #fff); padding: 24px; display: grid; gap: 8px; align-content: start; }
.contrib b { font: 800 2.4rem/1 var(--serif); letter-spacing: -.04em; color: var(--sun); }
.contrib span { color: rgba(255, 255, 255, .7); font-size: 14.5px; line-height: 1.45; }

/* ---------- recognition ---------- */
.awards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
.stamp { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; }
.stamp__disc { position: relative; width: min(100%, 140px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--tint, var(--wash-lilac)); margin-bottom: 10px; }
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp__ring text { font: 700 9px var(--sans); text-transform: uppercase; fill: var(--ink); }
.stamp__core { width: 40%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .8s var(--ease), background .4s; }
.stamp__core svg { width: 52%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stamp:hover .stamp__core { transform: scale(1.15); background: var(--red); }
.stamp:hover .stamp__ring { animation-duration: 6s; }
.stamp b { font: 700 clamp(.95rem, 1.2vw, 1.05rem)/1.2 var(--serif); }
.stamp small { font: 600 10px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.roll { border-top: 1px solid var(--ink); }
.roll li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.roll .mono { color: var(--ink-3); }
.roll b { font-weight: 600; }
.roll span { color: var(--ink-2); font-size: 14.5px; text-align: right; }

/* ---------- voices ---------- */
.voices { position: relative; }
.voice-stage { position: relative; display: grid; min-height: 380px; }
.voice { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; max-width: 1060px; transition: opacity .7s, transform .9s var(--ease); }
.js .voice:not(.is-on) { opacity: 0; transform: translateY(20px); pointer-events: none; visibility: hidden; }
.voice blockquote { font: 600 clamp(1.5rem, 3vw, 2.7rem)/1.22 var(--serif); letter-spacing: -.02em; font-style: italic; font-variation-settings: "opsz" 96; text-wrap: pretty; }
.voice blockquote::before { content: "“"; display: block; font: 800 6rem/.6 var(--serif); color: var(--red); font-style: normal; margin-bottom: 14px; }
.voice figcaption { display: flex; align-items: center; gap: 14px; }
.voice figcaption i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 15px/1 var(--serif); font-style: normal; }
.voice figcaption b { display: block; }
.voice figcaption span { color: var(--ink-2); font-size: 14px; }
.voice-nav { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.voice-nav button.dot { width: 34px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s, width .5s var(--ease); }
.voice-nav button.dot[aria-current="true"] { background: var(--ink); width: 60px; }
.voice-nav .arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .3s, color .3s; }
.voice-nav .arrow:hover { background: var(--ink); color: #fff; }
.voice-nav .gap { flex: 1; }
.voice-nav .dots { flex-wrap: wrap; min-width: 0; }
.js .voices .no-js-list { display: none; }

/* ---------- life teaser + gallery ---------- */
.life { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.collage { position: relative; height: clamp(380px, 46vw, 560px); }
.collage figure { position: absolute; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .5); transition: transform 1s var(--ease), z-index 0s; background: #222; }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage figure:hover { transform: rotate(0deg) scale(1.05) !important; z-index: 5; }
.collage figure:nth-child(1) { width: 52%; height: 58%; left: 0; top: 4%; transform: rotate(-5deg); }
.collage figure:nth-child(2) { width: 40%; height: 46%; right: 4%; top: 0; transform: rotate(4deg); }
.collage figure:nth-child(3) { width: 38%; height: 44%; left: 18%; bottom: 0; transform: rotate(3deg); }
.collage figure:nth-child(4) { width: 42%; height: 48%; right: 0; bottom: 4%; transform: rotate(-3deg); }
.hand-note { font: 600 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--hand); color: var(--red); transform: rotate(-3deg); display: inline-block; }

/* ---------- contact ---------- */
.contact { position: relative; display: grid; justify-items: center; gap: 34px; text-align: center; padding: clamp(96px, 13vw, 190px) var(--pad); overflow: hidden; }
.contact__t { font: 800 clamp(2.9rem, 8vw, 8rem)/.95 var(--serif); letter-spacing: -.045em; word-spacing: .1em; font-variation-settings: "opsz" 144; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mail { font: 600 clamp(1.2rem, 2.4vw, 2rem)/1.2 var(--serif); text-decoration: none; display: inline-flex; align-items: center; gap: 14px; padding: 8px 4px; border-bottom: 2px solid var(--ink); transition: color .3s, border-color .3s; }
.mail:hover { color: var(--red); border-color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: transform .6s var(--ease); }
.toast.on { transform: translate(-50%, 0); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--ink-3); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--red); }

/* ---------- about page ---------- */
.me { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; min-height: min(100svh, 940px); padding: 120px var(--pad) 0; max-width: 1500px; margin-inline: auto; }
.me__copy { display: grid; gap: 26px; padding-bottom: 72px; }
.me__name { font: 400 clamp(1rem, 1.4vw, 1.2rem)/1 var(--serif); letter-spacing: .14em; color: var(--ink-2); word-spacing: .4em; }
.me__title { font: 800 clamp(3rem, 7.4vw, 7.4rem)/.92 var(--serif); letter-spacing: -.045em; word-spacing: .08em; font-variation-settings: "opsz" 144; }
.me__photo { position: relative; align-self: end; justify-self: center; width: min(100%, 520px); isolation: isolate; container-type: inline-size; margin-bottom: clamp(24px, 4vw, 56px); }
/* sun disc: the body sinks into the circle (hiding the crop at the knee and seat), the head stays free above it */
.me__photo::before { content: ""; position: absolute; left: 0; right: 0; top: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); z-index: -1; }
.me__photo img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(#000 50%, transparent 50%), radial-gradient(circle at 50% 56.4%, #000 50cqw, transparent calc(50cqw + 1px));
  mask-image: linear-gradient(#000 50%, transparent 50%), radial-gradient(circle at 50% 56.4%, #000 50cqw, transparent calc(50cqw + 1px)); }
.me__photo:hover img { filter: grayscale(0); }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.1em; }
.rotator span { grid-area: 1 / 1; color: var(--red); font-style: italic; transform: translateY(110%); transition: transform .8s var(--ease); }
.rotator span.on { transform: none; }
.rotator span.out { transform: translateY(-110%); }
.words-line { font: 700 clamp(1.7rem, 3.4vw, 3rem)/1.1 var(--serif); letter-spacing: -.03em; }

.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.belief { position: relative; padding: 30px 28px 32px; border-radius: var(--r-md); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 18px; align-content: space-between; min-height: 250px; transition: transform .8s var(--ease), background .4s; transform-style: preserve-3d; }
.belief:hover { background: #fff; }
.belief p { font: 600 clamp(1.15rem, 1.6vw, 1.45rem)/1.3 var(--serif); letter-spacing: -.01em; }
.belief p small { display: block; font: 400 15px/1.4 var(--sans); color: var(--ink-2); margin-top: 8px; }
.belief .mono { color: var(--ink-3); }
.belief--big { grid-column: span 2; background: var(--ink); color: #fff; }
.belief--big p { font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.1; }
.belief--big .mono { color: rgba(255, 255, 255, .5); }
.belief--big:hover { background: #1c1d22; }

.journey { position: relative; }
.journey__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 0; overflow-x: auto; padding: 40px var(--pad) 30px; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
.journey__track::-webkit-scrollbar { display: none; }
.journey__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.stop { position: relative; scroll-snap-align: start; padding: 54px 26px 0 0; user-select: none; }
.stop::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1.5px; background: var(--ink); }
.stop::after { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 2px var(--ink); transition: background .4s, transform .5s var(--ease); }
.stop:hover::after { background: var(--red); transform: scale(1.3); }
.stop--key::after { background: var(--sun); }
.stop .yr { font: 800 2.2rem/1 var(--serif); letter-spacing: -.04em; font-variation-settings: "opsz" 144; }
.stop h3 { margin-top: 12px; font: 600 1rem/1.3 var(--sans); }
.stop p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.stop .mono { margin-top: 10px; display: block; color: var(--ink-3); }
.journey__bar { margin: 0 var(--pad); height: 2px; background: var(--line); position: relative; }
.journey__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--jp, .1)); }

.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.kit > div { align-content: start; }
.kit ul { display: flex; flex-wrap: wrap; gap: 10px; }
.kit li { padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .65); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; transition: background .3s, color .3s, transform .5s var(--ease); }
.kit li:hover { background: var(--ink); color: #fff; transform: translateY(-3px) rotate(-2deg); }
.kit .life-skills li { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.kit .life-skills li:last-child { background: var(--red); color: #fff; }

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin-bottom: 14px; position: relative; border-radius: var(--r-md); overflow: hidden; background: #222; }
.gallery img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transform: translateY(150%); transition: transform .6s var(--ease); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { transform: none; }
.gallery__note { break-inside: avoid; margin-bottom: 14px; padding: 28px; border-radius: var(--r-md); background: var(--sun); display: grid; gap: 12px; }
.gallery__note p { font: 600 1.9rem/1.05 var(--hand); }
.gallery__note--ink { background: var(--ink); color: #fff; }

/* ---------- case pages ---------- */
.case-hero { position: relative; padding: 140px var(--pad) clamp(48px, 7vw, 90px); max-width: 1500px; margin-inline: auto; display: grid; gap: 34px; }
.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.back:hover { color: var(--red); }
.case-hero__n { font: 800 clamp(5rem, 14vw, 13rem)/.8 var(--serif); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); position: absolute; right: var(--pad); top: 120px; z-index: -1; opacity: .9; }
.case-hero h1 { font: 800 clamp(2.4rem, 5.6vw, 5.4rem)/.98 var(--serif); letter-spacing: -.04em; word-spacing: .08em; font-variation-settings: "opsz" 144; max-width: 18ch; text-wrap: balance; }
.case-hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 18px 18px 18px 0; display: grid; gap: 6px; align-content: start; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-weight: 600; }
.case-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-inline: var(--pad); max-width: 1500px; margin-inline: auto; }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 2px; padding-top: 8px; }
.toc p { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc a { position: relative; padding: 8px 0 8px 18px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: color .3s, padding .5s var(--ease); }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line); transition: background .3s, transform .4s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-here { color: var(--ink); font-weight: 600; padding-left: 24px; }
.toc a.is-here::before { background: var(--accent); transform: scale(1.6); }
.chapter { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); display: grid; gap: 28px; scroll-margin-top: 90px; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter > .label::before { background: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
@media (min-width: 561px) { .tiles:has(> .tile:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* four cards: 2 × 2, never 3 + 1 */
.tile { padding: 24px; border-radius: var(--r-md); background: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; transition: transform .7s var(--ease), background .4s; }
.tile:hover { transform: translateY(-5px); background: #fff; }
.tile h3, .tile h4 { font: 700 1.12rem/1.25 var(--serif); letter-spacing: -.01em; }
.tile p, .tile li { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tile .mono { color: var(--accent); }
.tile ul { display: grid; gap: 6px; }
.tile li::before { content: "— "; color: var(--ink-3); }
.tile--wash { background: var(--wash); box-shadow: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 26px 22px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.stat b { font: 800 clamp(2.2rem, 3.8vw, 3.4rem)/1 var(--serif); letter-spacing: -.015em; color: var(--accent); font-variation-settings: "opsz" 144; }
.stat span { font-weight: 600; }
.stat small { color: var(--ink-2); font-size: 13.5px; }
.note { font-size: 14px; color: var(--ink-3); }
.shot { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 40px 80px -50px rgba(18, 18, 18, .45), inset 0 0 0 1px var(--line); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 14px 20px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); background: #fff; }
.shot button { display: block; width: 100%; }
.shot--dark { background: #111; }
.slides { display: grid; gap: 22px; }
.shot.slide { border-radius: var(--r-md); }
.shot.slide figcaption { display: flex; gap: 14px; align-items: baseline; }
.shot.slide figcaption .mono { color: var(--accent); flex: none; }
.pst { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.pst > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .4s; }
.pst > div:hover { background: rgba(255, 255, 255, .6); }
.pst > div:first-child { padding: 12px 0; }
.pst > div:first-child span { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.pst > div span { font-size: 15.5px; color: var(--ink-2); }
.pst > div span:nth-child(2) { color: var(--ink); font-weight: 500; }
.pst > div span:nth-child(3)::before { content: "→ "; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.steps li { position: relative; padding: 20px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.steps li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 11px/1 var(--mono); color: var(--accent); margin-bottom: 12px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 26px; width: 8px; height: 1.5px; background: var(--ink-3); }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hmw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hmw li { padding: 24px; border-radius: var(--r-md); background: var(--wash, var(--wash-lilac)); display: grid; gap: 12px; }
.hmw b { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.hmw p { font: 600 1.15rem/1.3 var(--serif); font-style: italic; }
.prio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prio > div { padding: 24px; border-radius: var(--r-md); display: grid; gap: 10px; align-content: start; }
.prio > div:nth-child(1) { background: var(--wash-mint); } .prio > div:nth-child(2) { background: var(--wash-sun); } .prio > div:nth-child(3) { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); }
.prio h3 { font: 700 1.1rem/1.2 var(--serif); }
.prio p { font-size: 14.5px; color: var(--ink-2); }
.next { display: block; text-decoration: none; padding: clamp(64px, 9vw, 120px) var(--pad); margin-top: 40px; background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.next::after { content: ""; position: absolute; width: 60vmax; aspect-ratio: 1; right: -20vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, var(--next, var(--aqua)), transparent 65%); opacity: .4; z-index: -1; transition: transform 1.4s var(--ease), opacity .6s; }
.next:hover::after { transform: translate(-10vmax, 12vmax); opacity: .65; }
.next .label { color: rgba(255, 255, 255, .55); }
.next strong { display: block; margin-top: 24px; font: 800 clamp(2rem, 5.2vw, 5rem)/1 var(--serif); letter-spacing: -.04em; word-spacing: .08em; max-width: 20ch; font-variation-settings: "opsz" 144; text-wrap: balance; transition: transform .8s var(--ease); }
.next:hover strong { transform: translateX(14px); }
.lightbox { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 4vmin; background: rgba(13, 14, 18, .86); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lightbox.on { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r-md); transform: scale(.94); transition: transform .6s var(--ease); background: #fff; }
.lightbox.on img { transform: none; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .top__role { display: none; }
}
@media (max-width: 1100px) {
  .top__role { display: none; }
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nums > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .nums > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .contrib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 960px) {
  .top__nav { display: none; }
  .menu-btn { margin-left: 8px; }
  .top .magic { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; }
  .stage { order: -1; }
  .stage__svg { width: min(100%, 460px); }
  .scroll-cue { display: none; }
  /* phones and small tablets keep the big headline, and the heart needs no caption */
  .hero__title { font-size: clamp(3.3rem, 8.3vw, 8.8rem); line-height: .9; }
  .stage__cap { display: none; }
  .head, .aistack > li, .teach, .awards, .life, .split, .kit, .me { grid-template-columns: 1fr; }
  .head__note { justify-self: start; }
  .aistack > li { top: calc(76px + var(--i) * 12px); padding: 20px; gap: 16px; }
  .aistack__n { font-size: 2.4rem; }
  .aistack h3 { font-size: 1.35rem; margin-top: 2px; }
  .aistack p { font-size: 15px; margin-bottom: 12px; }
  .work a { grid-template-columns: 44px minmax(0, 1fr) 48px; }
  .work__k { grid-column: 2; justify-items: start; text-align: left; grid-row: 2; }
  .work__go { grid-row: 1; grid-column: 3; width: 44px; height: 44px; }
      .beliefs { grid-template-columns: 1fr 1fr; }
  .index { grid-template-columns: 1fr; align-content: start; }
  .case-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .facts, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hmw, .prio { grid-template-columns: 1fr; }
  .me { padding-top: 104px; }
  .me__copy { padding-bottom: 0; }
  .me__photo { width: min(100%, 420px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { padding: 8px 8px 8px 18px; }
  .sig { font-size: 34px; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums > div:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .nums > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .nums > div:nth-child(-n+2) { border-top: 0; }
  .work a { padding: 18px 2px; gap: 6px 14px; grid-template-columns: minmax(0, 1fr) 40px; }
  .work__n { grid-row: 1; grid-column: 1; }
  .work__go { grid-row: 1 / span 3; grid-column: 2; align-self: center; width: 40px; height: 40px; }
  .work__t { grid-row: 2; grid-column: 1; gap: 4px; }
  .work__t strong { font-size: 1.15rem; line-height: 1.15; }
  .work__t span { font-size: 12.5px; }
  .work__k { grid-row: 3; grid-column: 1; display: flex; align-items: baseline; gap: 8px; }
  .work__k b { font-size: 1.15rem; }
  .work__k span { font-size: 12px; }
  .stage__svg { width: min(80%, 330px); }
  .hero { padding-top: 88px; gap: 8px; }
    .belief--big { grid-column: auto; }
  .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roll li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .roll .mono { font-size: 11px; color: var(--red); }
  .roll b { font-size: 15.5px; line-height: 1.3; }
  .roll span { text-align: left; font-size: 13.5px; }
  .magic__go { width: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .magic__go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .magic__ico { display: block !important; }
  .milestones li { grid-template-columns: 1fr; gap: 4px; }
  .steps, .steps--5, .steps--3 { grid-template-columns: 1fr 1fr; }
  .pst > div { grid-template-columns: 1fr; gap: 6px; }
  .pst > div:first-child { display: none; }
  .collage { height: 360px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .rail { grid-auto-columns: 82%; }
  .voice-nav button.dot { width: 14px; }
  .voice-nav button.dot[aria-current="true"] { width: 28px; }
  .voice-nav .arrow { width: 44px; height: 44px; }
  .case-hero { padding-top: 110px; }
  .case-hero__n { top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .manifesto .w { opacity: 1; }
  .js .hero__title .ln > span { transform: none; }
}

/* ---------- intro loader: first visit per session only ---------- */
.intro body::after { content: ""; position: fixed; inset: 0; z-index: 200; background: var(--night); animation: introfail .4s 4s forwards; }
@keyframes introfail { to { opacity: 0; visibility: hidden; } }
.loader { position: fixed; inset: 0; z-index: 210; pointer-events: none; color: #fff; }
.loader__h { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--night); overflow: hidden; transition: transform 1s var(--ease); }
.loader__h--t { top: 0; }
.loader__h--b { bottom: 0; }
.loader.is-out .loader__h--t { transform: translateY(-101%); }
.loader.is-out .loader__h--b { transform: translateY(101%); }
.loader__who { position: absolute; left: var(--pad); top: clamp(24px, 4vw, 44px); font: 500 12px/1.5 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.loader__line { position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 2px; background: rgba(255, 255, 255, .14); }
.loader__line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); background: linear-gradient(90deg, var(--red), var(--violet), var(--aqua)); }
.loader__roles { position: absolute; left: var(--pad); bottom: clamp(28px, 5vw, 56px); height: 1.3em; overflow: hidden; font: 700 clamp(1.4rem, 3.2vw, 2.6rem)/1.3em var(--serif); letter-spacing: -.02em; }
.loader__roles span { display: block; white-space: nowrap; }
.loader__roles em { color: var(--aqua); font-weight: 500; }
.loader__roles > div { animation: lroles 2.2s var(--ease) forwards paused; }
@keyframes lroles { 0%, 12% { transform: translateY(0); } 22%, 32% { transform: translateY(-1.3em); } 42%, 52% { transform: translateY(-2.6em); } 62%, 72% { transform: translateY(-3.9em); } 82%, 100% { transform: translateY(-5.2em); } }
.loader__n { position: absolute; right: var(--pad); bottom: clamp(16px, 3vw, 36px); font: 800 clamp(4rem, 11vw, 9.5rem)/1 var(--serif); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader__n sup { font-size: .32em; color: var(--red); vertical-align: top; }
.loader__mid { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease), opacity .4s; }
.loader.is-out .loader__mid { transform: scale(.4); opacity: 0; }
.loader__mid svg { width: min(36vw, 220px); overflow: visible; margin-top: -6vh; }
.loader__pc { transform-box: view-box; transform-origin: 100px 100px; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.6); opacity: 0; animation: lhome 1.1s var(--ease) forwards paused; animation-delay: var(--d); }
@keyframes lhome { 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.loader__heart { transform-origin: 100px 110px; animation: lbeat .5s 1.5s ease-in-out 2 paused; }
.loader.is-on .loader__roles > div, .loader.is-on .loader__pc, .loader.is-on .loader__heart { animation-play-state: running; }
@keyframes lbeat { 50% { transform: scale(1.08); } }

/* ---------- black & white mode: every colour token goes grey; photos and case screenshots stay as they are ---------- */
html[data-mode="mono"] {
  --red: #1E1E1E; --sun: #DADADA; --royal: #5C5C5C; --aqua: #D4D4D4; --violet: #8E8E8E;
  --wash-sky: #ECECEC; --wash-lilac: #E6E6E6; --wash-mint: #F0F0F0; --wash-blush: #E9E9E9; --wash-sun: #F2F2F2;
  --accent: #1E1E1E; --canvas: #F5F5F5; --night: #0E0E0E; --ink-2: #4D4D4D; --ink-3: #8F8F8F;
}
html[data-mode="mono"], html[data-mode="mono"] [data-tone] { --a1: #E4E4E4; --a2: #EFEFEF; --a3: #D9D9D9; }
html[data-mode="mono"] [data-tone="night"] { --a1: #D6D6D6; --a2: #E8E8E8; --a3: #CFCFCF; }
html[data-mode="mono"] * { --next: #BDBDBD !important; }
html[data-mode="mono"] svg { filter: grayscale(1); }
html[data-mode="mono"] .cur.is-link { background: rgba(18, 18, 18, .06); }
html[data-mode="mono"] .index .glow { filter: grayscale(1); }
html[data-mode="mono"] .card__body { background: #EFEFEF; }

/* random palettes: the section tones follow the rolled palette */
html[data-mode="random"], html[data-mode="random"] [data-tone] { --a1: var(--r-a1); --a2: var(--r-a2); --a3: var(--r-a3); }
html[data-mode="random"] [data-tone="night"] { --a1: var(--r-n1); --a2: var(--r-n2); --a3: var(--r-n3); }
html[data-mode="random"] * { --next: var(--r-next) !important; }

/* Magic + reset, in the header */
.magic { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.magic__go { position: relative; height: 44px; padding: 0 18px; border-radius: 999px; font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; transition: transform .6s var(--ease); }
.magic__go span { background: linear-gradient(90deg, var(--red), var(--royal), var(--violet), var(--red)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: magicflow 4s linear infinite; }
html[data-mode="mono"] .magic__go span { background: none; color: var(--ink); }
.magic__go:hover { transform: translateY(-2px) rotate(-2deg); }
.magic__go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .9) 50%, transparent 70%); transform: translateX(-120%); }
.magic.is-cast .magic__go::after { animation: magicshine .8s var(--ease); }
@keyframes magicflow { to { background-position: 200% 0; } }
@keyframes magicshine { to { transform: translateX(120%); } }
.magic__ico { display: none; width: 22px; min-width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.magic__ico .r { stroke: var(--red); }
.magic__reset { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: rgba(255, 255, 255, .6); transition: transform .6s var(--ease), box-shadow .3s; }
.magic__reset[hidden] { display: none; }
.magic__reset:hover { transform: rotate(-120deg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.magic__reset svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-mode="mono"] .magic svg { filter: none; }
.menu-open .magic { visibility: hidden; }

/* frames sized to the whole page: keep the loader to one screen at the top */
.is-tall.intro body::after, .is-tall .loader { position: absolute; bottom: auto; height: var(--vh, 100vh); }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }

/* ---------- password gate on the private case studies ---------- */
html[data-locked]:not(.unlocked) main { display: none; }
.gate { min-height: calc(100svh - 40px); padding: 120px var(--pad) 64px; max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: 28px; }
.gate__card { width: min(100%, 640px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 80px -40px rgba(18,18,18,.35); display: grid; gap: 20px; }
.gate__ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ink); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.gate h1 { font: 800 clamp(1.9rem, 3.6vw, 3rem)/1.02 var(--serif); letter-spacing: -.035em; word-spacing: .06em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.gate h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.gate__note, .gate__ask { color: var(--ink-2); font-size: 15px; }
.gate__form { display: flex; gap: 10px; margin-top: 4px; }
.gate__form input { flex: 1; min-width: 0; height: 58px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px var(--sans); }
.gate__form input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.gate__form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; flex: none; }
.gate__err { min-height: 1.4em; margin-top: -8px; color: var(--red); font-size: 14px; font-weight: 600; }
.gate__err:empty { display: none; }
.gate__form.is-wrong { animation: gate-shake .45s var(--ease); }
@keyframes gate-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .gate__form.is-wrong { animation: none; } }
.gate-ns { max-width: 640px; margin: 140px var(--pad) 0; font-size: 18px; }
html:not([data-locked]) .gate-ns { display: none; }
.work__lock { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.work__lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 560px) {
  .gate { padding-top: 96px; min-height: 0; }
  .gate__form { flex-direction: column; }
  .gate__form input { flex: none; }
  .gate__form .btn { justify-content: center; }
}
