/* ════════════════════════════════════════════════════════════
   Dark atelier system · ink / bone / electric lime
   ════════════════════════════════════════════════════════════ */

:root {
  --bg: #0B0B0C;
  --bg-2: #121214;
  --bg-3: #191A1D;
  --ink: #EDEBE4;
  --ink-dim: #B3B0A6;
  --ink-faint: #767370;
  --line: rgba(237, 235, 228, 0.10);
  --line-strong: rgba(237, 235, 228, 0.22);
  --accent: #D4FF3F;
  --accent-ink: #0B0B0C;
  --accent-text: var(--accent);
  --accent-2: #FF5C38;
  --danger: #ff5c5c;
  --radius: 20px;
  --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-swift: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 84px;
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ═══════════ LIGHT MODE ═══════════ */
html[data-theme="light"] {
  --bg: #F1EFE8;
  --bg-2: #EAE7DD;
  --bg-3: #E0DDD2;
  --ink: #121210;
  --ink-dim: #46453D;
  --ink-faint: #6E6B60;
  --line: rgba(18, 18, 16, 0.16);
  --line-strong: rgba(18, 18, 16, 0.34);
  /* JS recomputes this from the live accent — this is the no-JS fallback */
  --accent-text: #6B8207;
  color-scheme: light;
}
html[data-theme="light"] .nav.is-scrolled { background: rgba(241, 239, 232, 0.78); }
html[data-theme="light"] .dock { background: rgba(233, 230, 220, 0.85); }
html[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(140, 170, 20, .20), transparent 65%); }
html[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(255, 92, 56, .14), transparent 65%); }
html[data-theme="light"] .footer {
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(140,170,20,.14), transparent 70%), var(--bg);
}
html[data-theme="light"] .wcard {
  box-shadow: 0 -20px 50px -20px rgba(20,20,15,.22), 0 26px 50px -28px rgba(20,20,15,.18);
}
html[data-theme="light"] .work-end-card { box-shadow: 0 -20px 50px -20px rgba(20,20,15,.22); }
html[data-theme="light"] .wcard-idx { -webkit-text-stroke-color: rgba(18,18,16,.16); }
html[data-theme="light"] .wframe-web {
  box-shadow: 0 26px 50px -26px rgba(20,20,15,.28);
}
html[data-theme="light"] .wframe-folio::after { background: radial-gradient(50% 85% at 50% 15%, rgba(20,20,15,.3), transparent 72%); }
html[data-theme="light"] .wtabs-in { background: rgba(241,239,232,.8); box-shadow: 0 18px 44px -18px rgba(20,20,15,.25); }
/* pale project accents are decoration — as small text they need ink mixed in */
html[data-theme="light"] .wp-num { color: color-mix(in srgb, var(--pac, var(--accent-text)) 55%, var(--ink)); }
html[data-theme="light"] .dr-tick.on { background: var(--accent-text); box-shadow: 0 0 12px color-mix(in srgb, var(--accent-text) 40%, transparent); }
/* accent-colored TEXT needs a darker variant on light surfaces */
html[data-theme="light"] .hero-eyebrow-bracket,
html[data-theme="light"] .hero-title .it,
html[data-theme="light"] .hstat-num em,
html[data-theme="light"] .nav-logo-dot,
html[data-theme="light"] .section-title .it,
html[data-theme="light"] .about-heading .it,
html[data-theme="light"] .footer-heading .it,
html[data-theme="light"] .marquee-track span::after,
html[data-theme="light"] .pstep-num,
html[data-theme="light"] .qcard-mark,
html[data-theme="light"] .tool-pill:hover,
html[data-theme="light"] .bcard-icon,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .footer-socials a:hover,
html[data-theme="light"] .footer-top:hover,
html[data-theme="light"] .about-badge-center,
html[data-theme="light"] .os-term .k,
html[data-theme="light"] .os-contact-btn:hover,
html[data-theme="light"] .cs-close:hover { color: var(--accent-text); }
html[data-theme="light"] .work-end-card .we-pill { border-color: rgba(18,19,13,.4); }
/* thin accent LINES + dots on light surfaces — ink-mixed so they read */
html[data-theme="light"] .overline::before,
html[data-theme="light"] .footer .overline::after,
html[data-theme="light"] .facts-dot,
html[data-theme="light"] .os-dots span.on { background: var(--accent-text); }
html[data-theme="light"] .os-bright input { accent-color: var(--accent-text); }
html[data-theme="light"] .os-contact-btn:hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .tool-pill:hover,
html[data-theme="light"] .footer-socials a:hover { border-color: var(--accent-text); }
html[data-theme="light"] .wf-corner { border-color: color-mix(in srgb, var(--pac, var(--accent)) 55%, var(--ink)); }
html[data-theme="light"] .os-widget { border-color: color-mix(in srgb, var(--accent-text) 35%, transparent); }
html[data-theme="light"] .os-proj-arrow { color: var(--accent-text); }
html[data-theme="light"] .pulse { background: var(--accent-text); }
html[data-theme="light"] .cursor-ring { background: color-mix(in srgb, var(--accent-text) 80%, transparent); }
html[data-theme="light"] .cursor-ring.is-hover { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
html[data-theme="light"] .cursor-ring.is-label { background: var(--accent-text); color: #F1EFE8; }
html[data-theme="light"] .bcard-icon { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
html[data-theme="light"] .bcard-glow { background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(140,170,20,.12), transparent 65%); }
html[data-theme="light"] .float-chip { background: rgba(241,239,232,.85); }
html[data-theme="light"] .float-chip .mono { color: var(--accent-text); }
html[data-theme="light"] .scroll-progress > div { background: var(--accent-text); }
html[data-theme="light"] .hero-scrollhint-line::after { background: var(--accent-text); }
html[data-theme="light"] .about-photo-cap { background: rgba(10,10,10,.5); color: #EDEBE4; }
html[data-theme="light"] .qcard, html[data-theme="light"] .bcard { box-shadow: 0 18px 44px -24px rgba(20,20,15,.22); }
html[data-theme="light"] .bcard-vis { opacity: .55; }
html[data-theme="light"] .vis-motion path, html[data-theme="light"] .vis-rocket .arc { stroke: var(--accent-text); }
html[data-theme="light"] .vis-layers i, html[data-theme="light"] .vis-chip i, html[data-theme="light"] .vis-pad i { background: var(--accent-text); border-color: var(--accent-text); }
html[data-theme="light"] .vis-rocket .dot { fill: var(--accent-text); }
html[data-theme="light"] .bcard:hover { box-shadow: 0 30px 60px -30px rgba(20,20,15,.3); }
/* light mode — about & quotes upgrades */
html[data-theme="light"] .about-photo-frame { border-color: color-mix(in srgb, var(--accent-text) 42%, var(--line)); }
html[data-theme="light"] .about-facts, html[data-theme="light"] .qsummary { box-shadow: 0 18px 44px -24px rgba(20,20,15,.2); }
html[data-theme="light"] .about-body p:first-of-type::first-letter { color: var(--accent-text); }
html[data-theme="light"] .j-fill { background: linear-gradient(180deg, var(--accent-text), color-mix(in srgb, var(--accent-text) 35%, transparent)); }
html[data-theme="light"] .about-journey li.in .j-node { background: var(--accent-text); border-color: var(--accent-text); }
html[data-theme="light"] .qs-stars i, html[data-theme="light"] .qcard-stars i { color: var(--accent-text); }
html[data-theme="light"] .qs-bar i { background: var(--accent-text); }
html[data-theme="light"] .qcard-mark { color: var(--accent-text); }
html[data-theme="light"] .qcard-vbadge { color: var(--accent-text); border-color: var(--accent-text); }
html[data-theme="light"] .qcard-glow { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(140,170,20,.13), transparent 65%); }
html[data-theme="light"] .qcard:hover { box-shadow: 0 30px 60px -32px rgba(20,20,15,.28); }
/* qsummary is permanently dark — the light-mode accent swaps would turn
   lime into olive inside it, so they get reverted back to full accent */
html[data-theme="light"] .qsummary .qs-stars i,
html[data-theme="light"] .qsummary .qs-sweep,
html[data-theme="light"] .qsummary .qs-cta:hover { color: var(--accent); }
html[data-theme="light"] .qsummary .pulse { background: var(--accent); }

/* ═══ light mode — the mini-OS follows the theme ═══ */
html[data-theme="light"] .device-screen { background: #ECE9E0; }
html[data-theme="light"] .os-wallpaper {
  background:
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
    radial-gradient(circle at 15% 45%, rgba(124,140,255,.13), transparent 48%),
    radial-gradient(circle at 70% 90%, rgba(255,92,56,.11), transparent 45%),
    linear-gradient(165deg, #F4F1E8 0%, #E9E6DC 55%, #EDE9DF 100%);
}
html[data-theme="light"] .os-statusbar { color: #1C1C19; }
html[data-theme="light"] .os-status-icons { color: #1C1C19; }
html[data-theme="light"] .os-widget {
  background: rgba(255,255,255,.55);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
html[data-theme="light"] .os-widget-time, html[data-theme="light"] .os-appbody h4,
html[data-theme="light"] .os-proj-name, html[data-theme="light"] .os-shade-time,
html[data-theme="light"] .os-lock-time { color: #1C1C19; }
html[data-theme="light"] .os-widget-date, html[data-theme="light"] .os-app-label,
html[data-theme="light"] .os-appbar-title, html[data-theme="light"] .os-appbody p,
html[data-theme="light"] .os-proj-cat, html[data-theme="light"] .os-lock-date,
html[data-theme="light"] .os-lock-hint, html[data-theme="light"] .os-shade-date,
html[data-theme="light"] .os-bright { color: #565449; }
html[data-theme="light"] .os-widget-tag, html[data-theme="light"] .os-proj-arrow,
html[data-theme="light"] .os-lock-chevron { color: var(--accent-text); }
html[data-theme="light"] .os-app-icon { box-shadow: 0 6px 14px rgba(0,0,0,.14); }
html[data-theme="light"] .os-dock { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .os-dock-icon { background: rgba(255,255,255,.65); border-color: rgba(0,0,0,.08); color: #1C1C19; }
html[data-theme="light"] .os-window { background: #F4F2EA; color: #1C1C19; }
html[data-theme="light"] .os-appbar { border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .os-back { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); color: #1C1C19; }
html[data-theme="light"] .os-back:hover { background: rgba(0,0,0,.12); }
html[data-theme="light"] .os-chip { border-color: rgba(0,0,0,.2); color: #565449; }
html[data-theme="light"] .os-proj { border-color: rgba(0,0,0,.1); background: rgba(255,255,255,.6); }
html[data-theme="light"] .os-proj:hover { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
html[data-theme="light"] .os-proj::before { background: color-mix(in srgb, var(--pac, var(--accent)) 55%, var(--ink)); }
html[data-theme="light"] .os-widget-pill { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .os-hero { border-color: rgba(0,0,0,.12); background: linear-gradient(150deg, rgba(255,255,255,.6), rgba(0,0,0,.03)); }
html[data-theme="light"] .os-hero-badge i, html[data-theme="light"] .os-widget-pill i { background: var(--accent-text); box-shadow: 0 0 8px color-mix(in srgb, var(--accent-text) 50%, transparent); }
html[data-theme="light"] .os-widget-tag { color: var(--accent-text); }
html[data-theme="light"] .os-swatch { border-color: rgba(0,0,0,.15); }
html[data-theme="light"] .os-swatch.sel { border-color: #1C1C19; }
html[data-theme="light"] .os-lock { background: linear-gradient(180deg, rgba(244,241,232,.3), rgba(244,241,232,.82) 75%, rgba(244,241,232,.95)); color: #1C1C19; }
html[data-theme="light"] .os-shade { background: rgba(243,241,234,.92); border-bottom-color: rgba(0,0,0,.08); }
html[data-theme="light"] .os-tile { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.1); color: #565449; }
html[data-theme="light"] .os-switch { background: rgba(0,0,0,.18); }
html[data-theme="light"] .os-switch.on { background: var(--accent-text); }
html[data-theme="light"] .os-tile.on { background: var(--accent); color: #111; }
html[data-theme="light"] .os-gesture-bar { background: rgba(0,0,0,.3); }
html[data-theme="light"] .os-shade-grab { background: rgba(0,0,0,.3); }
html[data-theme="light"] .os-dots span { background: rgba(0,0,0,.18); }
html[data-theme="light"] .os-dots span.on { background: var(--accent-text); }

/* ── theme transition: view-transition snapshot + circle wipe fallback ── */
::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: 2; }

.theme-wipe {
  position: fixed; inset: -2vmax; z-index: 4000; pointer-events: none;
  clip-path: circle(0px at var(--wx, 50%) var(--wy, 40px));
  transition: clip-path .6s var(--ease-swift);
}
.theme-wipe.run { clip-path: circle(160vmax at var(--wx, 50%) var(--wy, 40px)); }
.theme-wipe.out { opacity: 0; transition: opacity .5s ease .05s; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); }

/* ── cursor ring — trails the native pointer; it never replaces it ── */
@media (hover: hover) and (pointer: fine) {
  .cursor-ring {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; z-index: 2999; pointer-events: none;
    width: 10px; height: 10px; border-radius: 50%;
    border: 1.5px solid transparent;
    background: color-mix(in srgb, var(--accent) 80%, transparent);
    transform: translate(-50%, -50%);
    opacity: 0; /* revealed on first pointer move — no corner flash */
    will-change: transform;
    transition: width .22s var(--ease-out), height .22s var(--ease-out),
                background .22s, border-color .22s, opacity .18s,
                scale .22s var(--ease-out);
    font-family: var(--font-mono); font-size: 9px; font-weight: 500;
    letter-spacing: .12em; color: var(--accent-ink); text-transform: uppercase;
  }
  /* label text snaps in/out with the pill state — never lingers mid-shrink */
  .cursor-ring #cursor-label { opacity: 0; transition: opacity .1s; }
  .cursor-ring.is-label #cursor-label { opacity: 1; }
  .cursor-ring.is-visible { opacity: 1; }
  .cursor-ring.is-hover {
    width: 40px; height: 40px;
    border-color: var(--accent);
    background: transparent;
  }
  .cursor-ring.is-label {
    width: 88px; height: 88px;
    background: var(--accent); border-color: var(--accent);
  }
}

/* ── scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1500;
  background: transparent;
}
.scroll-progress > div {
  height: 100%; width: 0%; background: var(--accent);
  transition: width .1s linear;
}

/* ═══════════ BOOT ═══════════ */
.boot {
  position: fixed; inset: 0; z-index: 5000;
  background: #060607;
  display: flex; align-items: center; justify-content: center;
  transition: clip-path 1s var(--ease-swift);
  clip-path: inset(0 0 0 0);
  /* a terminal is always dark — the palette below is pinned so the
     light theme can't wash the log lines out */
  color-scheme: dark;
}
.boot.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.boot-term { width: min(560px, 84vw); font-family: var(--font-mono); }
.boot-lines { min-height: 180px; font-size: 12px; line-height: 2; color: #B3B0A6; }
.boot-lines .ok { color: var(--accent); }
.boot-lines .cmd { color: #EDEBE4; }
.boot-progress {
  margin-top: 28px; height: 2px; background: rgba(237, 235, 228, .10); overflow: hidden;
}
.boot-progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .3s ease; }
.boot-pct {
  margin-top: 10px; font-size: 11px; letter-spacing: .2em;
  color: #767370; text-align: right;
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px); height: var(--nav-h);
  transition: transform .5s var(--ease-out), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.02em;
}
.nav-logo-dot { color: var(--accent); }
.nav-status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-dim); text-transform: uppercase;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px;
}
.nav-status .pulse, .qs-head .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, .5); }
  70% { box-shadow: 0 0 0 9px rgba(212, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); }
}
.nav-cluster { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 18px; font-size: 14px; font-weight: 400;
  color: var(--ink-dim); border-radius: 100px;
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a::before {
  content: ""; position: absolute; inset: 0; border-radius: 100px;
  background: var(--bg-3); opacity: 0; transform: scale(.85);
  transition: opacity .3s, transform .35s var(--ease-out); z-index: -1;
}
.nav-links a:hover::before, .nav-links a.is-active::before { opacity: 1; transform: scale(1); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .3s, color .3s, transform .4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle .tt-icon { width: 17px; height: 17px; position: absolute; transition: transform .5s var(--ease-swift), opacity .3s; }
.theme-toggle .tt-sun { transform: translateY(150%); opacity: 0; }
.theme-toggle .tt-moon { transform: none; opacity: 1; }
html[data-theme="light"] .theme-toggle .tt-sun { transform: none; opacity: 1; }
html[data-theme="light"] .theme-toggle .tt-moon { transform: translateY(-150%); opacity: 0; }

/* mobile dock */
.dock {
  display: none;
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 1500; gap: 4px; padding: 6px;
  background: rgba(18, 18, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 10px; font-family: var(--font-mono); letter-spacing: .06em;
  color: var(--ink-dim); text-transform: uppercase;
  transition: color .25s, background .25s;
}
.dock a svg { width: 17px; height: 17px; }
.dock a.is-active { color: var(--accent-ink); background: var(--accent); }

/* ═══════════ SHARED SECTION KIT ═══════════ */
main { position: relative; z-index: 1; }
section, .footer { position: relative; }
.overline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.overline::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.section-head {
  padding: 0 clamp(20px, 5vw, 72px);
  margin: 0 auto clamp(44px, 7vw, 88px);
  max-width: 1440px;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 7.5vw, 110px);
  line-height: .95; letter-spacing: -0.03em; margin-top: 18px;
}
.section-title .it {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.01em;
}
.section-desc {
  margin-top: 22px; max-width: 520px; font-size: 15px; line-height: 1.7;
  color: var(--ink-dim);
}

/* reveal primitives (JS toggles .in) */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.rv-mask > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.rv.in .rv-mask > span, .rv-mask.in > span { transform: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { transform: translateY(-3px); }
.btn-solid svg { transition: transform .35s var(--ease-out); }
.btn-solid:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost .mono { font-size: 12.5px; }

/* ═══════════ HERO ═══════════ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) clamp(20px, 5vw, 72px) 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-orb-1 {
  width: 46vw; height: 46vw; right: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(212,255,63,.16), transparent 65%);
}
.hero-orb-2 {
  width: 34vw; height: 34vw; left: -10vw; bottom: -8vw;
  background: radial-gradient(circle, rgba(255,92,56,.10), transparent 65%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 20%, transparent 75%);
  opacity: .5;
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1560px; margin: 0 auto; width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 30px;
}
.hero-eyebrow-bracket { color: var(--accent); }

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: .92; letter-spacing: -0.035em;
}
.hero-title .hline { display: block; overflow: hidden; }
.hero-title .hline > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease-out); }
.hero-title .hline > span.in { transform: none; }
.hero-title .it {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: 0; padding-right: .08em;
}

.hero-sub {
  margin-top: 30px; max-width: 480px;
  font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.65; color: var(--ink-dim);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-stats {
  display: flex; gap: clamp(24px, 3.4vw, 56px); margin-top: 58px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hstat { display: flex; flex-direction: column; gap: 6px; }
.hstat-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.02em;
}
.hstat-num em { font-style: normal; color: var(--accent); }
.hstat-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); max-width: 130px; line-height: 1.5;
}

.hero-scrollhint {
  position: absolute; left: clamp(20px, 5vw, 72px); bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-scrollhint-line { width: 60px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scrollhint-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: hint-slide 2.4s var(--ease-swift) infinite;
}
@keyframes hint-slide { 60%, 100% { transform: translateX(100%); } }

/* ═══════════ THE DEVICE (mini-OS) ═══════════ */
.hero-device { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.device-tilt { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }

.device {
  position: relative; width: clamp(262px, 24vw, 316px); aspect-ratio: 300/630;
  transform: rotate(4deg);
}
.device-frame {
  position: absolute; inset: 0; border-radius: 46px;
  background: linear-gradient(160deg, #2a2b2e, #101012 40%, #050506);
  padding: 10px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.10),
    inset 0 0 0 1.5px rgba(0,0,0,.9),
    0 60px 110px -30px rgba(0,0,0,.85),
    0 24px 48px -18px rgba(0,0,0,.7);
}
.device-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden;
  background: linear-gradient(165deg, #17181c 0%, #0d0e11 55%, #141317 100%);
  display: flex; flex-direction: column;
}
.device-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: #000; z-index: 60;
  pointer-events: none;
}
.device-glare {
  position: absolute; inset: 0; border-radius: 46px; pointer-events: none; z-index: 80;
  background: linear-gradient(125deg, rgba(255,255,255,.10) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.04) 100%);
}
.device-btn { position: absolute; background: #2a2b2e; border-radius: 3px; }
.device-btn-power { right: -2.5px; top: 180px; width: 3px; height: 84px; }
.device-btn-vol { left: -2.5px; top: 140px; width: 3px; height: 120px; }

/* live wallpaper */
.os-wallpaper {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 80% 12%, rgba(212,255,63,.16), transparent 42%),
    radial-gradient(circle at 15% 45%, rgba(124,140,255,.14), transparent 48%),
    radial-gradient(circle at 70% 90%, rgba(255,92,56,.10), transparent 45%),
    linear-gradient(165deg, #17181c 0%, #0d0e11 55%, #141317 100%);
  transition: transform .3s ease-out;
  will-change: transform;
}

/* status bar */
.os-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 10px; z-index: 55;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink);
  /* pull-down gesture zone — the page must not steal the drag */
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.os-status-icons { display: flex; gap: 6px; align-items: center; opacity: .8; }
.os-status-icons .os-ic { display: inline-flex; }
.os-status-icons .os-ic.is-off { display: none; }
/* unread badge — the Contact app's little red dot */
.os-app { position: relative; }
.os-dock-icon { position: relative; }
.os-badge {
  position: absolute; top: -4px; right: -4px; z-index: 3;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 9px;
  background: #FF3B30; color: #fff;
  font: 600 9px/15px var(--font-mono); text-align: center; font-style: normal;
  box-shadow: 0 0 0 2px var(--bg-2); pointer-events: none;
}

/* home */
.os-home {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 44px 16px 12px;
  transition: opacity .35s, transform .45s var(--ease-out), filter .35s;
}
.os-home.is-under { opacity: 0; transform: scale(.92); filter: blur(4px); pointer-events: none; }

.os-widget {
  margin: 26px 4px 18px; padding: 18px 16px 14px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(212,255,63,.14), rgba(212,255,63,.04));
  border: 1px solid rgba(212,255,63,.18);
}
.os-widget-time { font-family: var(--font-display); font-weight: 500; font-size: 42px; letter-spacing: -.03em; line-height: 1; }
.os-widget-date { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-dim); text-transform: uppercase; margin-top: 6px; }
.os-widget-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.os-widget-pill {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 1; min-width: 0;
  margin-top: 6px; padding: 4px 9px; border-radius: 100px;
  max-width: 52%;
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
}
.os-widget-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-widget-pill i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.os-widget-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--accent); margin-top: 12px; text-transform: uppercase; }

.os-grid {
  /* 6 apps → two balanced rows of three */
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px;
  padding: 8px 14px; flex: 1; align-content: start;
}
.os-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.os-app-icon {
  width: 46px; height: 46px; border-radius: 14px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.35);
}
/* launcher gloss — the icon reads as a real app tile */
.os-app-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.24), transparent 46%);
}
.os-app-icon svg {
  width: 22px; height: 22px; position: relative; z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.22));
}
.os-app:active .os-app-icon { transform: scale(.88); }
.os-app-label { font-size: 8.5px; font-family: var(--font-mono); color: var(--ink-dim); letter-spacing: .02em; text-align: center; }

.os-dock {
  display: flex; justify-content: center; gap: 26px;
  padding: 10px; margin: 0 4px; border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.os-dock-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s var(--ease-out);
}
.os-dock-icon svg { width: 20px; height: 20px; }
.os-dock-icon:active { transform: scale(.88); }

.os-gesture-bar {
  width: 96px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.35); margin: 10px auto 4px;
}

/* page dots — single page, so hidden (keep markup for a future second page) */
.os-dots { display: none; gap: 6px; justify-content: center; padding: 4px 0 8px; }
.os-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.22); }
.os-dots span.on { background: var(--accent); width: 14px; border-radius: 4px; transition: all .3s var(--ease-out); }

/* ═══ notification shade ═══ */
.os-shade {
  position: absolute; top: 0; left: 0; right: 0; z-index: 65;
  transform: translateY(-102%);
  transition: transform .55s var(--ease-swift);
  background: rgba(10,10,13,.92);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-radius: 0 0 26px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding: 52px 16px 10px;
  /* swipe-up-to-dismiss is a JS gesture — the page must not steal it */
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.os-shade.open { transform: translateY(0); }
.os-shade-time { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -.03em; }
.os-shade-date { font-size: 9.5px; letter-spacing: .12em; color: var(--ink-dim); text-transform: uppercase; margin-top: 2px; }
.os-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.os-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05); color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em;
  cursor: pointer; transition: all .25s;
}
.os-tile-ic { font-size: 14px; display: flex; }
.os-tile-ic svg { display: block; }
.os-tile.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* notification cards — notifications live above the quick tiles, like iOS */
.os-notifs { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.os-notif {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.07); color: var(--ink);
  font-family: var(--font-body); text-align: left; cursor: pointer;
  transition: background .2s, transform .15s var(--ease-out);
}
.os-notif:hover { background: rgba(255,255,255,.11); }
.os-notif:active { transform: scale(.97); }
.os-notif-ic { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.os-notif-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.os-notif-txt b { font-size: 10.5px; font-weight: 600; }
.os-notif-txt i { font-style: normal; font-size: 9.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-notif-time { font-size: 8px; color: var(--ink-faint); align-self: flex-start; margin-top: 2px; }

.os-bright { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 9px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .1em; }
/* two-row layout — label + % readout on top, full-width slider below */
.os-bright > span:first-child { flex: 1; }
.os-bright input[type="range"] {
  flex: 0 0 100%; order: 3; margin: 4px 0 0; appearance: none; -webkit-appearance: none;
  height: 26px; background: transparent; cursor: pointer;
}
.os-bright input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); }
.os-bright input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 0; margin-top: -7px; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.os-bright input[type="range"]::-moz-range-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); }
.os-bright input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }
.os-bright-val { width: 30px; text-align: right; color: var(--ink); font-size: 9.5px; flex-shrink: 0; }
.os-shade-grab { width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); margin: 10px auto 0; }

/* ═══ lock screen ═══ */
.os-lock {
  position: absolute; inset: 0; z-index: 58;
  display: flex; flex-direction: column; align-items: center;
  padding: 90px 20px 26px;
  background: linear-gradient(180deg, rgba(13,14,17,.25) 0%, rgba(13,14,17,.72) 78%, rgba(13,14,17,.9) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform .65s var(--ease-swift), opacity .5s;
  cursor: grab; touch-action: none; user-select: none;
}
.os-lock.unlocking { transform: translateY(-104%); opacity: 0; pointer-events: none; }
.os-lock-time { font-family: var(--font-display); font-weight: 500; font-size: 58px; letter-spacing: -.04em; line-height: 1; margin-top: 26px; }
.os-lock-date { font-size: 9.5px; letter-spacing: .16em; color: var(--ink-dim); text-transform: uppercase; margin-top: 8px; }
.os-lock-hint {
  margin-top: auto; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.os-lock-chevron { color: var(--accent); font-size: 15px; animation: lock-bounce 1.8s ease-in-out infinite; }
@keyframes lock-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* app windows */
.os-windows { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.os-window {
  position: absolute; inset: 0; border-radius: 38px;
  background: #101114;
  display: flex; flex-direction: column;
  transform: translateY(104%) scale(.985);
  transition: transform .62s cubic-bezier(.3, 1.28, .42, 1);
  pointer-events: auto; overflow: hidden;
}
.os-window.open { transform: translateY(0) scale(1); }
.os-window.dragging { transition: none; }

.os-appbar {
  display: flex; align-items: center; gap: 12px;
  padding: 46px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07);
  touch-action: none; cursor: grab;
}
.os-back {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06);
  color: var(--ink); font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.os-back:hover { background: rgba(255,255,255,.16); }
.os-back:active { transform: scale(.88); }
.os-appbar-ic {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.os-appbar-ic svg { width: 13px; height: 13px; }
.os-appbar-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.os-appbody {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: pan-y;
  /* bottom fade — the scroll affordance */
  -webkit-mask-image: linear-gradient(180deg, black calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(180deg, black calc(100% - 24px), transparent 100%);
}
.os-appbody::-webkit-scrollbar { display: none; }
.os-appbody h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
/* profile hero — the About app leads with the human */
.os-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
}
.os-hero-photo {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  object-fit: cover; border: 1px solid var(--line-strong);
}
.os-hero-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.os-hero-role { font-size: 8px; letter-spacing: .09em; color: var(--ink-faint); text-transform: uppercase; margin-top: 3px; }
.os-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim);
}
.os-hero-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.os-appbody p { font-size: 11.5px; line-height: 1.65; color: var(--ink-dim); margin-bottom: 10px; }
.os-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.os-chip {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 100px; border: 1px solid var(--line-strong);
  color: var(--ink-dim); text-transform: uppercase;
}
.os-proj {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px;
  border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px;
  cursor: pointer; transition: border-color .25s, background .25s;
}
/* per-project accent spine — the list is color-coded like the deck */
.os-proj::before {
  content: ""; width: 3px; border-radius: 3px; align-self: stretch; flex-shrink: 0;
  background: var(--pac, var(--accent)); opacity: .85;
}
.os-proj:hover { border-color: var(--accent); background: rgba(212,255,63,.05); }
.os-proj img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.os-proj-name { font-size: 12px; font-weight: 500; }
.os-proj-cat { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.os-proj-arrow {
  margin-left: auto; color: var(--accent);
  display: flex; align-items: center;
  transition: transform .3s var(--ease-out);
}
.os-proj:hover .os-proj-arrow { transform: translateX(2px); }

/* gallery feed — Pinterest-style masonry inside the app's vertical scroll */
.os-gal { columns: 2; column-gap: 8px; padding-bottom: 4px; }
.os-gal img { width: 100%; height: auto; border-radius: 14px; display: block; margin-bottom: 8px; break-inside: avoid; }

.os-contact-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink);
  font-size: 11.5px; font-family: var(--font-body); cursor: pointer; text-align: left;
  transition: border-color .25s;
}
.os-contact-btn:hover { border-color: var(--accent); }
.os-contact-btn .mono { font-size: 9px; color: var(--ink-faint); }

.os-term {
  font-family: var(--font-mono); font-size: 10px; line-height: 1.9;
  white-space: pre-wrap; word-break: break-word;
  background: #0D0E11; color: #B9B7AE;
  border-radius: 12px; padding: 14px; border: 1px solid rgba(0,0,0,.2);
}
/* live shell — edge-to-edge terminal inside the app window */
.os-shell { display: flex; flex-direction: column; min-height: 100%; margin: -16px; }
.os-shell-out {
  flex: 1; overflow-y: auto; padding: 14px; scrollbar-width: none;
  font-family: var(--font-mono); font-size: 10px; line-height: 1.9; color: #B9B7AE;
  background: #0D0E11;
}
.os-shell-out::-webkit-scrollbar { display: none; }
.os-line { white-space: pre-wrap; word-break: break-word; }
.os-line b, .os-line .k { color: var(--accent); font-weight: 500; }
.os-line .c { color: var(--ink-faint); }
.os-line .s { color: #8FD0FF; }
.os-ps { color: var(--accent); font-family: var(--font-mono); }
.os-shell-in { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #0D0E11; border-top: 1px solid rgba(255,255,255,.08); }
.os-shell-cmd {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: #EDEBE4; font-family: var(--font-mono); font-size: 16px; /* ≥16px — iOS won't zoom */
}

/* about app — stat strip + fact rows + CTA */
.os-statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.os-stat { padding: 10px 6px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); text-align: center; }
.os-stat b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--accent); }
.os-stat span { display: block; margin-top: 4px; font-size: 7.5px; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.os-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.os-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 11px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); font-size: 10px; }
.os-fact .mono { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); flex-shrink: 0; }
.os-fact b { font-weight: 500; color: var(--ink); text-align: right; }
.os-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 13px;
  border-radius: 14px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 11.5px;
  transition: transform .2s var(--ease-out);
}
.os-cta:active { transform: scale(.97); }

/* settings — toggle switch */
.os-setrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; margin-top: 10px; border-radius: 14px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: 11px; color: var(--ink);
}
.os-switch {
  position: relative; flex-shrink: 0; width: 42px; height: 24px;
  border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); transition: background .25s;
}
.os-switch i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  transition: transform .28s var(--ease-out);
}
.os-switch.on { background: var(--accent); }
.os-switch.on i { transform: translateX(18px); }
.os-term .k { color: var(--accent); }
.os-term .s { color: #ffb86c; }
.os-term .c { color: var(--ink-faint); }

.os-swatches { display: flex; gap: 10px; margin: 14px 0; }
.os-swatch {
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; transition: transform .3s var(--ease-out), border-color .3s;
}
.os-swatch.sel { border-color: var(--ink); transform: scale(1.12); }

/* floating chips around device */
.float-chip {
  position: absolute; padding: 9px 15px; border-radius: 100px;
  background: rgba(18,18,20,.82); border: 1px solid var(--line);
  backdrop-filter: blur(12px); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink); text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 16px 34px rgba(0,0,0,.4);
  pointer-events: none; /* decorative — must never block screen gestures */
}
.float-chip .mono { color: var(--accent); }
.float-chip-1 { top: 16%; left: -4%; animation: floaty 5.5s ease-in-out infinite; }
.float-chip-2 { bottom: 30%; right: -6%; animation: floaty 6.5s ease-in-out infinite reverse; }
.float-chip-3 { bottom: 8%; left: 2%; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.01em;
  color: var(--ink-dim); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ WORK — sticky deck ═══════════ */
.work { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
/* lane filter — floating sticky capsule */
.work-tabs {
  position: sticky; top: calc(var(--nav-h) + 10px); z-index: 60;
  display: flex; justify-content: center;
  padding: 0 clamp(20px, 5vw, 72px);
  margin-bottom: clamp(34px, 5vw, 60px);
  pointer-events: none;
}
.wtabs-in {
  pointer-events: auto;
  display: inline-flex; gap: 5px; padding: 6px;
  border-radius: 100px; border: 1px solid var(--line);
  /* more opaque bg + lighter blur — far cheaper to composite while scrolling */
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.5);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.wtabs-in::-webkit-scrollbar { display: none; }
.wtab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 18px; border: 0; border-radius: 100px;
  background: transparent; color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s, background .3s;
}
.wtab:hover { color: var(--ink); }
.wtab.is-on { background: var(--accent); color: var(--accent-ink); }
.wtab-n { font-size: 9px; opacity: .6; }
.wtab.is-on .wtab-n { opacity: .8; }

.work-stack {
  --peek-h: 52px;
  position: relative;
  padding: 0 clamp(20px, 5vw, 72px) 3vh;
  transition: opacity .28s ease, transform .28s var(--ease-out);
}
.work-stack.is-switching { opacity: 0; transform: translateY(26px); }
.work-empty {
  max-width: 1180px; margin: 0 auto;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(40px, 6vw, 70px) 30px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.work-progress { display: none; }
/* deck index rail — sticky zero-height wrapper, overlays layout-free */
.deck-rail-wrap { position: sticky; top: 0; height: 0; z-index: 65; }
.deck-rail {
  position: absolute; left: clamp(10px, 1.6vw, 26px); top: 50vh;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.dr-tick {
  width: 2px; height: 14px; border: 0; padding: 0; flex-shrink: 0;
  background: var(--line-strong); border-radius: 2px;
  transition: height .3s var(--ease-out), background .3s;
}
.dr-tick:hover { background: var(--ink-dim); }
.dr-tick.on {
  height: 32px; background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.dr-num {
  margin-top: 12px; writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em;
  color: var(--ink-faint); white-space: nowrap;
}
@media (max-width: 1100px) { .deck-rail-wrap { display: none; } }
.wcard {
  --scrim-o: 0;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  display: flex; flex-direction: column;
  height: min(74vh, 640px);
  max-width: 1180px;
  margin: 0 auto clamp(64px, 15vh, 150px);
  border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; will-change: transform;
  box-shadow:
    0 -18px 44px -22px rgba(0,0,0,.38),
    0 34px 64px -30px rgba(0,0,0,.35);
  transition: border-color .4s;
}
/* veil driven by the deck scroll tween — recedes toward the page bg,
   so covered cards fade into the theme instead of flashing black */
.wcard::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  background: var(--bg);
  opacity: var(--scrim-o, 0); pointer-events: none;
}
.wcard:hover { border-color: var(--line-strong); }

/* peek bar — file-tab header, the card's index strip */
.wcard-peek {
  position: relative;
  height: var(--peek-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
.wcard-peek::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--pac, var(--accent));
  transition: width .6s var(--ease-out);
}
.wcard.is-live .wcard-peek::after { width: 100%; }
.wp-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--pac, var(--accent-text)); flex-shrink: 0;
}
.wp-title {
  font-family: var(--font-display); font-weight: 500; font-size: 15.5px;
  letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.wp-meta {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%;
}
.wcard-main { display: flex; flex: 1; min-height: 0; }
.wcard--alt .wcard-main { flex-direction: row-reverse; }

.wcard-media {
  position: relative; flex: 1.08; min-width: 0;
  overflow: hidden; background: var(--bg-3);
}
.wcard-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: saturate(.92);
  transition: filter .6s;
}
.wcard:hover .wcard-media img { filter: saturate(1.05); }
.wcard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.2), transparent 32%, transparent 72%, rgba(11,11,12,.34));
}
.wcard-accent {
  position: absolute; top: 21px; right: 20px; z-index: 2;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pac, var(--accent)); box-shadow: 0 0 14px var(--pac, var(--accent));
}

/* ── media frames — one per lane ── */
.wframe { position: absolute; inset: 0; }

/* stage illustration line color — pac-tinted, ink-mixed in light mode */
.wframe-app, .wframe-folio, .wcard[data-kind="web"] .wcard-media {
  --stage-line: color-mix(in srgb, var(--pac, var(--accent)) 30%, transparent);
}
html[data-theme="light"] .wframe-app, html[data-theme="light"] .wframe-folio,
html[data-theme="light"] .wframe-game,
html[data-theme="light"] .wcard[data-kind="web"] .wcard-media {
  --stage-line: color-mix(in srgb, var(--pac, var(--accent)) 42%, var(--ink) 18%);
}

/* APP — bezel phone broadcasting on a signal-field stage */
.wframe-app {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 80% at 50% -12%, color-mix(in srgb, var(--pac, var(--accent)) 24%, transparent), transparent 62%),
    radial-gradient(90% 56% at 50% 108%, color-mix(in srgb, var(--pac, var(--accent)) 14%, transparent), transparent 70%),
    linear-gradient(200deg, color-mix(in srgb, var(--pac, var(--accent)) 8%, var(--bg-3)) 0%, var(--bg-3) 58%);
}
/* concentric rings emanate behind the phone */
.wframe-app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 46%,
    transparent 0 44px, var(--stage-line) 44px 45.5px);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent 18%, black 55%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 46%, transparent 18%, black 55%, transparent 80%);
}
.wf-phone {
  position: relative; height: 86%; aspect-ratio: 300/620;
  padding: 8px; border-radius: 36px;
  background: linear-gradient(160deg, #2a2b2e, #0d0e10 45%, #050506);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.1), 0 40px 70px -24px rgba(0,0,0,.75);
  transition: transform .8s var(--ease-out);
}
.wcard:hover .wf-phone { transform: translateY(-6px) rotate(-1.2deg); }
.wf-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.wf-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wf-island {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 18px; border-radius: 10px; background: #000; z-index: 2;
}

/* WEB — browser window floating on a blueprint desk */
.wcard[data-kind="web"] .wcard-media {
  background:
    radial-gradient(110% 80% at 50% -10%, color-mix(in srgb, var(--pac, var(--accent)) 18%, transparent), transparent 64%),
    var(--bg-3);
}
/* blueprint desk — grid visible in the margins around the floating window */
.wcard[data-kind="web"] .wcard-media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(var(--stage-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, black 55%, transparent 88%);
  mask-image: radial-gradient(120% 120% at 50% 50%, black 55%, transparent 88%);
  pointer-events: none;
}
.wframe-web {
  inset: clamp(18px, 3.4vw, 44px);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 66px -26px rgba(0,0,0,.6);
  transition: transform .8s var(--ease-out);
}
.wcard:hover .wframe-web { transform: translateY(-5px); }
.wf-chrome {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.wf-chrome i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.wf-chrome i:nth-child(1) { background: #ff5f57; }
.wf-chrome i:nth-child(2) { background: #febc2e; }
.wf-chrome i:nth-child(3) { background: #28c840; }
.wf-url {
  flex: 1; margin-left: 10px; padding: 5px 12px;
  border-radius: 100px; background: var(--bg); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  color: var(--ink-faint); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-view { flex: 1; overflow: hidden; }
.wf-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* GAME — landscape phone, the way the games actually ship */
.wframe-game {
  display: flex; align-items: center; justify-content: center;
  --stage-line: color-mix(in srgb, var(--pac, var(--accent)) 30%, transparent);
  background:
    radial-gradient(100% 72% at 50% 30%, color-mix(in srgb, var(--pac, var(--accent)) 22%, transparent), transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--pac, var(--accent)) 8%, var(--bg-3)) 0%, var(--bg-3) 60%);
}
/* diagonal speed-line field behind the phone */
.wframe-game::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--stage-line) 0 1px, transparent 1px 26px);
  -webkit-mask-image: radial-gradient(72% 82% at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(72% 82% at 50% 50%, black 30%, transparent 80%);
}
.wf-gphone {
  position: relative; z-index: 1;
  width: min(88%, 640px); aspect-ratio: 620/300;
  padding: 8px; border-radius: 34px;
  background: linear-gradient(160deg, #2a2b2e, #0d0e10 45%, #050506);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.1), 0 40px 70px -24px rgba(0,0,0,.75);
  transition: transform .8s var(--ease-out);
}
.wcard:hover .wf-gphone { transform: translateY(-6px) rotate(.6deg); }
.wf-gscreen {
  position: relative; width: 100%; height: 100%;
  border-radius: 26px; overflow: hidden; background: #000;
}
.wf-gscreen img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.wf-gscreen::after { /* scanlines stay on the screen — the game identity */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  opacity: .4;
}
.wf-gcam {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a3d44 25%, #0a0b0d 70%);
}
/* portrait games — the same phone, upright; cam moves to the top bezel */
.wframe-game[data-o="p"] .wf-gphone { width: auto; height: 88%; aspect-ratio: 300/620; }
.wframe-game[data-o="p"] .wf-gcam { left: 50%; top: 11px; transform: translateX(-50%); }
.wf-corner {
  position: absolute; width: 18px; height: 18px; z-index: 2;
  border: 0 solid var(--pac, var(--accent)); opacity: .85;
}
.c-tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.c-tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.c-bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.c-br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.wf-hud {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: #EDEBE4;
  background: rgba(11,11,12,.55); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,.14);
}
.wf-hud::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pac, var(--accent));
  box-shadow: 0 0 8px var(--pac, var(--accent));
}

/* PORTFOLIO — laptop mockup — true 3D: tilted viewing angle, open lid,
   hinge, keyboard deck, and a perspective studio floor beneath */
.wframe-folio {
  display: flex; align-items: center; justify-content: center;
  perspective: 2200px;
  background:
    radial-gradient(85% 62% at 50% 26%, color-mix(in srgb, var(--pac, var(--accent)) 22%, transparent), transparent 66%),
    linear-gradient(180deg,
      var(--bg-3) 0%, var(--bg-3) 61%,
      color-mix(in srgb, var(--pac, var(--accent)) 14%, var(--line-strong)) 61.5%,
      color-mix(in srgb, var(--pac, var(--accent)) 6%, var(--bg-2)) 62%,
      color-mix(in srgb, var(--bg-2) 55%, var(--bg-3)) 100%);
}
/* perspective grid floor — the laptop stands in a real studio */
.wframe-folio::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  transform: perspective(360px) rotateX(56deg); transform-origin: top;
  background:
    repeating-linear-gradient(90deg, var(--stage-line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, var(--stage-line) 0 1px, transparent 1px 18px);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 30%, black 78%, transparent);
  pointer-events: none;
}
/* soft floor shadow beneath the machine */
.wframe-folio::after {
  content: ""; position: absolute; z-index: 0; left: 20%; right: 20%; bottom: 5%;
  height: 15%; pointer-events: none; filter: blur(7px);
  background: radial-gradient(50% 85% at 50% 15%, rgba(0,0,0,.5), transparent 72%);
}
.wf-laptop {
  position: relative; z-index: 1;
  width: min(84%, 470px);
  transform-style: preserve-3d;
  transform: rotateX(9deg); /* looked at slightly from above */
  transition: transform .8s var(--ease-out);
}
.wcard:hover .wf-laptop { transform: rotateX(9deg) translateY(-6px); }
/* lid slab — bezel, camera, recessed screen */
.wf-lap-lid {
  position: relative;
  transform-origin: bottom center;
  transform: rotateX(-4deg); /* screen leans a touch past vertical — laptop reads open */
  background: #17171b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px 16px 7px 7px;
  padding: 2.4% 2.4% 3.4%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 55px rgba(0,0,0,.5);
}
.wf-cam {
  position: absolute; top: 1.2%; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #3a3d44;
  box-shadow: inset 0 0 1.5px rgba(0,0,0,.9), 0 0 0 2px rgba(255,255,255,.03);
}
.wf-lap-screen {
  position: relative;
  aspect-ratio: 16/10.4; border-radius: 8px;
  overflow: hidden; background: #08090b;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.8), inset 0 0 20px rgba(0,0,0,.55);
}
.wf-lap-screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.055) 48%, transparent 56%);
}
.wf-lap-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* hinge — hairline seam straddling the lid/deck joint */
.wf-lap-hinge {
  position: absolute; left: .5%; right: .5%; top: calc(100% - 2px); z-index: 2;
  height: 4px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, #2e2e36, #101014);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
/* deck — full width at the hinge, flares via perspective, rotates toward the viewer */
.wf-lap-deck {
  position: absolute; left: 0; top: 99.4%; width: 100%; height: 62%;
  transform-origin: 50% 0; transform: rotateX(68deg);
  transform-style: preserve-3d;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #2a2b30, #1e1e22 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 10px 0 22px rgba(0,0,0,.32), inset -10px 0 22px rgba(0,0,0,.32), 0 30px 50px rgba(0,0,0,.5);
}
.wf-lap-front { /* slab's front face — rounded bottom chamfer */
  position: absolute; left: 0; top: 100%; width: 100%; height: 10px;
  transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #232329, #131317);
  border-radius: 0 0 16px 16px;
}
.wf-lap-sp { /* speaker grilles flanking the keyboard */
  position: absolute; top: 14%; bottom: 38%; width: 6%;
  background-image: radial-gradient(rgba(0,0,0,.55) 1px, transparent 1.4px);
  background-size: 4px 4px; border-radius: 6px; opacity: .75;
}
.wf-lap-sp.l { left: 2.2%; }
.wf-lap-sp.r { right: 2.2%; }
.wf-lap-keys { /* real keycap grid */
  position: absolute; top: 8%; left: 9.5%; right: 9.5%; height: 56%;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(5, 1fr);
  gap: 4.5%; padding: 1.6%;
  background: rgba(0,0,0,.18); border-radius: 12px;
}
.wf-lap-keys i {
  border-radius: 2.5px;
  background: linear-gradient(180deg, #32333a, #25262b);
  box-shadow: 0 1.5px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.wf-lap-pad {
  position: absolute; left: 50%; top: 68%; transform: translateX(-50%);
  width: 30%; height: 24%; border-radius: 6px;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 1px 4px rgba(0,0,0,.45);
}
.wf-lap-pwr { /* power dot top-right of the deck */
  position: absolute; top: 3%; right: 3.5%; width: 3.2%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #34353c, #1b1c20);
  box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.wf-lap-pwr::after {
  content: ""; position: absolute; inset: 26%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); border-bottom-color: transparent;
}

.wcard-body {
  flex: .92; position: relative;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3.2vw, 52px);
}
.wcard-feat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--pac) 75%, var(--ink));
}
.wcard-feat::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pac); box-shadow: 0 0 8px var(--pac);
}
.wcard-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 3.8vw, 58px); letter-spacing: -0.025em;
  margin-top: 12px; line-height: .98;
}
.wcard-desc {
  margin-top: 16px; font-size: 14.5px; line-height: 1.7; color: var(--ink-dim);
  max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wcard-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.wchip {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
}
.wcard-cta {
  margin-top: auto; padding-top: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.wcard-cta .mono {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim); transition: color .3s;
}
.wcard:hover .wcard-cta .mono { color: var(--accent-text); }
.wcard-cta-ic {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 15px; flex-shrink: 0;
  transition: background .35s, color .35s, border-color .35s, transform .45s var(--ease-out);
}
.wcard:hover .wcard-cta-ic {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); transform: rotate(-45deg);
}
/* giant ghost index behind the body */
.wcard-idx {
  position: absolute; right: 22px; bottom: 6px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(90px, 9vw, 148px); line-height: .82;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  opacity: .5; pointer-events: none; user-select: none;
}

/* final card — loud accent closer that stacks on top of the deck */
.work-end-card {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  height: min(74vh, 640px); max-width: 1180px; margin: 0 auto;
  border-radius: var(--radius); border: 0; overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(30px, 4.6vw, 60px); text-decoration: none;
  box-shadow: 0 -18px 44px -22px rgba(0,0,0,.38), 0 34px 64px -30px rgba(0,0,0,.35);
}
.work-end-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.2), transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(0,0,0,.18), transparent 55%);
}
.we-top {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; opacity: .72;
}
.work-end-card .big {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(46px, 7vw, 104px); letter-spacing: -.04em; line-height: .98;
  color: var(--accent-ink);
}
.work-end-card .big .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.we-bottom {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.we-pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; padding: 16px 26px; border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 55%, transparent);
  color: var(--accent-ink);
  transition: background .35s, color .35s;
}
.work-end-card:hover .we-pill { background: var(--accent-ink); color: var(--accent); }
.we-arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.work-end-card:hover .we-arrow { transform: rotate(-45deg); }
.we-hint {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; opacity: .6;
}

/* ═══════════ SERVICES / BENTO ═══════════ */
.services { padding: clamp(90px, 13vw, 180px) 0; }
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  padding: 0 clamp(20px, 5vw, 72px); max-width: 1560px; margin: 0 auto;
}
.bcard {
  grid-column: span 6;
  position: relative; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden;
  /* opacity included so the .rv reveal fades too — own list wins over .rv's */
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s, opacity .9s var(--ease-out);
  display: flex; flex-direction: column;
}
.bcard::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .55s var(--ease-out); z-index: 3;
}
.bcard:hover { border-color: var(--line-strong); transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.bcard:hover::before { width: 100%; }
.bcard:nth-child(4n+1) { grid-column: span 7; }
.bcard:nth-child(4n+2) { grid-column: span 5; }
.bcard:nth-child(4n+3) { grid-column: span 5; }
.bcard:nth-child(4n+4) { grid-column: span 7; }
.bcard:nth-child(odd):last-child { grid-column: 1 / -1; }
.bcard-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 26px) 0;
  position: relative; z-index: 2;
}
.bcard-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,255,63,.1); border: 1px solid rgba(212,255,63,.22);
  color: var(--accent);
  transition: transform .4s var(--ease-out), background .3s;
}
.bcard:hover .bcard-icon { transform: scale(1.08) rotate(-4deg); }
.bcard-icon svg { width: 20px; height: 20px; }
.bcard-num {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: .14em;
}
.bcard-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 27px); letter-spacing: -.02em;
  padding: 15px clamp(18px, 2.2vw, 26px) 0; position: relative; z-index: 2;
}
.bcard-desc {
  margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--ink-dim); max-width: 42ch;
  padding: 0 clamp(18px, 2.2vw, 26px) 20px; position: relative; z-index: 2;
}
.bcard-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .5s; z-index: 1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,63,.08), transparent 65%);
}
.bcard:hover .bcard-glow { opacity: 1; }

/* visual stage — the animated strip along the card bottom */
.bcard-stage {
  margin-top: auto; height: 74px; position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
  overflow: hidden;
}
.bcard-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 140% at 50% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.bcard-vis {
  position: relative; opacity: .5; pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.bcard:hover .bcard-vis { opacity: 1; transform: scale(1.06); }
.vis-layers { width: 150px; height: 60px; }
.vis-layers i {
  display: block; height: 12px; border-radius: 7px; margin-top: 8px;
  background: transparent; border: 1.5px solid var(--accent);
  animation: layer-lift 2.8s ease-in-out infinite;
}
.vis-layers i:nth-child(1) { width: 100%; animation-delay: 0s; }
.vis-layers i:nth-child(2) { width: 76%; animation-delay: .35s; }
.vis-layers i:nth-child(3) { width: 52%; animation-delay: .7s; }
@keyframes layer-lift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.vis-motion { width: 190px; height: 56px; }
.vis-motion path {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 140; stroke-dashoffset: 0;
  animation: wave-flow 2.4s linear infinite;
}
@keyframes wave-flow { to { stroke-dashoffset: -280; } }

.vis-chip { width: 130px; height: 60px; display: flex; align-items: flex-end; gap: 9px; justify-content: center; }
.vis-chip i {
  width: 11px; border-radius: 5px; background: var(--accent);
  height: 30%; animation: eq 1.1s ease-in-out infinite;
}
.vis-chip i:nth-child(1) { animation-delay: 0s; }
.vis-chip i:nth-child(2) { animation-delay: .15s; }
.vis-chip i:nth-child(3) { animation-delay: .3s; }
.vis-chip i:nth-child(4) { animation-delay: .45s; }
.vis-chip i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 22%; } 50% { height: 96%; } }

.vis-rocket { width: 190px; height: 60px; }
.vis-rocket .arc {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 7; opacity: .8;
}
.vis-rocket .dot {
  fill: var(--accent);
  offset-path: path("M6 54 Q 55 4 104 22");
  animation: fly 2.4s var(--ease-out) infinite;
}
@keyframes fly { from { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }

.vis-pad { display: grid; grid-template-columns: repeat(6, 15px); gap: 8px; }
.vis-pad i {
  width: 15px; height: 15px; border-radius: 4px;
  background: var(--accent); opacity: .14;
  animation: px-blink 3.2s ease-in-out infinite;
}
.vis-pad i:nth-child(3n+1) { animation-delay: .4s; }
.vis-pad i:nth-child(4n+2) { animation-delay: 1.1s; }
.vis-pad i:nth-child(5n) { animation-delay: 1.8s; }
@keyframes px-blink { 0%, 82%, 100% { opacity: .14; } 40% { opacity: 1; } }

/* ═══════════ ABOUT ═══════════ */
.about {
  padding: clamp(90px, 13vw, 180px) clamp(20px, 5vw, 72px);
  background: var(--bg-2); border-block: 1px solid var(--line);
  overflow: hidden; overflow: clip;
}
.about-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  mask-image: radial-gradient(ellipse 75% 65% at 28% 26%, black 8%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 28% 26%, black 8%, transparent 68%);
  opacity: .45;
}
.about-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px); max-width: 1440px; margin: 0 auto; align-items: start;
}
/* rotating badge on portrait */
.about-badge {
  position: absolute; top: -34px; right: -34px; z-index: 3;
  width: clamp(96px, 10vw, 128px); height: clamp(96px, 10vw, 128px);
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
}
.about-badge svg {
  position: absolute; inset: 6px;
  animation: badge-spin 16s linear infinite;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
.badge-ring-text {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .18em; fill: var(--ink-dim);
}
.about-badge-center {
  color: var(--accent); font-size: 22px;
}
html[data-theme="light"] .about-badge-center { color: var(--accent-text); }
html[data-theme="light"] .about-badge { box-shadow: 0 18px 40px -18px rgba(20,20,15,.3); }

.about-photo {
  position: relative; aspect-ratio: 4/4.8;
}
/* offset blueprint frame behind the portrait */
.about-photo-frame {
  position: absolute; inset: 0; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  transform: rotate(2.4deg) translate(3.4%, 2.2%);
  transition: transform .9s var(--ease-out);
  pointer-events: none;
}
.about-photo:hover .about-photo-frame { transform: rotate(3.2deg) translate(4.4%, 2.8%); }
.about-photo-clip {
  position: absolute; inset: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3); z-index: 1;
  border: 1px solid var(--line);
  transition: transform .7s var(--ease-out), box-shadow .7s;
}
.about-photo:hover .about-photo-clip { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
html[data-theme="light"] .about-photo:hover .about-photo-clip { box-shadow: 0 40px 80px -40px rgba(20,20,15,.35); }
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  filter: grayscale(.35) contrast(1.02);
  scale: 1.14; /* headroom for the scroll parallax */
  transition: filter .8s, scale 1.2s var(--ease-out);
}
.about-photo:hover img { filter: grayscale(0); scale: 1.2; }
/* scanning beam — sweeps the portrait on hover */
.about-photo-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 2;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent) 78%, color-mix(in srgb, var(--accent) 34%, transparent));
  opacity: 0; transform: translateY(-120%); pointer-events: none;
}
.about-photo:hover .about-photo-scan { opacity: 1; animation: scan-sweep 1.9s var(--ease-swift) infinite; }
@keyframes scan-sweep { to { transform: translateY(320%); } }
/* crosshair ticks on the exhibit corners */
.atick { position: absolute; width: 18px; height: 18px; z-index: 3; opacity: .55; pointer-events: none; }
.atick::before, .atick::after { content: ""; position: absolute; background: var(--ink-faint); }
.atick::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.atick::after { top: 50%; left: 0; right: 0; height: 1px; }
.atick-tl { top: -12px; left: -12px; }
.atick-bl { bottom: -12px; left: -12px; }
.atick-br { bottom: -12px; right: -12px; }
.about-photo-cap {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 100px; color: var(--ink);
  background: rgba(11,11,12,.55); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
/* spec-sheet facts */
.about-facts {
  margin-top: 30px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg); padding: 4px 0;
}
.facts-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.facts-head .mono { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.facts-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent);
}
.fact-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 20px; border-bottom: 1px dashed var(--line);
}
.fact-row:last-child { border-bottom: 0; }
.f-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); min-width: 70px; }
.f-leader { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.f-v { font-size: 13.5px; font-weight: 450; color: var(--ink); text-align: right; letter-spacing: -0.01em; }
.about-copy-col { padding-top: 8px; }
.about-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.035em;
  margin-top: 20px; text-wrap: balance;
}
.about-heading .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.about-lead {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.42; letter-spacing: -0.02em;
  color: var(--ink); max-width: 34ch; text-wrap: pretty;
}
.about-body { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.about-body p { font-size: 15px; line-height: 1.85; color: var(--ink-dim); max-width: 60ch; text-wrap: pretty; }
/* editorial drop cap on the first bio paragraph */
.about-body p:first-of-type::first-letter {
  font-family: var(--font-serif); font-style: italic;
  font-size: 3.3em; line-height: .78; float: left;
  padding: 7px 12px 0 0; color: var(--accent);
}
.about-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.tools-label {
  width: 100%; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 10px; margin-bottom: 2px;
}
.tools-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* journey timeline — rail fills as you scroll */
.about-journey { list-style: none; margin-top: 54px; position: relative; --jpad: 34px; padding-left: var(--jpad); }
.about-journey li.j-rail {
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px;
  background: var(--line); display: block; padding: 0; border: 0;
}
.j-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
  transform: scaleY(0); transform-origin: top;
}
.about-journey li {
  position: relative;
  display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.about-journey li:nth-of-type(2) { border-top: 1px solid var(--line); }
.j-node {
  position: absolute; top: 27px; left: calc(-1 * var(--jpad) - 4px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-2); border: 1.5px solid var(--line-strong);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.about-journey li.in .j-node {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 65%, transparent);
}
.j-year {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -.02em; color: var(--ink);
}
.j-text { font-size: 14.5px; line-height: 1.7; color: var(--ink-dim); transition: color .4s; text-wrap: pretty; }
.about-journey li:hover .j-text { color: var(--ink); }
.tool-pill {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  padding: 9px 16px; border-radius: 100px; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  transition: all .3s;
}
.tool-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ═══════════ PROCESS ═══════════ */
.process { padding: clamp(90px, 13vw, 180px) 0; }
.process-list { list-style: none; border-top: 1px solid var(--line); counter-reset: pstep; max-width: 1440px; margin: 0 auto; }
.pstep {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: clamp(18px, 4vw, 60px);
  align-items: baseline; padding: clamp(30px, 3.8vw, 52px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  /* merged: own hover + the .rv reveal channel (staggered via --i) */
  transition: background .4s, opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: 0ms, calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms);
}
.pstep:hover { background: var(--bg-2); }
/* accent rail grows down the row edge on hover */
.pstep::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.pstep:hover::before { transform: scaleY(1); }
/* giant ghost index behind the row — comes alive on hover */
.pstep::after {
  counter-increment: pstep; content: counter(pstep, decimal-leading-zero);
  position: absolute; right: clamp(16px, 4vw, 64px); top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(64px, 7.5vw, 128px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  opacity: .32; pointer-events: none; user-select: none;
  transition: opacity .45s, -webkit-text-stroke-color .45s;
}
.pstep:hover::after {
  opacity: .6;
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
}
.pstep-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: .1em; transition: transform .45s var(--ease-out);
}
.pstep:hover .pstep-num { transform: translateX(6px); }
.pstep-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 42px); letter-spacing: -.03em;
  transition: transform .45s var(--ease-out);
}
.pstep:hover .pstep-title { transform: translateX(10px); }
.pstep-desc { font-size: 14px; line-height: 1.7; color: var(--ink-dim); max-width: 520px; text-wrap: pretty; }

/* ═══════════ QUOTES ═══════════ */
.quotes { padding: clamp(30px, 5vw, 70px) 0 clamp(90px, 13vw, 180px); }
.quotes-layout {
  display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px); align-items: stretch;
  padding: 0 clamp(20px, 5vw, 72px); max-width: 1440px; margin: 0 auto;
}

/* ── rating summary panel ── */
.qsummary {
  position: sticky; top: calc(var(--nav-h) + 26px);
  /* permanently dark surface — the anchor card; scoped dark tokens make
     every child (text, borders, bars, avatars) adapt without extra rules */
  --ink: #EDEBE4;
  --ink-dim: #B3B0A6;
  --ink-faint: #76736F;
  --line: rgba(237, 235, 228, .12);
  --line-strong: rgba(237, 235, 228, .22);
  --bg: #13120C;
  --bg-3: #1E1D14;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  padding: clamp(26px, 2.6vw, 36px);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.qsummary::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.qs-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 0;
  transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
.qsummary:hover .qs-glow { opacity: 1; }
.qsummary > * { position: relative; z-index: 1; }
.qs-head {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.qs-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qs-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(64px, 5.6vw, 92px); letter-spacing: -.045em; line-height: .95;
  margin-top: 22px;
}
.qs-outof {
  font-family: var(--font-mono); font-size: .28em; letter-spacing: 0;
  color: var(--ink-faint); margin-left: 8px;
}
.qs-stars { display: flex; gap: 4px; margin-top: 12px; }
.qs-stars i {
  font-style: normal; color: var(--accent); font-size: 15px; line-height: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .6s var(--ease-out);
}
.qsummary.in .qs-stars i { opacity: 1; transform: none; }
.qsummary.in .qs-stars i:nth-child(1) { transition-delay: .30s; }
.qsummary.in .qs-stars i:nth-child(2) { transition-delay: .38s; }
.qsummary.in .qs-stars i:nth-child(3) { transition-delay: .46s; }
.qsummary.in .qs-stars i:nth-child(4) { transition-delay: .54s; }
.qsummary.in .qs-stars i:nth-child(5) { transition-delay: .62s; }
.qs-sub { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.qs-avs { display: flex; align-items: center; margin-top: 18px; }
.qs-avs span {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1.5px solid var(--bg);
  font-family: var(--font-mono); font-size: 9px; color: var(--ink-dim);
  margin-left: -8px;
}
.qs-avs span:first-child { margin-left: 0; }
.qs-avs .qs-avs-more { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.qs-domains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.qs-domains span {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 10px;
}
.qs-cta {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 13px 16px;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  transition: border-color .3s, background .3s, color .3s;
}
.qs-cta:hover { border-color: var(--accent); color: var(--accent-text); }
.qs-cta-arr { color: var(--accent); transition: transform .35s var(--ease-out); }
.qs-cta:hover .qs-cta-arr { transform: translateX(5px); }
.qs-bars {
  margin-top: auto; padding-top: 26px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.qs-row { display: flex; align-items: center; gap: 12px; }
.qs-row-k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  color: var(--ink-faint); width: 22px; flex-shrink: 0;
}
.qs-bar { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.qs-bar i {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: var(--accent);
  transition: width 1.2s var(--ease-out);
}
.qsummary.in .qs-row:nth-child(1) .qs-bar i { transition-delay: .30s; }
.qsummary.in .qs-row:nth-child(2) .qs-bar i { transition-delay: .42s; }
.qsummary.in .qs-row:nth-child(3) .qs-bar i { transition-delay: .54s; }
.qsummary.in .qs-row:nth-child(4) .qs-bar i { transition-delay: .66s; }
.qsummary.in .qs-row:nth-child(5) .qs-bar i { transition-delay: .78s; }
.qsummary.in .qs-bar i { width: var(--w); }
.qs-row-n {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint);
  width: 16px; text-align: right; flex-shrink: 0;
}
.qs-sweep {
  margin-top: 16px; font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-text);
}
.qs-foot {
  margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.qs-foot .mono { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.qs-badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border-radius: 100px; padding: 6px 13px;
}

/* ── review mosaic — infinite column marquee ── */
.qmosaic {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: start;
  height: clamp(470px, 58vh, 620px);
  overflow: hidden;
}
/* gradient veils instead of mask-image — keeps overlay UI (qhint) un-faded */
.qmosaic::before, .qmosaic::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12%;
  z-index: 3; pointer-events: none;
}
.qmosaic::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.qmosaic::after { bottom: 0; height: 17%; background: linear-gradient(transparent, var(--bg)); }
/* lives inside the quotes overline row — right-aligned caption, not an overlay */
.qhint {
  margin-left: auto; white-space: nowrap;
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.qcol { position: relative; animation: qcol-down 30s linear infinite; will-change: transform; }
.qcol:nth-child(2) { animation-name: qcol-up; margin-top: -170px; }
.qcol:nth-child(3) { margin-top: -70px; }
.qmosaic:not(.waapi):hover .qcol, .qmosaic:not(.waapi):focus-within .qcol { animation-play-state: paused; }
@keyframes qcol-down { to { transform: translate3d(0, -50%, 0); } }
@keyframes qcol-up { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.qmosaic .qcard, .qmosaic .qtile { margin-bottom: 16px; }

/* ── mosaic filler tiles ── */
.qtile { position: relative; overflow: hidden; border-radius: var(--radius); }
.qtile--ph {
  aspect-ratio: 4/3.4; background: var(--bg-3) center/cover;
  border: 1px solid var(--line);
  display: block; text-decoration: none; color: inherit;
}
.qtile--ph::before {
  content: ""; position: absolute; inset: 0;
  background: var(--pic) center/cover;
  transition: transform .9s var(--ease-out);
}
.qtile--ph:hover::before { transform: scale(1.07); }
.qtile--ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, .55));
}
.qtile-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #EDEBE4;
  background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 100px;
}
.qtile--acc {
  background: var(--accent); color: var(--accent-ink);
  padding: 20px; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.qtile--acc b {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 4vw, 58px); letter-spacing: -.04em; line-height: .9;
}
.qtile--acc2 {
  background: var(--accent-2); color: #0B0B0C;
  padding: 20px; min-height: 112px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.qtile--acc2 b {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(72px, 6vw, 96px); line-height: .75; letter-spacing: 0;
}
.qtile--acc .mono, .qtile--acc2 .mono {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .75;
}
/* stays dark in BOTH themes — the anchor tile among the light ones */
.qtile--dark {
  background: #16150F; border: 1px solid rgba(237, 235, 228, .14); padding: 13px 18px;
  display: flex; align-items: center; gap: 12px;
}
.qtile--dark .mono {
  flex: 1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(237, 235, 228, .5); line-height: 1.7; display: block;
}
.qtile-spark { font-style: normal; color: var(--accent); opacity: .8; font-size: 15px; flex-shrink: 0; }

/* ── review cards ── */
.qcard {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s, opacity .9s var(--ease-out);
}
.qcard:hover {
  border-color: var(--line-strong); transform: translateY(-4px);
  box-shadow: 0 30px 60px -32px rgba(0,0,0,.5);
}
.qcard-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .5s; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
.qcard:hover .qcard-glow { opacity: 1; }
.qcard-mark {
  position: absolute; top: -6px; right: 16px; z-index: 0;
  font-family: var(--font-serif); font-size: 130px; line-height: 1;
  color: var(--accent); opacity: .13; pointer-events: none;
  transition: opacity .5s;
}
.qcard:hover .qcard-mark { opacity: .22; }
.qcard-head { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.qcard-avatar {
  position: relative; width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.qcard-vbadge {
  position: absolute; right: -2px; bottom: -2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
  color: var(--accent); font-style: normal; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}
.qcard-id { min-width: 0; }
.qcard-name { font-size: 14px; font-weight: 500; }
.qcard-role {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 4px;
}
.qcard-stars { margin-left: auto; display: flex; gap: 3px; align-self: flex-start; padding-top: 4px; }
.qcard-stars i { font-style: normal; color: var(--accent); font-size: 12px; line-height: 1; }
.qcard-quote {
  margin-top: 22px; font-size: 15.5px; line-height: 1.75;
  color: var(--ink); font-weight: 300; flex: 1;
  position: relative; z-index: 2;
}
.qcard-foot {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
.qcard-foot .mono {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.qcard-line { flex: 1; height: 1px; background: var(--line); }



/* compact card tuning inside the mosaic columns */
.qmosaic .qcard { padding: clamp(18px, 1.8vw, 24px); }
.qmosaic .qcard-head { flex-wrap: wrap; }
.qmosaic .qcard-id { overflow: hidden; }
.qmosaic .qcard-mark { font-size: 96px; top: -2px; right: 12px; }
.qmosaic .qcard-avatar { width: 38px; height: 38px; font-size: 12.5px; }
.qmosaic .qcard-vbadge { width: 15px; height: 15px; font-size: 8px; }
.qmosaic .qcard-quote {
  font-size: 14px; margin-top: 16px;
  display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.qmosaic .qcard-foot { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .qcol { animation: none; } }

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: clamp(90px, 12vw, 170px) clamp(20px, 5vw, 72px) 40px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(212,255,63,.09), transparent 70%),
    var(--bg);
  text-align: center;
}
.footer .overline { justify-content: center; }
.footer .overline::after { content: ""; width: 34px; height: 1px; background: var(--accent); }
.footer-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(46px, 9vw, 130px); line-height: .95; letter-spacing: -0.035em;
  margin-top: 24px;
}
.footer-heading .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.footer-sub { margin-top: 24px; color: var(--ink-dim); font-size: 15px; }
.footer-cta-wrap { margin-top: 46px; }
.footer-cta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3.4vw, 44px); letter-spacing: -0.02em;
  padding: 22px 44px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-out);
}
.footer-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer-cta-arrow { transition: transform .4s var(--ease-out); }
.footer-cta:hover .footer-cta-arrow { transform: translateX(8px); }
.footer-meta {
  margin-top: clamp(60px, 8vw, 110px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  font-size: 12.5px; padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-dim);
  transition: all .3s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-info { display: flex; gap: 22px; font-size: 12px; color: var(--ink-faint); }
.footer-info .mono { font-size: 11px; }
.footer-bottom {
  margin-top: 26px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-faint); gap: 14px; flex-wrap: wrap;
}
.footer-top { font-size: 10.5px; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; transition: color .3s; }
.footer-top:hover { color: var(--accent); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  /* flatten the copy column into the grid so the phone can slot
     between the sub and the CTAs instead of landing at the bottom */
  .hero-copy { display: contents; }
  .hero-device { order: 1; margin-top: 52px; }
  .hero-ctas { order: 2; }
  .hero-stats { order: 3; }
  .device { width: clamp(252px, 62vw, 300px); }
  .float-chip-1 { left: 0; }
  .float-chip-2 { right: 0; }
  .nav-status { display: none; }
  .quotes-layout { grid-template-columns: 1fr; }
  .qsummary { position: static; max-width: 560px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .dock { display: flex; }
  .hero { padding-bottom: 110px; min-height: auto; }
  .hero-title { font-size: clamp(46px, 14.5vw, 80px); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hstat-label { font-size: 9px; max-width: none; }
  .hero-scrollhint { display: none; }
  /* the wide tech-stack chip sits right over the shade's controls — drop it */
  .float-chip-2 { display: none; }
  .work { padding: 48px 0 24px; }
  .work .section-head { margin-bottom: 22px; }
  /* lane filters become a single horizontal rail — one row that
     scrolls instead of a two-row pill card eating vertical space */
  .work-tabs {
    position: static; display: block;
    padding: 0; margin-bottom: 18px;
  }
  .wtabs-in {
    display: flex; width: 100%; gap: 8px;
    padding: 0 20px 4px; border: 0; border-radius: 0;
    background: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* fading ends hint the rail continues off-screen */
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }
  .wtab {
    justify-content: center; gap: 6px; flex-shrink: 0;
    padding: 11px 18px; font-size: 10px; letter-spacing: .12em;
    border: 1px solid var(--line); border-radius: 100px;
    background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  }
  .wtab.is-on { border-color: var(--accent); }
  /* horizontal snap rail — top:auto clears the desktop sticky offset that
     was pushing every card ~76px down and leaving a dead gap */
  .work-stack {
    --peek-h: 44px;
    display: flex; gap: 14px; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    padding: 0 20px 26px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .work-stack::-webkit-scrollbar { display: none; }
  .work-stack .work-empty { flex: 1 1 100%; }
  .work-progress {
    display: block; margin: -8px 20px 0; height: 2px;
    background: var(--line); border-radius: 2px; overflow: hidden;
  }
  .work-progress i {
    display: block; height: 100%; width: 100%;
    background: var(--accent); border-radius: 2px;
    transform-origin: left; transform: scaleX(var(--p, 0));
    transition: transform .12s linear;
  }
  .wcard, .work-end-card {
    position: relative; top: auto; will-change: auto;
    flex: 0 0 84vw; max-width: 420px;
    height: auto; min-height: 0; margin: 0;
    scroll-snap-align: start;
  }
  .wcard-main, .wcard--alt .wcard-main {
    display: flex; flex: 1; min-height: 0; flex-direction: column;
  }
  .wp-meta { display: none; }
  .wcard-media { flex: none; aspect-ratio: 4/2.7; }
  .wcard[data-kind="app"] .wcard-media { aspect-ratio: 4/2.8; }
  .wcard[data-kind="web"] .wcard-media { aspect-ratio: 4/2.35; }
  .wcard[data-kind="game"] .wcard-media { aspect-ratio: 4/2.35; }
  .wcard[data-kind="game"][data-o="p"] .wcard-media { aspect-ratio: 4/3; }
  .wcard[data-kind="folio"] .wcard-media { aspect-ratio: 4/2.7; }
  .wframe-web { inset: 12px; }
  /* slim device bezels — screenshots get the pixels back */
  .wf-phone, .wf-gphone {
    padding: 2.5px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 28px -14px rgba(0,0,0,.5);
  }
  .wf-phone { height: 92%; border-radius: 20px; }
  .wf-screen { border-radius: 16px; }
  .wf-gphone { border-radius: 18px; }
  .wf-gscreen { border-radius: 14px; }
  .wf-island { width: 38px; height: 9px; top: 7px; border-radius: 5px; }
  .wf-gcam { width: 4px; height: 4px; }
  .wframe-game[data-o="p"] .wf-gcam { top: 7px; }
  .wf-lap-lid { padding: 1.6% 1.6% 2.4%; border-radius: 10px 10px 5px 5px; }
  .wf-chrome { padding: 7px 10px; gap: 5px; }
  .wf-chrome i { width: 7px; height: 7px; }
  .wf-url { padding: 3px 10px; font-size: 8px; }
  .wcard-body { flex: 1; padding: 20px 18px 24px; }
  .wcard-desc { -webkit-line-clamp: 2; line-clamp: 2; }
  .wcard-chips { margin-top: 14px; }
  .wcard-cta { padding-top: 18px; }
  .wcard-idx { font-size: 84px; right: 14px; }
  .work-end-card { min-height: 300px; padding: 24px; }
  .work-end-card .big { font-size: clamp(40px, 11vw, 60px); }
  .we-pill { padding: 13px 20px; font-size: 10px; }
  .we-hint { display: none; }
  .bcard, .bcard:nth-child(n) { grid-column: span 12; min-height: 200px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .about-journey { --jpad: 26px; }
  .qmosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; height: 460px; }
  .qmosaic .qcol:nth-child(3) { display: none; }
  .qmosaic .qcard, .qmosaic .qtile { margin-bottom: 10px; }
  .qmosaic .qcard { padding: 14px; border-radius: 14px; }
  .qmosaic .qtile { border-radius: 14px; }
  .qmosaic .qcard-head { gap: 10px; }
  .qmosaic .qcard-avatar { width: 30px; height: 30px; font-size: 10.5px; }
  .qmosaic .qcard-vbadge { width: 13px; height: 13px; font-size: 7px; }
  .qmosaic .qcard-name { font-size: 12.5px; }
  .qmosaic .qcard-role { font-size: 8.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .qmosaic .qcard-stars { order: 3; flex-basis: 100%; margin-left: 0; padding-top: 6px; }
  .qmosaic .qcard-stars i { font-size: 10.5px; }
  .qmosaic .qcard-mark { font-size: 72px; }
  .qmosaic .qcard-quote { font-size: 12.5px; line-height: 1.6; margin-top: 12px; -webkit-line-clamp: 9; line-clamp: 9; }
  .qmosaic .qcard-foot { margin-top: 12px; }
  .qmosaic .qcard-foot .mono { font-size: 8px; }
  .qmosaic .qtile--acc, .qmosaic .qtile--acc2 { padding: 14px; min-height: 96px; }
  .qmosaic .qtile--acc b { font-size: 34px; }
  .qmosaic .qtile--acc2 b { font-size: 52px; }
  .qmosaic .qtile--acc .mono, .qmosaic .qtile--acc2 .mono { font-size: 8px; }
  .qmosaic .qtile--dark { padding: 12px 14px; }
  .qmosaic .qtile--dark .mono { font-size: 8px; }
  .qmosaic .qtile-tag { font-size: 8px; padding: 4px 8px; left: 10px; bottom: 9px; }
  /* covers carry a baked browser-chrome bar — on narrow tiles cover keeps
     it visible at the top; shift the crop window down to push it out */
  .qmosaic .qtile--ph::before { background: var(--pic) center 66% / cover; }
  .qhint { display: none; }
  .pstep { grid-template-columns: 48px 1fr; }
  .pstep::after { display: none; }
  .pstep-desc { grid-column: 2; }
  .footer { padding-bottom: 110px; }
  .footer-meta, .footer-bottom { justify-content: center; text-align: center; }
  /* email CTA — sized to fit a full address on one line down to ~320px */
  .footer-cta {
    font-size: clamp(13px, 3.9vw, 22px);
    gap: 12px;
    padding: 14px 20px;
    max-width: 100%;
  }
  .footer-cta span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ═══════════ ULTRA-WIDE ═══════════
   composition is designed for ~1560px — past that, fixed px/clamps would
   dwarf it, so we zoom the whole layout to keep the effective design
   width in the same band (same trick as a scaled stage, but scrollable) */
@media (min-width: 1900px) { html { zoom: 1.22; } }
@media (min-width: 2400px) { html { zoom: 1.5; } }
@media (min-width: 3000px) { html { zoom: 1.9; } }
@media (min-width: 3600px) { html { zoom: 2.2; } }

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
