/* ==========================================================================
   Athletic360 — landing
   Palette taken from the brand mark: deep navy wordmark + blue → cyan → lime.
   ========================================================================== */

:root {
  --ink: #0a1a3a;
  --ink-2: #24365c;
  --muted: #5a6681;
  --line: #e2e7f0;
  --line-strong: #cfd7e5;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --tint: #eef4fc;

  --blue: #1463e0;
  --cyan: #12b3d6;
  --lime: #6ccb2e;
  --green-ink: #2f7d12;

  --night: #061230;
  --night-2: #0c1d45;
  --night-ink: #e8eefa;
  --night-muted: #9aa9c9;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 52%, var(--lime) 100%);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(10 26 58 / 0.05), 0 2px 8px rgb(10 26 58 / 0.04);
  --shadow: 0 1px 2px rgb(10 26 58 / 0.04), 0 12px 32px -12px rgb(10 26 58 / 0.16);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --header-h: 72px;
}

/* ---------- Fonts (self-hosted, SIL OFL: /fonts/OFL-*.txt) ---------- */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2'); }

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Shared bits ---------- */

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before,
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.kicker--light { color: var(--cyan); }

.section { padding-block: var(--section); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.section-lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.stage i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.stage--pilot i { background: var(--blue); }
.stage--dev i { background: var(--cyan); box-shadow: 0 0 0 3px rgb(18 179 214 / 0.18); animation: pulse 2.4s ease-in-out infinite; }
.stage--concept i { border: 2px solid var(--cyan); }
.stage--vision i { border: 1.5px dashed var(--green-ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(18 179 214 / 0); } }

.stage-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-legend .stage { border-color: transparent; background: transparent; padding-inline: 0 6px; color: var(--muted); }

.synthetic-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--night-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.synthetic-tag::before { content: ''; width: 8px; height: 8px; border: 1.5px dashed currentColor; border-radius: 2px; }
.synthetic-tag--light { color: var(--muted); }

.footnote {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(10 26 58 / 0.55);
}
.btn-primary:hover { background: #12285a; box-shadow: 0 14px 28px -10px rgb(20 99 224 / 0.5); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.7);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgb(246 248 251 / 0.82);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img { width: 40px; height: 40px; }
.brand-word {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav ul a {
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.main-nav ul a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-switch a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.lang-switch a:hover { color: var(--blue); }
.lang-current { color: var(--ink); }
.lang-sep { color: var(--line-strong); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg);
    box-shadow: 0 24px 40px -24px rgb(10 26 58 / 0.3);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-actions { justify-content: space-between; }
  .site-header:has(.main-nav.is-open) { background: var(--bg); }
}

/* ---------- A · Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 30%, rgb(18 179 214 / 0.14), transparent 70%),
    radial-gradient(45% 45% at 70% 75%, rgb(108 203 46 / 0.10), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgb(20 99 224 / 0.08), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(10 26 58 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(10 26 58 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%);
}

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

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 .grad-text { display: inline-block; padding-bottom: 0.08em; }

.hero-lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-note { margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.hero-note a { color: var(--ink); font-weight: 700; }

/* Orbit diagram */
.hero-visual { display: flex; justify-content: center; }

.orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  container-type: inline-size;
}
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 5; }
.orbit-ring { fill: none; stroke: url(#orbit-grad); stroke-width: 1.5; }
.orbit-ring--dash {
  stroke-width: 1;
  stroke-dasharray: 3 9;
  opacity: 0.7;
  transform-origin: 200px 200px;
  animation: spin 60s linear infinite;
}
.orbit-ring--outer { stroke: var(--line); stroke-width: 1; }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgb(20 99 224 / 0.22));
}

.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: clamp(0.72rem, 3cqw, 0.9rem);
  font-weight: 700;
  white-space: nowrap;
  transform-origin: 0 0;
  /* place the pill's centre on the ring, at angle --a, keeping it upright */
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(38cqw) rotate(calc(-1 * var(--a)));
  animation: node-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.3s + var(--i) * 0.08s);
}
.orbit-node i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgb(18 179 214 / 0.14);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes node-in { from { opacity: 0; } to { opacity: 1; } }

/* Audience strip */
.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.audience-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.audience-list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.audience-list li { color: var(--ink-2); font-weight: 600; }
.audience-list li + li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 28px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: middle;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .orbit { max-width: 400px; }
}
@media (max-width: 560px) {
  .audience-list { gap: 8px 16px; }
  .audience-list li + li::before { margin-right: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- B · What it is ---------- */

.what { background: var(--surface); }

.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.what-body { color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.pillar { padding: 32px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pillar p { margin-top: 10px; color: var(--muted); }

@media (max-width: 1040px) and (min-width: 861px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .what-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar,
  .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* ---------- C · Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.fragments {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin-top: 44px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.fragment {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transform: rotate(calc((var(--i) - 2) * 1.6deg)) translateY(calc(mod(var(--i), 2) * 6px));
}

.problem-list { display: grid; gap: 0; }
.problem-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.problem-item:last-child { border-bottom: 1px solid var(--line); }
.problem-index {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--line-strong);
}
.problem-item p { margin-top: 10px; color: var(--muted); }

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---------- D · Solution ---------- */

.solution {
  background:
    radial-gradient(50% 60% at 50% 0%, rgb(18 179 214 / 0.08), transparent 70%),
    var(--tint);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.solution-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.solution-check {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}
.solution-check .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.solution-card p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }

.solution-quote {
  max-width: 860px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  text-align: center;
}
.solution-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 1040px) { .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------- E · Modules ---------- */

.modules { background: var(--surface); }

.group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 56px 0 20px;
}
.group-head .group-label { flex: 1 1 240px; margin: 0; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.module-grid--future { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.module-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.module-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--blue);
}
.module-tag {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.module-card h4 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
.module-card > p:last-child { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

.module-card--future {
  border-style: dashed;
  background: transparent;
}
.module-card--future .module-icon { color: var(--green-ink); border-style: dashed; }
.module-card--future .module-tag { color: var(--muted); }
.module-card--future .stage { position: absolute; top: 28px; right: 24px; }

@media (max-width: 1040px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid--future { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) and (min-width: 561px) {
  .module-card--future { display: flex; flex-direction: column; align-items: flex-start; }
  .module-card--future .stage { position: static; order: -1; margin-bottom: 16px; }
}
@media (max-width: 760px) {
  .module-grid--future { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 18px;
  }
  .module-card > * { grid-column: 2; }
  .module-card .module-icon { grid-column: 1; grid-row: 1 / span 4; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .module-tag { font-size: 0.78rem; }
  .module-card > p:last-child { margin-top: 6px; }
  .module-card--future .stage { position: static; order: -1; margin: 0 0 10px; }
  .stage { font-size: 0.75rem; }
  .group-head { margin-top: 44px; }
  .stage-legend { gap: 4px 6px; }
}

/* ---------- F · Roles ---------- */

.roles-ui {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.roles-ui:not(.is-enhanced) { grid-template-columns: 1fr; }

.role-tabs { display: flex; flex-direction: column; gap: 6px; }
.role-tabs[hidden] { display: none; }

.role-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.role-tab:hover { background: var(--surface); }
.role-tab[aria-selected='true'] {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.role-tab[aria-selected='true']::before {
  content: '';
  width: 3px;
  align-self: stretch;
  margin: -4px 0 -4px -8px;
  border-radius: 3px;
  background: var(--grad);
}
.role-tab > span:first-of-type { margin-right: auto; }
.role-tab .stage { padding: 2px 8px 2px 6px; font-size: 0.62rem; }
.role-name .stage { color: var(--ink-2); }

.role-panels { display: grid; gap: 16px; }
.role-panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.role-panel[hidden] { display: none; }
.is-enhanced .role-panel { animation: fade-in 0.35s ease both; }

.role-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.role-head h3 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.role-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.role-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.role-sees { display: grid; gap: 12px; }
.role-sees li { display: flex; gap: 12px; color: var(--ink-2); font-weight: 500; }
.role-sees .icon { margin-top: 4px; color: var(--cyan); stroke-width: 2.2; }
.role-helps { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .roles-ui,
  .roles-ui.is-enhanced { grid-template-columns: 1fr; }
  .role-tabs {
    flex-direction: row;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
  }
  .role-tabs::-webkit-scrollbar { display: none; }
  .role-tab { width: auto; flex: none; scroll-snap-align: start; border-color: var(--line); background: var(--surface); }
  .role-tab[aria-selected='true'] { border-color: var(--ink); }
  .role-tab[aria-selected='true']::before { display: none; }
  .role-tab .stage { display: none; }
  .role-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- F2 · Sport Science + Statistics ---------- */

.science { background: var(--surface); }
.science .section-head { max-width: 820px; }

.science-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pitch-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 24px;
  background:
    radial-gradient(60% 70% at 80% 0%, rgb(18 179 214 / 0.14), transparent 70%),
    var(--night);
  box-shadow: var(--shadow);
}
.pitch-svg { width: 100%; height: auto; overflow: visible; }
.pitch-turf { fill: #0b2150; }
.pitch-lines { fill: none; stroke: rgb(232 238 250 / 0.34); stroke-width: 1.4; }
.pitch-spot { fill: rgb(232 238 250 / 0.5); stroke: none; }
.pitch-zones line { stroke: rgb(232 238 250 / 0.08); stroke-width: 1; stroke-dasharray: 3 5; }
.pitch-zone { fill: rgb(108 203 46 / 0.08); stroke: rgb(108 203 46 / 0.55); stroke-width: 1; stroke-dasharray: 4 4; }
.pitch-others circle { fill: rgb(232 238 250 / 0.38); }
.pitch-passes line { stroke: #9fdcef; stroke-width: 1.6; stroke-linecap: round; }
.pitch-passes .pitch-shot { stroke: var(--lime); stroke-dasharray: 2 5; }
.pitch-event circle { fill: var(--lime); }
.pitch-event .pitch-event-ring {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.6s ease-out infinite;
}
.pitch-event text { fill: var(--night); font: 800 14px var(--font-sans); text-anchor: middle; dominant-baseline: central; }
.pitch-zone-tag rect { fill: var(--night); stroke: var(--lime); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pitch-zone-tag text { fill: var(--night-ink); font: 800 13px var(--font-sans); text-anchor: middle; dominant-baseline: central; }
.timeline .timeline-base { stroke: rgb(232 238 250 / 0.2); stroke-width: 2; stroke-linecap: round; }
.timeline .timeline-mark { stroke: rgb(232 238 250 / 0.3); }
.timeline circle { fill: rgb(232 238 250 / 0.42); }
.timeline .timeline-event { fill: var(--lime); stroke: var(--night); stroke-width: 3; }
.timeline .timeline-link { stroke: var(--lime); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }
.timeline text { fill: var(--night-muted); font: 700 12px var(--font-sans); }
.timeline .timeline-event-label { fill: var(--lime); font-weight: 800; }
@keyframes ring { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.event-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}
.event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.event-label { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.15; }
.event-axes { display: grid; flex: 1; margin: 0; }
.event-axis {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.event-axis:last-child { border-bottom: 0; padding-bottom: 0; }
.event-axis dt {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.event-axis dt > span:not(.axis-key) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.event-axis dd { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.4; }
.axis-key { display: flex; align-items: center; gap: 10px; }

/* Keys that mirror the pitch glyphs: player, event, minute, zone */
.axis-mark {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--night);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.axis-mark--who { padding: 0; border-radius: 50%; background: var(--lime); color: var(--night); }
.axis-mark--what { width: 22px; padding: 0; border-radius: 50%; }
.axis-mark--what::before { content: ''; width: 12px; height: 12px; border: 1.5px solid var(--lime); border-radius: 50%; }
.axis-mark--where { border: 1.2px dashed var(--lime); color: var(--night-ink); }

.science-more {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 72px);
}
.science-phases { display: grid; gap: 36px; }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.phase-head .group-label { flex: 1 1 auto; margin: 0; }
.phase-title { color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; }
.phase-text { margin: 6px 0 16px; color: var(--muted); }

.capability-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.capability-tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.capability-tags--solid li { border-color: rgb(20 99 224 / 0.22); background: var(--tint); color: var(--ink); }
.capability-tags--future li { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.infra-grid { display: grid; gap: 14px; }
.infra-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.infra-card .module-icon { width: 44px; height: 44px; margin: 0; flex: none; color: var(--green-ink); border-style: dashed; }
.infra-card { border-style: dashed; box-shadow: none; }
.infra-card h3 { font-size: 1.08rem; }
.infra-card .stage { margin-top: 8px; }
.infra-card p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 1040px) {
  .science-grid,
  .science-more { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pitch-card { gap: 12px; padding: 14px 12px 12px; border-radius: 18px; }
  .synthetic-tag { padding-left: 4px; }
  /* The SVG renders at ~55% on phones: scale its labels up so they stay legible */
  .pitch-event text { font-size: 19px; }
  .pitch-zone-tag text { font-size: 18px; }
  .timeline text { font-size: 19px; }
  .event-card { padding: 20px 18px; border-radius: 18px; }
  .event-label { font-size: 1.3rem; }
  .event-axis { padding: 12px 0; }
  .science-phases { gap: 32px; }
  .infra-card { gap: 14px; padding: 18px; }
  .infra-card .module-icon { width: 40px; height: 40px; }
}

/* ---------- F3 · Athletic Voice AI ---------- */

.voice {
  background:
    radial-gradient(50% 50% at 100% 0%, rgb(18 179 214 / 0.1), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgb(108 203 46 / 0.08), transparent 70%),
    var(--tint);
}
.voice-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.voice-name strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }

.voice-flow {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgb(18 179 214 / 0.16), transparent 70%),
    var(--night);
  color: var(--night-ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.voice-wave span {
  flex: 1;
  max-width: 5px;
  height: var(--h);
  border-radius: 3px;
  background: var(--grad);
  background-size: 5600% 100%;
  background-position: calc(var(--i) * 1.8%) 0;
  opacity: 0.85;
  transform-origin: center;
  animation: wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.07s);
}
@keyframes wave { 50% { transform: scaleY(0.45); } }

.voice-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.voice-step {
  position: relative;
  padding: 0 20px 0 0;
}
.voice-step + .voice-step { padding-left: 20px; border-left: 1px solid rgb(255 255 255 / 0.1); }
.voice-step-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  color: var(--cyan);
}
.voice-step--human .voice-step-icon { border-color: transparent; background: var(--grad); color: #fff; }
.voice-step-num {
  display: block;
  margin-bottom: 6px;
  color: var(--night-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.voice-step h3 { color: #fff; font-size: 1.05rem; }
.voice-step p { margin-top: 8px; color: var(--night-muted); font-size: 0.92rem; line-height: 1.5; }

.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 56px);
}
.voice-example {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.voice-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.voice-sub .icon { color: var(--blue); }
.voice-lang {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--blue);
  letter-spacing: 0.06em;
}
.voice-heard blockquote { margin: 0; }
.voice-heard p:not(.voice-sub) {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.voice-draft { padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.voice-draft dl { display: grid; gap: 10px; margin: 0; }
.voice-draft dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.voice-draft dt { color: var(--ink-2); font-size: 0.86rem; font-weight: 700; }
.voice-draft dd { margin: 0; color: var(--ink); font-size: 0.95rem; }
.voice-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--green-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.voice-principles { display: grid; gap: 32px; }
.voice-principles .principle-bar { margin-bottom: 18px; }
.voice-principles li:nth-child(2) .principle-bar { background: linear-gradient(90deg, var(--cyan), var(--lime) 55%, var(--line) 55%); }
.voice-principles li:nth-child(3) .principle-bar { background: var(--grad); }
.voice-principles h3 { font-size: 1.2rem; }
.voice-principles p { margin-top: 8px; color: var(--muted); }

.voice-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 1040px) {
  .voice-steps { grid-template-columns: 1fr; gap: 0; }
  .voice-step,
  .voice-step + .voice-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 18px;
    padding: 0 0 22px;
    border-left: 0;
  }
  .voice-step:last-child { padding-bottom: 0; }
  .voice-step-icon { grid-row: 1 / span 3; margin: 0; position: relative; z-index: 1; background: var(--night); }
  .voice-step--human .voice-step-icon { background: var(--grad); }
  .voice-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(var(--cyan), rgb(255 255 255 / 0.1));
  }
  .voice-step-num { margin-bottom: 2px; }
  .voice-step p { margin-top: 4px; }
  .voice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .voice-flow { padding: 22px 18px; border-radius: 18px; }
  .voice-example { padding: 20px 18px; border-radius: 18px; }
  .voice-wave { height: 40px; gap: 3px; margin-bottom: 22px; }
  .voice-step,
  .voice-step + .voice-step { column-gap: 14px; padding-bottom: 18px; }
  .voice-step:last-child { padding-bottom: 0; }
  .voice-step p { font-size: 0.95rem; }
  .voice-heard p:not(.voice-sub) { font-size: 1.25rem; }
  .voice-draft dl div { grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; }
  .voice-draft dd { font-size: 1rem; }
  .voice-sub { flex-wrap: wrap; }
  .voice-principles { gap: 26px; }
  .voice-principles .principle-bar { margin-bottom: 14px; }
  .voice-audience { gap: 12px; }
}

/* ---------- G · Story ---------- */

.story {
  position: relative;
  padding-block: var(--section);
  background:
    radial-gradient(45% 55% at 100% 0%, rgb(18 179 214 / 0.16), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(108 203 46 / 0.10), transparent 70%),
    var(--night);
  color: var(--night-ink);
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.story-aside { position: sticky; top: calc(var(--header-h) + 48px); }
.story h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}

.elevator {
  display: grid;
  width: max-content;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  margin-bottom: 40px;
  padding: 14px 20px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
}
.elevator-label {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--night-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.elevator-arrow { color: var(--lime); font-size: 0.8rem; animation: blink 2.4s ease-in-out infinite; }
.elevator-floor {
  min-width: 1.4ch;
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes blink { 50% { opacity: 0.25; } }

.story-body { max-width: 640px; }
.story-body p {
  color: rgb(232 238 250 / 0.8);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.45;
}
.story-body p + p { margin-top: 1.25em; }
.story-body p:first-child { font-size: clamp(1.65rem, 2.9vw, 2.3rem); line-height: 1.25; color: #fff; }
.story-body p:last-child {
  margin-top: 1.6em;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.35;
  padding-top: 1.1em;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: #fff;
}
.story-body em {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--lime)) no-repeat 0 100% / 100% 1px;
  padding-bottom: 1px;
}

.story-quote {
  margin: clamp(72px, 10vw, 128px) 0 0;
  padding-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  text-align: center;
}
.story-quote blockquote { margin: 0; }
.story-quote p {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.story-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 28px;
  color: var(--night-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story-quote .dot { color: var(--cyan); }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-aside { position: static; }
  .elevator { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .story-body p { font-size: 1.3rem; line-height: 1.5; }
  .story-body p:first-child { font-size: 1.6rem; }
  .story-body p:last-child { font-size: 1.45rem; }
  .story-quote figcaption { flex-direction: column; gap: 6px; }
  .story-quote .dot { display: none; }
}

/* ---------- H · Philosophy ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.principle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 40%, var(--line) 40%);
}
.principle:nth-child(2) .principle-bar { background: linear-gradient(90deg, var(--cyan), var(--lime) 55%, var(--line) 55%); }
.principle:nth-child(3) .principle-bar { background: linear-gradient(90deg, var(--blue), var(--lime) 70%, var(--line) 70%); }
.principle:nth-child(4) .principle-bar { background: var(--grad); }
.principle h3 { font-size: 1.3rem; }
.principle p { margin-top: 12px; color: var(--muted); }

@media (max-width: 1040px) { .philosophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .philosophy-grid { grid-template-columns: 1fr; } }

/* ---------- I · CTA ---------- */

.cta {
  background:
    radial-gradient(50% 60% at 0% 100%, rgb(20 99 224 / 0.08), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgb(108 203 46 / 0.08), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
}

.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.cta-cards { display: grid; gap: 14px; margin-top: 40px; }
.cta-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.8);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cta-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.cta-card > span:last-child { display: grid; gap: 4px; }
.cta-card strong { font-size: 1.05rem; }
.cta-card > span:last-child > span { color: var(--muted); font-size: 0.95rem; }
.cta-card .cta-card-link { margin-top: 6px; color: var(--blue) !important; font-weight: 700; }
.cta-card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.cta-card-icon .icon { width: 20px; height: 20px; }
.cta-card-logo { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 4px; }

.demo-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink-2); font-size: 0.88rem; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235a6681' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(20 99 224 / 0.12);
}
.field.has-error input { border-color: #c2410c; }
.field-error { color: #b2390b; font-size: 0.84rem; font-weight: 600; }

.field--check { gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check a { color: var(--blue); font-weight: 700; }
.field--check.has-error .check input { outline: 2px solid #c2410c; outline-offset: 2px; }

.form-note,
.form-direct { color: var(--muted); font-size: 0.86rem; text-align: center; }
.form-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-direct a { color: var(--ink); font-weight: 700; }
.form-status:empty { display: none; }
.demo-form fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.demo-form fieldset:disabled { opacity: 0.55; }
.demo-form fieldset:disabled * { cursor: not-allowed; }
.form-preview { padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--tint); color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.form-status { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tint); color: var(--ink-2); font-size: 0.92rem; }

@media (max-width: 960px) { .cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

.cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- J · Footer ---------- */

.site-footer {
  padding-top: 72px;
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.brand--footer .brand-word { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 280px; }
.footer-title {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.86rem;
}
.footer-made a,
.footer-legal a,
.footer-lang a { color: var(--night-ink); }
.footer-lang [aria-current] { color: #fff; font-weight: 700; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal page ---------- */

.legal {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(32px, 6vw, 80px)) var(--section);
  overflow: hidden;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.legal-head { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.legal-toc { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-toc-title { margin-bottom: 12px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-toc ul { display: grid; gap: 8px; }
.legal-toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-toc a:hover { color: var(--blue); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.legal-back:hover { color: var(--ink); }
.icon-flip { transform: scaleX(-1); }

.legal-body { display: grid; gap: 32px; min-width: 0; }
.legal-section {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.legal-alias { position: absolute; top: 0; }
.legal-section h2 { margin-bottom: 24px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal-list { display: grid; margin: 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 6px 28px; padding-block: 16px; border-top: 1px solid var(--line); }
.legal-list dt { color: var(--ink); font-weight: 700; }
.legal-list dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.legal-list a { color: var(--blue); font-weight: 600; }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-head { position: static; }
}
@media (max-width: 600px) {
  .legal-list > div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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