/* TECH Team Six, techteam-six.com
   Order: fonts, tokens, base, glass, components, video bands, page layout, wider screens, motion. Option B palette, Phase 10 brightness.
   Text floor: 16px. Only small uppercase labels, chips and button text drop to 14px (--fs-label). No red or green.
   Gold is for headline key words only.
   Nothing relies on color alone: every state also has text, an icon, a shape or a pattern. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Montserrat: latin subset, weights 100-500. All h1/h2/h3, big numerals and prices. OFL text is in fonts/. */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* color */
  --bg: #04060f;
  --surface-1: #0b1020;
  --surface-2: #11182d;
  --line: #2a3556; /* hairlines and dividers */
  --border: #1e2742;
  --text: #e8edf7; /* body, 15:1 on --bg */
  --heading: #f5f7fb;
  --muted: #b8c2d6; /* secondary text, 11:1 on --bg, 9:1 on --surface-2 */
  --accent: #8db8ff;
  --gold: #ffd36b;
  --on-accent: #04060f;
  --glow: rgb(141 184 255 / 0.2);
  --shot-bg: #0a0a0a; /* background baked into the Coach Price screenshot */

  /* glass: translucent navy, hairline edge, inset top highlight */
  --glass: rgb(4 6 15 / 0.66);
  --glass-hero: rgb(4 6 15 / 0.76);
  --glass-strong: rgb(4 6 15 / 0.82);
  --glass-solid: rgb(4 6 15 / 0.96); /* fallback when backdrop-filter is unsupported */
  --glass-line: rgb(238 242 255 / 0.2);
  --glass-hi: inset 0 1px 0 rgb(255 255 255 / 0.09);
  --blur: 0px; /* raised on wider screens, so phones skip large backdrop blurs */

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --fs-label: 0.875rem; /* 14px: small uppercase labels, chips, button text only */
  --fs-sm: 1rem; /* 16px, the floor for all other text */
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 0.8rem + 6vw, 5rem);
  --fs-numeral: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --track-head: 0.01em; /* one tracking value for all Montserrat headings */
  --track-label: 0.16em; /* eyebrows and small uppercase labels */

  /* spacing, 4px steps */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* radius */
  --r-sm: 0.375rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-pill: 62.5rem;

  /* layout */
  --max: 72rem;
  --gutter: var(--sp-5);
  --nav-h: 3.75rem;
  --tap: 2.75rem; /* 44px minimum target */
  --focus: 3px solid var(--accent);

  /* film grain: tiny SVG feTurbulence tile, white noise made from the turbulence red channel */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.4 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--sp-4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, .h2 { font-family: var(--font-display); color: var(--heading); font-weight: 300; letter-spacing: var(--track-head); }
h3 { font-weight: 500; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; color: var(--heading); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: var(--r-sm); box-shadow: 0 0 0 6px var(--bg); }
.gold { color: var(--gold); }
.skip {
  position: absolute; left: var(--sp-4); top: -6rem; z-index: 20;
  background: var(--text); color: var(--bg); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { top: var(--sp-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Glass ---------- */
/* Glass surfaces share one recipe. Text always sits on a panel like these, never straight on the video. */
.pill, .term, .btn-secondary, .card, .faq-item, .faq-head, .about-copy, .note, .hero-panel, .feature-card, .frame {
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pill, .term, .btn-secondary, .card, .faq-item, .faq-head, .about-copy, .note, .hero-panel, .feature-card, .frame, .nav { background-color: var(--glass-solid); }
}

/* ---------- Components ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* buttons: filled or glass shape + text label. States: default, hover, focus, active, disabled */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: var(--sp-2) var(--sp-5);
  border: 2px solid var(--accent); border-radius: var(--r-sm);
  font: inherit; font-size: var(--fs-base); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgb(141 184 255 / 0.35), 0 0.5rem 1.75rem -0.5rem rgb(141 184 255 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.45);
}
.btn-primary:hover { background: var(--heading); border-color: var(--heading); color: var(--on-accent); box-shadow: 0 0 0 1px rgb(238 242 255 / 0.4), 0 0.5rem 2rem -0.25rem rgb(238 242 255 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.6); }
.btn-secondary { background: rgb(4 6 15 / 0.55); color: var(--heading); box-shadow: var(--glass-hi); }
.btn-secondary:hover { background: rgb(238 242 255 / 0.18); color: var(--heading); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; border-style: dashed; }
.btn-sm { padding-inline: var(--sp-4); font-size: var(--fs-label); }

/* chips: one height, one shape; wrap neatly */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.25rem;
  font-size: var(--fs-label); line-height: 1.3; padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--glass-line); border-radius: var(--r-sm);
  background: rgb(17 24 45 / 0.8); color: var(--text); box-shadow: var(--glass-hi);
}
.chip-cert { border-color: var(--accent); font-weight: 600; }
.chip-cert svg { flex: none; width: 1rem; height: 1rem; color: var(--accent); }

/* status pill: frosted, pulsing dot plus text. Wraps cleanly on narrow screens. */
.pill {
  display: flex; align-items: flex-start; gap: var(--sp-3); width: fit-content; max-width: 100%;
  padding: var(--sp-2) var(--sp-4); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); background: var(--glass-hero); box-shadow: var(--glass-hi);
  font-size: var(--fs-sm); line-height: 1.45; color: var(--heading); text-wrap: balance;
}
.pill-text { min-width: 0; }
.pill-dot {
  position: relative; flex: none; width: 0.625rem; height: 0.625rem; margin-top: 0.5rem;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgb(141 184 255 / 0.35);
}
.pill-dot::after {
  content: ""; position: absolute; inset: -0.25rem; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.85; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* eyebrow: small tracked uppercase label */
.eyebrow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: var(--sp-6); height: 2px; background: var(--accent); }

/* nav: quiet. Faint brand, plain links, one button. */
.nav {
  position: sticky; top: 0; z-index: 10; background: rgb(4 6 15 / 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text); text-decoration: none; }
.brand:hover { color: var(--heading); }
.brand-tile {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  background: var(--text); color: var(--bg); border-radius: var(--r-sm);
  font-weight: 800; font-size: var(--fs-md); line-height: 1;
}
.brand-name { font-weight: 500; letter-spacing: 0.14em; font-size: var(--fs-label); text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.nav-links { display: none; }
.nav-links a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; font-size: 1rem; padding: var(--sp-2) var(--sp-1); }
.nav-links a:hover { color: var(--heading); text-decoration-thickness: 2px; }
.nav-end { display: flex; align-items: center; gap: var(--sp-4); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  min-height: var(--tap); padding: var(--sp-2) var(--sp-1); font-size: var(--fs-sm); color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { text-decoration-thickness: 2px; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + var(--sp-2)); min-width: 13rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-2);
}
.menu-list a { display: block; padding: var(--sp-3) var(--sp-4); color: var(--text); font-size: var(--fs-base); border-radius: var(--r-sm); }
.menu-list a:hover { background: var(--surface-1); }

/* cards: glass, hairline edge, inset highlight */
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  box-shadow: var(--glass-hi); overflow: hidden;
}

/* terminal card: JetBrains Mono used here only. Frosted, with a faint scanline layer and a blinking caret. */
.term {
  position: relative; background: var(--glass-hero); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--glass-hi), 0 var(--sp-8) var(--sp-16) calc(-1 * var(--sp-5)) var(--glow);
}
.term::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.035) 0, rgb(255 255 255 / 0.035) 1px, transparent 1px, transparent 4px);
}
.term-bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--glass-line); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); }
.term-bar::before { content: ""; width: 0.625rem; height: 0.625rem; border: 2px solid var(--accent); border-radius: 50%; }
.term-body { padding: var(--sp-3) var(--sp-5) var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.7; }
.term-body p { margin: 0; }
.term-cmd { margin-top: var(--sp-2); color: var(--heading); }
.term-body > :first-child { margin-top: 0; }
.term-prompt { color: var(--accent); }
.term-out { color: var(--text); overflow-wrap: anywhere; }
.term-row { display: grid; grid-template-columns: 6ch 1fr; column-gap: 1ch; color: var(--text); }
.term-key { color: var(--accent); }
.term-val { overflow-wrap: anywhere; }
.term-caret { display: inline-block; width: 0.6em; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* window frame: one dark glass frame with a thin top bar (three decorative dots + the build name) for every build visual */
.frame {
  margin: 0; background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  box-shadow: var(--glass-hi), 0 var(--sp-6) var(--sp-12) calc(-1 * var(--sp-4)) var(--glow); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: var(--sp-3); min-height: 2.5rem; padding: var(--sp-1) var(--sp-4); border-bottom: 1px solid var(--glass-line); background: rgb(17 24 45 / 0.85); }
.dots { display: inline-flex; gap: 0.375rem; flex: none; }
.dots i { display: block; width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 2px solid var(--muted); }
.frame-name { font-size: var(--fs-sm); line-height: 1.3; color: var(--heading); overflow-wrap: anywhere; }
.frame-shot { padding: var(--sp-2); background: #070a14; }
.frame-shot .zoom { border-radius: var(--r-sm); overflow: hidden; }
.frame-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* Coach Price is a phone-width screenshot on a near-black canvas; match the frame to the canvas so no seams show. */
.frame-shot-dark { background: var(--shot-bg); }
.frame-shot-dark img { object-fit: contain; object-position: center; background: var(--shot-bg); }
.zoom { position: relative; display: block; cursor: zoom-in; text-decoration: none; }
.zoom img { display: block; }
.zoom-cue {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); border: 1px solid var(--accent); border-radius: var(--r-pill);
  background: var(--bg); color: var(--heading); font-size: var(--fs-label); font-weight: 600; line-height: 1.4;
}
.zoom-cue svg { width: 1.125rem; height: 1.125rem; flex: none; }
.zoom:hover .zoom-cue { background: var(--surface-2); }
.zoom:focus-visible { outline-offset: -3px; border-radius: 0; }

/* Ask this site: a slim bar. Same element ids as before; script.js is unchanged for it. */
.ask-band { background: var(--surface-1); border-block: 1px solid var(--line); padding-block: var(--sp-8); }
.ask-bar { max-width: 52rem; margin-inline: auto; }
.ask-bar h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); }
.ask-form { margin-top: var(--sp-4); }
.ask-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-3); }
.ask-input { font-size: var(--fs-base); }
.ask-examples { margin-top: var(--sp-3); position: relative; z-index: 1; }
.ask-chip {
  min-height: var(--tap); padding: var(--sp-1) var(--sp-3); font: inherit; font-size: var(--fs-label);
  color: var(--heading); background: var(--surface-2); border: 1px solid var(--accent);
  border-radius: var(--r-sm); cursor: pointer;
}
.ask-chip:hover { background: var(--bg); border-color: var(--heading); }
.ask-note { margin-top: var(--sp-3); }
.ask-echo { margin-top: var(--sp-4); font-family: var(--font-mono); color: var(--heading); overflow-wrap: anywhere; }
.ask-echo .term-prompt { color: var(--accent); }
.ask-answer { margin-top: var(--sp-3); }
.ask-answer.is-shown {
  padding: var(--sp-4); border: 2px solid var(--accent); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); font-size: var(--fs-base); line-height: var(--lh-body);
}
.ask-answer.is-problem { border-style: dashed; border-color: var(--heading); }
.ask-answer .ask-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; }
.ask-answer .ask-head svg { flex: none; width: 1.25rem; height: 1.25rem; }
.ask-answer .ask-text { margin-top: var(--sp-2); font-family: var(--font-sans); overflow-wrap: anywhere; white-space: pre-wrap; }
.ask-answer .ask-follow { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.ask-send[aria-disabled="true"] { opacity: 0.6; border-style: dashed; cursor: progress; }

/* form fields */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: var(--fs-base); }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: var(--tap); padding: var(--sp-3) var(--sp-4);
  background: var(--bg); color: var(--text); border: 2px solid var(--muted);
  border-radius: var(--r-sm); font: inherit; font-size: var(--fs-base);
}
textarea.input { min-height: 9rem; resize: vertical; }
.input:hover { border-color: var(--heading); }
.input:disabled { opacity: 0.6; border-style: dashed; }
.input[aria-invalid="true"] { border-style: dashed; border-width: 3px; border-color: var(--heading); }
.field-msg { display: none; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
.input[aria-invalid="true"] + .field-msg { display: flex; }
.field-msg svg, .status svg { flex: none; width: 1.25rem; height: 1.25rem; }
.status {
  display: none; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4);
  border: 2px solid var(--accent); border-radius: var(--r-md); background: var(--surface-2);
}
.status.is-shown { display: flex; }
.status.is-problem { border-style: dashed; border-color: var(--heading); }
.status strong { display: block; }
.status ul { margin-top: var(--sp-2); padding-left: var(--sp-5); list-style: disc; }
/* Turnstile runs in dark theme; the box reserves the widget's height so the form does not shift. */
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; border-radius: var(--r-sm); color-scheme: dark; }
.cf-turnstile iframe { max-width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Video bands ---------- */
/* .vbg fills its parent (hero, About, FAQ + Contact strip) behind the content. Space is reserved by the parent,
   so nothing shifts when the poster or video arrives. data-state: poster | loading | playing | paused | off. */
.vbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); pointer-events: none; }
.vbg picture { position: absolute; inset: 0; }
.vbg-poster, .vbg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vbg picture img { max-width: none; }
.vbg video { opacity: 0; transition: opacity 0.9s ease; }
.vbg[data-state="playing"] video, .vbg[data-state="paused"] video { opacity: 1; }
/* Scrim: each band sets its own. Text never sits straight on the video, it sits on a glass panel. */
.vbg-scrim { position: absolute; inset: 0; background: rgb(4 6 15 / 0.5); }
.vbg-grain { position: absolute; inset: 0; background-image: var(--grain); background-size: 160px 160px; opacity: 0.05; }

/* ---------- Page layout ---------- */
.section { padding-block: var(--sp-16); }
.section-alt {
  background: radial-gradient(ellipse at 15% 0%, rgb(141 184 255 / 0.08), transparent 55%), var(--surface-1);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 46rem; }
.section-head h2, .h2 { margin-top: var(--sp-3); font-size: var(--fs-2xl); line-height: var(--lh-tight); text-wrap: balance; }
.section-head p { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-md); }
.section-head .eyebrow + h2 { margin-top: var(--sp-3); }
.is-center { margin-inline: auto; text-align: center; }
.is-center .eyebrow { justify-content: center; }
.is-center .eyebrow::after { content: ""; width: var(--sp-6); height: 2px; background: var(--accent); }

/* hero: the video is the star. A light tint only; copy sits on one frosted panel. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sp-8) var(--sp-12); }
.hero .vbg-scrim { background: linear-gradient(to bottom, rgb(4 6 15 / 0.1), rgb(4 6 15 / 0.16) 70%, rgb(4 6 15 / 0.4)); }
.hero .vbg-grain { opacity: 0.04; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: var(--sp-6); }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: var(--sp-4); justify-items: start; }
.hero-panel {
  width: 100%; padding: var(--sp-6); background: var(--glass-hero); border: 1px solid var(--glass-line);
  border-radius: var(--r-lg); box-shadow: var(--glass-hi), 0 var(--sp-8) var(--sp-16) calc(-1 * var(--sp-5)) var(--glow);
}
/* Wordmark: Montserrat thin, uppercase, wide tracking, soft glow. Wraps to two lines before it can overflow. */
.hero h1 {
  margin-top: var(--sp-3); font-size: var(--fs-hero); font-weight: 200;
  line-height: var(--lh-tight); letter-spacing: 0.2em; text-transform: uppercase; text-wrap: balance;
  overflow-wrap: anywhere; color: var(--heading);
  text-shadow: 0 0 0.35em rgb(141 184 255 / 0.5), 0 0 1.1em rgb(141 184 255 / 0.2);
}
.headline { margin-top: var(--sp-5); font-size: var(--fs-lg); font-weight: 400; line-height: var(--lh-snug); color: var(--heading); text-wrap: balance; }
.lede { margin-top: var(--sp-3); color: var(--text); max-width: 36rem; }
.cta-row { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero .term { width: 100%; max-width: none; }

/* feature banner: one wide card for the lead build */
.feature { padding-block: var(--sp-12) var(--sp-8); }
.feature-card {
  display: grid; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg);
  box-shadow: var(--glass-hi), 0 var(--sp-8) var(--sp-16) calc(-1 * var(--sp-6)) var(--glow); overflow: hidden;
}
.feature-card .frame { border: 0; border-radius: 0; box-shadow: none; }
.feature-copy { padding: var(--sp-6); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); align-items: flex-start; }
.feature-copy h2 { font-size: var(--fs-2xl); line-height: var(--lh-tight); text-wrap: balance; }
.feature-copy p { font-size: var(--fs-md); color: var(--text); }

/* stats: three plain numbers, centered, no detail lines */
.stats { padding-block: var(--sp-12); }
.stats-grid { display: grid; gap: var(--sp-8); text-align: center; }
.stat-num { font-family: var(--font-display); font-size: var(--fs-numeral); font-weight: 200; line-height: 1; letter-spacing: var(--track-head); color: var(--heading); }
.stat-label { margin-top: var(--sp-2); font-size: var(--fs-md); color: var(--muted); text-wrap: balance; line-height: var(--lh-snug); }

/* what I build: split layout, big numerals */
.split { display: grid; gap: var(--sp-8); }
.numlist { margin-top: 0; }
.col { display: grid; grid-template-columns: clamp(4.5rem, 12vw, 7rem) 1fr; gap: var(--sp-4); padding-block: var(--sp-6); border-top: 1px solid var(--line); align-items: start; }
.col:last-child { border-bottom: 1px solid var(--line); }
.col-n { font-family: var(--font-display); font-size: var(--fs-numeral); font-weight: 200; line-height: 1; color: var(--accent); }
.col h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.col p { margin-top: var(--sp-2); color: var(--text); }
.col p.col-n { margin-top: 0; color: var(--accent); }
.tools { margin-top: var(--sp-6); }
.tools summary {
  display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); cursor: pointer; list-style: none;
  font-weight: 600; color: var(--heading);
}
.tools summary::-webkit-details-marker { display: none; }
.tools summary::before {
  content: "+"; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none;
  border: 2px solid var(--accent); border-radius: var(--r-sm); color: var(--accent); font-weight: 700; line-height: 1;
}
.tools[open] summary::before { content: "\2212"; }
.tools .chips { margin-top: var(--sp-3); }

/* builds */
.note { margin-top: var(--sp-5); display: flex; width: fit-content; max-width: 100%; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--glass-line); border-radius: var(--r-md); background: var(--glass); box-shadow: var(--glass-hi); color: var(--text); text-align: left; }
.section-head .note { margin-inline: auto; font-size: var(--fs-sm); }
.note svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.builds { margin-top: var(--sp-10); display: grid; gap: var(--sp-10) var(--sp-8); }
.build { display: flex; flex-direction: column; gap: var(--sp-4); }
.build-body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.build-tag { align-self: flex-start; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--accent); border-radius: var(--r-pill); color: var(--heading); }
.build h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
.build-outcome { color: var(--text); }
.build-more { color: var(--muted); }
.build-stack { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.stack-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading); margin-bottom: var(--sp-2); }
.stack-chips { list-style: none; padding: 0; margin: 0; }
.stack-chips .chip { margin: 0; }
.feature-copy .build-stack { width: 100%; margin-top: 0; }

/* lightbox: one shared dialog, fixed to the viewport so the page never shifts */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: var(--sp-16) var(--sp-4) var(--sp-4); border: 0;
  background: rgb(4 6 15 / 0.94); color: var(--text);
  overflow: auto; overscroll-behavior: contain; cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(4 6 15 / 0.94); }
.lightbox-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: default;
}
.lightbox-close {
  position: fixed; top: var(--sp-3); right: var(--sp-3); z-index: 1;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--tap); padding: var(--sp-2) var(--sp-4);
  border: 2px solid var(--accent); border-radius: var(--r-sm);
  background: var(--bg); color: var(--heading); font: inherit; font-size: var(--fs-base); font-weight: 600; cursor: pointer;
}
.lightbox-close svg { width: 1rem; height: 1rem; }
.lightbox-close:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-fade 0.15s ease-out; }
  @keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* IT foundation: a tight text list, no cards */
.it-list { margin-top: var(--sp-10); display: grid; column-gap: var(--sp-10); text-align: left; }
.it-list li { padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.it-list h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.it-list p { margin-top: var(--sp-1); color: var(--muted); }

/* pricing: plain columns with hairline dividers, the middle plan emphasized */
.plans { margin-top: var(--sp-10); display: grid; border-bottom: 1px solid var(--line); }
.plan { padding: var(--sp-8) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); border-top: 1px solid var(--line); }
.plan.is-popular { background: rgb(141 184 255 / 0.08); border-top: 4px solid var(--accent); padding-top: calc(var(--sp-8) - 3px); }
.plan-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--sp-1) var(--sp-3); border: 2px solid var(--accent); border-radius: var(--r-pill); color: var(--heading); background: var(--bg); }
.plan-badge svg { width: 1rem; height: 1rem; }
.plan h3 { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.plan-price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 300; line-height: var(--lh-tight); letter-spacing: var(--track-head); color: var(--heading); }
.plan-for { color: var(--text); }
.plan-points { display: flex; flex-direction: column; gap: var(--sp-2); }
.plan-points li { padding-left: var(--sp-5); position: relative; }
.plan-points li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* about: video band behind at about 40% brightness; copy sits on a smaller glass panel, the photo beside it */
.about { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sp-16); }
.about .vbg-scrim { background: radial-gradient(ellipse at 50% 50%, rgb(4 6 15 / 0.5), rgb(4 6 15 / 0.62)); }
.about-grid { position: relative; z-index: 1; display: grid; gap: var(--sp-6); align-items: center; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 var(--sp-6) var(--sp-12) calc(-1 * var(--sp-4)) var(--glow); max-width: 24rem; background: var(--surface-2); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }
.about-copy { padding: var(--sp-6); background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--glass-hi); }
.bio { margin-top: var(--sp-4); font-size: var(--fs-md); max-width: 40rem; color: var(--text); }
.values { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }
.value { border-top: 2px solid var(--glass-line); padding-top: var(--sp-3); }
.value h3 { font-size: var(--fs-base); }
.value p { margin-top: var(--sp-1); color: var(--text); }
.about-meta { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--glass-line); display: grid; gap: var(--sp-3); }
.meta-title { font-family: var(--font-display); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent); }
.about-meta p { color: var(--text); }

/* FAQ + contact: one strip with video behind. FAQ items sit on glass; the contact band has its own deeper tint. */
.strip { position: relative; isolation: isolate; overflow: hidden; border-block: 1px solid var(--line); }
.strip .vbg-scrim { background: linear-gradient(to bottom, rgb(4 6 15 / 0.5), rgb(4 6 15 / 0.58)); }
.strip > .section { position: relative; z-index: 1; }
.faq-grid { display: grid; gap: var(--sp-6); align-items: start; }
.faq-head { padding: var(--sp-6); background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--glass-hi); max-width: none; }
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item { padding: var(--sp-5); background: var(--glass-strong); border: 1px solid var(--glass-line); border-left: 3px solid var(--accent); border-radius: var(--r-md); box-shadow: var(--glass-hi); }
.faq-item h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.faq-item p { margin-top: var(--sp-2); color: var(--text); }
.faq-cta { margin-top: var(--sp-5); }
.faq-head .faq-cta { color: inherit; font-size: var(--fs-base); }

/* contact */
#contact { background: rgb(4 6 15 / 0.86); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: var(--sp-8); }
.contact-copy p { margin-top: var(--sp-4); color: var(--text); font-size: var(--fs-md); max-width: 34rem; }
.contact-copy .hours { font-size: var(--fs-base); color: var(--heading); }
.form { padding: var(--sp-6); display: grid; gap: var(--sp-5); background: var(--glass-strong); min-width: 0; }
.form-split { display: grid; gap: var(--sp-5); }
.helper { font-size: var(--fs-sm); color: var(--muted); }

/* footer */
.footer { padding-block: var(--sp-10); border-top: 1px solid var(--line); background: var(--surface-1); }
.footer-grid { display: grid; gap: var(--sp-5); }
.footer p { color: var(--muted); font-size: var(--fs-sm); max-width: 44rem; }
.footer .brand { margin-bottom: var(--sp-2); }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: var(--sp-5); padding-block: var(--sp-16); }
.lost-num { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 200; line-height: 1; }
.lost p { color: var(--muted); max-width: 34rem; font-size: var(--fs-md); }

/* Narrow phones: keep the 6 tile, Menu, and the full "Start a project" label in one row. */
@media (max-width: 30rem) {
  .nav .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav .brand { gap: 0; }
  .nav-end { gap: var(--sp-3); }
}

/* ---------- Wider screens ---------- */
@media (min-width: 40rem) {
  :root { --gutter: var(--sp-8); }
  .pill { border-radius: var(--r-pill); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat { border-left: 1px solid var(--line); }
  .builds { grid-template-columns: repeat(2, 1fr); }
  .it-list { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .form-split { grid-template-columns: 1fr 1fr; }
  .ask-examples { flex-wrap: nowrap; }
  .hero-panel { padding: var(--sp-8); }
}
@media (min-width: 48rem) {
  :root { --blur: 12px; }
}
@media (min-width: 64rem) {
  :root { --nav-h: 4.25rem; --fs-base: 1.125rem; --fs-sm: 1.125rem; }
  .section { padding-block: var(--sp-24); }
  .hero { padding-block: var(--sp-24) var(--sp-24); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--sp-12); }
  .hero .term { justify-self: end; }
  .headline { font-size: var(--fs-xl); }
  .menu { display: none; }
  .nav-links { display: flex; gap: var(--sp-4); }
  .feature-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .feature-copy { padding: var(--sp-10); }
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-16); align-items: start; }
  .split-head { position: sticky; top: calc(var(--nav-h) + var(--sp-8)); }
  .it-list { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { border-top: 0; }
  .plan.is-popular { box-shadow: inset 0 4px 0 var(--accent); border-top: 0; padding-top: var(--sp-8); }
  .plan + .plan { border-left: 1px solid var(--line); }
  .plans { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--sp-16); }
  .about-copy { padding: var(--sp-8); }
  .about-photo { justify-self: end; max-width: none; width: 100%; }
  .faq-grid { grid-template-columns: 20rem minmax(0, 42rem); justify-content: space-between; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + var(--sp-8)); }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-16); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Big screens (TVs): the video sources are 704p, so add a touch of blur and a slight scale to hide softness. Grain and vignette are already on. */
@media (min-width: 120rem) {
  .vbg video, .vbg-poster { filter: blur(0.6px); transform: scale(1.02); }
  .vbg-grain { opacity: 0.08; background-size: 200px 200px; }
  :root { --max: 84rem; }
}

/* ---------- Motion ---------- */
/* Reduced motion: no pulse, no caret blink, no fades. Video is skipped in script.js. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active { transform: none; }
  .pill-dot::after { opacity: 0; }
}
