/* ==========================================================================
   Rooted Nutrition — V1.1 "Olive & Ochre" — colour iteration of V1 Rooted
   ========================================================================== */

:root {
  /* palette — Olive & Ochre */
  --bg: #F2EEE5;            /* stone */
  --bg-2: #F8F6F0;
  --band: #E8E1CF;          /* straw */
  --ink: #2C2F1E;
  --muted: #5C5D48;
  --body: #43453A;
  --accent: #A06E17;        /* ochre */
  --accent-deep: #7E5510;
  --soft: #EBD49A;          /* butter */
  --soft-lite: #F3E8C8;
  --leaf: #8F9464;
  --leaf-lite: #E3E3CC;
  --leaf-deep: #565D30;     /* olive */
  --dark: #3E4426;          /* olive grove */
  --dark-2: #2F341C;
  --on-dark: #F2EEE5;
  --on-dark-soft: #C9CAA6;
  --on-dark-accent: #E6BC62;
  --pop: #D39C35;
  --on-pop: #2C2F1E;
  --cta-ink: #584A26;
  --arch-1: #F3E8C8;
  --arch-2: #EBD49A;
  --arch-3: #D3BF8B;
  --arch-4: #A1A57A;
  --sun-1: #F0CF84;
  --sun-2: #E0AC4E;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 32%, transparent);

  /* character */
  --grain: 0.26;
  --head-soft: 45;
  --head-weight: 360;
  --radius: 24px;

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.9vw, 2rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.35rem, 1.75rem + 3vw, 4.2rem);
  --step-5: clamp(2.7rem, 1.8rem + 4.6vw, 5.8rem);

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: var(--head-weight);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" var(--head-soft);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .serif em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  color: var(--accent);
}
h3 { font-size: var(--step-2); line-height: 1.15; }

::selection { background: var(--soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--dark); color: var(--on-dark);
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }

.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;
}

/* --------------------------------------------------------------------------
   Small type helpers
   -------------------------------------------------------------------------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 1.6rem;
}
.label .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-deep);
}
.label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.label.center { justify-content: center; }
.label.center::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.muted { color: var(--muted); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.65rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--dark); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--soft); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 30px; height: 30px; color: var(--leaf-deep); }
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.brand-word small {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-top: 0.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
.nav-links a.btn-primary { color: var(--on-dark); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav { height: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    font-family: var(--serif);
    font-size: 1.6rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1.25rem; width: 100%; padding: 1rem; }
}

/* --------------------------------------------------------------------------
   Botanical helpers
   -------------------------------------------------------------------------- */
.sprig { color: var(--leaf-deep); }
.sprig .leaf { fill: var(--leaf-fill, none); }
.sprig path { stroke: currentColor; stroke-width: 1.15; fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sprig .leaf { fill: var(--leaf-fill, none); }

/* Arch frame (portrait placeholder) */
.arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(170deg, var(--arch-1) 0%, var(--arch-2) 38%, var(--arch-3) 66%, var(--arch-4) 100%);
  isolation: isolate;
}
.arch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px 999px 10px 10px;
  pointer-events: none;
}
.arch .sprig {
  position: absolute;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  --leaf-fill: color-mix(in srgb, var(--bg) 35%, transparent);
}
.arch-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch-caption::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 70px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 0.45em;
}
.hero .lede { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-note svg { width: 16px; height: 16px; color: var(--leaf-deep); }

.hero-art { position: relative; max-width: 470px; justify-self: end; width: 100%; }
.hero-art .sun {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--sun-1), var(--sun-2) 70%);
  top: -5%;
  right: -9%;
  z-index: -1;
}
.hero-art .arch .sprig { width: 70%; left: 16%; bottom: -3%; }
.hero-art .sprig-out {
  position: absolute;
  width: 34%;
  left: -16%;
  bottom: 8%;
  transform: rotate(-18deg);
  color: var(--leaf-deep);
  --leaf-fill: color-mix(in srgb, var(--leaf) 18%, transparent);
}
.seal {
  position: absolute;
  width: clamp(110px, 12vw, 146px);
  right: -6%;
  bottom: 14%;
  color: var(--ink);
}
.seal .ring { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-strip {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-strip div {
  padding: 1.4rem 1.2rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-strip b {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Sound like you
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.split h2 { font-size: var(--step-4); }
.symptoms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.symptoms li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.35;
  font-weight: 350;
}
.symptoms li span {
  font-style: italic;
  font-size: 0.8em;
  color: var(--accent-deep);
}
.closing {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.15;
  margin-top: 2.6rem;
  font-weight: 340;
}
.closing em { font-style: italic; color: var(--accent); font-weight: 300; }

/* --------------------------------------------------------------------------
   From / To
   -------------------------------------------------------------------------- */
.band-oat { background: var(--band); }
.band-oat + .band-oat { padding-top: 0; }
.fromto-head { text-align: center; max-width: 820px; margin: 0 auto clamp(3rem, 5vw, 4.5rem); }
.fromto-head h2 { font-size: var(--step-4); margin-bottom: 0.35em; }
.fromto {
  max-width: 980px;
  margin-inline: auto;
}
.fromto-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.fromto-row.head {
  padding-bottom: 0.8rem;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  font-weight: 500;
}
.fromto-row .from {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  line-height: 1.2;
}
.fromto-row .to {
  font-family: var(--serif);
  font-weight: 380;
  font-size: var(--step-2);
  line-height: 1.2;
}
.fromto-row .arrow { color: var(--accent); justify-self: center; width: 84px; }
.fromto-row.head .arrow { visibility: hidden; height: 0; }

/* --------------------------------------------------------------------------
   Story teaser
   -------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.story-art { position: relative; max-width: 440px; }
.story-art .arch .sprig { width: 58%; right: 8%; bottom: -2%; transform: scaleX(-1); }
.story-art .leaf-bg {
  position: absolute;
  width: 38%;
  right: -16%;
  top: 12%;
  color: var(--leaf);
  transform: rotate(24deg);
  z-index: -1;
  opacity: 0.8;
}
.story h2 { font-size: var(--step-4); }
.story p { color: var(--muted); max-width: 54ch; }

.pull {
  margin: 2.4rem 0 2rem;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.18;
  color: var(--ink);
  position: relative;
  font-variation-settings: "SOFT" 100;
}
.pull::before {
  content: "\201C";
  display: block;
  font-size: 2.4em;
  line-height: 0.6;
  color: var(--accent);
  height: 0.45em;
}
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent-deep);
  margin: 0 0 1.8rem;
}

/* --------------------------------------------------------------------------
   Help grid
   -------------------------------------------------------------------------- */
.head-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.head-row h2 { font-size: var(--step-4); margin: 0; }
.head-row p { color: var(--muted); margin: 0; max-width: 44ch; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem);
}
.help { border-top: 1px solid var(--line-strong); padding-top: 1.6rem; }
.help-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.help-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--band);
  color: var(--ink);
}
.help-icon svg { width: 28px; height: 28px; }
.help:nth-child(3n+2) .help-icon { background: var(--soft-lite); }
.help:nth-child(3n) .help-icon { background: var(--leaf-lite); }
.help-top span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
}
.help h3 { font-size: var(--step-2); margin-bottom: 0.45em; }
.help p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */
.dark {
  background: var(--dark);
  color: var(--on-dark);
}
.dark .label { color: var(--on-dark-soft); }
.dark .label .num { color: var(--on-dark-accent); }
.dark h2 em { color: var(--on-dark-accent); }
.dark .muted, .dark p { color: color-mix(in srgb, var(--on-dark) 74%, transparent); }

.road-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.road-head h2 { font-size: var(--step-4); }
.road {
  position: relative;
  height: 200px;
  margin-bottom: 2.5rem;
}
.road > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.road .path-soft { stroke: color-mix(in srgb, var(--on-dark-accent) 18%, transparent); stroke-width: 14; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.road .path-dash { stroke: var(--on-dark-accent); stroke-width: 1.6; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road-dot {
  position: absolute;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid color-mix(in srgb, var(--on-dark-accent) 70%, transparent);
  color: var(--on-dark-accent);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.road-dot.start { background: color-mix(in srgb, var(--dark) 94%, var(--on-dark)); }
.road-dot.end {
  width: 68px; height: 68px;
  background: var(--pop);
  border: 0;
  color: var(--on-pop);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--pop) 18%, transparent), 0 0 0 22px color-mix(in srgb, var(--pop) 8%, transparent);
}
.road-dot.end svg { width: 30px; height: 30px; }

.road-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.road-steps li { position: relative; padding-inline: clamp(0.5rem, 1.2vw, 1.1rem); text-align: center; }
.road-steps small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 0.8rem;
}
.road-steps h3 { font-size: var(--step-1); color: var(--on-dark); margin-bottom: 0.55em; }
.road-steps li:first-child h3, .road-steps li:last-child h3 { font-style: italic; font-weight: 300; }
.road-steps li:last-child h3 { color: var(--on-dark-accent); }
.road-steps p { font-size: 0.93rem; line-height: 1.6; margin: 0; }

.road-cta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.road-cta p { font-family: var(--serif); font-size: var(--step-2); font-style: italic; font-weight: 300; color: var(--on-dark); margin: 0; max-width: 30ch; line-height: 1.25; }

/* --------------------------------------------------------------------------
   Programmes (cards)
   -------------------------------------------------------------------------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.prog {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
  background: var(--band);
  position: relative;
  overflow: hidden;
}
.prog:nth-child(2) { background: var(--soft-lite); }
.prog:nth-child(3) { background: var(--leaf-lite); }
.prog.featured { background: var(--dark); color: var(--on-dark); }
.prog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.prog-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.prog.featured .prog-no { color: var(--on-dark-accent); }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.prog.featured .tag { border-color: color-mix(in srgb, var(--on-dark) 30%, transparent); }
.tag.solid { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.prog h3 { font-size: var(--step-3); margin-bottom: 0.35em; }
.prog.featured h3 em { color: var(--on-dark-accent); }
.prog > p { color: var(--muted); max-width: 46ch; }
.prog.featured > p { color: color-mix(in srgb, var(--on-dark) 76%, transparent); }
.prog-for {
  margin: 0.4rem 0 1.4rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  font-size: 0.95rem;
}
.prog.featured .prog-for { border-color: color-mix(in srgb, var(--on-dark) 16%, transparent); }
.prog-for b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--leaf-deep);
  margin-bottom: 0.3rem;
}
.prog.featured .prog-for b { color: var(--on-dark-soft); }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.5rem; align-items: start; }
.ticks svg { width: 16px; height: 16px; margin-top: 0.3rem; color: var(--leaf-deep); }
.prog.featured .ticks svg { color: var(--on-dark-accent); }
.prog .link-arrow { margin-top: auto; align-self: flex-start; }
.prog.featured .link-arrow { color: var(--on-dark-accent); }
.prog .corner-leaf {
  position: absolute;
  width: 120px;
  right: -18px;
  bottom: -46px;
  transform: rotate(-28deg);
  opacity: 0.35;
  color: var(--leaf-deep);
  pointer-events: none;
}
.prog.featured .corner-leaf { color: var(--on-dark-accent); opacity: 0.25; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quotes-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.quotes-head h2 { font-size: var(--step-4); }
.quotes {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.quote { margin: 0; padding-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.quote svg { width: 34px; height: 26px; color: var(--accent); margin-bottom: 1.2rem; }
.quote blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 330;
  font-size: var(--step-1);
  line-height: 1.4;
}
.quote.big blockquote { font-size: var(--step-2); line-height: 1.3; font-style: italic; font-weight: 300; }
.quote figcaption {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 70%),
    var(--soft);
  border-radius: 600px 600px var(--radius) var(--radius) / 460px 460px var(--radius) var(--radius);
  padding: clamp(110px, 14vw, 190px) var(--gutter) clamp(64px, 8vw, 100px);
  overflow: hidden;
  isolation: isolate;
}
.cta-panel h2 { font-size: var(--step-5); letter-spacing: -0.035em; margin-bottom: 0.35em; }
.cta-panel h2 em { color: var(--accent-deep); }
.cta-panel p { max-width: 50ch; margin: 0 auto 2.2rem; color: var(--cta-ink); font-size: var(--step-1); line-height: 1.5; }
.cta-panel .label { font-size: var(--step--1); margin: 0 auto 1.6rem; color: var(--leaf-deep); max-width: none; line-height: 1; }
.cta-panel .small { font-size: 0.9rem; margin-top: 1.4rem; margin-bottom: 0; }
.cta-panel .small a { color: var(--ink); }
.cta-panel .sprig {
  position: absolute;
  width: clamp(80px, 9vw, 130px);
  bottom: -14px;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  --leaf-fill: color-mix(in srgb, var(--bg) 30%, transparent);
  z-index: -1;
}
.cta-panel .sprig.l { left: 3%; transform: rotate(-12deg); }
.cta-panel .sprig.r { right: 3%; transform: scaleX(-1) rotate(-12deg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-2);
  color: var(--on-dark);
  padding: clamp(64px, 8vw, 100px) 0 6rem;
}
.site-footer.flush { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand svg { color: var(--on-dark-accent); }
.site-footer .brand-word small { color: var(--on-dark-soft); }
.footer-blurb { margin-top: 1.4rem; color: color-mix(in srgb, var(--on-dark) 70%, transparent); max-width: 34ch; font-size: 0.95rem; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--on-dark-soft);
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: color-mix(in srgb, var(--on-dark) 86%, transparent); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--on-dark-accent); }
.footer-bottom {
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--on-dark) 58%, transparent);
}
.footer-bottom p { max-width: 80ch; margin: 0; }

/* --------------------------------------------------------------------------
   Version switcher (review aid)
   Each dot opens this same page in another palette and keeps your scroll
   position. The ← and → keys step through them too.
   -------------------------------------------------------------------------- */
.switcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(28, 30, 28, 0.9);
  color: #EDE8E0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}
.switcher b { font-weight: 500; white-space: nowrap; }
.switcher a { color: #fff; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.switcher a:hover { text-decoration-color: #fff; }
.switcher a:focus-visible { outline-color: #fff; }
.switcher .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.25); }
.switcher .dots { display: flex; gap: 5px; }
.switcher .dots a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--a) 0 50%, var(--b) 0 75%, var(--c) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--ease);
}
.switcher .dots a:hover { transform: scale(1.12); }
.switcher .dots a[aria-current] { box-shadow: 0 0 0 2px #1C1E1C, 0 0 0 3.5px #fff; }
@media print { .switcher { display: none; } }
@media (max-width: 640px) {
  .switcher { font-size: 11px; gap: 0.55rem; padding: 0.4rem 0.45rem 0.4rem 0.75rem; left: 10px; bottom: 10px; }
  .switcher .v-name { display: none; }
  .switcher .dots { gap: 4px; }
  .switcher .dots a { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.page-hero h1 { font-size: var(--step-5); line-height: 1; letter-spacing: -0.035em; max-width: 15ch; }
.page-hero .lede { max-width: 48ch; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

/* About — long-form */
.longform {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.longform aside { position: sticky; top: 120px; align-self: start; }
.longform aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; border-left: 1px solid var(--line); }
.longform aside a { display: block; padding: 0.45rem 0 0.45rem 1.1rem; text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.longform aside a:hover { color: var(--ink); }
.prose { max-width: 680px; }
.prose p { color: var(--body); font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: var(--step-3); margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose .dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 5.2em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
  font-weight: 300;
}
.prose .pull { font-size: var(--step-3); margin: 2.6rem 0; padding-left: 0; }
.chapter-mark {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.toolbag {
  margin: 2.4rem 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--band);
  border-radius: var(--radius);
}
.toolbag h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.toolbag ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; }
.toolbag li { display: grid; grid-template-columns: 22px 1fr; gap: 0.4rem; font-size: 0.97rem; color: var(--body); }
.toolbag svg { width: 16px; height: 16px; margin-top: 0.35rem; color: var(--leaf-deep); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.value span { font-family: var(--serif); font-style: italic; color: var(--accent-deep); display: block; margin-bottom: 1.4rem; }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cred {
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cred svg { width: 28px; height: 28px; flex: none; color: var(--leaf-deep); }
.cred b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.2rem; }
.cred span { font-size: 0.88rem; color: var(--muted); }

/* Programmes page — detail blocks */
.prog-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.prog-index a {
  padding: 1.3rem 1.2rem 1.3rem 0;
  text-decoration: none;
  display: grid;
  gap: 0.3rem;
}
.prog-index a span { font-family: var(--serif); font-style: italic; color: var(--accent-deep); font-size: 0.95rem; }
.prog-index a b { font-family: var(--serif); font-weight: 380; font-size: var(--step-1); line-height: 1.2; }
.prog-index a:hover b { color: var(--accent-deep); }

.detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.detail:first-child { padding-top: clamp(40px, 5vw, 70px); }
.detail-side { position: sticky; top: 120px; align-self: start; }
.detail-side .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.9;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.detail-side h2 { font-size: var(--step-4); margin-bottom: 0.5em; }
.facts { list-style: none; margin: 1.6rem 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts li span:first-child { color: var(--muted); }
.detail-body > p:first-child { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; font-weight: 330; color: var(--ink); }
.detail-body p { color: var(--body); }
.detail-body h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--leaf-deep);
  margin: 2.4rem 0 1.1rem;
}
.detail-body .ticks { grid-template-columns: 1fr 1fr; gap: 0.8rem 2rem; }
.detail-after {
  margin-top: 2.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: 20px;
  background: var(--band);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.4;
  font-weight: 300;
}
.detail-after b { display: block; font-family: var(--sans); font-style: normal; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--leaf-deep); margin-bottom: 0.4rem; }

.compare-hint { display: none; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf-deep); text-align: right; margin-bottom: 0.8rem; }
@media (max-width: 760px) { .compare-hint { display: block; } }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th, .compare td { padding: 1.1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.2;
  vertical-align: bottom;
  padding-top: 1.6rem;
}
.compare thead th small { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.compare tbody th { font-weight: 400; color: var(--muted); width: 26%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .hl { background: color-mix(in srgb, var(--soft) 28%, transparent); }
.compare .yes { color: var(--leaf-deep); }
.compare .yes svg { width: 18px; height: 18px; }
.compare .no { color: color-mix(in srgb, var(--ink) 30%, transparent); }

.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 360;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.3s ease, transform 0.4s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary i { background: var(--soft); border-color: var(--soft); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { color: var(--muted); padding: 0 3.5rem 1.6rem 0; margin: 0; max-width: 70ch; }

.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(3rem, 5vw, 4rem); }
.center-head h2 { font-size: var(--step-4); }

/* --------------------------------------------------------------------------
   Reveal (only hides once JS confirms it can reveal)
   -------------------------------------------------------------------------- */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal .ring { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .story-grid, .head-row, .page-hero-grid, .longform, .detail { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 340px; width: 88%; margin-top: 1.5rem; }
  .story-art { max-width: 380px; width: 100%; margin-inline: auto; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .longform aside { display: none; }
  .detail-side { position: static; }
  .prog-index { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; }

  /* vertical roadmap */
  .road { display: none; }
  .road-steps { grid-template-columns: 1fr; gap: 0; padding-left: 3.2rem; position: relative; }
  .road-steps::before {
    content: "";
    position: absolute;
    left: 21px; top: 10px; bottom: 30px;
    border-left: 1.5px dashed color-mix(in srgb, var(--on-dark-accent) 60%, transparent);
  }
  .road-steps li { padding: 0 0 2.2rem; text-align: left; }
  .road-steps li::before {
    content: attr(data-n);
    position: absolute;
    left: -3.2rem;
    top: -6px;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--dark);
    border: 1px solid color-mix(in srgb, var(--on-dark-accent) 70%, transparent);
    color: var(--on-dark-accent);
    font-family: var(--serif);
    font-style: italic;
  }
  .road-steps li:last-child::before { background: var(--pop); color: var(--on-pop); border: 0; box-shadow: 0 0 0 8px color-mix(in srgb, var(--pop) 18%, transparent); }
  .road-steps p { max-width: 46ch; }
}

@media (max-width: 640px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .help-grid { grid-template-columns: 1fr; gap: 0; }
  .help { display: grid; grid-template-columns: 52px 1fr; column-gap: 1.1rem; padding: 1.5rem 0; border-top-color: var(--line); }
  .help-top { grid-row: span 2; margin: 0; align-self: start; }
  .help-top span:last-child { display: none; }
  .help-icon { width: 52px; height: 52px; }
  .help h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
  .help p { font-size: 0.95rem; }
  .hero .label::after { display: none; }
  .fromto-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.2rem 0; }
  .fromto-row.head { display: none; }
  .fromto-row .arrow { justify-self: start; width: 44px; transform: rotate(90deg); margin: 0.2rem 0 0.2rem 0.4rem; }
  .fromto-row .from::before { content: "From — "; font-family: var(--sans); font-style: normal; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; display: block; color: var(--leaf-deep); margin-bottom: 0.2rem; }
  .fromto-row .to::before { content: "To — "; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; display: block; color: var(--accent-deep); margin-bottom: 0.2rem; }
  .fromto-row .arrow { display: none; }
  .values { grid-template-columns: 1fr; }
  .toolbag ul { grid-template-columns: 1fr; }
  .detail-body .ticks { grid-template-columns: 1fr; }
  .prog-index { grid-template-columns: 1fr; }
  .prog-meta { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .seal { right: -2%; width: 104px; }
  .hero-art .sprig-out { left: -8%; }
  .cta-panel { border-radius: 300px 300px 22px 22px / 220px 220px 22px 22px; }
  .cta-panel .sprig, .prog .corner-leaf { display: none; }
}
