/* ==========================================================================
   Corrival — corrival.biz
   Design system v1
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }

:root {
  --c-base: #FAF8F3;
  --c-cream: #F0EBE1;
  --c-paper: #FFFFFF;
  --c-ink: #1A1D24;
  --c-ink-soft: #2D3340;
  --c-muted: #5A6472;
  --c-line: #E4DFD4;
  --c-line-soft: #EDE8DC;
  --c-teal: #2D7D7D;
  --c-teal-deep: #1F5959;
  --c-teal-soft: #E3F0EE;
  --c-coral: #E8704A;
  --c-error: #9C2F17; /* AA-compliant on cream */
  --c-coral-soft: #FCE6DC;
  --c-amber: #D4A574;
  --c-amber-soft: #F5EADB;
  --c-sand: #DDCDA8; /* matches hero character image background */

  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --fs-lg: clamp(1.375rem, 1.25rem + 0.625vw, 1.625rem);
  --fs-xl: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);
  --fs-2xl: clamp(2.25rem, 1.9rem + 1.75vw, 3.25rem);
  --fs-3xl: clamp(2.75rem, 2.1rem + 3.25vw, 4.75rem);
  --fs-4xl: clamp(3.5rem, 2.4rem + 5.5vw, 7rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --s-9: 6rem; --s-10: 8rem; --s-11: 10rem;

  --container: 76rem;
  --container-narrow: 52rem;
  --container-wide: 84rem;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;

  --shadow-sm: 0 1px 2px rgba(26, 29, 36, 0.06), 0 1px 3px rgba(26, 29, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 29, 36, 0.06), 0 2px 6px rgba(26, 29, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 29, 36, 0.08), 0 6px 14px rgba(26, 29, 36, 0.05);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-base);
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 420;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
h1 { font-size: var(--fs-4xl); font-weight: 380; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.02em; line-height: 1.05; }
h3 { font-size: var(--fs-xl); letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-size: var(--fs-lg); line-height: 1.2; }

.lede { font-size: var(--fs-md); color: var(--c-ink-soft); line-height: 1.55; max-width: 38rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-teal);
}
em, .italic { font-style: italic; font-feature-settings: "ss01"; }
::selection { background: var(--c-teal); color: var(--c-base); }

:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: clamp(var(--s-8), 10vw, var(--s-11)); }
.section--tight { padding-block: clamp(var(--s-7), 7vw, var(--s-9)); }
.section--cream { background: var(--c-cream); }
.section--ink { background: var(--c-ink); color: var(--c-base); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--c-base); }

.stack > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }
.stack-sm > * + * { margin-top: var(--s-3); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--c-base) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
}
.header.is-scrolled { border-bottom-color: var(--c-line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: 72px;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
/* Brand mark — Corrival gear icon as img with filter to match site palette. */
.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  /* Shift royal blue source to site teal */
  filter: hue-rotate(-45deg) saturate(0.58) brightness(0.92);
  transition: filter var(--dur-fast) var(--ease-out);
}
.brand:hover .brand-mark {
  filter: hue-rotate(-50deg) saturate(0.65) brightness(0.82);
}

/* Footer: use white logo, invert to cream against dark background */
.footer .brand-mark {
  /* The transparent PNG is already white/gray on transparent — just soften slightly */
  filter: brightness(1.5) opacity(0.92);
}
.footer .brand:hover .brand-mark {
  filter: brightness(1.6) opacity(1);
}

.nav-links { display: flex; gap: var(--s-6); }
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--c-teal); }
.nav-right { display: flex; align-items: center; gap: var(--s-4); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--c-ink);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-right .btn { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--c-base);
    border-bottom: 1px solid var(--c-line);
    padding: var(--s-4) var(--s-5) var(--s-6);
    gap: var(--s-4);
  }
}

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 550;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c-ink); color: var(--c-base); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-teal-deep); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--c-teal); color: var(--c-base); }
.btn-accent:hover { background: var(--c-teal-deep); }
.btn-secondary { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line); }
.btn-secondary:hover { border-color: var(--c-ink); background: var(--c-paper); }
.btn-ghost { background: transparent; color: var(--c-ink-soft); padding: 0.5rem 0.875rem; }
.btn-ghost:hover { color: var(--c-teal); }
.btn-lg { padding: 1.125rem 2rem; font-size: var(--fs-base); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.hero { position: relative; padding-block: clamp(var(--s-8), 10vw, var(--s-11)); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(var(--s-6), 6vw, var(--s-9));
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; max-width: 520px; margin-inline: auto; }
}
.hero h1 { margin-top: var(--s-5); margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--c-teal); font-style: italic; font-weight: 380; }
.hero .lede { margin-bottom: var(--s-6); }
.cta-group { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.trust-line {
  margin-top: var(--s-5);
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--c-muted); font-size: var(--fs-sm);
}
.trust-line::before { content: ""; width: 2rem; height: 1px; background: var(--c-line); }
/* Hero illustration — character extends full column height for editorial presence */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(420px, 52vw, 640px);
}
.hero-illustration img {
  width: auto;
  height: 100%;
  max-height: clamp(420px, 52vw, 640px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  /* Let character visually breathe past the grid column */
  transform: translateX(8%) scale(1.15);
  transform-origin: bottom center;
}
@media (max-width: 900px) {
  .hero-illustration {
    min-height: 360px;
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }
  .hero-illustration img {
    transform: none;
    max-height: 360px;
  }
}

.journey { position: relative; background: var(--c-cream); border-block: 1px solid var(--c-line); }
.journey-intro {
  text-align: center; max-width: 40rem; margin: 0 auto var(--s-8);
  padding-block: var(--s-9) var(--s-6);
}
.journey-intro p { color: var(--c-ink-soft); font-size: var(--fs-md); margin-top: var(--s-4); }

.journey-track { position: relative; }
.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-6), 6vw, var(--s-9));
  align-items: center;
  padding-block: clamp(var(--s-8), 10vw, var(--s-10));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
  opacity: 1;
}
html.js .scene { opacity: 0; transform: translateY(40px); }
html.js .scene.is-visible { opacity: 1; transform: translateY(0); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.scene:nth-child(even) { direction: rtl; }
.scene:nth-child(even) > * { direction: ltr; }

@media (max-width: 820px) {
  .scene { grid-template-columns: 1fr; gap: var(--s-5); text-align: left; }
  .scene:nth-child(even) { direction: ltr; }
}

.scene-number {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--c-teal);
  letter-spacing: -0.01em;
}
.scene-caption h3 { margin-top: var(--s-2); margin-bottom: var(--s-4); }
.scene-caption p { color: var(--c-ink-soft); font-size: var(--fs-md); line-height: 1.55; max-width: 32rem; }

.scene-illustration {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.scene-illustration svg { width: 100%; height: 100%; }

.scene--wall .scene-illustration { background: linear-gradient(135deg, var(--c-paper) 0%, var(--c-coral-soft) 100%); }
.scene--wall .scene-number { color: var(--c-coral); }
.scene--pivot .scene-illustration { background: linear-gradient(135deg, var(--c-paper) 0%, var(--c-amber-soft) 100%); }
.scene--pivot .scene-number { color: var(--c-amber); }
.scene--ascent .scene-illustration { background: linear-gradient(135deg, var(--c-paper) 0%, var(--c-teal-soft) 100%); }

.pull-quote { max-width: 48rem; margin: var(--s-8) auto; padding-inline: var(--s-5); text-align: center; }
.pull-quote blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 380;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-ink);
}
.pull-quote blockquote::before { content: "\201C"; color: var(--c-coral); }
.pull-quote blockquote::after { content: "\201D"; color: var(--c-coral); }
.pull-quote cite {
  display: block; margin-top: var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  font-style: normal;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-teal); }
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--c-teal-soft);
  color: var(--c-teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.service-card p { color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.6; }
.service-card ul { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.service-card li {
  display: flex; gap: var(--s-2);
  font-size: var(--fs-sm); color: var(--c-ink-soft);
}
.service-card li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 2px;
  background: var(--c-teal);
}

.section-heading { max-width: 44rem; margin-bottom: var(--s-6); }
.section-heading .eyebrow { margin-bottom: var(--s-3); display: inline-block; }
.section-heading .lede { margin-top: var(--s-4); }

.about-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--s-6), 6vw, var(--s-9));
  align-items: center;
}
@media (max-width: 820px) { .about-preview { grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--c-cream);
  overflow: hidden;
  max-width: 420px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.about-portrait::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(26, 29, 36, 0.18), transparent);
  pointer-events: none;
}
.about-copy blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 380;
  line-height: 1.25;
  color: var(--c-ink);
  margin-block: var(--s-5);
}
.about-copy .signoff { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--c-muted); }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
  margin-top: var(--s-7);
}
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr; } }

.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.metric {
  padding: var(--s-5) var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.metric-value {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 380;
  letter-spacing: -0.02em;
  color: var(--c-teal);
  line-height: 1;
}
.metric-label {
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.logo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.logo-slot {
  aspect-ratio: 3 / 1;
  background: var(--c-paper);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.lm-teaser {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
  padding: clamp(var(--s-7), 5vw, var(--s-9));
  background: var(--c-ink);
  color: var(--c-base);
  border-radius: var(--radius-lg);
}
.lm-teaser h2, .lm-teaser h3 { color: var(--c-base); }
.lm-teaser .eyebrow { color: var(--c-amber); }
.lm-teaser p { color: color-mix(in oklab, var(--c-base) 82%, transparent); }
@media (max-width: 820px) { .lm-teaser { grid-template-columns: 1fr; } }

.lm-cover {
  aspect-ratio: 8.5 / 11;
  max-width: 280px;
  margin-inline: auto;
  background: linear-gradient(145deg, var(--c-teal) 0%, var(--c-teal-deep) 100%);
  border-radius: var(--radius);
  padding: var(--s-5);
  color: var(--c-base);
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(26, 29, 36, 0.3), 0 10px 20px rgba(26, 29, 36, 0.2);
  transform: rotate(-3deg);
  transition: transform var(--dur-med) var(--ease-out);
}
.lm-cover:hover { transform: rotate(-1deg) scale(1.02); }
.lm-cover .lm-tag { font-size: 0.75rem; font-family: var(--font-sans); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; opacity: 0.75; }
.lm-cover .lm-cover-title {
  margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; font-style: italic; color: var(--c-base); }

.final-cta { text-align: center; padding-block: clamp(var(--s-9), 10vw, var(--s-11)); }
.final-cta h2 { max-width: 28rem; margin-inline: auto; margin-bottom: var(--s-5); }
.final-cta .lede { margin-inline: auto; margin-bottom: var(--s-6); }

.footer {
  background: var(--c-ink);
  color: color-mix(in oklab, var(--c-base) 72%, transparent);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid color-mix(in oklab, var(--c-base) 14%, transparent);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer .footer-heading {
  margin-top: 0;
  margin-bottom: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--c-base);
  margin-bottom: var(--s-4);
}
.footer .brand { color: var(--c-base); margin-bottom: var(--s-4); }
/* (removed) stale footer brand-mark background — no longer needed with img+filter approach */
.footer ul { display: grid; gap: var(--s-2); }
.footer a { transition: color var(--dur-fast) var(--ease-out); }
.footer a:hover { color: var(--c-base); }
.footer-tagline { max-width: 18rem; margin-bottom: var(--s-4); line-height: 1.55; }

.footer-meta {
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--fs-xs);
  color: color-mix(in oklab, var(--c-base) 50%, transparent);
}

.social-row { display: flex; gap: var(--s-3); }
.social-row a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklab, var(--c-base) 18%, transparent);
  border-radius: 50%;
  transition: all var(--dur-fast) var(--ease-out);
}
.social-row a:hover { background: var(--c-base); color: var(--c-ink); border-color: var(--c-base); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Default: visible. JS will add .js to <html> and opt-in to hidden/animated state. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scene { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  /* Explicitly disable interaction motion — users who opt in still get
     clear state changes via color/border, just no movement. */
  .btn:hover { transform: none; }
  .btn:hover .arrow { transform: none; }
  .service-card:hover { transform: none; }
  .consent-banner { animation: none; }
  .skip-link { transition: none; }
}

/* ==========================================================================
   v2 — Real character imagery (Stage 1d)
   ========================================================================== */

/* Override scene-illustration for image-based scenes */
.scene-illustration {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.scene-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scene overlay text — crisp HTML over MJ-generated images */
.scene-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* Scene 01 — ORDERS sign */
.scene-overlay--orders {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-teal);
  color: var(--c-base);
  padding: 0.4rem 1.2rem;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Scene 03 — wall sign */
.scene-overlay--wall-sign {
  top: 50%;
  right: 8%;
  transform: translateY(-50%) rotate(-3deg);
  background: var(--c-base);
  color: var(--c-ink);
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-ink);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.08em;
  max-width: 38%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.scene-overlay--wall-sign .eq {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--c-coral);
  letter-spacing: 0;
  margin: 0.2rem 0;
}

/* Scene 04 — Corrival card text */
.scene-overlay--card {
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: transparent;
  text-align: center;
  width: 32%;
  max-width: 180px;
}
.scene-overlay--card .card-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--c-teal);
  line-height: 1;
}
.scene-overlay--card .card-rule {
  display: block;
  width: 34px;
  height: 1.5px;
  background: var(--c-teal);
  margin: 0.35rem auto;
}
.scene-overlay--card .card-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--c-ink-soft);
  text-transform: uppercase;
}

/* Hero character image */
.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Treadmill motif overlay (scene 02) — subtle belt under robot */
.scene-overlay--treadmill {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--c-ink) 0 4px,
    transparent 4px 10px);
  opacity: 0.35;
  border-radius: 2px;
  pointer-events: none;
}

/* Make scene illustration container hold overlays cleanly */
.scene-illustration {
  isolation: isolate;
}

@media (max-width: 600px) {
  .scene-overlay--wall-sign {
    font-size: 0.55rem;
    max-width: 48%;
    padding: 0.5rem 0.6rem;
  }
  .scene-overlay--wall-sign .eq {
    font-size: 1.1rem;
  }
  .scene-overlay--card .card-name { font-size: 0.8rem; }
}

/* ==========================================================================
   v3 — Editorial refinement pass (Stage 1e)
   Applied for sophisticated non-technical founder audience.
   Principles: restraint > density, editorial typography, generous whitespace,
   purposeful color moments, confident hierarchy.
   ========================================================================== */

/* --- New fluid scale for editorial moments --- */
:root {
  --fs-5xl: clamp(4rem, 3rem + 5vw, 7.5rem);
  --fs-6xl: clamp(5rem, 4rem + 6vw, 9rem);
}

/* --- Hero: push typography, add editorial breathing room --- */
.hero {
  padding-block: clamp(var(--s-9), 14vw, 14rem) clamp(var(--s-8), 8vw, var(--s-10));
}
.hero h1 {
  font-size: var(--fs-5xl);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .accent {
  font-weight: 340;
  font-style: italic;
}
.hero .lede {
  font-size: var(--fs-lg);
  line-height: 1.45;
  max-width: 34rem;
  color: var(--c-ink-soft);
}
.hero .eyebrow {
  letter-spacing: 0.18em;
}

/* --- Journey intro: stronger statement --- */
.journey-intro h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.022em;
}
.journey-intro p {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--c-ink-soft);
  max-width: 34rem;
  margin-inline: auto;
}

/* --- Scene captions: editorial hierarchy --- */
.scene-number {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--c-muted);
  display: block;
  margin-bottom: var(--s-4);
}
.scene--wall .scene-number { color: var(--c-coral); }
.scene--pivot .scene-number { color: var(--c-amber); }
.scene--ascent .scene-number { color: var(--c-teal); }

.scene-caption h3 {
  font-size: var(--fs-2xl);
  font-weight: 380;
  letter-spacing: -0.024em;
  line-height: 1.08;
  margin-top: 0;
  margin-bottom: var(--s-5);
  max-width: 22ch;
}
.scene-caption p {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 30rem;
}

/* --- More vertical rhythm between scenes --- */
.scene {
  padding-block: clamp(var(--s-9), 12vw, 12rem);
  gap: clamp(var(--s-7), 8vw, var(--s-10));
}

/* --- Scene illustration: more presence --- */
.scene-illustration {
  border: none;
  box-shadow: 0 20px 50px -12px rgba(26, 29, 36, 0.12),
              0 8px 24px -8px rgba(26, 29, 36, 0.08);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.scene-illustration:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -14px rgba(26, 29, 36, 0.16),
              0 12px 30px -10px rgba(26, 29, 36, 0.10);
}

/* --- Pull quote: cinematic moment --- */
.pull-quote {
  max-width: 48rem;
  padding-block: clamp(var(--s-9), 12vw, var(--s-11));
  margin: 0 auto;
}
.pull-quote blockquote {
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3.125rem);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-style: italic;
  color: var(--c-ink);
  text-wrap: balance;
}
.pull-quote blockquote::before,
.pull-quote blockquote::after {
  font-size: 1.3em;
  line-height: 0;
  vertical-align: -0.1em;
}
.pull-quote cite {
  margin-top: var(--s-6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* --- Section headings: editorial weight --- */
.section-heading .eyebrow {
  letter-spacing: 0.18em;
}
.section-heading h2 {
  font-size: var(--fs-3xl);
  font-weight: 360;
  letter-spacing: -0.024em;
  line-height: 1.05;
  max-width: 20ch;
}
.section-heading .lede {
  font-size: var(--fs-lg);
  line-height: 1.5;
  margin-top: var(--s-5);
  color: var(--c-ink-soft);
}

/* --- Service cards: quieter, more editorial --- */
.service-card {
  background: transparent;
  border: 1px solid var(--c-line);
  padding: var(--s-7) var(--s-6);
  transition: border-color 400ms var(--ease-out), background 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.service-card:hover {
  background: var(--c-paper);
  border-color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: none;
}
.service-card h3 {
  font-size: var(--fs-xl);
  font-weight: 380;
  letter-spacing: -0.018em;
  margin-bottom: var(--s-4);
}
.service-card p {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink-soft);
}
.service-card .icon {
  background: transparent;
  border: 1px solid var(--c-teal);
  color: var(--c-teal);
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* --- About preview: warmer editorial moment --- */
.about-copy h2 {
  font-size: var(--fs-3xl);
  font-weight: 360;
  letter-spacing: -0.024em;
  line-height: 1.05;
  max-width: 14ch;
}
.about-copy blockquote {
  font-size: var(--fs-xl);
  font-weight: 380;
  line-height: 1.3;
  font-style: italic;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  border-left: 2px solid var(--c-teal);
  padding-left: var(--s-5);
  margin-block: var(--s-6);
}
.about-copy p {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* --- Final CTA: confident close --- */
.final-cta h2 {
  font-size: var(--fs-4xl);
  font-weight: 340;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 16ch;
}
.final-cta .eyebrow {
  letter-spacing: 0.2em;
}
.final-cta .lede {
  font-size: var(--fs-md);
  max-width: 32rem;
  line-height: 1.55;
}
.final-cta .lede {
  font-size: var(--fs-lg);
  max-width: 34rem;
}
.final-cta .btn-lg {
  padding: 1.3rem 2.4rem;
  font-size: var(--fs-base);
}

/* --- Metrics: editorial display --- */
.metric {
  background: transparent;
  border: none;
  border-top: 1px solid var(--c-line);
  border-radius: 0;
  padding: var(--s-5) var(--s-2);
  text-align: center;
}
.metric-value {
  display: block;
  text-align: center;
}
.metric-label {
  display: block;
  text-align: center;
}
.metric-value {
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-weight: 340;
  letter-spacing: -0.03em;
}
.metric-label {
  margin-top: var(--s-3);
}

/* --- Smaller buttons, less marketing-y --- */
.btn {
  font-weight: 500;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--c-ink);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--c-teal-deep);
  box-shadow: none;
  transform: translateY(-1px);
}

/* --- Lead magnet teaser: more restraint --- */
.lm-teaser {
  background: var(--c-ink);
  padding: clamp(var(--s-7), 6vw, var(--s-10));
  border-radius: var(--radius);
}
.lm-teaser h3 {
  font-size: var(--fs-2xl);
  font-weight: 360;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
}
.lm-teaser p {
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 28rem;
}

/* --- Logo wall: quieter --- */
.logo-slot {
  border: 1px dashed var(--c-line);
  background: transparent;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--c-muted) 60%, transparent);
}

/* --- Section spacing — more generous --- */
.section {
  padding-block: clamp(var(--s-10), 12vw, 12rem);
}

/* --- Hide scene illustration overlays on mobile where they crowd --- */
@media (max-width: 600px) {
  .scene-overlay--wall-sign {
    max-width: 52%;
    right: 5%;
  }
  .scene-caption h3 {
    font-size: var(--fs-xl);
    max-width: 100%;
  }
  .pull-quote blockquote {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  }
}

/* --- Refined reveal: softer, slower --- */
html.js .reveal {
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
html.js .scene.is-visible {
  transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out);
}

/* ==========================================================================
   Client logos — editorial treatment
   ========================================================================== */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6) var(--s-7);
  margin-top: var(--s-6);
  align-items: center;
}
@media (max-width: 600px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s-3);
  border: none;
  background: transparent;
  color: inherit;
  font-size: var(--fs-sm);
  text-transform: none;
  letter-spacing: 0;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.logo-slot img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Editorial treatment: desaturate, soften, let the site palette lead */
  filter: grayscale(1) opacity(0.55) contrast(1.1);
  transition: filter var(--dur-med) var(--ease-out);
}
.logo-slot:hover img {
  filter: grayscale(0) opacity(1) contrast(1);
}
.logo-slot:hover { transform: translateY(-1px); }


/* Per-logo filter overrides for light/white logos that disappear in grayscale on cream */
.logo-slot img[src*="grhkratom"] {
  filter: invert(0.75) grayscale(1) opacity(0.65) contrast(1.2);
}
.logo-slot:hover img[src*="grhkratom"] {
  filter: invert(0.75) grayscale(0) opacity(1) contrast(1);
}

/* D8 Austin uses a white-on-dark mark; invert it the same way we did GRH */
.logo-slot img[src*="d8austin"] {
  filter: invert(0.85) grayscale(1) opacity(0.7) contrast(1.2);
}
.logo-slot:hover img[src*="d8austin"] {
  filter: invert(0.85) grayscale(0) opacity(1) contrast(1);
}


/* ==========================================================================
   Hero — composed spread variant
   Section + robot image share one warm-sand canvas so headline and character
   read as one illustrated composition.
   ========================================================================== */
.hero {
  background: var(--c-sand);
  padding-block: clamp(var(--s-8), 11vw, 11rem) 0;
  position: relative;
  /* Extend the sand background edge-to-edge of viewport even though the
     inner content remains constrained by .container. */
  box-shadow: 0 0 0 100vmax var(--c-sand);
  clip-path: inset(0 -100vmax);
  overflow: visible;
}
.hero-grid {
  align-items: end;
  gap: 0;
}
.hero-copy {
  padding-bottom: clamp(var(--s-8), 10vw, 10rem);
}
.hero h1 {
  /* slightly tighter at desktop so it reads as a single inked line set */
  font-weight: 360;
}
.hero h1 .accent { color: var(--c-teal); }
.hero-illustration {
  position: relative;
  display: block;
  min-height: clamp(520px, 64vw, 760px);
  /* Let the character break past the column edge and bleed toward the right gutter */
  margin-right: calc(var(--s-5) * -1);
}
.hero-illustration img {
  position: absolute;
  right: -6%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  transform: scale(1.2);
  transform-origin: bottom right;
  /* No filter or card treatment — let the image sit flush on the sand */
}
/* Transition the section below the hero so the sand fades to the journey cream */
.journey { border-top: 0; }

@media (max-width: 900px) {
  .hero { padding-block: var(--s-8) 0; }
  .hero-copy { padding-bottom: var(--s-7); }
  .hero-illustration {
    min-height: 380px;
    margin-right: 0;
    order: -1;
  }
  .hero-illustration img {
    position: static;
    height: auto;
    max-width: 90%;
    max-height: 380px;
    margin-inline: auto;
    transform: none;
  }
}

/* ==========================================================================
   Stage 2 — Inner pages (about, services, lead magnet, thank-you, 404)
   ========================================================================== */

/* Simpler page hero, used across all non-home pages */
.page-hero {
  padding-block: clamp(var(--s-8), 10vw, var(--s-10)) clamp(var(--s-6), 6vw, var(--s-8));
  max-width: var(--container-narrow);
}
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-hero h1 {
  font-size: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.page-hero .lede {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--c-ink-soft);
}

/* About — principles grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.principle {
  padding: var(--s-6) var(--s-5);
  border-top: 1px solid var(--c-line);
  background: transparent;
}
.principle-num {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--c-teal);
  margin-bottom: var(--s-3);
}
.principle h3 {
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin-bottom: var(--s-3);
}
.principle p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* About — prose block */
.prose {
  max-width: 38rem;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-ink-soft);
}
.prose p + p { margin-top: var(--s-5); }

/* Services — service detail blocks */
.service-detail {
  border-top: 1px solid var(--c-line);
  padding-block: clamp(var(--s-8), 8vw, var(--s-10));
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: start;
}
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: var(--s-6); }
}
.service-num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--c-teal);
  margin-bottom: var(--s-4);
}
.service-detail-head h2 {
  font-size: var(--fs-2xl);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: var(--s-3);
  max-width: 18ch;
}
.service-detail-body .lede {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin-bottom: var(--s-6);
  max-width: 36rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-grid h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
  font-family: var(--font-sans);
}
.service-list {
  display: grid;
  gap: var(--s-2);
}
.service-list li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-base);
  line-height: 1.45;
  color: var(--c-ink-soft);
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin-top: 0.55em;
  border-radius: 1px;
  background: var(--c-teal);
}
.service-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.service-meta .eyebrow { display: inline-block; margin-right: var(--s-2); }

/* Services — process steps */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
  list-style: none;
  padding: 0;
}
@media (max-width: 820px) { .process-row { grid-template-columns: 1fr; } }
.process-step {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-line);
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-base);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.process-step h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}
.process-step p {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink-soft);
}

/* Lead magnet page */
.lm-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(var(--s-7), 6vw, var(--s-10));
  align-items: center;
  padding-block: clamp(var(--s-7), 8vw, var(--s-9));
}
@media (max-width: 900px) {
  .lm-hero { grid-template-columns: 1fr; }
  .lm-hero-cover { max-width: 320px; margin-inline: auto; }
}
.lm-hero-copy h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 380;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: var(--s-5);
  max-width: 20ch;
}
.lm-hero-copy .lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-soft);
  margin-bottom: var(--s-6);
  max-width: 34rem;
}
.lm-bullets {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.lm-bullets li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.lm-bullets li::before {
  content: "✓";
  color: var(--c-teal);
  font-weight: 600;
  flex-shrink: 0;
}

/* Lead magnet form */
.lm-form {
  display: grid;
  gap: var(--s-4);
  max-width: 28rem;
}
.lm-field { display: grid; gap: var(--s-2); }
.lm-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-family: var(--font-sans);
}
.lm-field input {
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  font-family: var(--font-sans);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.lm-field input:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px var(--c-teal-soft);
}
.lm-form button[type="submit"] { width: 100%; margin-top: var(--s-2); }
.lm-status {
  font-size: var(--fs-sm);
  color: var(--c-error);
  min-height: 1.2em;
  /* Bump weight slightly so error state reads — color alone isn't accessible */
  font-weight: 500;
}
.lm-privacy {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.4;
}

/* Large lead magnet cover */
.lm-cover--large {
  aspect-ratio: 8.5 / 11;
  max-width: 340px;
  margin-inline: auto;
  background: linear-gradient(145deg, var(--c-teal) 0%, var(--c-teal-deep) 100%);
  border-radius: var(--radius);
  padding: var(--s-6);
  color: var(--c-base);
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(26, 29, 36, 0.25), 0 12px 24px rgba(26, 29, 36, 0.15);
  transform: rotate(-2deg);
}
.lm-cover--large .lm-tag {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}
.lm-cover--large .lm-cover-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--c-base);
  margin-top: var(--s-4);
  line-height: 1.1;
}

/* Lead magnet "what's inside" */
.lm-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 900px) { .lm-toc { grid-template-columns: 1fr; } }
.lm-toc-item {
  padding: var(--s-5);
  background: var(--c-paper);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}
.lm-toc-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--c-teal);
  margin-bottom: var(--s-3);
}
.lm-toc-item h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}
.lm-toc-item p {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink-soft);
}

/* Thank-you page */
.confirm {
  padding-block: clamp(var(--s-9), 12vw, var(--s-11));
}
.confirm-inner { text-align: center; }
.confirm-inner h1 {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 360;
  letter-spacing: -0.025em;
  margin-block: var(--s-4) var(--s-5);
}
.confirm-inner .lede {
  max-width: 34rem;
  margin-inline: auto;
  font-size: var(--fs-md);
  line-height: 1.6;
}
.confirm-inner a:not(.btn) { color: var(--c-teal); border-bottom: 1px solid currentColor; }
.confirm-download {
  margin-top: var(--s-7);
}
.confirm-divider {
  margin-block: var(--s-9);
  border: none;
  border-top: 1px solid var(--c-line);
}
.confirm-next h2 {
  font-size: var(--fs-2xl);
  font-weight: 360;
  margin-block: var(--s-3) var(--s-4);
}
.confirm-next .lede {
  max-width: 36rem;
  margin-inline: auto;
}
.confirm-next .cta-group {
  justify-content: center;
}

/* 404 page — warm-sand canvas matching the illustration background */
.notfound {
  /* Page color calibrated to the MEDIAN edge pixel of scene-07-lost.png,
     so the illustration's painterly border color matches the surrounding field. */
  --c-sand-404: #DBC9A2;
  background: var(--c-sand-404);
  padding-block: clamp(var(--s-9), 12vw, var(--s-11));
  position: relative;
  /* Full-viewport bleed, same technique as the homepage hero */
  box-shadow: 0 0 0 100vmax var(--c-sand-404);
  clip-path: inset(0 -100vmax);
  overflow: visible;
}
.notfound-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.notfound-inner h1 {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 360;
  letter-spacing: -0.025em;
  margin-block: var(--s-4) var(--s-5);
  max-width: 18ch;
  margin-inline: auto;
}
.notfound-inner .lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 32rem;
  margin-inline: auto;
}
.notfound-inner .cta-group { justify-content: center; }
.notfound-robot {
  margin-top: var(--s-8);
  max-width: clamp(300px, 38vw, 480px);
  margin-inline: auto;
  /* Multiply so the illustration's paper texture sits INTO the page color —
     small tone differences between the image bg and the page get absorbed. */
  mix-blend-mode: multiply;
  /* Soft radial feather dissolves the hard rectangular edge of the PNG
     so any residual seam between image bg and page bg disappears. */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, transparent 98%);
          mask-image: radial-gradient(ellipse at center, #000 62%, transparent 98%);
}
.notfound-robot img {
  width: 100%;
  height: auto;
  display: block;
}


/* About page — paragraph rhythm in copy blocks */
.about-copy p {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin-top: 0;
}
.about-copy p + p {
  margin-top: var(--s-5);
}
.about-copy h2 {
  margin-bottom: var(--s-5);
}
.about-copy .eyebrow {
  margin-bottom: var(--s-3);
  display: inline-block;
}


/* ==========================================================================
   Consent / Cookie banner
   Sits pinned to the bottom on all pages until the visitor chooses.
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--c-base);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -12px 32px -12px color-mix(in oklab, var(--c-ink) 12%, transparent);
  animation: consent-slide-in 360ms var(--ease-out) 1 both;
}
@keyframes consent-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.consent-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--s-4) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 720px) {
  .consent-inner {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-4);
  }
}
.consent-copy .consent-title {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 500;
  margin: 0 0 0.25rem;
  color: var(--c-ink);
}
.consent-copy .consent-body {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-ink-soft);
  margin: 0;
  max-width: 48rem;
}
.consent-copy .consent-body a {
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 720px) {
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1 1 calc(50% - var(--s-2)); justify-content: center; }
}
.consent-btn { font-size: var(--fs-sm); padding: 0.6rem 1rem; }

/* Preferences drawer (shown when "Preferences" is clicked) */
.consent-prefs {
  grid-column: 1 / -1;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: var(--s-3);
}
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-2);
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.consent-row input[type="checkbox"] { margin-top: 0.25rem; }
.consent-prefs-actions {
  display: flex; justify-content: flex-end;
}


/* ==========================================================================
   Legal pages (privacy, terms) — editorial long-form reader
   ========================================================================== */
.legal-page {
  padding-block: clamp(var(--s-8), 10vw, var(--s-10));
}
.legal-header {
  max-width: 44rem;
  margin-bottom: var(--s-8);
}
.legal-header h1 {
  font-size: clamp(2.25rem, 1.75rem + 2.25vw, 3.5rem);
  font-weight: 360;
  letter-spacing: -0.02em;
  margin-block: var(--s-3) var(--s-5);
}
.legal-header .lede {
  color: var(--c-ink-soft);
}
.legal-meta {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  letter-spacing: 0.02em;
}
.legal-copy {
  max-width: 40rem;
  color: var(--c-ink);
}
.legal-copy h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-block: var(--s-7) var(--s-3);
  color: var(--c-ink);
}
.legal-copy h2:first-of-type {
  margin-top: 0;
}
.legal-copy p {
  font-size: var(--fs-md);
  line-height: 1.7;
  margin-block: 0 var(--s-4);
  color: var(--c-ink-soft);
}
.legal-copy ul {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--c-ink-soft);
  padding-left: 1.25rem;
  margin-block: var(--s-2) var(--s-5);
}
.legal-copy li {
  margin-bottom: 0.5rem;
}
.legal-copy a {
  color: var(--c-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-copy a:hover {
  color: var(--c-teal-deep);
}
.legal-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--c-paper);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--c-line);
}


/* ==========================================================================
   Accessibility utilities
   ========================================================================== */

/* Skip-to-content link: invisible until focused by keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 1000;
  background: var(--c-ink);
  color: var(--c-base);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--s-3);
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}

/* Visually hidden but available to screen readers */
.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;
}


/* Stronger focus treatment on colored/dark buttons — ensure the ring
   is visible against both button bg and surrounding page. */
.btn:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-teal) 25%, transparent);
}
.btn-primary:focus-visible,
.btn-accent:focus-visible {
  /* Teal-on-teal becomes invisible — switch to a cream outline when the
     button is already teal-filled, and amber on the ink button. */
  outline-color: var(--c-base);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-base) 40%, transparent);
}
.btn-primary:focus-visible {
  outline-color: var(--c-amber);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-amber) 30%, transparent);
}

/* Nav links, brand, mobile toggle get the same high-contrast focus */
.nav a:focus-visible,
.brand:focus-visible,
.mobile-toggle:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Consent banner: ensure preferences checkboxes get a clear focus ring */
.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
}

/* Footer links get a darker focus ring against ink background */
.footer a:focus-visible {
  outline-color: var(--c-amber);
  outline-offset: 3px;
  border-radius: 4px;
}


/* Subtle "(optional)" label qualifier */
.lm-optional {
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-left: 0.25rem;
}


/* ==========================================================================
   Picture wrapper sizing (Stage 3C)
   When <img> is wrapped in <picture>, the picture element defaults to inline
   and breaks the width/height 100% cascade. Force picture to fill its
   positioned container so object-fit on the inner <img> works as before.
   ========================================================================== */
.scene-illustration picture,
.about-portrait picture,
.hero-illustration picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-illustration picture img,
.about-portrait picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-illustration picture img {
  width: auto;
  height: 100%;
  max-height: clamp(420px, 52vw, 640px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(8%) scale(1.15);
  transform-origin: bottom center;
}
@media (max-width: 900px) {
  .hero-illustration picture img {
    transform: none;
    max-height: 360px;
  }
}
