/* ============================================================
   IChannel Technologies — Design System
   Typography & editorial-software feel inspired by Membersflow:
   Inter Tight for display/headings, Inter for body, crisp
   hairlines, warm off-white canvas, deep black contrast bands,
   and IChannel Technologies brand blue (#326BC8).
   ============================================================ */

:root {
  /* IChannel brand blue palette */
  --accent: #326BC8;
  --accent-hover: #2656A6;
  --accent-soft: #E8F0FC;
  --accent-ink: #22509C;
  --accent-on-dark: #5B97F7;

  /* Membersflow neutral surfaces & ink */
  --bg: #FBF9F5;
  --paper: #FFFFFF;
  --black: #0F0F0F;
  --black-2: #1A1A1A;
  --ink: #111111;
  --ink-2: #3A3835;
  --muted: #5E5B57;
  --line: #E7E2DA;
  --line-strong: #D4CEC4;
  --tint: #F3EFE8;

  /* Status & badge tones */
  --ok-soft: #E3F1E8;
  --ok-ink: #1E6B3E;
  --bad-soft: #F8E3E0;
  --bad-ink: #8A2D22;

  /* Dark surface text & rules */
  --on-dark: #F5F2EC;
  --on-dark-muted: rgba(245, 242, 236, 0.66);
  --line-dark: rgba(245, 242, 236, 0.14);

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Geometry & motion */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --container: 1180px;
  --nav-h: 68px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 16px 40px -20px rgba(17, 17, 17, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* Dark theme support (preserves ic-theme switcher cleanly) */
html[data-theme="dark"] {
  --bg: #0F0F0F;
  --paper: #171717;
  --black: #080808;
  --black-2: #161616;
  --ink: #F5F2EC;
  --ink-2: #D4CFC5;
  --muted: #9A958C;
  --line: rgba(245, 242, 236, 0.12);
  --line-strong: rgba(245, 242, 236, 0.22);
  --tint: #1E1E1E;
  --accent-soft: rgba(50, 107, 200, 0.18);
  --accent-ink: #79ADFF;
  --ok-soft: rgba(30, 107, 62, 0.25);
  --ok-ink: #7FD69A;
  --bad-soft: rgba(138, 45, 34, 0.3);
  --bad-ink: #F1948A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #0F0F0F;
    --paper: #171717;
    --black: #080808;
    --black-2: #161616;
    --ink: #F5F2EC;
    --ink-2: #D4CFC5;
    --muted: #9A958C;
    --line: rgba(245, 242, 236, 0.12);
    --line-strong: rgba(245, 242, 236, 0.22);
    --tint: #1E1E1E;
    --accent-soft: rgba(50, 107, 200, 0.18);
    --accent-ink: #79ADFF;
    --ok-soft: rgba(30, 107, 62, 0.25);
    --ok-ink: #7FD69A;
    --bad-soft: rgba(138, 45, 34, 0.3);
    --bad-ink: #F1948A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

body.loaded {
  opacity: 1;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--font-mono); font-size: 0.85em; }
strong { font-weight: 600; }
img, svg { display: block; max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ---------- Typography (Membersflow rhythm) ---------- */

.display, .h2, .band-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.4rem);
  line-height: 1.02;
}

.display-sm {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
}

.h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
  line-height: 1.06;
}

.display strong, .h2 strong, .band-title strong {
  font-weight: 700;
}

.display em, .h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.band em, .cta em, .section-dark em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-on-dark);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.band .eyebrow,
.section-dark .eyebrow,
.cta .eyebrow {
  color: var(--on-dark-muted);
}

.eyebrow-sm {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.15rem);
  color: var(--muted);
  max-width: 54ch;
  margin-top: 22px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
  margin-top: 14px;
}

.link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover {
  color: var(--accent);
}

.num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0;
}

/* ---------- Buttons & Pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
.btn-icon:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 6px;
  color: var(--ink);
}
.link-arrow span { transition: transform 0.18s var(--ease); }
.link-arrow:hover span { transform: translateY(2px); }
.link-arrow-x:hover span { transform: translateX(3px); }
.link-arrow-light { color: var(--on-dark); }
.link-arrow-light:hover span { transform: translateX(3px); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.pill-ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill-bad { background: var(--bad-soft); color: var(--bad-ink); }
.pill-neutral { background: var(--tint); color: var(--muted); }

/* ---------- Brand Logo (IChannel Technologies — preserved) ---------- */

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: inherit;
}

.brand__tag {
  font-family: var(--font-display);
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links .btn-nav {
  color: #fff;
  margin-left: 4px;
  padding: 9px 16px;
  font-size: 0.88rem;
}
.nav-links .btn-nav:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme switch — tailored to Membersflow hairline aesthetic */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  background: var(--paper);
  flex-shrink: 0;
}

.theme-switch button {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.theme-switch button[aria-pressed="true"],
.theme-switch button:hover {
  color: var(--ink);
}

.theme-switch__pill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease);
  z-index: 1;
}

html[data-theme="light"] .theme-switch__pill { transform: translateX(0); }
html[data-theme="system"] .theme-switch__pill { transform: translateX(26px); }
html[data-theme="dark"] .theme-switch__pill { transform: translateX(52px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(32px, 5vw, 64px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
}

#heroWord {
  display: inline-block;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
#heroWord.word-out {
  opacity: 0;
  transform: translateY(4px);
}

.hero-stats {
  display: grid;
  gap: 20px;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.hero-stats dt {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1.15;
}

.hero-stats p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Signature 3-column Membersflow hairline rail */
.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 68px);
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.rail li {
  position: relative;
  padding: 14px 16px 0 0;
}

.rail li:nth-child(2) { text-align: center; }
.rail li:nth-child(3) { text-align: right; padding-right: 0; }

.rail li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.rail li:nth-child(2)::before { left: 50%; transform: translateX(-50%); }
.rail li:nth-child(3)::before { left: auto; right: 0; }

.rail span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.rail small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Hero stage framing IChannel's team photo with Membersflow UI chrome */
.hero-stage {
  margin-top: 28px;
}

.stage-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.stage-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.stage-crumb {
  flex: 1;
  font-weight: 500;
}

.stage-live {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok-ink);
  font-weight: 600;
  font-size: 0.68rem;
}

.stage-media {
  position: relative;
  aspect-ratio: 16 / 7.5;
  background: var(--tint);
  overflow: hidden;
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.stage-pills {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(251, 249, 245, 0.92);
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stage-pill.is-accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink);
}
.stage-caption span { color: var(--muted); margin-right: 10px; }
.stage-caption em { font-style: normal; color: var(--muted); margin-left: auto; }

/* ---------- Black Statement Band (Who We Are + Stats) ---------- */

.band {
  background: var(--black);
  color: var(--on-dark);
  padding: clamp(60px, 8vw, 104px) 0;
  margin-top: clamp(48px, 7vw, 80px);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.band-title {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.7rem);
  line-height: 1.1;
  max-width: 24ch;
}

.band-copy {
  display: grid;
  gap: 14px;
}

.band-copy p {
  color: var(--on-dark-muted);
  font-size: 0.98rem;
  max-width: 52ch;
}

.band-copy p:first-child {
  color: var(--on-dark);
  font-size: 1.04rem;
}

.band-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
}

.band-stats li {
  padding: 26px 24px 0 20px;
  border-left: 1px solid var(--line-dark);
}

.band-stats li:first-child {
  border-left: 0;
  padding-left: 0;
}

.band-stats .stat-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.band-stats .stat-val sup {
  font-size: 0.52em;
  color: var(--accent-on-dark);
  margin-left: 2px;
  vertical-align: super;
}

.band-stats .stat-val.is-accent {
  color: var(--accent-on-dark);
}

.band-stats span {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark);
}

.band-stats small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section-tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-head-row .section-head {
  margin-bottom: 0;
}

/* ---------- Services (Membersflow coverage-list pattern) ---------- */

.coverage-list {
  counter-reset: cov;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  border-top: 1px solid var(--line);
}

.coverage-list li {
  counter-increment: cov;
  position: relative;
  padding: 28px 0 28px 50px;
  border-bottom: 1px solid var(--line);
}

.coverage-list li::before {
  content: counter(cov, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 31px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.svc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.coverage-list h3 {
  font-size: 1.2rem;
}

.coverage-list p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
  max-width: 48ch;
}

/* ---------- Process (Membersflow 4-column hairline steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 26px 24px 0 20px;
  border-left: 1px solid var(--line);
}

.steps li:first-child {
  border-left: 0;
  padding-left: 0;
}

.step-when {
  font-size: 0.78rem;
  color: var(--muted);
}

.steps p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* Editorial spotlight card under process (keeps inline-team.jpg cleanly) */
.spotlight {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.spotlight-copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.spotlight-copy strong {
  font-weight: 700;
}

.spotlight-copy em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.spotlight-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--tint);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Testimonials ---------- */

.tts-controls {
  display: flex;
  gap: 8px;
}

.tts-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.tts-rail::-webkit-scrollbar { height: 6px; }
.tts-rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.tt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  scroll-snap-align: start;
}

.tt-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
}

.tt-card blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 12px;
}

.tt-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.tt-who b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.tt-who span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Partners ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.partner {
  aspect-ratio: 3 / 1.65;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 18px 20px;
  background: var(--bg);
  transition: background 0.2s var(--ease);
}

.partner:hover {
  background: var(--paper);
}

.partner-logo {
  max-width: 112px;
  max-height: 40px;
  width: auto;
  height: auto;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s var(--ease);
}

.partner:hover .partner-logo {
  filter: grayscale(0%) opacity(0.95);
}

html[data-theme="dark"] .partner-logo {
  filter: grayscale(100%) invert(1) opacity(0.5);
}
html[data-theme="dark"] .partner:hover .partner-logo {
  filter: grayscale(100%) invert(1) opacity(0.9);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .partner-logo {
    filter: grayscale(100%) invert(1) opacity(0.5);
  }
  html[data-theme="system"] .partner:hover .partner-logo {
    filter: grayscale(100%) invert(1) opacity(0.9);
  }
}

/* ---------- CTA Band (Membersflow dark CTA) ---------- */

.cta {
  background: var(--black);
  color: var(--on-dark);
  padding: clamp(72px, 10vw, 124px) 0;
}

.cta-inner {
  max-width: 760px;
}

.cta .display {
  color: var(--on-dark);
}

.cta-body {
  color: var(--on-dark-muted);
  font-size: 1.05rem;
  margin-top: 20px;
  max-width: 56ch;
}

.cta-email {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cta-email a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-btn {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.copy-btn:hover {
  border-color: var(--on-dark);
}

.copy-btn.is-copied {
  background: var(--on-dark);
  color: var(--black);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 76px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 1fr 0.8fr;
  gap: 36px;
  padding-bottom: 44px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38ch;
  margin-top: 14px;
}

.newsletter {
  display: flex;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  margin-top: 18px;
  max-width: 360px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.newsletter input::placeholder {
  color: var(--muted);
}

.newsletter button {
  background: var(--black);
  color: var(--on-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s var(--ease);
}

.newsletter button:hover {
  background: var(--accent);
  color: #fff;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- Back to top ---------- */

.back-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.18s var(--ease);
}

.back-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.back-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- Subpage Header (Contact / Privacy / 404) ---------- */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.legal-back:hover { color: var(--ink); }

/* ---------- Legal / Privacy Page ---------- */

.legal-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.legal-title strong { font-weight: 700; }
.legal-title em { font-style: normal; font-weight: 700; color: var(--accent); }

.legal-summary {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: 16px;
}

.legal-meta {
  display: grid;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.legal-meta b {
  color: var(--ink);
  font-weight: 600;
}

.legal-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  padding-right: 6px;
}

.toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s var(--ease), padding-left 0.15s var(--ease);
}

.toc a:hover,
.toc a.active {
  color: var(--ink);
  padding-left: 4px;
}

.toc a .num {
  font-size: 0.78rem;
}

.legal-content {
  max-width: 720px;
}

.legal-section {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-section > * { grid-column: 2; }
.legal-section .step-label {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 4px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-section p { margin-top: 10px; }
.legal-section ul { margin-top: 12px; display: grid; gap: 8px; }
.legal-section li { position: relative; padding-left: 18px; }
.legal-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-section strong { color: var(--ink); }
.legal-section a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-section code {
  background: var(--tint);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.legal-callout {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.legal-callout .eyebrow-sm { color: var(--accent-ink); margin-bottom: 4px; }
.legal-callout p { margin-top: 0; color: var(--ink); }

.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 22px;
}

.legal-product-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.legal-product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}

.legal-product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-product-head h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.legal-product-url {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
}

.legal-product p {
  margin-top: 10px;
  font-size: 0.92rem;
}

.legal-product ul {
  margin-top: 10px;
  gap: 6px;
}

.legal-product li {
  font-size: 0.9rem;
}

.legal-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}

.legal-table td {
  color: var(--muted);
}

.legal-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.legal-contact {
  margin-top: 20px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--black);
  color: var(--on-dark);
}
.legal-contact h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.legal-contact p {
  color: var(--on-dark-muted);
  margin-top: 8px;
  max-width: 52ch;
}
.legal-contact a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Mobile TOC button & sheet */
.toc-fab, .toc-sheet { display: none; }

/* ---------- Contact Page ---------- */

.contact-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
}

.brief-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E5B57' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

/* Interest chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.chip input { display: none; }
.chip:hover { border-color: var(--ink); }

.chip.on {
  background: var(--black);
  color: var(--on-dark);
  border-color: var(--black);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
}

.chip.on .dot {
  display: inline-block;
  background: var(--accent-on-dark);
}

/* Mentorship note card */
#mentorship-note {
  display: none;
  border-radius: var(--r-lg);
  background: var(--black);
  color: var(--on-dark);
  padding: 24px;
  gap: 18px;
}

.mn__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 6px;
}

.mn__body {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
  margin-top: 8px;
}

.mn__tracks {
  display: grid;
  gap: 8px;
}

.mn__track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  font-size: 0.86rem;
}

.mn__track-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-on-dark);
  min-width: 26px;
}

.mn__track--more {
  border-style: dashed;
  color: var(--on-dark-muted);
}

.mn__cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mn__fee {
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

/* Budget slider (Membersflow range aesthetic) */
.budget-box {
  padding: 18px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.budget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.budget-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.budget-box input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
  outline: none;
}

.budget-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.budget-box input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.form-error {
  display: none;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bad-soft);
  color: var(--bad-ink);
  font-size: 0.88rem;
}
.form-error.show { display: block; }
.form-error a { text-decoration: underline; }

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.submit-note {
  font-size: 0.82rem;
  color: var(--muted);
}

form.hide { display: none; }

.success-card {
  display: none;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.success-card.show { display: block; }

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok-ink);
  font-size: 1.4rem;
  font-weight: 700;
}

.success-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.success-card p {
  color: var(--muted);
  max-width: 44ch;
  margin: 10px auto 24px;
}

/* Contact Aside Cards */
.aside {
  display: grid;
  gap: 18px;
}

.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 10px;
}

.aside-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.aside-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.aside-links {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.aside-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.aside-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-card.is-dark {
  background: var(--black);
  color: var(--on-dark);
  border-color: transparent;
}

.aside-card.is-dark .eyebrow { color: var(--on-dark-muted); margin-bottom: 0; }
.aside-card.is-dark p { color: var(--on-dark-muted); }

.hours {
  display: grid;
  margin-top: 6px;
  font-size: 0.86rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
}

.hours b {
  color: var(--on-dark);
  font-weight: 500;
}

/* ---------- 404 Page (Membersflow err-page pattern) ---------- */

.err-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.err-wrap {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.err-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.err-card {
  background: var(--black);
  color: var(--on-dark);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.err-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.err-card-org {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.err-card-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--accent-on-dark);
  margin-top: 18px;
}

.err-card-rows {
  margin-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.err-card-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.82rem;
}

.err-card-rows dt { color: var(--on-dark-muted); }
.err-card-rows dd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  overflow-wrap: anywhere;
}

/* ---------- Reveal Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid,
  .band-grid,
  .spotlight,
  .contact-grid,
  .legal-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .band-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .band-stats li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps li {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .steps li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-links .btn-nav {
    margin: 14px 0 0;
    border-bottom: 0;
    justify-content: center;
  }
  .nav-toggle {
    display: flex;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-layout > .toc {
    display: none;
  }

  .toc-fab {
    display: inline-flex;
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 70;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--black);
    color: var(--on-dark);
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: var(--shadow);
  }
  .toc-fab .current {
    font-family: var(--font-display);
    color: var(--accent-on-dark);
  }

  .toc-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 15, 15, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
  }
  .toc-sheet.open {
    opacity: 1;
    pointer-events: auto;
  }
  .toc-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-radius: 18px 18px 0 0;
    padding: 20px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.28s var(--ease);
    max-height: 78vh;
    overflow-y: auto;
  }
  .toc-sheet.open .toc-sheet-panel {
    transform: none;
  }
  .toc-sheet-panel a {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    color: var(--muted);
  }
  .toc-sheet-panel a.active {
    color: var(--ink);
    font-weight: 600;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .legal-section > * { grid-column: 1; }
  .legal-section .step-label { grid-row: auto; padding-top: 0; }

  .err-grid { grid-template-columns: 1fr; }
  .err-card { max-width: none; }
}

@media (max-width: 600px) {
  .hero-stats,
  .band-stats,
  .steps,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .band-stats li,
  .steps li {
    border-left: 0;
    padding-left: 0;
  }

  .rail {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .rail li,
  .rail li:nth-child(2),
  .rail li:nth-child(3) {
    text-align: left;
    padding: 12px 0 12px 18px;
    border-top: 1px solid var(--line);
  }
  .rail li::before,
  .rail li:nth-child(2)::before,
  .rail li:nth-child(3)::before {
    left: 0;
    right: auto;
    top: 18px;
    transform: none;
  }

  .stage-media {
    aspect-ratio: 4 / 3;
  }

  .stage-caption {
    flex-wrap: wrap;
  }

  .tts-rail {
    grid-template-columns: none;
    grid-auto-columns: 86%;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
