/* Velassi site. Dark, one fixed 3D scene behind scroll chapters. No webfonts. */
:root {
  --bg: #05070b;
  --bg-rgb: 5, 7, 11;
  --ink: #eef2f8;
  --ink-2: #b3bccb;
  --ink-3: #7d8697;
  --line: rgba(160, 196, 255, 0.12);
  --line-2: rgba(160, 196, 255, 0.24);
  --cyan: #7af0ff;
  --teal: #2fd0c5;
  --violet: #a68bff;
  --coral: #ff7d6b;
  --sky: #5aa9ff;
  --pink: #ff8fc7;
  --butter: #ffd36b;
  --za: var(--coral);
  --zb: var(--sky);
  --zc: var(--teal);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Blueprint grid when the 3D scene is not running */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.gl body::before { display: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(122, 240, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; }
.brand-word { font-size: 19px; font-weight: 640; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2);
  font-size: 15px; font-weight: 500; transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.header-inner > .btn { margin-left: 8px; }
@media (max-width: 480px) {
  .nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-size: 15.5px; font-weight: 580; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-light { background: var(--ink); color: #05070b; }
.btn-light:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(122, 240, 255, 0.12), 0 12px 32px -10px rgba(122, 240, 255, 0.55);
}
.btn-ghost {
  background: rgba(14, 19, 28, 0.55); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(122, 240, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(122, 240, 255, 0.5); }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }

.grad {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 52%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The 3D scene */
.scene { position: fixed; inset: 0; z-index: 0; display: none; pointer-events: none; }
.gl .scene { display: block; }
.scene-canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.gl-ready .scene-canvas { opacity: 1; }
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 62% 45%, transparent 55%, rgba(var(--bg-rgb), 0.7) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.82) 0%, rgba(var(--bg-rgb), 0.5) 30%, rgba(var(--bg-rgb), 0) 52%);
}
.scene-tags { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.tag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center;
  opacity: 0; will-change: transform, opacity;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.tag-line { width: 44px; height: 1px; background: linear-gradient(90deg, var(--c), rgba(160, 196, 255, 0.3)); }
.tag-line::before {
  content: ""; display: block; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.tag-text {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; white-space: nowrap;
  background: rgba(8, 12, 19, 0.7); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px;
}
.tag-text b { color: var(--c); font-weight: 600; }
.tag--za, .za { --c: var(--za); --z: var(--za); }
.tag--zb, .zb { --c: var(--zb); --z: var(--zb); }
.tag--zc, .zc { --c: var(--zc); --z: var(--zc); }
.tag--section { --c: var(--coral); }
.tag--zone .tag-line::before { border-radius: 1px; transform: rotate(45deg); }
.tag--zone .tag-text {
  gap: 10px; padding: 7px 12px 7px 8px; color: var(--c); font-weight: 600; letter-spacing: 0.1em;
  background: rgba(8, 12, 19, 0.82); box-shadow: inset 0 0 0 1px var(--c);
}
.tag--zone .tag-text b {
  display: grid; place-items: center; width: 18px; height: 18px; margin: -3px 0; border-radius: 3px;
  background: var(--c); color: var(--bg);
}

/* HUD and chapter rail */
.hud {
  position: fixed; left: var(--gutter); bottom: 18px; z-index: 5; display: none; gap: 28px; align-items: baseline;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(var(--bg-rgb), 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  pointer-events: none; transition: opacity 0.4s;
}
.hud p { margin: 0; }
.gl .hud { display: flex; }
.hud-ch { display: flex; gap: 8px; align-items: baseline; }
.hud-ch b { color: var(--cyan); font-weight: 600; font-size: 12px; }
.hud-name { margin-left: 8px; color: var(--ink-2); }
.hud-xy { min-width: 24ch; }
.hud.is-off, .rail.is-off { opacity: 0; }
.rail.is-off { visibility: hidden; }
.rail {
  position: fixed; right: 22px; top: 50%; z-index: 5; display: none; flex-direction: column; gap: 2px;
  transform: translateY(-50%); transition: opacity 0.4s, visibility 0.4s;
}
.rail a {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px;
  text-decoration: none; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3);
}
.rail a::after {
  content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6;
  transition: width 0.35s var(--ease), background-color 0.3s;
}
.rail a b {
  position: absolute; right: 64px; font-weight: 500; text-transform: uppercase; white-space: nowrap; color: var(--ink-2);
  opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.rail a:hover b, .rail a:focus-visible b { opacity: 1; transform: none; }
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--cyan); }
.rail a.is-active::after { width: 30px; background: var(--cyan); opacity: 1; }
.rail .rail-za { --z: var(--za); }
.rail .rail-zb { --z: var(--zb); }
.rail .rail-zc { --z: var(--zc); }
.rail [class*="rail-z"]::after { background: var(--z); opacity: 0.85; }
.rail [class*="rail-z"].is-active { color: var(--z); }
.rail [class*="rail-z"].is-active::after { background: var(--z); }
@media (min-width: 1440px) and (min-height: 700px) { .gl .rail { display: flex; } }
@media (max-width: 819px) { .gl .hud { display: none; } }

/* Chapters */
main { position: relative; z-index: 1; }
.ch {
  position: relative; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.ch > .wrap { position: relative; }
.ch-studio, .ch-app { min-height: 120vh; min-height: 120svh; }
.ch-about { min-height: 110vh; min-height: 110svh; }
.ch-label {
  display: flex; gap: 14px; align-items: center;
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.ch-label span:first-child { color: var(--z, var(--cyan)); }
.ch-label span:first-child::after {
  content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle;
  background: var(--line-2);
}
.panel { max-width: 560px; }
.ch-title {
  margin-top: 22px; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; font-weight: 640; letter-spacing: -0.045em;
}
.ch-lede { margin-top: 20px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }

/* Hero */
.ch-hero { padding-bottom: 96px; }
.hero-copy { max-width: 680px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(10, 14, 22, 0.6); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--cyan); opacity: 0; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title {
  margin-top: 26px; font-size: clamp(2.5rem, 5.4vw, 5.6rem); line-height: 1; font-weight: 660; letter-spacing: -0.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line + .line > span { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-lede { margin-top: 24px; max-width: 44ch; color: var(--ink-2); font-size: 18.5px; animation: fade 1s 0.35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: fade 1s 0.45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.app-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; animation: fade 1s 0.6s var(--ease) both; }
.app-row a {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 13px 5px 5px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 520;
  background: rgba(10, 14, 22, 0.55); box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.app-row a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(122, 240, 255, 0.45); transform: translateY(-1px); }
.app-row img { width: 30px; height: 30px; border-radius: 9px; }
.app-row .grp { position: relative; margin-left: 13px; }
.app-row .grp::before {
  content: ""; position: absolute; left: -11px; top: 9px; bottom: 9px; width: 1px; background: var(--line-2);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Studio: the apps in three groups */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.group { padding-top: 14px; border-top: 2px solid var(--z); }
.group-h {
  display: flex; gap: 9px; align-items: flex-start; min-height: 2.6em;
  font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.group-h span {
  display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: -2px; border-radius: 3px;
  background: var(--z); color: var(--bg); font-weight: 600;
}
.group ul { display: grid; gap: 2px; margin-top: 10px; }
.group a {
  display: flex; align-items: center; gap: 11px; margin: 0 -8px; padding: 8px; border-radius: 12px; text-decoration: none;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.group a:hover { background: rgba(160, 196, 255, 0.07); transform: translateX(3px); }
.group img { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.group b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.group small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.soon, .status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; vertical-align: middle;
  font: normal 600 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); background: rgba(47, 208, 197, 0.1); box-shadow: inset 0 0 0 1px rgba(47, 208, 197, 0.35);
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.soon, .status--soon { color: var(--butter); background: rgba(255, 211, 107, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 211, 107, 0.35); }
.soon { padding: 3px 6px; font-size: 9px; }

/* App slides */
.slide { display: grid; gap: 48px; align-items: center; }
.slide-copy { max-width: 540px; }
.app-id { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 12px 40px -12px rgba(122, 240, 255, 0.45); }
.app-title { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; font-weight: 660; letter-spacing: -0.045em; }
.app-kind { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-3); font-size: 14.5px; }
.app-tagline { margin-top: 26px; font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.app-text { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  padding: 7px 11px; border-radius: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(160, 196, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2);
}
.app-note { margin-top: 16px; color: var(--ink-3); font-size: 14.5px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.app-extra {
  display: inline-block; margin-top: 18px; color: var(--ink-2); font-size: 14.5px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
}
.app-extra:hover { color: var(--ink); text-decoration-color: var(--cyan); }

/* Product screens */
.slide-media { position: relative; display: flex; flex-direction: column; align-items: flex-start; perspective: 1400px; }
.media-cap {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.media-cap::before { content: ""; width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.device, .phone {
  position: relative; background: #0b1018; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(160, 196, 255, 0.22), 0 30px 80px -24px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(122, 240, 255, 0.35);
  transform: rotateY(calc(-10deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg)));
  transition: transform 0.6s var(--ease);
}
.device { width: min(440px, 100%); padding: 9px; border-radius: 20px; }
.device img { border-radius: 12px; }
.phone { width: 210px; padding: 7px; border-radius: 34px; }
.phone img { border-radius: 27px; }
.device::after, .phone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 38%);
}
.media-pair .phone + .phone { margin: -380px 0 0 130px; }
.slide-media::before {
  content: ""; position: absolute; inset: 22px -16px -16px -16px; pointer-events: none; opacity: 0.55;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 1px 14px no-repeat;
}
@media (min-width: 820px) {
  .slide { grid-template-columns: minmax(0, 540px) 1fr; }
  .slide-media { justify-self: end; align-self: end; margin-bottom: -10vh; }
  .phone { width: 200px; }
  .device { width: 400px; }
}

/* About */
.principles { margin-top: 36px; display: grid; }
.principles li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.p-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px;
  font: 600 12px/1 var(--mono); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(122, 240, 255, 0.4);
}
.principles h3 { font-size: 18.5px; font-weight: 620; letter-spacing: -0.02em; }
.principles p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }

/* Contact */
.ch-contact { align-items: flex-end; padding-bottom: 12vh; }
.contact { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-title { margin-top: 22px; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 0.95; font-weight: 680; letter-spacing: -0.055em; }
.contact-lede { margin-top: 20px; color: var(--ink-2); font-size: 18.5px; max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.contact-note { margin-top: 28px; color: var(--ink-3); font-size: 15px; max-width: 56ch; }
.contact-note a { color: var(--ink-2); text-underline-offset: 3px; }
.contact-note a:hover { color: var(--ink); }

/* Footer */
.site-footer { position: relative; z-index: 2; overflow: hidden; padding-top: 64px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand p { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.footer-nav a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; color: var(--ink-3); font-size: 14px; }
.footer-base a { color: var(--ink-2); }
.footer-giant {
  margin: 24px 0 0; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(5rem, 23vw, 22rem); line-height: 0.78; font-weight: 660; letter-spacing: -0.065em;
  background: linear-gradient(180deg, rgba(160, 196, 255, 0.16) 0%, rgba(var(--bg-rgb), 0) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(0.1em);
}

/* Plain pages (privacy, 404) */
.page { position: relative; z-index: 1; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 128px); }
.page .wrap { max-width: calc(760px + var(--gutter) * 2); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.page h1 { margin-top: 18px; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; }
.page .updated { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.prose { margin-top: 48px; }
.prose h2 { margin-top: 44px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(122, 240, 255, 0.5); }
.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.prose h3 + p { margin-top: 6px; }
.prose ol { margin-top: 12px; padding-left: 1.4em; list-style: decimal; }
.prose ol li + li { margin-top: 6px; }

/* App pages (/tdrive, /lanleap, /pelvic-trainer) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.app-page .app-id { margin-top: 28px; }
.app-page h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.app-lede { margin-top: 26px; color: var(--ink-2); font-size: 18.5px; line-height: 1.6; }
.shots { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.shots figure { width: min(200px, calc(50% - 10px)); }
.shots .phone { width: 100%; transform: none; }
.shots figcaption { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.notice { margin-top: 32px; padding: 16px 18px; border-radius: 10px; background: rgba(160, 196, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.prose .notice p:first-child { margin-top: 0; }
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.notfound .lede { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.notfound .hero-actions { margin-top: 32px; animation: none; }

/* Reveal on scroll (only for content that starts below the fold) */
.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-pending.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

/* Step mode (wide, tall enough screens): one chapter per scroll gesture, each fills the screen.
   The script adds .steps and marks the chapter in view with .is-current. */
html.steps { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.steps .ch {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 16px) 0 40px;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.steps .ch-contact { padding-bottom: 12vh; }
.steps .site-footer { scroll-snap-align: end; }
.steps .slide { align-self: stretch; }
.steps .slide-media { margin-bottom: 0; align-self: end; }
.steps .hero-title { font-size: clamp(2.4rem, min(5.4vw, 9.5vh), 5.6rem); }
.steps .ch-title { font-size: clamp(2.2rem, min(5vw, 8.5vh), 4.4rem); }
.steps .app-title { font-size: clamp(2.2rem, min(4.6vw, 7.5vh), 4rem); }
.steps .contact-title { font-size: clamp(3rem, min(9vw, 15vh), 7.5rem); }
.steps .principles { margin-top: 24px; }
.steps .principles li { padding: 13px 0; }
.steps .phone { width: min(190px, 24vh); }
.steps .media-pair .phone + .phone { margin: calc(min(190px, 24vh) * -1.9) 0 0 calc(min(190px, 24vh) * 0.65); }
.steps .device { width: min(380px, 50vh); }
@media (max-height: 760px) {
  .scroll-cue { display: none; }
  .steps .ch-about { padding-bottom: 24px; }
  .steps .ch-about .ch-title { margin-top: 16px; font-size: clamp(2rem, min(5vw, 7.2vh), 4rem); }
  .steps .ch-about .ch-lede { margin-top: 14px; font-size: 16.5px; }
  .steps .principles { margin-top: 16px; }
  .steps .principles li { padding: 9px 0; }
  .steps .principles p { margin-top: 3px; font-size: 15px; }
}

/* Each chapter's content plays in when it becomes current, and fades out as it leaves */
@media (prefers-reduced-motion: no-preference) {
  .steps .ch:not(.ch-hero) :is(.panel, .slide-copy, .contact) > *,
  .steps .ch:not(.ch-hero) :is(.group, .principles li) {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .steps .ch.is-current :is(.panel, .slide-copy, .contact) > *,
  .steps .ch.is-current :is(.group, .principles li) {
    opacity: 1; transform: none;
    transition: opacity 0.8s var(--ease) calc(0.2s + var(--i, 0) * 0.07s), transform 1s var(--ease) calc(0.2s + var(--i, 0) * 0.07s);
  }
  .steps .ch:not(.ch-hero) .slide-media {
    opacity: 0; transform: translateX(56px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .steps .ch.is-current .slide-media {
    opacity: 1; transform: none;
    transition: opacity 1s var(--ease) 0.35s, transform 1.3s var(--ease) 0.35s;
  }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(2) { --i: 1; }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(3) { --i: 2; }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(4) { --i: 3; }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(5) { --i: 4; }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(6) { --i: 5; }
  .steps :is(.panel, .slide-copy, .contact) > :nth-child(n + 7) { --i: 6; }
  .steps .group:nth-child(1), .steps .principles li:nth-child(1) { --i: 4; }
  .steps .group:nth-child(2), .steps .principles li:nth-child(2) { --i: 5.5; }
  .steps .group:nth-child(3), .steps .principles li:nth-child(3) { --i: 7; }
}

/* Phones and narrow screens: the scene sits above, text below */
@media (max-width: 819px) {
  .scene::after {
    background:
      radial-gradient(ellipse 140% 80% at 50% 30%, transparent 50%, rgba(var(--bg-rgb), 0.6) 100%),
      linear-gradient(180deg, rgba(var(--bg-rgb), 0) 38%, rgba(var(--bg-rgb), 0.7) 62%, rgba(var(--bg-rgb), 0.9) 100%);
  }
  .ch { align-items: flex-start; padding-top: 48vh; padding-top: 48svh; }
  .ch-hero { align-items: flex-end; padding-top: 44vh; padding-top: 44svh; padding-bottom: 40px; }
  .ch-studio, .ch-app, .ch-about { min-height: 0; }
  .ch-contact { min-height: 100vh; min-height: 100svh; padding-top: 52svh; padding-bottom: 72px; }
  .panel, .slide-copy {
    padding: 22px 18px; margin: 0 -2px; border-radius: 18px;
    background: rgba(8, 11, 17, 0.8); box-shadow: inset 0 0 0 1px var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero-lede { font-size: 17px; }
  .app-row { margin-top: 28px; }
  .app-row a { padding-right: 5px; }
  .app-row span { display: none; }
  .scroll-cue { display: none; }
  .groups { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .group-h { min-height: 0; }
  .group ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .slide { gap: 28px; }
  .slide-media { align-items: center; }
  .phone { width: min(190px, 46vw); }
  .media-pair .phone { width: min(170px, 42vw); }
  .media-pair .phone + .phone { margin: -300px 0 0 90px; }
  .media-cap { align-self: flex-start; }
  .slide-media::before { inset: 22px -8px -8px -8px; }
}
@media (max-width: 380px) {
  .media-pair .phone + .phone { margin: -260px 0 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
