:root {
  --bg: #f6f4f0;
  --bg-alt: #efece6;
  --surface: #ffffff;
  --text: #111110;
  --muted: #5f5c57;
  --line: rgba(17, 17, 16, 0.12);
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --radius: 20px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1180px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #181816;
  --surface: #1f1e1c;
  --text: #f4f1ec;
  --muted: #a9a59d;
  --line: rgba(244, 241, 236, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0;
  width: min(var(--wrap), 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}
.brand { position: relative; display: inline-block; line-height: 1; padding: 2px 0; }
.brand .dot { display: none; }
.brand-name { display: inline-grid; align-items: center; transition: transform .35s cubic-bezier(.34, 1.7, .5, 1); transform-origin: 0 100%; }
.brand-name > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .25s, transform .35s var(--ease), color .25s; }
.brand-name .sig { font-family: 'Mrs Saint Delafield', 'Snell Roundhand', cursive; font-size: 40px; line-height: 22px; height: 22px; padding: 0 8px 0 0; -webkit-text-stroke: .5px currentColor; }
.brand-name .sans { font-family: var(--sans, 'Inter Tight', system-ui, sans-serif); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; position: relative; justify-self: start; opacity: 0; transform: translateY(6px); }
.brand:hover .sig, .brand:focus-visible .sig { opacity: 0; transform: translateY(-6px); }
.brand:hover .sans, .brand:focus-visible .sans { opacity: 1; transform: none; color: var(--accent); }
.brand-scribble { position: absolute; left: 0; bottom: -3px; width: 100%; height: 6px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; transition: stroke-dashoffset .5s ease; }
.brand-card { position: absolute; left: -4px; top: calc(100% + 14px); z-index: 70; display: grid; gap: 4px; padding: 7px 7px 5px; background: #f7f3ea; color: #232323; border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.4); pointer-events: none; opacity: 0; transform: translateY(-14px) rotate(0deg) scale(.6); transform-origin: 20px 0; transition: opacity .2s, transform .45s cubic-bezier(.34, 1.8, .5, 1); }
.brand-photo { display: block; width: 92px; height: 108px; border-radius: 3px; overflow: hidden; background: var(--accent); }
.brand-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-cap { font-family: 'Caveat', cursive; font-size: 19px; text-align: center; font-weight: 700; }
.brand:hover .brand-scribble, .brand:focus-visible .brand-scribble { stroke-dashoffset: 0; }
.brand:hover .brand-card, .brand:focus-visible .brand-card { opacity: 1; transform: translateY(0) rotate(-6deg) scale(1); }
@media (hover: none) { .brand-card { display: none; } }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* Hero status, typed headline */
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--surface); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.ch { opacity: 0; }
.ch.on { opacity: 1; }
.caret { display: inline-block; width: 0.06em; height: 0.85em; margin-left: 0.04em; background: var(--accent); vertical-align: -0.05em; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Logos */
.logos { padding: 8px 0 clamp(48px, 6vw, 80px); }
.logos .eyebrow { margin-bottom: 18px; }
.marquee {
  overflow: hidden; margin: 24px 0 0; padding: 40px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 96px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: flex; align-items: center; }
.marquee-track img {
  width: auto; height: calc(var(--h, 30px) * 1.75); max-width: 260px; object-fit: contain; opacity: 0.6;
  filter: grayscale(1); mix-blend-mode: multiply; transition: opacity 0.25s;
}
:root[data-theme="dark"] .marquee-track img { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.marquee-track img:hover { opacity: 1; }
.logo-text { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); opacity: 0.8; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--line); transition: border-color 0.3s; }
.step:hover { border-color: var(--accent); }
.step p { color: var(--muted); font-size: 16px; }

/* Vector avatar */
.avatar-wrap { position: relative; z-index: 1; width: 100%; flex: 1; min-height: 0; display: grid; place-items: center; cursor: pointer; }
.avatar { height: 100%; width: auto; max-width: 100%; overflow: visible; }
:root[data-theme="dark"] .avatar { filter: drop-shadow(0 0 1.5px rgba(244, 241, 236, .7)); }
.av-body { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.av-eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.pupil { transition: transform .12s ease-out; }
.avatar .lens { fill: transparent; transition: fill .45s var(--ease); }
.avatar .glint { stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: 0; transition: opacity .45s var(--ease); }
:root[data-theme="light"] .avatar .lens { fill: #232323; }
:root[data-theme="light"] .avatar .glint { opacity: .55; }
.av-head.nod { animation: nod .7s ease-in-out; }
@keyframes nod { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(14px) rotate(-3deg); } 55% { transform: translateY(-6px) rotate(2deg); } }
.av-head { transition: transform .25s ease-out; transform-box: fill-box; transform-origin: 50% 95%; }
.mono-cap { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--muted); z-index: 2; }

/* Peek-a-boo mascot: positions come from JS spring physics */
.peeker { --pw: 190px; --ph: calc(var(--pw) * 1.228); --hw: calc(var(--pw) * .21); --hh: calc(var(--hw) * .8); position: fixed; z-index: 40; width: var(--pw); height: var(--ph); pointer-events: none; visibility: hidden; transform: translate(0, 120%); will-change: transform; }
.peeker.active { visibility: visible; }
.peeker.in { pointer-events: auto; cursor: pointer; }
.pk-char { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.pk-char .avatar { width: 100%; height: 100%; display: block; }
.peeker .av-body { animation: none; }
.pk-hand { position: absolute; width: var(--hw); height: var(--hh); }
.pk-hand .g { display: block; width: 100%; height: 100%; }
.pk-hand svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* bottom edges */
.peeker[data-edge="br"], .peeker[data-edge="bl"], .peeker[data-edge="bm"] { bottom: 0; }
.peeker[data-edge="br"] { right: 7vw; } .peeker[data-edge="bl"] { left: 8vw; } .peeker[data-edge="bm"] { left: 46vw; }
.peeker[data-edge="br"] .pk-hand, .peeker[data-edge="bl"] .pk-hand, .peeker[data-edge="bm"] .pk-hand { top: calc(var(--ph) * .66 - var(--hh) * .62); }
.peeker[data-edge="br"] .pk-hand.a, .peeker[data-edge="bl"] .pk-hand.a, .peeker[data-edge="bm"] .pk-hand.a { left: calc(var(--pw) * .03); }
.peeker[data-edge="br"] .pk-hand.b, .peeker[data-edge="bl"] .pk-hand.b, .peeker[data-edge="bm"] .pk-hand.b { left: calc(var(--pw) * .76); }
/* side edges */
.peeker[data-edge="left"] { left: 0; top: 36vh; }
.peeker[data-edge="right"] { right: 0; top: 30vh; }
.peeker[data-edge="left"] .pk-hand { left: calc(var(--pw) * .27 - var(--hw) * .3); transform: rotate(90deg); }
.peeker[data-edge="right"] .pk-hand { left: calc(var(--pw) * .73 - var(--hw) * .7); transform: rotate(-90deg); }
.peeker[data-edge="left"] .pk-hand.a, .peeker[data-edge="right"] .pk-hand.a { top: calc(var(--ph) * .1 - var(--hh) / 2); }
.peeker[data-edge="left"] .pk-hand.b, .peeker[data-edge="right"] .pk-hand.b { top: calc(var(--ph) * .62 - var(--hh) / 2); }
/* top edge: head pokes down over the edge, hands grip it */
.peeker[data-edge="top"] { left: 38vw; top: 0; z-index: 60; }
.peeker[data-edge="top"] .pk-char { transform: translateY(100%) rotate(180deg); transform-origin: 50% 0; }
.peeker[data-edge="top"] .pk-hand { top: calc(var(--ph) * .34 - var(--hh) * .38); transform: rotate(180deg); }
.peeker[data-edge="top"] .pk-hand.a { left: calc(var(--pw) * .03); }
.peeker[data-edge="top"] .pk-hand.b { left: calc(var(--pw) * .76); }
@media (max-width: 700px) { .peeker { --pw: 128px; } }
@media (prefers-reduced-motion: reduce) { .peeker { display: none; } }

/* Vintage switch */
:root { --sw-top: #e9e4da; --sw-bot: #cfc8ba; --sw-edge: #a79f8e; --sw-well: #b9b1a1; --sw-icon: #5b5548; }
:root[data-theme="dark"] { --sw-top: #34322e; --sw-bot: #1c1b19; --sw-edge: #4b4841; --sw-well: #100f0e; --sw-icon: #8f897c; }
.switch { display: grid; place-items: center; padding: 3px; border: 0; background: none; cursor: pointer; border-radius: 999px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); transition: transform .12s; }
.switch:active { transform: scale(.94); }
.sw-knob { transition: transform .45s cubic-bezier(.34, 1.7, .5, 1); }
:root[data-theme="dark"] .sw-knob { transform: translateX(36px); }
.switch .sw-sun { opacity: 1; } .switch .sw-moon { opacity: .55; }
:root[data-theme="dark"] .switch .sw-sun { opacity: .55; }
:root[data-theme="dark"] .switch .sw-moon { opacity: 1; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 500 15px var(--font); cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: 8px 18px; font-size: 14px; }

/* Type */
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }

/* Hero */
/* Pinned hero + curtain */
.hero-runway { position: relative; height: 260svh; }
.hero { overflow: hidden; }
.hero-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: 78px 0 24px; }
.hero-inner { width: 100%; transform: translateY(calc(var(--p2, 0) * -7svh)) scale(calc(1 - var(--p2, 0) * .07)); opacity: calc(1 - var(--p2, 0) * .75); transform-origin: 50% 40%; will-change: transform, opacity; }
.hero-visual .avatar-wrap { transform: translateY(calc(var(--p1, 0) * -18px)) scale(calc(1 + var(--p1, 0) * .07)); }
.hero-visual .orb { transform: scale(calc(1 + var(--p1, 0) * .3)); }
.after { position: relative; z-index: 2; margin-top: -100svh; background: var(--bg); border-radius: 36px 36px 0 0; box-shadow: 0 -40px 80px -40px rgba(0, 0, 0, .55); padding-top: 40px; }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 500 12px ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p1, 0) * 6); pointer-events: none; }
.scroll-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.focus-line { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; display: flex; flex-wrap: wrap; gap: 0 .35em; }
.fl-words { display: inline-grid; }
.fl-words span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); filter: blur(4px); transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.12em; white-space: nowrap; }
.fl-words span.on { opacity: 1; transform: none; filter: none; }
.fl-words span.out { transform: translateY(-70%); }
@media (max-width: 900px), (max-height: 700px), (prefers-reduced-motion: reduce) {
  .hero-runway { height: auto; }
  .hero-pin { position: static; height: auto; display: block; padding: clamp(32px, 6vw, 72px) 0 40px; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
  .hero-visual .avatar-wrap, .hero-visual .orb { transform: none !important; }
  .after { margin-top: 0; border-radius: 0; box-shadow: none; padding-top: 0; }
  .scroll-hint { display: none; }
  .fl-words { display: inline; }
  .fl-words span { display: inline; opacity: 1; transform: none; filter: none; }
  .fl-words span:not(:last-child)::after { content: ","; color: var(--muted); }
}
/* Active nav link */
.nav a { position: relative; transition: color .2s; }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
/* Tilted note cards */
.why, .step { --r: 0deg; }
.why.reveal, .step.reveal { transform: translateY(30px) rotate(var(--r)); }
.why.reveal.in, .step.reveal.in { transform: none; }
.why { position: relative; }
.why::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a72, var(--accent) 60%, #b93a0d); box-shadow: 0 3px 5px rgba(0,0,0,.35); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { position: relative; margin-bottom: 30px; display: flex; flex-direction: column; justify-content: center; aspect-ratio: 680 / 835; width: 100%; max-width: 400px; justify-self: end; }
.orb {
  position: absolute; inset: auto; left: -6%; right: -6%; top: 2%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 12%, transparent) 62%, transparent 72%);
  filter: blur(6px);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 720px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: block; border-radius: var(--radius); }
.card-lead { grid-column: 1 / -1; }
.card-media { overflow: hidden; border-radius: var(--radius); }
.cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff;
  transition: transform 0.8s var(--ease);
}
.card-lead .cover { aspect-ratio: 21 / 9; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.28), transparent 50%); }
.cover-name { position: absolute; left: clamp(18px, 3vw, 36px); top: clamp(16px, 2.6vw, 30px); max-width: 40%; line-height: 1; z-index: 2; font-size: clamp(26px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.04em; }
.cover { container-type: size; }
.cover-rig { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* devices: a laptop (and phones) sitting whole on the cover */
.rig { --lw: min(120cqh, 63cqw); position: absolute; right: 6cqw; bottom: 14cqh; width: var(--lw); filter: drop-shadow(0 26px 28px rgba(0,0,0,.32)); transition: transform .7s var(--ease); }
.card:hover .rig { transform: translateY(-7px); }
.laptop { position: relative; }
.lid { position: relative; padding: 3.4% 2.4% 3.6%; background: #19191b; border-radius: calc(var(--lw) * .034) calc(var(--lw) * .034) calc(var(--lw) * .006) calc(var(--lw) * .006); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cam { position: absolute; top: 1.4%; left: 50%; width: .8%; aspect-ratio: 1; margin-left: -.4%; border-radius: 50%; background: #2c2c30; }
.lbase { position: relative; width: 118%; margin-left: -9%; height: calc(var(--lw) * .028); background: linear-gradient(#3a3a3f, #17171a); border-radius: 0 0 calc(var(--lw) * .05) calc(var(--lw) * .05); }
.lbase b { position: absolute; left: 50%; top: 0; width: 15%; height: 52%; transform: translateX(-50%); background: #0e0e10; border-radius: 0 0 99px 99px; }
.device { position: absolute; background: #17171a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.dev-phone { --h: calc(var(--lw) * .52); height: var(--h); width: calc(var(--h) * .486); padding: calc(var(--h) * .0125); border-radius: calc(var(--h) * .074); background: #1c1c1f; box-shadow: inset 0 0 0 calc(var(--h) * .0035) #55555b, 0 0 0 calc(var(--h) * .002) rgba(0,0,0,.5); }
.dev-phone::before { content: ""; position: absolute; top: calc(var(--h) * .02); left: 50%; width: 28%; height: calc(var(--h) * .0235); transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 3; }
/* iPhone side buttons, tucked behind the frame */
.dev-phone::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(var(--h) * -.0045); right: calc(var(--h) * -.0045);
  background:
    linear-gradient(#3d3d42, #3d3d42) 0 13% / calc(var(--h) * .0045) 4% no-repeat,
    linear-gradient(#3d3d42, #3d3d42) 0 20% / calc(var(--h) * .0045) 7% no-repeat,
    linear-gradient(#3d3d42, #3d3d42) 0 29% / calc(var(--h) * .0045) 7% no-repeat,
    linear-gradient(#3d3d42, #3d3d42) 100% 24% / calc(var(--h) * .0045) 11% no-repeat; }
.rig > .p-rig { left: -17%; bottom: calc(var(--lw) * -.1); }
.rig-phones { --h: 80cqh; --lw: auto; bottom: 8cqh; right: 8cqw; width: calc(var(--h) * .486 * 1.8); height: var(--h); }
.rig-phones .dev-phone { --h: 80cqh; bottom: 0; }
.rig-phones .p-back { left: 0; bottom: 5cqh; }
.rig-phones .p-front { right: 0; }
.screen { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }
.laptop .screen { aspect-ratio: 16 / 9; border-radius: calc(var(--lw) * .004); }
.dev-phone .screen { width: 100%; height: 100%; border-radius: calc(var(--h) * .063); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.demo-fade.alt img { animation-delay: calc(var(--i) * 3.6s + 1.8s); }
.demo-fade.alt img:first-child { opacity: 0; }
/* Garuda phone: splash, then a scroll through the home screen */
.demo-mobile .m-scroll { animation: mScroll 14s infinite; object-position: 50% 0%; }
.demo-mobile .m-splash { animation: mSplash 14s infinite; }
@keyframes mScroll { 0%, 22% { object-position: 50% 0%; } 32% { object-position: 50% 0%; } 88% { object-position: 50% 100%; } 100% { object-position: 50% 100%; } }
@keyframes mSplash { 0%, 20% { opacity: 1; } 26%, 94% { opacity: 0; } 100% { opacity: 1; } }
/* demo: slideshow */
.demo-fade img { opacity: 0; animation: slideshow calc(var(--n, 3) * 3.6s) infinite; animation-delay: calc(var(--i) * 3.6s); }
.demo-fade.n2 { --n: 2; } .demo-fade.n3 { --n: 3; }
.demo-fade:not(.alt) img:first-child { opacity: 1; }
@keyframes slideshow { 0% { opacity: 0; } 6% { opacity: 1; } 31% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; } }
.demo-fade.n2 img { animation-name: slideshow2; }
@keyframes slideshow2 { 0% { opacity: 0; } 8% { opacity: 1; } 46% { opacity: 1; } 54% { opacity: 0; } 100% { opacity: 0; } }
/* demo: Garuda, menu then a scroll through the home page */
.demo-garuda .g-scroll { animation: gScroll 16s infinite; object-position: 50% 0%; }
.demo-garuda .g-menu { animation: gMenu 16s infinite; }
@keyframes gScroll { 0%, 24% { object-position: 50% 0%; } 34% { object-position: 50% 0%; } 90% { object-position: 50% 100%; } 100% { object-position: 50% 100%; } }
@keyframes gMenu { 0%, 22% { opacity: 1; } 28%, 94% { opacity: 0; } 100% { opacity: 1; } }
/* demo: TruEnroll, the original wave video behind the headline (rebuilt from the Figma layers) */
.tr-left { position: absolute; left: 0; top: 0; width: 61.2%; height: 100%; background: #fff; overflow: hidden; }
.tr-left .tr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.tr-left img { position: absolute; inset: auto; height: auto; max-width: none; object-fit: fill; }
.tr-left .tr-logo { left: 5.1%; top: 3.7%; width: 15.4%; mix-blend-mode: multiply; }
.tr-left .tr-head { left: 5.1%; top: 28.5%; width: 90.6%; mix-blend-mode: multiply; }
.tr-left .tr-trust { left: 5.1%; top: 83.8%; width: 55.2%; }
/* demo: TruEnroll, type an email and press Continue */
.tr-field { position: absolute; left: 68%; top: 53.8%; width: 25.2%; height: 5.4%; background: #fff; border: 1px solid #4150b5; border-radius: .4cqw; display: flex; align-items: center; padding-left: 1.2cqw; font: 500 1.05cqw/1 'Inter Tight', system-ui, sans-serif; color: #111827; opacity: 0; animation: trField 8s infinite; }
.tr-text { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 1px solid #4150b5; animation: trType 8s infinite steps(18, end); }
.tr-btn { position: absolute; left: 68%; top: 61.6%; width: 25.2%; height: 4.5%; border-radius: .4cqw; background: rgba(255,255,255,.35); opacity: 0; animation: trBtn 8s infinite; }
@keyframes trField { 0%, 8% { opacity: 0; } 10%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes trType { 0%, 12% { width: 0; } 40%, 100% { width: 18ch; } }
@keyframes trBtn { 0%, 52% { opacity: 0; transform: none; } 56% { opacity: 1; transform: scale(.97); } 66% { opacity: 1; transform: scale(1); } 72%, 100% { opacity: 0; } }
/* run the demos only while a cover is on screen */
.cover:not(.demo-on) .cover-rig *, .cover:not(.demo-on) .cover-rig *::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cover-rig *, .cover-rig *::before { animation: none !important; } .tr-field, .tr-btn { display: none; } .demo-garuda .g-scroll { opacity: 0; } }
.cover-note { position: absolute; z-index: 1; bottom: 14px; right: 18px; font-size: 12px; opacity: 0.75; letter-spacing: 0.06em; }
.card:hover .cover { transform: scale(1.04); }
.card-body { padding: 18px 4px 0; display: grid; gap: 6px; }
.card-org { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { font-size: 28px; letter-spacing: -0.02em; }
.card .arrow { display: inline-block; color: var(--accent); transition: transform 0.3s var(--ease); }
.card:hover .arrow { transform: translate(3px, -3px); }
.card-tag { color: var(--muted); }
.tags, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags li, .chips li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.chips li { color: var(--text); background: var(--surface); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.about-copy { display: grid; gap: 18px; font-size: 19px; }
.about-copy p { color: var(--muted); }
.about-copy p:first-child { color: var(--text); }

/* Timeline */
.timeline { border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-meta { display: grid; gap: 2px; align-content: start; color: var(--muted); font-size: 15px; }
.tl-note { font-size: 13px; color: var(--accent); }
.tl-org { color: var(--muted); font-weight: 400; }
.tl-body ul { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); }
.tl-body li { padding-left: 18px; position: relative; }
.tl-body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.edu p { display: grid; gap: 2px; }
.edu span { color: var(--muted); font-size: 15px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.skill-group h3 { font-size: 16px; color: var(--muted); font-weight: 500; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; align-content: start; transition: transform 0.4s var(--ease), border-color 0.3s; }
.why:hover { transform: translateY(-4px); border-color: var(--accent); }
.why-n { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1; }
.why p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-grid .section-head { margin-bottom: 0; }
.contact-line a { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; border-bottom: 2px solid var(--accent); }
.socials { display: flex; gap: 20px; flex-wrap: wrap; }
.socials a { color: var(--muted); font-size: 15px; }
.socials a:hover { color: var(--accent); }
.socials-lg a { font-size: 17px; }
.phone-box { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.phone-label { color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-inline { padding: 20px; width: 100%; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #16803c; }
.form-status.err { color: #c62828; }
:root[data-theme="dark"] .form-status.ok { color: #4ade80; }
:root[data-theme="dark"] .form-status.err { color: #f87171; }
.phone-reveal { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* Case study */
.case-hero { display: grid; gap: 18px; padding: clamp(32px, 6vw, 80px) 0 40px; }
.back { color: var(--muted); font-size: 15px; justify-self: start; }
.back:hover { color: var(--accent); }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.case-meta dd { margin: 2px 0 0; font-weight: 500; }
.parallax-cover { border-radius: var(--radius); overflow: hidden; }
.cover-wide { aspect-ratio: 21 / 9; border-radius: var(--radius); }
.case-body { display: grid; gap: 56px; padding: 64px 0 40px; max-width: 1040px; }
.case-body p { max-width: 72ch; }
.case-body h2 { font-size: 30px; margin-bottom: 14px; }
.case-body p { color: var(--muted); font-size: 19px; }
.highlights { display: flex; flex-wrap: wrap; gap: 10px; }
.highlights li { padding: 8px 18px; border: 1px solid var(--accent); border-radius: 999px; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 15px; }
.ph-note { margin-top: 14px; font-size: 15px !important; }
.next { display: grid; gap: 4px; padding: 56px max(16px, calc((100% - var(--wrap)) / 2)); background: var(--bg-alt); transition: background 0.3s; }
.next span { color: var(--muted); font-size: 14px; }
.next strong { font-size: clamp(32px, 6vw, 72px); letter-spacing: -0.03em; }
.next:hover strong { color: var(--accent); }

/* Case study blocks */
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mini { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.mini h3 { font-size: 18px; }
.case-body .mini p { font-size: 16px; }
.steps { display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.case-body .steps p { font-size: 17px; }
.aud { display: grid; gap: 0; border-top: 1px solid var(--line); }
.aud li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.aud span { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.impact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.impact strong { display: block; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; color: var(--accent); line-height: 1.05; }
.impact span { color: var(--muted); font-size: 16px; }

.shots { display: grid; gap: 18px; margin-top: 22px; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.phones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.phones figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.phones img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); background: #fff; }
.phones figcaption { font-size: 14px; color: var(--muted); }


/* Interactive case-study blocks */
.pill-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill-steps li { display: inline-flex; gap: 10px; align-items: center; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.pill-steps span { color: var(--accent); font-family: var(--serif); font-size: 18px; }
.tabs2 { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.t-list { display: flex; border-bottom: 1px solid var(--line); }
.t-tab { flex: 1; padding: 16px; font: 600 16px var(--font); color: var(--muted); background: transparent; border: 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.t-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.t-panel { padding: 24px; display: grid; gap: 14px; }
.t-panel[hidden] { display: none; }
.persona-meta { font-size: 14px !important; text-transform: uppercase; letter-spacing: .06em; }
.persona-bio { color: var(--text) !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 6px; }
.two h3, .sub { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.sub { margin-top: 30px; }
.dots { display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 18px; color: var(--muted); font-size: 16px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.insights { display: grid; gap: 22px; }
.insights li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.insights h3 { font-size: 19px; margin-bottom: 4px; }
.case-body .insights p { font-size: 17px; }
.acc-list { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 20px; }
.acc summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary em { font-style: normal; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.acc summary::after { content: "+"; margin-left: 12px; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc ul { padding: 0 0 18px; }
.lang { display: grid; gap: 18px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sw { display: grid; gap: 4px; padding: 10px; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .25s var(--ease), border-color .2s; }
.sw:hover { transform: translateY(-3px); border-color: var(--accent); }
.sw i { display: block; height: 64px; border-radius: 10px; background: var(--c); border: 1px solid var(--line); }
.sw strong { font-size: 15px; margin-top: 6px; }
.sw span { font-size: 13px; color: var(--muted); }
.type { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.type .aa { font: 600 56px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.03em; }
.type div { display: grid; gap: 2px; }
.type span:not(.aa) { color: var(--muted); font-size: 15px; }
.v-hint { font-size: 14px !important; color: var(--muted); }

/* Viewer */
.viewer { display: grid; gap: 20px; }
.v-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.v-tab { padding: 8px 16px; font: 500 14px var(--font); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s; }
.v-tab:hover { color: var(--text); border-color: var(--text); }
.v-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.v-stage { display: grid; gap: 18px; }
.viewer-phone .v-stage { grid-template-columns: 300px 1fr; align-items: center; gap: 40px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface); }
.frame { overflow: hidden; background: #fff; }
.frame-phone { width: 300px; height: 600px; border-radius: 40px; border: 8px solid #17171a; box-shadow: 0 40px 60px -30px rgba(0,0,0,.6); position: relative; }
.frame-phone .notch { position: absolute; z-index: 2; top: 8px; left: 50%; width: 90px; height: 6px; margin-left: -45px; border-radius: 6px; background: #17171a; }
.frame-phone .scroll { height: 100%; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.frame-phone .scroll::-webkit-scrollbar { display: none; }
.frame-phone .v-img { width: 100%; height: auto; display: block; }
.frame-window { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.frame-window .bar { display: flex; gap: 7px; padding: 12px 14px; background: #ececef; border-bottom: 1px solid #dcdce0; }
.frame-window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9c9ce; }
.frame-window .scroll { max-height: 560px; overflow: auto; }
.frame-window .v-img { width: 100%; height: auto; display: block; }
.v-img { transition: opacity .25s, transform .25s; }
.v-img.swap { opacity: 0; transform: translateY(6px); }
.v-side { display: grid; gap: 8px; align-content: center; }
.v-title { font-size: 22px; }
.viewer-window .v-side { padding: 0 4px; }
.case-body .v-note { font-size: 17px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
[data-speed] { will-change: transform; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; max-width: 420px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding-left: 18px; }
  .work-grid, .why-grid, .skills-grid, .edu { grid-template-columns: 1fr; }
  .card-lead .cover { aspect-ratio: 16 / 10; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cards2, .impact, .two { grid-template-columns: 1fr; }
  .viewer-phone .v-stage { grid-template-columns: 1fr; justify-items: center; padding: 20px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ch { opacity: 1; }
  * { animation: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  [data-speed] { transform: none !important; }
}
