/* ============================================================
   General Sans — self-hosted per DESIGN.md §2 (body / UI face).
   Fontshare CDN was unreliable in headless and on slow networks
   (lede and buttons fell back to system sans-serif). Local woff2
   files live in fonts/.
   Only the weights actually used on this surface are declared.
   ============================================================ */

@font-face {
  font-family: "General Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src:
    url("fonts/GeneralSans-Regular.woff2") format("woff2"),
    url("fonts/GeneralSans-Regular.woff") format("woff");
}

@font-face {
  font-family: "General Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src:
    url("fonts/GeneralSans-Medium.woff2") format("woff2"),
    url("fonts/GeneralSans-Medium.woff") format("woff");
}

@font-face {
  font-family: "General Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src:
    url("fonts/GeneralSans-Semibold.woff2") format("woff2"),
    url("fonts/GeneralSans-Semibold.woff") format("woff");
}

@font-face {
  font-family: "General Sans";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src:
    url("fonts/GeneralSans-Italic.woff2") format("woff2"),
    url("fonts/GeneralSans-Italic.woff") format("woff");
}

@font-face {
  font-family: "General Sans";
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src:
    url("fonts/GeneralSans-MediumItalic.woff2") format("woff2"),
    url("fonts/GeneralSans-MediumItalic.woff") format("woff");
}

/* ============================================================
   Crafta — website/styles.css
   Canonical against DESIGN.md (2026-05-28).

   Updates 2026-05-28 (this revision):
   - Phosphor icon system per §9 (sizing tokens, alignment rules).
   - Display-italic wght 460 applied wherever italic appears at
     display sizes (stat-unit, problem-conclusion em, audience
     tagline em, contact accent) per §2 + Wordmark §4.
   - :focus-visible ring per §14 (2px solid accent, 2px offset).
   - Editorial composition: section kicker ("Field note NN"),
     figure-style stats, sequential phase timeline.
   - Footer wordmark gets size-appropriate tracking per §4 size table.
   - Hero metadata strip (status pill row) per §12 component set.

   Foundation: typography (§2), color (§3), wordmark (§4),
   spacing (§5), radius (§6), grid (§7), iconography (§9),
   motion (§11), accessibility (§14), voice (§15) in DESIGN.md.
   ============================================================ */

:root {
  /* Neutrals — paper cooled to #F2F0E8 to break Anthropic-stack coupling */
  --ink: #1a1916;
  --ink-muted: #6e6a60;
  --paper: #f2f0e8;
  --rule: #d8d3c7;

  /* Accent ramp — Oxblood. accent-500 = brand; accent-600 = wordmark italic-`a`. */
  --accent-50: #f0e0e4;
  --accent-100: #d8aab5;
  --accent-200: #b57080;
  --accent-300: #95485a;
  --accent-400: #7a2838;
  --accent-500: #5c1e2e;
  --accent-600: #4a1822;
  --accent-700: #3d1320;
  --accent-800: #2e0e18;
  --accent-900: #1f0810;
  --accent: var(--accent-500);

  /* Dark-mode substitute — not used on light surfaces */
  --accent-gold: #c4a661;

  /* Semantic */
  --success: #5c7245;
  --warning: #8b6217;
  --danger: #8b1a1f;
  --info: #3a4a6b;

  /* Spacing scale (8pt + 4pt half-steps) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Radius */
  --radius-0: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Icon sizes — Phosphor, regular variant default (§9) */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 32px;
  --icon-2xl: 48px;

  /* Fonts */
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* Grid */
  --container: 1140px;
  --container-editorial: 720px;

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-100);
  color: var(--ink);
}

a {
  color: var(--accent-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-base) var(--ease-standard);
}

a:hover {
  color: var(--accent-700);
}

/* Focus ring — §14 AA floor. Replaces the browser default outline. */
:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.025em;
  font-weight: 400;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

h3 {
  font-size: 24px;
  font-variation-settings: "opsz" 24;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

h4 {
  font-size: 20px;
  font-variation-settings: "opsz" 20;
  font-weight: 500;
  line-height: 1.25;
}

p {
  color: var(--ink);
}

/* Heading emphasis — italic + oxblood. Display italic must pair wght 460
   with roman 400 per Typography Decision §6 + Wordmark §4. */
.accent {
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
  color: var(--accent-700);
}

/* Section eyebrow / kicker — mono caption.
   Now composed: "Field note NN  ·  Section title" — magazine-style. */
.eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.eyebrow .ph,
.section-eyebrow .ph {
  font-size: var(--icon-sm);
  color: var(--accent-500);
}

.section-eyebrow .kicker {
  color: var(--accent-700);
}

.section-eyebrow .kicker-divider {
  flex: 0 0 24px;
  height: 1px;
  background: var(--rule);
}

/* Section lede — sits between h2 and figures, reads like a deck intro */
.section-lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  max-width: 760px;
  margin-bottom: var(--space-8);
}

/* ============================================================
   Phosphor icons — §9
   `color` cascades to the glyph; never set fill/stroke on SVG.
   ============================================================ */

.ph,
.ph-bold,
.ph-fill,
.ph-duotone {
  display: inline-block;
  font-size: var(--icon-md);
  line-height: 1;
  vertical-align: -0.125em; /* §9 inline alignment rule */
  color: currentColor;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Wordmark — per DESIGN.md §4.
   `Craft` (roman ink) + italic <em>`a`</em> (oxblood-600, wght 460).
   Nav usage is 22px → tracking -0.015em per §4 size table. */
.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72 "wght" 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark em {
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
  color: var(--accent-600);
  margin-left: -0.015em;
}

.wordmark .suffix {
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
  color: var(--ink-muted);
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark:hover em {
  color: var(--accent-700);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-700);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--space-11) 0 var(--space-10);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  max-width: 900px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

/* Rotating role word in the hero — crossfades teacher → coach → mentor.
   Inline-grid stacks the three words in one cell so the inline width
   clamps to the widest word and surrounding text doesn't reflow. */
.role-rotator {
  display: inline-grid;
  vertical-align: baseline;
}

.role-rotator .role {
  grid-area: 1 / 1;
  opacity: 0;
  text-align: left;
  animation: role-rotate 9s infinite;
}

.role-rotator .role:nth-of-type(1) {
  animation-delay: 0s;
}
.role-rotator .role:nth-of-type(2) {
  animation-delay: 3s;
}
.role-rotator .role:nth-of-type(3) {
  animation-delay: 6s;
}

@keyframes role-rotate {
  0% {
    opacity: 0;
    transform: translateY(0.12em);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(-0.12em);
  }
  100% {
    opacity: 0;
    transform: translateY(0.12em);
  }
}

/* Screen-reader-only label for the rotator (and reusable elsewhere). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .role-rotator .role {
    animation: none;
  }
  .role-rotator .role:nth-of-type(1) {
    opacity: 1;
  }
}

.lede {
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 720px;
  margin-bottom: var(--space-7);
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* Hero metadata strip — status + context, mono caption row */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  max-width: 720px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-meta .ph-fill {
  font-size: 10px;
  color: var(--success);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard);
}

.btn .ph {
  font-size: var(--icon-md);
  vertical-align: baseline;
  transition: transform var(--duration-base) var(--ease-standard);
}

.btn-primary {
  background: var(--accent-500);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-600);
  color: var(--paper);
}

.btn-primary:hover .ph-arrow-right {
  transform: translateX(2px);
}

.btn-primary:active {
  background: var(--accent-700);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--accent-500);
  color: var(--accent-700);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 16px;
}

/* Button focus ring — overrides generic :focus-visible for buttons. */
.btn:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--rule);
}

.section h2 {
  max-width: 800px;
}

/* ============================================================
   Problem — figure-style stats
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-8);
}

/* Hairline rule treatment instead of full-card borders.
   Reads as a tabular figure, not a SaaS feature grid. */
.stat {
  padding: var(--space-7) var(--space-6) var(--space-6);
  border-right: 1px solid var(--rule);
  position: relative;
}

.stat:last-child {
  border-right: none;
}

.stat-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.stat-number {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: 80px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  font-feature-settings: "tnum", "lnum";
}

/* §2 / §4 — display italic must pair wght 460 with roman wght 400. */
.stat-unit {
  font-size: 44px;
  color: var(--accent-700);
  margin-left: 4px;
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
}

.stat-label {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.stat-note {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.problem-conclusion {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 800px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* §2 / §4 — italic at display size uses wght 460. */
.problem-conclusion em {
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
  color: var(--accent-700);
}

/* ============================================================
   Products
   ============================================================ */

.products h2 {
  margin-bottom: var(--space-8);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.product-card {
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-base) var(--ease-standard);
}

.product-card:hover {
  border-color: var(--accent-400);
}

.product-card--engine {
  border-color: var(--accent-300);
  background: var(--accent-50);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.product-icon {
  font-size: var(--icon-lg);
  color: var(--accent-500);
  vertical-align: baseline;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.product-card h3 {
  margin-bottom: var(--space-4);
}

.product-summary {
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
  line-height: 1.55;
  font-size: 17px;
}

.product-summary em {
  font-style: italic;
  font-variation-settings: "opsz" 24 "wght" 460;
  color: var(--ink);
}

.product-features {
  list-style: none;
  margin-top: auto;
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.product-features .ph {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: var(--icon-sm);
  color: var(--accent-500);
  vertical-align: baseline;
}

/* ============================================================
   Thesis
   ============================================================ */

.thesis {
  background: var(--accent-50);
}

.thesis-inner {
  max-width: 880px;
  text-align: center;
}

.thesis .section-eyebrow {
  justify-content: center;
}

.pull-quote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: var(--space-6) 0 var(--space-8);
}

.thesis-body {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0 auto var(--space-5);
  max-width: 680px;
  text-align: left;
}

.thesis-body strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   Roadmap — sequential phase timeline
   Replaces the prior 3-column card grid with an editorial,
   numbered, vertical-rule-anchored sequence.
   ============================================================ */

.roadmap h2 {
  margin-bottom: var(--space-8);
}

.phase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rule);
}

.phase:last-child {
  border-bottom: 1px solid var(--rule);
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.phase-index {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-500);
  font-feature-settings: "tnum", "lnum";
}

.phase-rule {
  display: none;
}

.phase-body {
  max-width: 640px;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.phase-body h3 {
  margin-bottom: var(--space-3);
  font-size: 28px;
  font-variation-settings: "opsz" 28;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.phase-body p {
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 17px;
}

.phase-body em {
  font-style: italic;
  font-variation-settings: "opsz" 24 "wght" 460;
  color: var(--ink);
}

/* ============================================================
   Audiences
   ============================================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.audience-card {
  padding: var(--space-7);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.audience-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.audience-tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.audience-tagline em {
  font-style: italic;
  font-variation-settings: "opsz" 72 "wght" 460;
  color: var(--accent-700);
}

.audience-body {
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 17px;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: var(--accent-50);
  text-align: center;
}

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

.contact .section-eyebrow {
  justify-content: center;
}

.contact h2 {
  margin: 0 auto var(--space-5);
  max-width: none;
}

.contact-body {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: var(--space-7);
}

.contact .btn .ph-arrow-up-right {
  transition: transform var(--duration-base) var(--ease-standard);
}

.contact .btn:hover .ph-arrow-up-right {
  transform: translate(2px, -2px);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: var(--space-8) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-5);
}

/* §4 — wordmark at 18px sits in the 16-20px size bracket, tracking -0.01em. */
.footer-wordmark {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 20 "wght" 460;
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

.footer-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.footer-fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* ============================================================
   Responsive — breakpoints per DESIGN.md §7
   ============================================================ */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--rule);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: var(--space-6) 0;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .phase {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .phase-index {
    font-size: 40px;
  }

  .nav-links {
    gap: var(--space-4);
  }

  .nav-links a {
    font-size: 14px;
  }

  .hero {
    padding: var(--space-9) 0 var(--space-8);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .lede {
    font-size: 18px;
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-3);
  }

  .product-card,
  .audience-card {
    padding: var(--space-5);
  }

  .stat-number {
    font-size: 60px;
  }

  .stat-unit {
    font-size: 32px;
  }

  .audience-tagline {
    font-size: 28px;
  }

  .pull-quote {
    font-size: 32px;
  }
}

/* Respect reduced-motion — §11 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Home — visual band synchronized slider.
   Synchronized in lockstep with the hero role rotator.
   Teacher (Classroom) -> Coach (Snowboarding) -> Mentor (Executive).
   Total loop is 9s, 3s each slide. */
.visual-band {
  background: var(--paper);
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}

.visual-slider {
  width: 100%;
  height: clamp(400px, 70vh, 760px); /* Wide cinematic fullscreen feel */
  position: relative;
}

.visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: visual-fade 9s infinite;
}

/* Charcoal overlay to darken the images and maximize contrast */
.visual-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 22, 0.35); /* 35% Charcoal overlay */
  pointer-events: none;
  z-index: 1;
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) contrast(1.05); /* 50% brightness reduction + contrast boost */
}

/* Match delays of the role rotator precisely */
.visual-slide:nth-of-type(1) {
  animation-delay: 0s;
}

.visual-slide:nth-of-type(2) {
  animation-delay: 3s;
}

.visual-slide:nth-of-type(3) {
  animation-delay: 6s;
}

@keyframes visual-fade {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Home — offerings teaser tail CTA. */
.offerings-cta {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
}

/* Insights — Field Note essay layout.
   Reuses .thesis-inner (centered masthead) and .thesis-body
   (680px essay paragraphs) so the editorial typography stays
   consistent with the rest of the system. */
.essay-head {
  text-align: center;
}

.essay-head .eyebrow {
  justify-content: center;
}

.essay-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.essay-container {
  max-width: 720px;
}

/* 2-up stats variant for the essay (default grid is 3-up). */
.stats-grid--essay {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--space-8) 0;
}

.essay-pull-quote {
  text-align: center;
  margin: var(--space-9) auto;
}

.essay-closer {
  font-style: italic;
  color: var(--ink);
}

.essay-cta {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
}
