/* Sphere Link Innovations — studio site */

/* Arial standing in for Inter Tight until the web font arrives, scaled to Inter Tight's widths
   and vertical metrics so the swap doesn't move anything (one face per weight: Arial's bold is
   wider relative to Inter Tight's than its regular). The unicode-range is that of the Inter Tight
   subsets the page loads (latin, latin-ext), so a character Inter Tight lacks, like the → in
   the buttons, still comes from the system font, as before. */
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 500; size-adjust: 95.8%; ascent-override: 101.3%; descent-override: 25.1%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 93.5%; ascent-override: 103.7%; descent-override: 25.7%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0100-02BA, U+02BB-02BC, U+02BD-02C5, U+02C6, U+02C7-02CC, U+02CE-02D7, U+02DA, U+02DC, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD; }

:root {
  --bg: #000;
  --fg: #f5f5f2;
  --dim: rgba(245, 245, 242, 0.56);
  --faint: rgba(245, 245, 242, 0.32);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #c8ff3d; /* electric lime — the studio's own colour, distinct from both products' */
  --accent-ink: #000;
  --sans: "Inter Tight", "Inter Tight Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --edge: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))); /* content edge, shared by nav and .wrap */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--dim);
}
.accent { color: var(--accent); }
.dim { color: var(--faint); }

/* ── Scroll progress ── */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ── Cursor ── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js.has-cursor .cursor { display: block; }
  .js.has-cursor, .js.has-cursor a { cursor: none; }
  .cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; mix-blend-mode: difference; }
  .cursor i { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid #fff;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
  }
  .cursor.is-link .cursor-ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; }
}

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--edge);
  mix-blend-mode: difference;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; transition: transform 0.9s var(--ease); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.nav nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 14px; }
.nav nav a { position: relative; padding: 4px 0; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Reveal system ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.display {
  font-size: clamp(52px, 11.5vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 600;
}
/* the reveal mask: clips vertically only (the slide-up), never the first or last letter; the
   bottom padding holds Inter Tight's full descent (g, y, p) at line-height 0.92, and the hidden
   offset clears that padding so nothing peeks out before the reveal */
.line { display: block; overflow: hidden; overflow: visible clip; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.line > span { display: block; }
.js .line > span { transform: translateY(125%); transition: transform 1.25s var(--ease); }
.js .line:nth-child(2) > span { transition-delay: 0.12s; }
.js .in .line > span, .js .hero.ready .line > span { transform: none; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(56px, 9vh, 110px);
  overflow: hidden;
}
#sphere { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .sub { margin-top: 36px; max-width: 34ch; font-size: clamp(18px, 1.7vw, 24px); color: var(--dim); line-height: 1.4; }
.scroll-cue {
  position: absolute; z-index: 3; right: var(--edge); bottom: clamp(56px, 9vh, 110px);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i { display: block; width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ── Studio ── */
.studio { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 180px); }
.statement {
  margin: 32px 0 clamp(80px, 12vh, 150px);
  max-width: 24ch;
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.statement .w { color: rgba(245, 245, 242, 0.16); transition: color 0.5s ease; }
.statement .w.lit { color: var(--fg); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillars li { padding: 32px 32px 8px 0; }
.pillars li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.pillars .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.pillars h3 { margin: 24px 0 12px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.pillars p { color: var(--dim); font-size: 16px; max-width: 34ch; }

/* ── Platforms ── */
.platforms { padding-top: clamp(40px, 8vh, 100px); }
.section-head { padding-bottom: clamp(50px, 9vh, 110px); }
.section-head .eyebrow { margin-bottom: 24px; }
.h2 { font-size: clamp(44px, 8vw, 132px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 600; }

.platform { position: relative; border-top: 1px solid var(--line); padding: clamp(70px, 12vh, 150px) 0; isolation: isolate; }
.platform::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 61, 0.075), transparent 60%);
  opacity: 0; transition: opacity 0.6s;
}
.platform.is-hot::before { opacity: 1; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.platform-alt .platform-copy { order: 2; }
.platform-alt .platform-visual { order: 1; }
.platform-alt .platform-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.platform-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.platform-index span { color: var(--accent); margin-right: 10px; }
.platform-name { margin: 20px 0 22px; font-size: clamp(48px, 6.2vw, 100px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600; }
.platform-desc { max-width: 30ch; font-size: clamp(19px, 1.75vw, 26px); line-height: 1.32; color: rgba(245, 245, 242, 0.82); letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; max-width: 46ch; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); transition: border-color 0.3s, color 0.3s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); }

.cta {
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 28px 18px 30px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform 0.55s var(--ease); border-radius: inherit; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -12px rgba(200, 255, 61, 0.55); }
.cta:hover::before { transform: none; }
.cta-arrow { display: inline-block; transition: transform 0.5s var(--ease); font-size: 20px; line-height: 1; }
.cta:hover .cta-arrow { transform: translate(4px, -4px); }

/* product visuals */
.platform-visual { position: relative; perspective: 1400px; min-width: 0; }
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #171717; border-bottom: 1px solid #2a2a2a; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.frame-bar span { margin-left: 12px; padding: 3px 14px; border-radius: 6px; background: #262626; color: #9a9a9a; font-family: var(--mono); font-size: 11px; }
.frame img { display: block; width: 100%; height: auto; }
.platform-visual[data-tilt] .frame:not(.frame-back) { transition: transform 0.25s ease-out; }
.frame-back { position: absolute; z-index: -1; width: 74%; right: -6%; bottom: -11%; filter: brightness(0.36) saturate(0.7); }
@media (min-width: 900px) { .platform:not(.platform-alt) .platform-visual { padding-bottom: 12%; } }

/* ── Closing ── */
.closing { border-top: 1px solid var(--line); padding: clamp(110px, 20vh, 240px) 0 clamp(80px, 12vh, 140px); }
.closing .eyebrow { margin-bottom: 28px; }
.closing-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(50px, 9vh, 110px); padding-top: 28px; border-top: 1px solid var(--line); }
.closing-row p { color: var(--dim); max-width: 32ch; }
.mail { position: relative; font-size: clamp(22px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.03em; word-break: break-word; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0.18); transform-origin: left; transition: transform 0.7s var(--ease); }
.mail:hover { color: var(--accent); }
.mail:hover::after { transform: scaleX(1); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--dim); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a:hover { color: var(--accent); }

/* ── Phone menu (top bar with menu button, full-screen sheet) ── */
.nav-toggle, .mmenu { display: none; }
.tag-illustrative {
  position: absolute; top: 9px; right: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.frame-bar + .tag-illustrative, .frame > .tag-illustrative { top: 7px; }
.built-visual > .tag-illustrative { top: 14px; right: 14px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 28px 0 12px; border-left: 0; }
  .pillars li + li { border-top: 1px solid var(--line); }
  .platform-grid, .platform-alt .platform-grid { grid-template-columns: 1fr; }
  .platform-alt .platform-copy, .platform-alt .platform-visual { order: initial; }
  .frame-back { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .brand span { font-size: 13px; }
  .nav nav { gap: 16px; }
}

/* ── Hero headline: three lines now, so a touch smaller ── */
.hero .display { font-size: clamp(44px, 8.4vw, 148px); }
.hero .line > span { text-wrap: balance; }

/* ── Subpages (About, Contact) ── */
.page-hero { padding: clamp(150px, 26vh, 260px) 0 clamp(50px, 8vh, 100px); }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero .sub { margin-top: 32px; max-width: 30ch; font-size: clamp(18px, 1.7vw, 24px); color: var(--dim); line-height: 1.4; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(140px, 0.3fr) 1fr; gap: 24px 48px; padding: clamp(36px, 6vh, 64px) 0; border-bottom: 1px solid var(--line); }
.row .eyebrow { padding-top: 0.7em; }
.row .eyebrow b, .row .eyebrow[data-n]::before { color: var(--accent); font-weight: 400; margin-right: 12px; }
.row .eyebrow[data-n]::before { content: attr(data-n); }
.row-text { max-width: 26ch; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.row-text + .row-text { margin-top: 0.6em; color: var(--dim); }
.row-text a { border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.row-text a:hover { color: var(--accent); border-color: var(--accent); }
.book { margin-top: clamp(40px, 7vh, 80px); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; }
.book h2 { font-size: clamp(26px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; }
.book p { margin: 14px 0 32px; color: var(--dim); }
.book .note { margin: 14px 0 0; font-size: 13px; }
.direct { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.direct a { display: block; padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.3s, transform 0.5s var(--ease); }
.direct a:hover { border-color: var(--accent); transform: translateY(-2px); }
.direct small { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.direct span { font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.02em; word-break: break-word; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .direct { grid-template-columns: 1fr; }
}

/* ── About: extra sections (reuse the existing reveal, card and CTA patterns) ── */
.block { padding: clamp(80px, 13vh, 160px) 0 clamp(20px, 4vh, 50px); }
.block-tight { padding-top: clamp(50px, 8vh, 100px); }
.block .eyebrow { margin-bottom: 24px; }
.h2-md { font-size: clamp(38px, 6vw, 96px); }
.built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 7vh, 80px); }
.built-card { display: block; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease); }
.built-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.built-visual { position: relative; height: clamp(190px, 21vw, 300px); overflow: hidden; background: #000; }
.built-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, #000); pointer-events: none; }
.built-visual img { width: 100%; transition: transform 0.9s var(--ease); }
.built-card:hover .built-visual img { transform: scale(1.03); }
.built-copy { padding: clamp(24px, 3vw, 40px); }
.built-copy h3 { font-size: clamp(34px, 4.4vw, 68px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.built-copy p { margin: 16px 0 28px; max-width: 30ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; color: rgba(245, 245, 242, 0.82); }
.visit { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); }
.visit i { display: inline-block; font-style: normal; transition: transform 0.5s var(--ease); }
.built-card:hover .visit i { transform: translate(3px, -3px); }
.approach { margin-top: 0; }
.closing-cta { margin-top: clamp(44px, 8vh, 90px); }
@media (max-width: 900px) { .built { grid-template-columns: 1fr; } }

/* ── Tablets (768–1023px): same solid fixed bar as phones, inline links instead of the menu ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --bar: 64px; }
  body { padding-top: var(--bar); }
  .nav {
    height: var(--bar); padding: 0 var(--edge);
    background: #000; mix-blend-mode: normal; border-bottom: 1px solid var(--line);
  }
  .hero { min-height: calc(100svh - var(--bar)); padding-top: 32px; }
  .page-hero { padding-top: 80px; }
  #platforms, #studio { scroll-margin-top: var(--bar); }
}

/* ── Phones and small tablets: sticky solid top bar + full-screen menu ── */
@media (max-width: 767px) {
  :root { --bar: 64px; }
  body { padding-top: var(--bar); }
  .nav {
    height: var(--bar); padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
    background: #000; mix-blend-mode: normal; border-bottom: 1px solid var(--line);
  }
  .js .nav nav { display: none; }
  .brand { min-height: 44px; }
  .js .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mmenu:not([hidden]) {
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    position: fixed; inset: 0; z-index: 70; background: #000; padding-bottom: 40px;
    animation: mmenu-in 0.22s ease-out;
  }
  @keyframes mmenu-in { from { opacity: 0; } to { opacity: 1; } }
  .mmenu-top {
    display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
    padding: 10px max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
  }
  .mmenu-close {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; padding: 0;
    background: none; border: 0; border-radius: 50%; color: var(--accent); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mmenu-top .brand { justify-self: center; font-size: 14px; gap: 8px; white-space: nowrap; }
  .mmenu-nav { display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 7vh, 56px) 20px 0; }
  .mmenu-nav a {
    display: block; padding: 16px 12px; min-height: 52px;
    font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
    transition: color 0.2s;
  }
  .mmenu-nav a[aria-current="page"], .mmenu-nav a:active, .mmenu a:focus-visible { color: var(--accent); }
  .mmenu-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 32px; padding: 0 20px; }
  .mmenu-sub { display: block; padding: 12px; min-height: 48px; font-size: 16px; letter-spacing: 0.06em; color: var(--dim); text-align: center; }
  .mmenu-sub:active { color: var(--accent); }
  .mmenu-pill {
    display: flex; align-items: center; justify-content: center; width: 100%; max-width: 320px; min-height: 52px; margin-top: 12px;
    border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600;
  }
  html.menu-open, html.menu-open body { overflow: hidden; }

  /* anchors land below the fixed bar */
  #platforms, #studio { scroll-margin-top: var(--bar); }

  /* hero: sits under the bar, not behind it */
  .hero { min-height: calc(100svh - var(--bar)); padding-top: 32px; }
  .hero .eyebrow, .hero .sub { text-shadow: 0 0 14px #000, 0 0 5px #000; }
  .page-hero { padding-top: 56px; }

  /* no stagger when cards are stacked: each one reveals as it arrives */
  .pillars li.reveal { transition-delay: 0s !important; }
  .built .reveal { transition-delay: 0s !important; }

  /* footer and inline links: comfortable thumb targets */
  .footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-row { gap: 4px 24px; }
  .row-text a { padding: 6px 0; }
  .mail { display: inline-block; padding: 8px 0; }

}
@media (max-width: 480px) {
  .display { font-size: 13.5vw; }
  .hero .display { font-size: clamp(38px, 12vw, 64px); }
  .h2 { font-size: clamp(36px, 12vw, 56px); }
  .platform-name { font-size: clamp(44px, 14vw, 64px); }
  .built-copy h3 { font-size: clamp(34px, 11vw, 48px); }
}

/* ── Touch-sized targets through tablet widths ── */
@media (max-width: 1024px) {
  .brand { min-height: 44px; }
  .nav nav a { padding: 12px 6px; }
  .footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0 -8px; }
  .mail { display: inline-block; padding: 8px 0; }
}
@media (max-width: 767px) {
  .eyebrow { font-size: 13px; }
  /* no one-word last lines */
  .sub, .book h2, .row-text, .built-copy p, .h2, .closing-row p { text-wrap: balance; }
  .pillars p, .platform-desc, .book p, .direct span { text-wrap: pretty; }
  .footer nav { gap: 0 16px; }
}

/* ── SEO/AEO additions: lead line under a section heading, label above the direct contact details ── */
.approach-lead { margin: 0 0 clamp(28px, 5vh, 52px); max-width: 30ch; font-size: clamp(24px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.direct-label { margin: clamp(32px, 5vh, 52px) 0 16px; }

/* ── Programs pages (Affiliate, Partner): hero actions, terms list, draft note ── */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--fg); border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.terms > div { padding: clamp(24px, 4vh, 36px) 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.terms dd { margin: 12px 0 0; max-width: 34ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.01em; color: rgba(245, 245, 242, 0.82); }
.draft-note { margin-top: 28px; max-width: 60ch; font-size: 15px; color: var(--dim); }
.draft-note a { color: var(--fg); border-bottom: 1px solid var(--line); padding: 6px 0; transition: color 0.3s, border-color 0.3s; }
.draft-note a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .terms dt { font-size: 13px; } .terms dd, .draft-note { text-wrap: pretty; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .line > span { transition: none; transform: none; opacity: 1; }
  .scroll-cue i::after { animation: none; }
  .statement .w { color: var(--fg); }
}

/* ── Programs menu (desktop dropdown + phone accordion) ── */
.nav-menu { position: relative; }
.nav-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
}
.nav-menu-btn svg { transition: transform 0.3s var(--ease); }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
  display: none; position: absolute; top: calc(100% + 14px); left: -20px; width: 300px;
  padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #0b0b0b;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
/* without JavaScript the panel opens on hover and keyboard focus */
html:not(.js) .nav-menu:hover .nav-panel, html:not(.js) .nav-menu:focus-within .nav-panel, .nav-panel.open { display: block; }
.nav .nav-panel a { display: block; padding: 12px 14px; border-radius: 12px; }
.nav .nav-panel a::after { content: none; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.nav-panel a span { display: block; font-size: 15px; font-weight: 600; color: var(--fg); }
.nav-panel a small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--dim); }
.nav-panel a[aria-current="page"] span { color: var(--accent); }
/* the bar blends with the page; an open menu needs real colours to stay readable */
.nav.has-open { mix-blend-mode: normal; }
.mmenu-group { display: flex; flex-direction: column; align-items: center; }
.mmenu-acc {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 12px; min-height: 52px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 700 15px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.mmenu-acc svg { transition: transform 0.3s var(--ease); }
.mmenu-acc[aria-expanded="true"] { color: var(--accent); }
.mmenu-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.mmenu-nav .mmenu-acc-panel a { font-size: 14px; color: var(--dim); }

/* ── Footer: program links and the Sign in group ── */
.footer-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.footer .footer-signin a:hover { color: var(--accent); }
@media (max-width: 1024px) { .footer-signin a { display: inline-flex; align-items: center; min-height: 44px; } }

/* ── Programs pages: commission box, FAQ and the application form ── */
.offer { margin-top: 40px; max-width: 760px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 24px; }
.offer-head { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.offer-head .accent { white-space: nowrap; }
.offer h2 { margin-top: 24px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.offer ul { margin-top: 12px; display: grid; gap: 10px; }
.offer li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; color: rgba(245, 245, 242, 0.82); }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.offer .draft-note { margin-top: 18px; }
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.gets li { padding: clamp(22px, 3.6vh, 32px) 0; border-bottom: 1px solid var(--line); }
.gets h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; font-weight: 600; }
.gets p { margin-top: 8px; color: var(--dim); font-size: 16px; max-width: 38ch; }
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; min-height: 44px;
  font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; max-width: 64ch; color: var(--dim); font-size: 17px; }
.faq details p a { color: var(--fg); border-bottom: 1px solid var(--line); }

.apply .form, .apply .approach-lead { max-width: 760px; }
.form [hidden] { display: none !important; }
.form { display: grid; gap: 22px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--fg); padding: 0; }
.field .hint { font-size: 14px; color: var(--dim); }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="number"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: #0b0b0b; color: var(--fg);
  font: 400 17px/1.4 var(--sans);
}
.form textarea { min-height: 128px; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: #ff8a80; }
.field-error { font-size: 14px; color: #ffb4ab; }
.field-error:empty { display: none; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(245, 245, 242, 0.82); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { color: var(--fg); border-bottom: 1px solid var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .cta { justify-self: start; border: 0; cursor: pointer; font-family: var(--sans); }
.form .cta[disabled] { opacity: 0.6; cursor: progress; }
.form-status { padding: 18px 20px; border-radius: 16px; font-size: 16px; }
.form-status:empty { display: none; }
.form-status.is-ok { border: 1px solid var(--accent); }
.form-status.is-error { border: 1px solid #ff8a80; color: #ffd8d3; }
.form-status strong { display: block; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 4px; color: var(--fg); }
@media (max-width: 900px) { .gets { grid-template-columns: 1fr; } }

/* ── Sign in page ── */
.roles { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; }
.roles [role="tab"] {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: var(--dim);
  font: 600 16px/1 var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.roles [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.roles [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.role-panel { margin-top: clamp(28px, 5vh, 48px); max-width: 760px; }
.role-panel h2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
.role-panel p { margin-top: 14px; max-width: 46ch; color: var(--dim); font-size: 18px; }
.role-panel .hero-actions { margin-top: 32px; }
/* five-step lists reuse .pillars; on a 3-column row the 4th step starts a fresh row */
ol.pillars { list-style: none; margin: 0; padding: 0; }
@media (min-width: 901px) { .pillars.steps li:nth-child(3n + 1) { padding-left: 0; border-left: 0; } .pillars.steps li:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) {
  .roles [role="tab"], .choice span, .nav-menu-btn svg, .mmenu-acc svg { transition: none; }
  .mmenu:not([hidden]) { animation: none; }
}
/* sign in: with JavaScript, only the selected role shows from the first paint (js/sign-in.js picks it) */
.js .role-panel[data-inactive] { display: none; }
.js .role-panel[data-inactive][data-active] { display: block; }

/* ════ Programs pages v2 (2026-10-03): layout, modal and floating controls ════ */
html:has(> body.program) { scroll-padding-top: 96px; }
@media (max-width: 1023px) { html:has(> body.program) { scroll-padding-top: calc(var(--bar, 64px) + 16px); } }
/* a quiet fade-in below the hero as the page loads (opacity only, no layout shift). The hero
   has its own entrance, and is left out here so the largest paint isn't delayed. */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js body.program main > section:not(.program-hero) { animation: page-in 0.6s ease-out 0.15s both; }

/* hero: copy on the left, the program's illustration on the right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-art { justify-self: end; width: min(100%, 420px); aspect-ratio: 1; }
.motif { width: 100%; height: 100%; display: block; }
.motif .m-dots { fill: var(--fg); }
.motif .m-accent { fill: var(--accent); }
.program-hero .hero-actions { gap: 12px 28px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; } /* phones and tablets: the copy and the button come first */
}

/* the commission line as a standout panel (same words, bigger stage) */
.offer { position: relative; overflow: hidden; margin-top: clamp(48px, 8vh, 80px); max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px clamp(28px, 5vw, 72px); align-items: start; }
.offer .offer-head { grid-column: 1; grid-row: 1 / span 3; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.offer .offer-head .accent { display: block; white-space: normal; }
.offer h2, .offer ul, .offer .draft-note { grid-column: 2; }
.offer h2 { margin-top: 0; }
.offer-affiliates { background: radial-gradient(120% 140% at 0% 0%, rgba(200, 255, 61, 0.12), transparent 55%), #050505; border-color: rgba(200, 255, 61, 0.35); }
.offer-partners { background: #0b0b0b; border-color: var(--line); border-left: 6px solid var(--accent); border-radius: 8px 24px 24px 8px; }
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
  .offer .offer-head, .offer h2, .offer ul, .offer .draft-note { grid-column: 1; grid-row: auto; }
  .offer h2 { margin-top: 16px; }
}

/* how it works: a step timeline. Affiliates vertical, Partners horizontal. */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-step { position: relative; }
.tl-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #000; color: var(--accent); }
.tl-step .num { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.tl-step h3 { margin: 10px 0 8px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.tl-step p { color: var(--dim); font-size: 16px; max-width: 34ch; }
.timeline-affiliates { max-width: 760px; }
.timeline-affiliates::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(var(--accent), var(--line)); }
.timeline-affiliates .tl-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 28px; padding-bottom: clamp(28px, 5vh, 44px); }
.timeline-affiliates .tl-dot { grid-row: 1 / span 3; }
.timeline-affiliates .tl-step .num { margin-top: 4px; }
.timeline-partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); }
.timeline-partners::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line)); }
.timeline-partners .tl-dot { border-radius: 14px; }
@media (max-width: 1023px) {
  .timeline-partners { grid-template-columns: 1fr; max-width: 760px; }
  .timeline-partners::before { left: 25px; right: auto; top: 26px; bottom: 26px; width: 1px; height: auto; background: linear-gradient(var(--accent), var(--line)); }
  .timeline-partners .tl-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 28px; padding-bottom: 32px; }
  .timeline-partners .tl-dot { grid-row: 1 / span 3; }
  .timeline-partners .tl-step .num { margin-top: 4px; }
}
.section-cta { margin-top: clamp(24px, 4vh, 40px); }

/* what you get: icon cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 20px; transition: border-color 0.3s, transform 0.5s var(--ease); }
.card:hover { border-color: rgba(200, 255, 61, 0.5); transform: translateY(-2px); }
.card-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(200, 255, 61, 0.12); color: var(--accent); }
.card h3 { margin-top: 20px; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; font-weight: 600; }
.card p { margin-top: 8px; color: var(--dim); font-size: 16px; }
.program-partners .card { border-radius: 10px; background: #0b0b0b; }
.program-partners .card-ico { border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Partners: "who it's for" as a 2x2 grid of cells */
.program-partners .who > div { padding-right: 12px; }

/* FAQ: the native <details> accordion, styled; open as many as you like */
.faq summary { border-radius: 6px; transition: color 0.2s; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq summary::after { transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq-a { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .faq-a { animation: faq-in 0.35s var(--ease); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* every interactive element shows hover and focus */
.cta-apply { border: 0; cursor: pointer; }
.program .cta:focus-visible, .program .text-link:focus-visible, .card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

/* compact header button, shown once the hero has scrolled away (desktop and tablet).
   It lives in the header's nav; the header turns solid while it shows, because the
   bar normally blends with the page (mix-blend-mode) and would invert the lime. */
.nav .apply-compact {
  display: none; align-items: center; min-height: 38px; padding: 0 18px !important; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap;
}
.nav .apply-compact::after { content: none; }
.nav .apply-compact:hover { background: #fff; }
.nav.is-solid { mix-blend-mode: normal; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line); }
.nav.is-solid .apply-compact { display: inline-flex; }
.nav nav:has(.nav-menu) { align-items: center; }
@media (max-width: 767px) { .nav .apply-compact, .nav.is-solid .apply-compact { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .nav .apply-compact { min-height: 36px; padding: 0 14px !important; font-size: 13px; } }

/* phones: a bottom bar after the hero, out of the way of the final button and the open form */
.apply-bar { display: none; }
@media (max-width: 767px) {
  .apply-bar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 45;
    padding: 12px max(var(--gutter), env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.92); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .apply-bar.show { transform: none; }
  .apply-bar .cta { width: 100%; justify-content: center; padding: 15px 24px; }
  body.has-bar .footer { padding-bottom: 110px; }
}

/* back to top */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 24px; z-index: 44;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.85); color: var(--fg);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (max-width: 767px) { body.bar-on .to-top { bottom: 96px; } }

/* ── the application modal ── */
.apply-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 48px)); margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 24px; background: #0a0a0a; color: var(--fg); overflow: auto;
  overscroll-behavior: contain;
}
.apply-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.apply-dialog[open] { animation: ad-in 0.25s var(--ease); }
@keyframes ad-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
html.dialog-open, html.dialog-open body { overflow: hidden; }
.ad-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 10px; background: #0a0a0a; }
.ad-progress { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.ad-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.ad-close:hover { color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.ad-bar { height: 3px; margin: 0 24px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ad-bar span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width 0.35s var(--ease); }
.ad-title { padding: 22px 24px 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.ad-form { padding: 8px 24px 24px; }
.ad-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.ad-step-title { padding: 0; margin-bottom: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ad-step-title:focus { outline: none; }
.js .apply-dialog .ad-step:not(.on) { display: none; }
.ad-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ad-nav .cta { margin-left: auto; }
.btn-ghost {
  min-height: 48px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: none; color: var(--fg); font: 600 16px/1 var(--sans); cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--accent); }
.field-error:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #ffb4ab; color: #000; font: 700 12px/1 var(--sans); vertical-align: 1px; }
.ad-review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ad-review > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ad-review dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.ad-review dd { grid-column: 1; margin: 0; font-size: 16px; overflow-wrap: anywhere; white-space: pre-line; }
.ad-review button { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--fg); font: 500 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ad-review button:hover, .ad-review button:focus-visible { color: var(--accent); }
.ad-done { padding: 8px 24px 28px; }
.ad-done[hidden] { display: none; }
.ad-done:focus { outline: none; }
.ad-done-ico { display: block; margin: 12px 0 0; color: var(--accent); }
.ad-done .ad-title { padding: 18px 0 0; }
.ad-done p { margin: 14px 0 28px; color: var(--dim); font-size: 17px; max-width: 46ch; }
.ad-done .cta { border: 0; cursor: pointer; font-family: var(--sans); }
.ad-confirm { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 24px; background: rgba(10, 10, 10, 0.97); }
.ad-confirm[hidden] { display: none; }
.ad-confirm-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.ad-confirm p:not(.ad-confirm-title) { color: var(--dim); max-width: 42ch; }
.ad-confirm .ad-nav { margin-top: 12px; justify-content: flex-start; }
.ad-confirm .ad-nav .cta { margin-left: 0; border: 0; cursor: pointer; font-family: var(--sans); }
.apply-dialog .form-status.is-error { display: flex; flex-direction: column; gap: 10px; }
.apply-dialog .form-status .btn-ghost { align-self: flex-start; }
/* phones: a full-screen sheet */
@media (max-width: 767px) {
  .apply-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .apply-dialog[open] { animation: ad-sheet 0.28s var(--ease); }
  @keyframes ad-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .ad-top { padding: 12px max(var(--gutter), env(safe-area-inset-left)) 8px; }
  .ad-bar, .ad-title, .ad-form, .ad-done { margin-left: 0; margin-right: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .ad-bar { margin: 0 var(--gutter); padding: 0; }
  .ad-nav { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #0a0a0a; }
}
/* no JavaScript: #apply shows the whole form inline, one step after another */
html:not(.js) .apply-dialog:target { display: block; position: static; width: auto; max-height: none; margin: 40px var(--gutter); }
html:not(.js) .ad-top, html:not(.js) .ad-bar, html:not(.js) [data-back], html:not(.js) .ad-confirm, html:not(.js) .ad-done { display: none; }
html:not(.js) .ad-step { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  .js body.program main > section, .apply-dialog[open], .faq details[open] .faq-a { animation: none; }
  .apply-compact, .apply-bar, .to-top, .ad-bar span, .card, .faq summary::after { transition: none; }
}
/* program hero: the headline shares the row with the illustration, so it scales to its column.
   The viewport size alone overflowed the column once .wrap stops growing (max-width 1360px):
   it is also capped at 18% of the column (cqi). The longest line, "Recommend", is 5.3em wide,
   so 18cqi keeps it inside with ~5% to spare. Without container units: the viewport size. */
.program-hero .hero-grid > :first-child { container-type: inline-size; }
.program-hero .display { --display-size: clamp(48px, 8.2vw, 136px); font-size: var(--display-size); font-size: min(var(--display-size), 18cqi); }
@media (max-width: 900px) { .program-hero .display { --display-size: clamp(48px, 12.5vw, 112px); } }
@media (max-width: 480px) { .program-hero .display { --display-size: 13vw; } }
.program .closing { padding-top: clamp(64px, 10vh, 120px); }
.program .closing-cta { margin-top: 0; }
/* inside the application, [hidden] always wins over the layout rules (.form is a grid) */
.apply-dialog [hidden] { display: none !important; }
.nav.is-solid { background: #000; }
/* phones: an error message (and its Try again) scrolls clear of the sticky Back/Next bar */
@media (max-width: 767px) { .apply-dialog .form-status { scroll-margin-bottom: 120px; } }
/* touch screens have no hover: a tapped button shouldn't keep its hover wipe */
@media (hover: none) { .program .cta:hover, .apply-dialog .cta:hover { transform: none; box-shadow: none; } .program .cta:hover::before, .apply-dialog .cta:hover::before { transform: translateY(101%); } }

/* ── A product whose link is switched off (site-src/products.json "live": false): Coming soon ── */
[data-soon] { cursor: default; }
.footer [data-soon] small, .mmenu-sub[data-soon] small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.visit-soon { color: var(--dim); }
.cta[data-soon] { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
