/* Fonts are hosted on this site (no Google Fonts: visitors' IPs never go to a third party). SIL OFL licensed. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ==========================================================================
   ivibecode — site styles
   Dark, quiet frame + one warm "first light" dawn accent.
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3efe8;
  --mute: #a19d95;
  --faint: #6d6a64;
  --dawn-1: #ffc27a;
  --dawn-2: #ff7a59;
  --dawn-3: #d564ff;
  --dawn: linear-gradient(100deg, var(--dawn-1), var(--dawn-2) 45%, var(--dawn-3));
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--dawn-2); color: #160b06; }

/* film-grain overlay for a richer, less "flat digital" dark */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.dawn-text { background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; margin-right: -0.08em; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.brand .sun {
  width: 12px; height: 12px; border-radius: 50%; background: var(--dawn);
  box-shadow: 0 0 18px 2px rgba(255, 140, 90, 0.55);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14px; color: var(--mute); padding: 8px 14px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links .live-link { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; position: relative; flex: none;
}
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #ff4d4d; animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.32); }
.btn-solid { background: var(--text); color: #121110; border-color: var(--text); }
.btn-solid:hover { background: #fff; }
.btn-dawn { background: var(--dawn); color: #1a0d07; border: 0; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(48px, 8vh, 96px); overflow: hidden; isolation: isolate;
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-sun {
  position: absolute; left: 50%; bottom: -46vmax;
  width: 92vmax; height: 92vmax; border-radius: 50%;
  transform: translate(-50%, calc(var(--p, 0) * -14vmax)) scale(calc(1 + var(--p, 0) * 0.12));
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 196, 122, 0.95) 0%, rgba(255, 122, 89, 0.70) 18%,
    rgba(213, 100, 255, 0.28) 38%, rgba(10, 10, 11, 0) 62%);
  opacity: calc(0.55 + var(--p, 0) * 0.45);
  will-change: transform;
}
.hero-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to top, var(--ink) 18%, rgba(10,10,11,0));
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  opacity: 0.55;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 15vw, 196px); line-height: 0.9; letter-spacing: -0.035em;
  margin: 22px 0 0;
}
.hero h1 em { font-style: italic; }
/* extra bottom room so descenders (g, y) aren't clipped by the reveal mask */
.hero h1 .line { display: block; overflow: hidden; padding: 0 0.1em 0.16em 0; margin-bottom: -0.12em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-bottom {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-top: 44px;
}
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--mute); max-width: 34ch; margin: 0; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute); flex-wrap: wrap;
}
.hero-meta b { color: var(--text); font-weight: 500; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.loaded .fade-up { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; right: var(--pad); top: 50%; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--faint), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); white-space: nowrap;
  padding-right: 44px; color: var(--mute);
}
.marquee span i { font-style: italic; color: var(--text); }
.marquee span::after { content: "✦"; font-size: 0.5em; margin-left: 44px; vertical-align: middle; color: var(--dawn-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section basics ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vh, 170px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 108px);
  line-height: 0.95; letter-spacing: -0.03em; margin: 16px 0 0; max-width: 14ch;
}
.section-head h2 em { font-style: italic; }
.section-head p { color: var(--mute); max-width: 40ch; margin: 0; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; } .reveal[data-d="2"] { transition-delay: 0.16s; } .reveal[data-d="3"] { transition-delay: 0.24s; }

/* ---------- LIVE / Firstlight display ---------- */
.live { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 122, 89, 0.10), transparent 70%); }
.monitor-stage { perspective: 1600px; }
.monitor {
  position: relative; border-radius: 28px; padding: 14px;
  background: linear-gradient(160deg, #232326, #0f0f11);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6) inset, 0 0 120px -30px rgba(255, 122, 89, 0.35);
  transform: rotateX(calc((1 - var(--m, 1)) * 18deg)) scale(calc(0.88 + var(--m, 1) * 0.12));
  transform-origin: 50% 100%;
  will-change: transform;
}
.monitor-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 6px 8px 14px; font-size: 13px; color: var(--mute);
}
.monitor-bar .left, .monitor-bar .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text); font-size: 12px;
  letter-spacing: 0.06em;
}
.pill.on-air { background: rgba(255, 77, 77, 0.12); border-color: rgba(255,77,77,0.35); color: #ffb4b4; font-weight: 600; letter-spacing: 0.16em; }
.screen {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #9fb3b6;
  isolation: isolate;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.screen .poster {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 85%, rgba(255, 194, 122, 0.55), transparent 70%),
    linear-gradient(#273642, #6b8a86 60%, #b9a77e);
  transition: opacity 0.9s var(--ease);
  color: #fff; text-align: center;
}
.screen.ready .poster { opacity: 0; pointer-events: none; }
.poster .tuning { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); }
.poster .tuning small { display: block; font-family: var(--sans); font-size: 13px; opacity: 0.75; margin-top: 6px; }
.screen .shield {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  padding: 22px; cursor: pointer; border: 0; font: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.28), transparent 55%);
  transition: opacity 0.5s var(--ease);
}
.screen.interactive .shield { opacity: 0; pointer-events: none; }
.screen .shield .btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(15,15,17,0.55); }
.scanline { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }
.live-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fact { background: var(--ink); padding: 22px 24px; }
.fact .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.fact .v { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); margin-top: 6px; line-height: 1.1; }
.fact .v small { font-family: var(--sans); font-size: 13px; color: var(--mute); }

/* ---------- WORK: pinned horizontal scroll ---------- */
.work { --count: 2; height: calc((var(--count) + 1) * 100vh); }
.work-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; gap: 24px; }
.work-top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: 0.95; margin: 14px 0 0; letter-spacing: -0.03em; }
.work-top h2 em { font-style: italic; }
.work-progress { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.work-progress .bar { width: 140px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.work-progress .bar i { display: block; height: 100%; width: calc(var(--wp, 0) * 100%); background: var(--dawn); }
.work-track { display: flex; gap: 28px; padding-left: var(--pad); padding-right: var(--pad); width: max-content; will-change: transform; transform: translate3d(var(--wx, 0px), 0, 0); }
.panel {
  flex: none; width: min(1080px, 82vw); height: min(620px, 66vh);
  border-radius: 30px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr;
  border: 1px solid var(--line-2);
  --mx: 50%; --my: 50%;
}
.panel::before { /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,0.10), transparent 45%);
}
.panel:hover::before { opacity: 1; }
.panel-info { position: relative; z-index: 3; padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; }
.panel-num { font-size: 13px; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 70px); line-height: 0.95; letter-spacing: -0.025em; margin: 18px 0 18px; }
.panel h3 em { font-style: italic; }
.panel p { margin: 0; color: rgba(255,255,255,0.78); max-width: 34ch; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tag { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); color: #fff; }
.panel-cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 28px; }
.panel-cta .btn { border-color: rgba(255,255,255,0.3); }
.panel-art { position: relative; overflow: hidden; }

/* panel — Firstlight: dawn valley */
.p-first { background: linear-gradient(160deg, #2a2233 0%, #45303b 40%, #a2583e 100%); }
.valley { position: relative; }
.valley svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.valley .sun2 { position: absolute; left: 58%; top: 42%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, #ffd59a, #ff8a5c 45%, transparent 70%); filter: blur(2px);
  transform: translate(-50%, calc(var(--vs, 0) * -40px)); }
.ember { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffcc80; box-shadow: 0 0 10px 2px rgba(255, 170, 90, 0.8); animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.4; transform: translateY(-3px); } }

/* panel — MacTidy: stacked Mac windows that fan out on scroll */
.p-mac { background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 204, 92, 0.22), transparent 60%), linear-gradient(150deg, #0d2433 0%, #123a52 45%, #1b5f74 100%); }
.mac-stack { position: absolute; inset: 0; --t: 0; }
.mac-win {
  position: absolute; left: 50%; top: 50%; width: min(84%, 520px);
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.65);
  transform: translate(calc(-58% + var(--k) * (14px + var(--t) * 22px)), calc(-62% + var(--k) * (16px + var(--t) * 30px))) rotate(calc((var(--k) - 1) * var(--t) * 2.5deg));
  transition: transform 0.1s linear;
}
.mac-bar { height: 22px; background: #ececee; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid #dcdcdf; }
.mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-win img { width: 100%; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.25); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); }

/* ---------- in the workshop: pre-launch teaser ---------- */
.soon-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-2); border-radius: 32px; padding: clamp(28px, 5vw, 72px);
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(255, 150, 90, 0.14), transparent 70%), var(--ink-2);
  position: relative; overflow: hidden;
}
.soon-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.soon-icon { position: relative; width: min(240px, 70%); border-radius: 23%; box-shadow: 0 40px 80px -24px rgba(0,0,0,0.75); animation: bob 7s ease-in-out infinite; }
.soon-glow { position: absolute; width: min(300px, 85%); border-radius: 50%; filter: blur(60px) saturate(1.4); opacity: 0.55; }
.soon-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.03em; margin: 16px 0 18px; }
.soon-body p { color: var(--mute); max-width: 44ch; margin: 0; }
.soon-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.soon-status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd19a; }
.dot-soon { width: 8px; height: 8px; border-radius: 50%; background: #ffb86b; box-shadow: 0 0 12px 2px rgba(255, 170, 90, 0.6); animation: flicker 2.6s ease-in-out infinite; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.principle { background: var(--ink); padding: clamp(28px, 3vw, 44px); min-height: 280px; display: flex; flex-direction: column; }
.principle .n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--faint); }
.principle h4 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: auto 0 10px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--mute); font-size: 15px; }

.quote-row { margin: 90px auto 0; max-width: 980px; text-align: center; }
.quote { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.quote em { font-style: italic; }
.quote-by { margin-top: 18px; color: var(--mute); font-size: 14px; }

/* ---------- big CTA + footer ---------- */
.cta { text-align: center; padding: clamp(110px, 18vh, 200px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 120vmax; height: 120vmax; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.28), rgba(213, 100, 255, 0.10) 35%, transparent 60%); pointer-events: none; }
.cta h2 { position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.035em; margin: 18px 0 40px; }
.cta h2 em { font-style: italic; }
.cta .btn { position: relative; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- DOWNLOADS page ---------- */
.page-hero { padding: 170px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -20vmax; top: -30vmax; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 90, 0.22), rgba(213,100,255,0.08) 40%, transparent 65%); pointer-events: none; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11vw, 170px); line-height: 0.9; letter-spacing: -0.035em; margin: 20px 0 22px; }
.page-hero h1 em { font-style: italic; }
.page-hero p { color: var(--mute); max-width: 46ch; font-size: 19px; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); font: inherit; font-size: 14px; cursor: pointer; transition: all 0.25s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: #121110; border-color: var(--text); }

.products { display: grid; gap: 22px; padding-bottom: 40px; }
.product {
  display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden;
  background: var(--ink-2); position: relative; --mx: 50%; --my: 50%;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.product::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,0.06), transparent 40%); }
.product:hover::before { opacity: 1; }
.product.hide { display: none; }
.product-art { display: grid; place-items: center; padding: 34px; min-height: 280px; position: relative; }
.product-art img { width: 160px; border-radius: 24%; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.art-family { background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 150, 90, 0.25), transparent 70%), linear-gradient(160deg, #1a1420, #2a1d2e); }
.art-first { background: linear-gradient(160deg, #2a2233, #a2583e); }
.art-mac { background: radial-gradient(ellipse 70% 60% at 80% 15%, rgba(255, 204, 92, 0.25), transparent 60%), linear-gradient(150deg, #0d2433, #1b5f74); overflow: hidden; }
.art-mac .mac-win { position: relative; left: auto; top: auto; width: 100%; transform: rotate(-2deg); }
.code-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: #050506; border: 1px solid var(--line-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; color: #e9e4da; }
.code-line code { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.06); color: var(--text); font: inherit; font-family: var(--sans); font-size: 12px; cursor: pointer; }
.product-body { padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; gap: 18px; }
.product-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; }
.product h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.product .desc { color: var(--mute); margin: 0; max-width: 60ch; }
.status { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.status.live { color: #9be7a7; border-color: rgba(120, 220, 140, 0.35); background: rgba(80, 200, 110, 0.08); }
.status.pro { color: #2a1d05; border: 0; background: linear-gradient(135deg, #f7dd95, #d6a23a); font-weight: 600; }
.product-pro { border-color: rgba(214, 162, 58, 0.45); background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(214, 162, 58, 0.10), transparent 60%), var(--ink-2); }
.art-pro { background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(214, 162, 58, 0.28), transparent 70%), linear-gradient(160deg, #1c1f25, #0f1114); }
.art-pro img { width: 170px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 26px 40px rgba(0,0,0,0.6)); }
.pro-word { font-style: italic; background: linear-gradient(100deg, #f7dd95, #d6a23a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.pro-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--mute); font-size: 15px; }
.pro-list li::before { content: "✦"; color: #d6a23a; margin-right: 10px; }
.pro-list b { color: var(--text); font-weight: 500; }
.btn-gold { background: linear-gradient(135deg, #f2cf7a, #c9952e); color: #1a1307; border: 0; }
.status.soon { color: #ffd19a; border-color: rgba(255, 190, 120, 0.35); background: rgba(255, 170, 90, 0.08); }
.status.beta { color: #ffd19a; border-color: rgba(255, 190, 120, 0.35); background: rgba(255, 170, 90, 0.08); }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.platform { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.015); }
.platform .ph { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.platform .ph svg { width: 18px; height: 18px; flex: none; }
.platform .note { font-size: 13px; color: var(--faint); margin: 0; line-height: 1.45; }
.platform .btn { width: 100%; margin-top: auto; white-space: normal; height: auto; min-height: 42px; padding: 10px 14px; text-align: center; line-height: 1.25; }

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.guide { border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(26px, 3vw, 40px); background: var(--ink-2); }
.guide h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 18px; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.guide { min-width: 0; } /* stop long content from stretching the card */
.guide li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; color: var(--mute); font-size: 15px; }
.guide li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; color: var(--text); }
.guide li b { color: var(--text); font-weight: 500; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform 0.4s var(--ease); font-family: var(--sans); font-size: 18px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--mute); max-width: 70ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.live-link):not(.keep) { display: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .scroll-cue { display: none; }
  .live-facts { grid-template-columns: 1fr 1fr; }
  .work { height: auto; }
  .work-sticky { position: static; height: auto; overflow: visible; padding: 100px 0 40px; }
  .work-track { flex-direction: column; transform: none !important; padding: 0 var(--pad); width: auto; }
  .panel { width: 100%; height: auto; grid-template-columns: 1fr; }
  .panel-art { min-height: 380px; }
  .soon-card { grid-template-columns: 1fr; text-align: left; }
  .soon-art { min-height: 220px; }
  .screen { aspect-ratio: 4 / 5; }
  .fact .v small { display: block; margin-top: 2px; }
  .mac-win { width: 88%; transform: translate(calc(-50% + (var(--k) - 1) * 16px), calc(-50% + (var(--k) - 1) * 26px)); }
  .work-progress { display: none; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; gap: 18px; }
  .quote-row { margin-top: 60px; }
  .product { grid-template-columns: 1fr; }
  .product-art { min-height: 200px; }
  .platforms, .guides { grid-template-columns: 1fr; }
  .monitor { padding: 8px; border-radius: 20px; }
  .monitor-bar .right .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .fade-up, .hero h1 .line > span { opacity: 1 !important; transform: none !important; }
  .work { height: auto; }
  .work-sticky { position: static; height: auto; padding: 100px 0 40px; }
  .work-track { flex-wrap: wrap; transform: none !important; width: auto; }
}
