/* Araf Khan portfolio. Change the accent in ONE line: --accent below. */
:root {
  --accent: #8ED8FF;     /* soft ice blue */
  --accent-2: #4FA3E0;   /* deeper sea blue: gradients, small details */
  --accent-ink: #EAF8FF; /* pale highlight */

  --bg: #050505;
  --s1: #0C0C0E;
  --s2: #111114;
  --tx: #F2F2F5;
  --mu: #8C8C96;
  --hl: color-mix(in srgb, var(--accent) 11%, #0C0C0E);
  --hl2: color-mix(in srgb, var(--accent) 20%, #111114);
  --glass: linear-gradient(160deg, rgba(234, 248, 255, .07), rgba(234, 248, 255, .015) 60%);
  --on-accent: #050505; /* main.js recomputes this from --accent */
  --acc-tx: var(--accent);
  --acc-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --fd: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --fb: "Figtree", "Segoe UI", system-ui, sans-serif;
  --bar: 60px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--tx); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); scrollbar-gutter: stable; }
body:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--fb); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
html.intro { overflow: hidden; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--acc-tx); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--tx); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
html:not(.js) main, html:not(.js) .bar, html:not(.js) .foot { display: none; }
.ns { max-width: 720px; margin: 64px auto; padding: 0 20px; }
.ns h1 { font: 800 3rem/1 var(--fd); margin-bottom: 12px; }
.ns h2 { font: 700 1.5rem/1.2 var(--fd); margin: 32px 0 8px; }
.ns p { color: var(--mu); }
.ns a { color: var(--acc-tx); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--fb); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: linear-gradient(135deg, var(--accent-ink) -30%, var(--accent) 45%, var(--accent-2)); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn-ghost { background: var(--glass), rgba(12, 12, 14, .6); border-color: var(--hl2); color: var(--tx); }
.btn-ghost:hover { border-color: var(--acc-tx); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--pad);
  background: rgba(5, 5, 5, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--hl); }
.bar-name { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.1rem/1 var(--fd); letter-spacing: -.02em; text-decoration: none; }
.bar-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.bar-nav { margin-left: auto; }
.bar-nav ul { display: flex; gap: 4px; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--mu); text-decoration: none; font-size: .95rem; border-radius: 999px; transition: color .2s, background-color .2s; }
.bar-nav a:hover, .bar-nav a[aria-current="true"] { color: var(--tx); }
.bar-nav a[aria-current="true"] { background: var(--s2); }
/* phone menu: button + full-screen sheet */
.menu-btn, .sheet-close { display: none; position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  background: var(--glass), rgba(12, 12, 14, .6); border: 1px solid var(--hl2); }
.menu-btn i, .sheet-close i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--tx); }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 25px; }
.sheet-close { display: block; position: absolute; top: 8px; right: var(--pad); }
.sheet-close i { top: 21px; } .sheet-close i:first-child { transform: rotate(45deg); } .sheet-close i:last-child { transform: rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; padding: 80px var(--pad) 40px;
  background: rgba(5, 5, 5, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sheet-list li { border-bottom: 1px solid var(--hl); }
.sheet-list a { display: flex; align-items: center; min-height: 64px; font: 800 clamp(2rem, 9vw, 2.8rem)/1 var(--fd); letter-spacing: -.035em; text-decoration: none; }
.sheet-list a.accent { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) { animation: sheetIn .35s var(--ease) both; }
  .sheet:not([hidden]) li { animation: liIn .5s var(--ease) both; animation-delay: calc(var(--n) * 50ms + 60ms); }
}
@keyframes sheetIn { from { opacity: 0; } }
@keyframes liIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@media (max-width: 820px) {
  .bar-nav { display: none; }
  .bar { gap: 10px; }
  .bar .btn-sm { margin-left: auto; }
  .menu-btn { display: block; }
}

/* ---------- intro: one typographic moment, gone by 3.0 s ---------- */
.intro-ov {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: none; place-items: center; padding: 24px; cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1);
}
html.intro .intro-ov { display: grid; }
.intro-ov.leaving { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-ov.fast { transition-duration: .3s; }
.intro-line {
  position: relative; margin: 0; text-align: center; text-wrap: balance;
  font: 800 clamp(2.5rem, 8.2vw, 8rem)/1.02 var(--fd); font-variation-settings: "opsz" 96;
  letter-spacing: -.038em; font-kerning: normal; font-feature-settings: "kern", "liga";
  color: #F4F6F8; transition: transform .6s cubic-bezier(.76, 0, .24, 1), opacity .5s ease;
}
.intro-ov.leaving .intro-line { transform: translate3d(0, -7vh, 0); opacity: .2; }
.iw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .05em .16em; margin: -.1em -.05em -.16em; }
.iw > span { display: inline-block; transform: translate3d(0, 108%, 0); opacity: 0; filter: blur(10px); }
.intro-ov.go .iw > span { animation: wordIn .78s cubic-bezier(.2, .75, .1, 1) var(--d) forwards; }
@keyframes wordIn { 60% { filter: blur(0); } to { transform: none; opacity: 1; filter: blur(0); } }
.i-br { display: none; }
.i-name { position: relative; display: inline-block; }
.i-name .iw > span {
  background: linear-gradient(100deg, var(--accent-ink) 0%, var(--accent) 42%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.i-glow { position: absolute; left: -30%; right: -30%; top: -40%; bottom: -40%; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent) 55%, transparent);
  filter: blur(18px); }
.intro-ov.go .i-glow { animation: glowIn .9s ease .7s forwards, breathe 2.6s ease-in-out 1.6s infinite alternate; }
@keyframes glowIn { to { opacity: .8; } }
@keyframes breathe { from { opacity: .8; transform: scale(1); } to { opacity: .45; transform: scale(1.08); } }
.i-rule { position: absolute; left: 2%; right: 4%; bottom: -.04em; height: max(2px, .03em); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent) 50%, color-mix(in srgb, var(--accent-2) 30%, transparent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.intro-ov.go .i-rule { animation: draw .6s cubic-bezier(.6, 0, .2, 1) 1.1s forwards; }
@keyframes draw { to { transform: scaleX(1); } }
.intro-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1px solid var(--hl2); color: var(--mu); cursor: pointer; }
.intro-skip:hover { color: var(--tx); }
@media (max-width: 640px) {
  .intro-line { font-size: clamp(2.4rem, 13.4vw, 4rem); line-height: 1.04; }
  .i-br { display: block; }
  .i-name { font-size: 1.3em; margin-top: .04em; }
}

/* ---------- hero ---------- */
.hero { padding-top: var(--bar); overflow-x: clip; }
.hero-grid { min-height: calc(100svh - var(--bar)); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 32px; padding-block: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 600 .92rem/1 var(--fb); color: var(--tx); white-space: nowrap;
  background: var(--acc-soft); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc-tx); box-shadow: 0 0 8px var(--accent); }
.hero-title { margin-top: 22px; max-width: 14ch; font: 800 clamp(2.6rem, 5vw, 4.8rem)/.98 var(--fd); font-variation-settings: "opsz" 96; letter-spacing: -.042em; text-wrap: balance; }
.hero-lead { margin-top: 20px; max-width: 44ch; color: var(--mu); font-size: 1.1rem; }
.hero .btns { margin-top: 32px; }

/* 3D card stack */
.hero-vis { --rx: 0deg; --ry: 0deg; position: relative; height: min(70svh, 600px); perspective: 1100px; }
.hv-ring { position: absolute; left: 50%; top: 50%; width: min(92%, 520px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 0 70px -10px color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 66%); }
.hv-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent-ink) 90%, transparent) 82%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }
.hv-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.hv-card { position: absolute; left: 50%; top: 50%; width: min(52%, 290px); aspect-ratio: 4 / 3; margin: 0; transform-style: preserve-3d; }
.hv-card:nth-child(1) { transform: translate(-50%, -50%) translate3d(-40%, -52%, -80px) rotateZ(-7deg); }
.hv-card:nth-child(2) { transform: translate(-50%, -50%) translate3d(30%, -6%, 0) rotateZ(4deg); }
.hv-card:nth-child(3) { transform: translate(-50%, -50%) translate3d(-18%, 52%, 90px) rotateZ(-3deg); }
.hv-in { position: absolute; inset: 0; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: linear-gradient(160deg, rgba(234, 248, 255, .11), rgba(234, 248, 255, .02) 55%), rgba(7, 15, 22, .82);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 34px 60px -30px #000, inset 0 1px 0 rgba(234, 248, 255, .12), 0 0 46px -20px var(--accent); }
.hv-tag { align-self: flex-start; font: 600 .78rem/1 var(--fb); color: var(--accent-ink); padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: rgba(142, 216, 255, .08); }
@media (prefers-reduced-motion: no-preference) {
  .hv-card:nth-child(1) .hv-in { animation: bob 7s ease-in-out -1s infinite; }
  .hv-card:nth-child(2) .hv-in { animation: bob 8s ease-in-out -4s infinite; }
  .hv-card:nth-child(3) .hv-in { animation: bob 6.5s ease-in-out -2.5s infinite; }
  .hv-ring::after { animation: spin 14s linear infinite; }
}
@keyframes bob { 50% { transform: translate3d(0, -10px, 0); } }
@keyframes spin { to { transform: rotate(1turn); } }
/* mini site */
.ms { flex: 1; display: grid; grid-template-rows: 8px 1fr 30px; gap: 8px; }
.ms i { display: block; border-radius: 5px; background: rgba(142, 216, 255, .12); border: 1px solid rgba(142, 216, 255, .16); position: relative; overflow: hidden; }
.ms .ms-nav { border: 0; background: linear-gradient(90deg, rgba(142, 216, 255, .35) 22%, transparent 22% 60%, rgba(142, 216, 255, .18) 60%); }
.ms .ms-hero::before { content: ""; position: absolute; left: 10%; top: 22%; width: 52%; height: 14%; border-radius: 4px; background: rgba(234, 248, 255, .5); }
.ms .ms-hero::after { content: ""; position: absolute; left: 10%; top: 58%; width: 26%; height: 18%; border-radius: 99px; background: var(--accent); }
.ms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms .ms-hero > b { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(234, 248, 255, .16), transparent); transform: translateX(-120%); }
@media (prefers-reduced-motion: no-preference) { .ms .ms-hero > b { animation: sweep 3.2s ease-in-out infinite; } }
@keyframes sweep { 60%, 100% { transform: translateX(260%); } }
/* bars sparkline (no numbers) */
.bars { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 4px 6px 2px; border-bottom: 1px solid rgba(142, 216, 255, .3); }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--accent-ink), var(--accent) 35%, color-mix(in srgb, var(--accent-2) 60%, transparent)); box-shadow: 0 0 14px -4px var(--accent); }
@media (prefers-reduced-motion: no-preference) { .bars i { animation: grow 3.6s cubic-bezier(.3, .7, .2, 1) calc(var(--k) * .14s) infinite; } }
@keyframes grow { 0% { transform: scaleY(.15); opacity: .5; } 40%, 85% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.15); opacity: .5; } }
/* reel frame */
.reel { flex: 1; display: flex; gap: 14px; align-items: stretch; }
.reel-ph { position: relative; aspect-ratio: 9 / 16; height: 100%; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); background: rgba(142, 216, 255, .06); overflow: hidden; }
.reel-ph::before { content: ""; position: absolute; left: 50%; top: 44%; translate: -40% -50%; border-left: 14px solid var(--accent-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.reel-ph > b { position: absolute; left: 10%; right: 10%; bottom: 9%; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.6); }
@media (prefers-reduced-motion: no-preference) { .reel-ph > b { animation: prog 4s linear infinite; } }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.reel-lines i { display: block; height: 8px; border-radius: 6px; background: rgba(142, 216, 255, .16); }
.reel-lines i:nth-child(1) { width: 90%; } .reel-lines i:nth-child(2) { width: 66%; } .reel-lines i:nth-child(3) { width: 78%; }

/* floating glyph chips */
.glyph { position: absolute; z-index: 2; left: var(--x); top: var(--y); translate: -50% -50%; padding: 6px 11px; border-radius: 999px;
  font: 600 .78rem/1 var(--fb); letter-spacing: .01em; color: var(--accent-ink); white-space: nowrap; pointer-events: none;
  background: var(--glass), rgba(6, 18, 28, .7); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 0 18px -6px var(--accent); }
.glyph:nth-of-type(1) { --x: 10%; --y: 14%; }
.glyph:nth-of-type(2) { --x: 90%; --y: 12%; }
.glyph:nth-of-type(3) { --x: 96%; --y: 46%; }
.glyph:nth-of-type(4) { --x: 6%; --y: 38%; }
.glyph:nth-of-type(5) { --x: 88%; --y: 84%; }
.glyph:nth-of-type(6) { --x: 52%; --y: 4%; }
.glyph:nth-of-type(7) { --x: 46%; --y: 97%; }
@media (prefers-reduced-motion: no-preference) {
  .glyph { animation: drift calc(6s + var(--i) * .8s) ease-in-out calc(var(--i) * -1.3s) infinite; }
}
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); opacity: .85; } 50% { transform: translate3d(0, -10px, 0); opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 32px 16px; gap: 16px; }
  .hero-title { font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
  .hero-vis { height: min(98vw, 440px); margin-top: 8px; }
  .hv-card { width: min(60%, 250px); }
  .hv-in { padding: 12px; border-radius: 16px; gap: 8px; }
  .glyph { font-size: .75rem; padding: 5px 9px; }
  .glyph:nth-of-type(4) { --x: 72%; --y: 3%; }
  .glyph:nth-of-type(1) { --x: 26%; --y: 3%; }
  .glyph:nth-of-type(3) { --x: 91%; }
}

/* ---------- story: sticky hologram panel ---------- */
.desk { position: relative; border-top: 1px solid var(--hl); overflow-x: clip; }
.desk-grid { display: grid; grid-template-columns: 1.12fr .88fr; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); gap: 48px; }
.desk-stage { align-self: start; position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); display: flex; align-items: center; }
.desk-inner { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; display: flex; flex-direction: column; gap: 22px; perspective: 1200px; }
.panel { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform;
  box-shadow: 0 40px 90px -40px #000, 0 0 70px -24px var(--accent), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.panel::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent); }
.panel canvas { width: 100%; height: 100%; border-radius: 22px; }
.rail { display: flex; gap: 10px; }
.rail li { flex: 1; min-width: 0; font-size: .8rem; color: var(--mu); transition: color .3s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail li::before { content: ""; display: block; height: 3px; border-radius: 3px; margin-bottom: 8px; background: var(--hl2); transition: background-color .3s, box-shadow .3s; }
.rail li[aria-current="step"] { color: var(--tx); }
.rail li[aria-current="step"]::before, .rail li.done::before { background: var(--accent); }
.rail li[aria-current="step"]::before { box-shadow: 0 0 12px var(--accent); }

.ch { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; padding-block: 8svh; opacity: .2; transition: opacity .6s var(--ease); }
.ch.on { opacity: 1; }
.ch h3 { font: 800 clamp(2.2rem, 4.4vw, 3.8rem)/.98 var(--fd); letter-spacing: -.04em; }
.ch p { margin-top: 14px; max-width: 42ch; color: var(--mu); font-size: 1.08rem; }
.ch p:first-of-type { color: var(--tx); }
.stat { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 26px; padding: 14px 20px; border-radius: 16px; background: var(--glass), var(--s1); border: 1px solid var(--hl2); align-self: flex-start; }
.stat b { font: 800 2.6rem/1 var(--fd); letter-spacing: -.04em; color: var(--acc-tx); font-variant-numeric: tabular-nums; }
.stat span { color: var(--mu); font-size: .95rem; }

@media (max-width: 860px) {
  .desk-grid { grid-template-columns: 1fr; gap: 0; }
  .desk-stage { z-index: 5; height: 40svh; padding-block: 10px 8px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    background: linear-gradient(var(--bg) 90%, rgba(5, 5, 5, 0)); }
  .desk-inner { height: 100%; gap: 10px; justify-content: center; }
  .panel { border-radius: 14px; }
  .panel canvas { border-radius: 14px; }
  .rail { gap: 6px; }
  .rail li { font-size: .75rem; }
  .rail li::before { margin-bottom: 5px; }
  .ch { min-height: calc(60svh - var(--bar)); padding-block: 4svh; }
  .ch h3 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .ch p { font-size: 1rem; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(80px, 12vw, 150px); border-top: 1px solid var(--hl); }
.h2 { font: 800 clamp(2.3rem, 5.4vw, 4.4rem)/.98 var(--fd); letter-spacing: -.045em; }
.sec-lead { margin-top: 16px; max-width: 52ch; color: var(--mu); font-size: 1.1rem; }
.sec-head { margin-bottom: 40px; }

/* numbers */
.numbers { border-top: 1px solid var(--hl); }
.num-row { display: flex; flex-wrap: wrap; }
.num-row li { flex: 1 1 200px; padding: 44px 24px 44px 0; display: flex; flex-direction: column; gap: 10px; }
.num-row li + li { padding-left: 24px; border-left: 1px solid var(--hl); }
.num-row b { font: 800 clamp(3.2rem, 6.4vw, 5.6rem)/.9 var(--fd); letter-spacing: -.05em; background: linear-gradient(180deg, var(--accent-ink), var(--accent) 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-row span { color: var(--mu); }
@media (max-width: 620px) {
  .num-row li { flex: 1 1 50%; padding: 26px 12px 26px 0; }
  .num-row li + li { padding-left: 0; border-left: 0; }
  .num-row li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hl); }
  .num-row li:nth-child(n+3) { border-top: 1px solid var(--hl); }
}

/* work */
#ring-mount:empty { display: none; }
.work-cta { margin-top: 8px; }

/* ads */
.ads-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px 64px; align-items: start; }
.ads .sec-head { position: sticky; top: calc(var(--bar) + 32px); }
.partner { margin-top: 18px; color: var(--tx); }
.steps { counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 26px 0; border-top: 1px solid var(--hl); }
.steps li:last-child { border-bottom: 1px solid var(--hl); }
.steps li::before { content: counter(st); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem/1 var(--fd); color: var(--acc-tx); background: var(--acc-soft); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.steps h3 { font: 700 1.45rem/1.2 var(--fd); letter-spacing: -.02em; }
.steps p { color: var(--mu); }
.private { grid-column: 2; display: flex; align-items: center; gap: 10px; color: var(--mu); font-size: .95rem; }
.private svg { width: 18px; height: 18px; flex: none; color: var(--acc-tx); }
@media (max-width: 860px) {
  .ads-grid { grid-template-columns: 1fr; }
  .ads .sec-head { position: static; margin-bottom: 8px; }
  .private { grid-column: auto; }
}

/* experience */
.tl { margin-top: 48px; position: relative; max-width: 760px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--accent-2) 30%, var(--hl) 80%); }
.tl li { position: relative; padding: 0 0 44px 44px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--hl2); }
.tl li.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--acc-soft), 0 0 18px var(--accent); }
.tl-when { font-size: .9rem; color: var(--mu); }
.tl li.now .tl-when { color: var(--acc-tx); font-weight: 600; }
.tl h3 { margin-top: 4px; font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--fd); letter-spacing: -.03em; }
.tl-role { color: var(--tx); margin-top: 2px; }
.tl p.tl-text { color: var(--mu); margin-top: 6px; max-width: 54ch; }
.tl a { color: var(--acc-tx); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* contact */
.contact { padding-bottom: 72px; overflow: hidden; }
.contact-title { position: relative; display: inline-block; font: 800 clamp(3.8rem, 14vw, 11rem)/.9 var(--fd); font-variation-settings: "opsz" 96; letter-spacing: -.05em; padding-bottom: .08em; }
.c-rule { position: absolute; left: 1%; right: 3%; bottom: 0; height: max(2px, .022em); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent) 50%, color-mix(in srgb, var(--accent-2) 30%, transparent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .9s cubic-bezier(.6, 0, .2, 1) .35s; }
.contact-title.in .c-rule, html:not(.js) .c-rule { transform: scaleX(1); }
.contact .sec-lead { margin-top: 28px; }
.contact .btns { margin-top: 34px; }
.contact-plain { margin-top: 22px; color: var(--mu); font-size: .95rem; }
.contact-plain a { color: var(--tx); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

.foot { border-top: 1px solid var(--hl); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; color: var(--mu); font-size: .9rem; }
.foot-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--mu); text-decoration: none; }
.foot-top:hover { color: var(--accent); }

/* background specks: slow rising bubbles, transform + opacity only */
.specks { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
main, .foot { position: relative; z-index: 1; }
.specks i { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, var(--accent-ink), color-mix(in srgb, var(--accent) 55%, transparent) 40%, color-mix(in srgb, var(--accent-2) 25%, transparent) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); will-change: transform, opacity; }
.specks i:nth-child(1) { --x: 6%; --s: 6px; --d: 26s; --w: -2s; }
.specks i:nth-child(2) { --x: 17%; --s: 10px; --d: 34s; --w: -14s; }
.specks i:nth-child(3) { --x: 29%; --s: 4px; --d: 22s; --w: -8s; }
.specks i:nth-child(4) { --x: 41%; --s: 8px; --d: 30s; --w: -20s; }
.specks i:nth-child(5) { --x: 53%; --s: 5px; --d: 25s; --w: -5s; }
.specks i:nth-child(6) { --x: 64%; --s: 12px; --d: 38s; --w: -26s; }
.specks i:nth-child(7) { --x: 73%; --s: 5px; --d: 24s; --w: -11s; }
.specks i:nth-child(8) { --x: 82%; --s: 9px; --d: 32s; --w: -17s; }
.specks i:nth-child(9) { --x: 91%; --s: 4px; --d: 21s; --w: -3s; }
.specks i:nth-child(10) { --x: 97%; --s: 7px; --d: 29s; --w: -22s; }
@media (prefers-reduced-motion: no-preference) {
  .specks i { animation: rise var(--d) linear var(--w) infinite; }
}
@media (prefers-reduced-motion: reduce) { .specks { display: none; } }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .55; }
  50% { transform: translate3d(14px, -55vh, 0); }
  85% { opacity: .35; }
  100% { transform: translate3d(-6px, -112vh, 0); opacity: 0; }
}

/* reveals: transform + opacity only */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  html.js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btns .btn { flex: 1 1 auto; }
}
