/* ==========================================================================
   Cluck Atlas — design system
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Components
   5. Sections
   6. Utilities & motion
   7. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------ */

:root {
  /* colour */
  --ink: #17110c;
  --ink-soft: #2a2019;
  --ink-muted: #6b5c4e;
  --cream: #fff9f0;
  --paper: #f8efe0;
  --paper-deep: #f0e3ce;
  --amber: #e2913a;
  --marigold: #f4b642;
  --terracotta: #c0532a;
  --rust: #9e3d1c;
  --sage: #7e8f6e;
  --moss: #4a5741;
  --line: rgba(23, 17, 12, 0.12);
  --line-strong: rgba(23, 17, 12, 0.24);
  --line-invert: rgba(255, 249, 240, 0.16);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.42vw, 1.44rem);
  --step-2: clamp(1.44rem, 1.29rem + 0.72vw, 1.86rem);
  --step-3: clamp(1.73rem, 1.5rem + 1.15vw, 2.4rem);
  --step-4: clamp(2.07rem, 1.72rem + 1.76vw, 3.1rem);
  --step-5: clamp(2.49rem, 1.95rem + 2.68vw, 4rem);
  --step-6: clamp(2.99rem, 2.16rem + 4.13vw, 5.4rem);

  /* space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-s: 8px;
  --radius: 16px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(23, 17, 12, 0.06), 0 4px 12px rgba(23, 17, 12, 0.05);
  --shadow: 0 2px 6px rgba(23, 17, 12, 0.07), 0 18px 40px -18px rgba(23, 17, 12, 0.28);
  --shadow-lg: 0 4px 10px rgba(23, 17, 12, 0.08), 0 40px 80px -32px rgba(23, 17, 12, 0.42);

  --maxw: 1240px;
  --maxw-text: 68ch;
  --header-h: 72px;
}

/* 2. Reset & base ------------------------------------------------------ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* The width/height attributes on every <img> reserve layout space, but without
   this they also win over aspect-ratio and force the intrinsic pixel height. */
img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* 3. Layout primitives ------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, 860px);
  margin-inline: auto;
}

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

.section--paper {
  background: var(--paper);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 249, 240, 0.78);
}

.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section--ink .eyebrow {
  color: var(--marigold);
}

.section-head {
  max-width: var(--maxw-text);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-head h2 {
  font-size: var(--step-4);
  margin-bottom: 1rem;
}

.section-head p {
  font-size: var(--step-1);
  color: var(--ink-muted);
  line-height: 1.55;
}

.section--ink .section-head p {
  color: rgba(255, 249, 240, 0.66);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
}

/* 4. Components -------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.18s, box-shadow 0.18s,
    border-color 0.18s, color 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--terracotta);
  box-shadow: var(--shadow);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--amber {
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(226, 145, 58, 0.9);
}

.btn--amber:hover {
  background: var(--amber);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--marigold);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--line-invert);
  color: var(--cream);
}

.btn--outline-light:hover {
  background: rgba(255, 249, 240, 0.1);
  border-color: rgba(255, 249, 240, 0.4);
}

.btn__arrow {
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(23, 17, 12, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: -2px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 0.18s, color 0.18s;
}

.nav__link:hover {
  background: rgba(23, 17, 12, 0.06);
  color: var(--ink);
}

.nav__link.is-active {
  color: var(--terracotta);
  background: rgba(192, 83, 42, 0.09);
}

.header__cta {
  flex-shrink: 0;
  padding: 0.7rem 1.25rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* Hero — full-bleed specimen plate ------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #0b0806;
  color: rgba(255, 249, 240, 0.7);
  overflow: hidden;
}

/* The header is sticky, so it holds space in the flow. Pull the hero up under
   it so the artwork runs edge to edge behind the transparent bar. */
.has-dark-hero .hero {
  margin-top: calc(var(--header-h) * -1);
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__stage picture {
  display: contents;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the bird in frame as the viewport narrows. */
  object-position: 78% center;
}

/* Darkens the left half so the type always has contrast, whatever the crop. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(11, 8, 6, 0.97) 0%,
      rgba(11, 8, 6, 0.94) 30%,
      rgba(11, 8, 6, 0.74) 48%,
      rgba(11, 8, 6, 0.2) 74%,
      rgba(11, 8, 6, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(11, 8, 6, 0.92) 0%, rgba(11, 8, 6, 0) 34%),
    radial-gradient(90% 70% at 12% 42%, rgba(226, 145, 58, 0.16), transparent 62%);
}

/* Film grain stops the large dark gradients from banding on cheap panels. */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(6.5rem, 5rem + 4vw, 8.5rem) clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.hero__copy {
  max-width: 37rem;
}

.hero__plate {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 249, 240, 0.52);
}

.hero__plate span {
  background: var(--marigold);
  color: #0b0806;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hero__plate em {
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 0.86rem;
}

.hero__plate::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 249, 240, 0.3), transparent);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  color: var(--cream);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  text-shadow: 0 2px 40px rgba(11, 8, 6, 0.55);
}

.hero h1 em {
  font-style: italic;
  color: var(--marigold);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 96;
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 249, 240, 0.68);
  max-width: 48ch;
  margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}

.hero__lede em {
  font-style: italic;
  color: rgba(255, 249, 240, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Bottom rail --------------------------------------------------------- */
.hero__rail {
  position: relative;
  border-top: 1px solid rgba(255, 249, 240, 0.14);
  background: rgba(11, 8, 6, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__rail-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
}

.hero__stat {
  padding: 1.4rem 1.5rem 1.5rem;
  border-left: 1px solid rgba(255, 249, 240, 0.1);
}

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

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero__stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 249, 240, 0.5);
  max-width: 26ch;
}

.hero__scroll {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 1.5rem;
  border: 1px solid rgba(255, 249, 240, 0.22);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.hero__scroll svg {
  width: 17px;
  height: 17px;
  animation: nudge 2.2s ease-in-out infinite;
}

.hero__scroll:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  color: #0b0806;
}

@keyframes nudge {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(3px);
  }
}

/* Transparent header while the dark hero is under it -------------------- */
.has-dark-hero .header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.has-dark-hero .header:not(.is-stuck) .brand,
.has-dark-hero .header:not(.is-stuck) .nav__link {
  color: var(--cream);
}

.has-dark-hero .header:not(.is-stuck) .brand__sub {
  color: rgba(255, 249, 240, 0.55);
}

.has-dark-hero .header:not(.is-stuck) .nav__link:hover {
  background: rgba(255, 249, 240, 0.12);
}

.has-dark-hero .header:not(.is-stuck) .nav__link.is-active {
  color: var(--marigold);
  background: rgba(244, 182, 66, 0.14);
}

.has-dark-hero .header:not(.is-stuck) .header__cta {
  background: var(--marigold);
  color: #0b0806;
}

.has-dark-hero .header:not(.is-stuck) .header__cta:hover {
  background: var(--cream);
}

.has-dark-hero .header:not(.is-stuck) .nav-toggle {
  border-color: rgba(255, 249, 240, 0.3);
}

.has-dark-hero .header:not(.is-stuck) .nav-toggle__bars,
.has-dark-hero .header:not(.is-stuck) .nav-toggle__bars::before,
.has-dark-hero .header:not(.is-stuck) .nav-toggle__bars::after {
  background: var(--cream);
}

/* Ticker — amber so it reads as a band between the dark hero and the cream body */
.ticker {
  background: var(--marigold);
  color: #2a1c07;
  padding: 0.9rem 0;
  overflow: hidden;
  user-select: none;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(42, 28, 7, 0.55);
  flex-shrink: 0;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Fact cards */
.facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}

.fact {
  grid-column: span 2;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

.fact:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.fact--wide {
  grid-column: span 3;
}

.fact__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.fact__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.fact:hover .fact__media img {
  transform: scale(1.05);
}

.fact__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(23, 17, 12, 0.78);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.fact__body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.fact__body h3 {
  font-size: var(--step-2);
}

.fact__body p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.fact__source {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--sage);
  font-weight: 500;
}

/* Quick fact list */
.quickfacts {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.quickfact {
  background: var(--cream);
  padding: 1.5rem;
}

.quickfact__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.quickfact h4 {
  font-size: 1.02rem;
  margin: 0.5rem 0 0.4rem;
}

.quickfact p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Road section (Chicken Road) */
.road {
  background: linear-gradient(180deg, var(--paper) 0%, #f6e9d4 100%);
  position: relative;
  overflow: hidden;
}

.road::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 145, 58, 0.22), transparent 68%);
  pointer-events: none;
}

.road__hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  box-shadow: var(--shadow-lg);
}

.road__hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.road__hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: linear-gradient(0deg, rgba(23, 17, 12, 0.86) 0%, rgba(23, 17, 12, 0.25) 45%, transparent 75%);
  color: var(--cream);
}

.road__hero-overlay h2 {
  color: var(--cream);
  font-size: var(--step-5);
  margin-bottom: 0.6rem;
}

.road__hero-overlay p {
  max-width: 52ch;
  color: rgba(255, 249, 240, 0.82);
  font-size: var(--step-0);
}

.road__hero-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  background: var(--marigold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.road__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}

.road__intro p + p {
  margin-top: 1rem;
}

.road__intro .lede {
  color: var(--ink-soft);
}

.road__pull {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--terracotta);
  background: rgba(255, 249, 240, 0.7);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.road__pull q {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
  font-style: italic;
  quotes: "“" "”";
}

.road__pull cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Waypoints */
.waypoints {
  list-style: none;
  padding: 0;
  position: relative;
}

.waypoints::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 24px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0 10px,
    transparent 10px 20px
  );
}

.waypoint {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.waypoint:last-child {
  padding-bottom: 0;
}

.waypoint__marker {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.waypoint:hover .waypoint__marker {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  transform: scale(1.06);
}

.waypoint__meta {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.waypoint h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.waypoint p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Road stat strip */
.roadstats {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.roadstat {
  background: var(--paper);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.roadstat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--terracotta);
  letter-spacing: -0.03em;
}

.roadstat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Road 2 (dark) */
.road2 {
  background: var(--ink);
  color: rgba(255, 249, 240, 0.76);
  position: relative;
  overflow: hidden;
}

.road2 h2,
.road2 h3,
.road2 h4 {
  color: var(--cream);
}

.road2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(126, 143, 110, 0.22), transparent 62%);
  pointer-events: none;
}

.road2__head {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.road2__head .eyebrow {
  justify-content: center;
}

.road2__head h2 {
  font-size: var(--step-5);
  margin-bottom: 1.1rem;
}

.road2__head p {
  font-size: var(--step-1);
  color: rgba(255, 249, 240, 0.62);
  line-height: 1.55;
}

.road2__version {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--marigold);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.road2__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border: 1px solid var(--line-invert);
}

.road2__media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Six upgrades, so three columns give two complete rows. */
.road2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  position: relative;
}

.upgrade {
  background: rgba(255, 249, 240, 0.045);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  transition: background-color 0.28s, border-color 0.28s, transform 0.28s;
}

.upgrade:hover {
  background: rgba(255, 249, 240, 0.08);
  border-color: rgba(244, 182, 66, 0.5);
  transform: translateY(-5px);
}

.upgrade__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(244, 182, 66, 0.14);
  color: var(--marigold);
  margin-bottom: 1.15rem;
}

.upgrade__icon svg {
  width: 22px;
  height: 22px;
}

.upgrade h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.upgrade p {
  font-size: 0.9rem;
  color: rgba(255, 249, 240, 0.6);
  line-height: 1.6;
}

/* Comparison table */
.compare {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  position: relative;
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare caption {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 249, 240, 0.05);
  border-bottom: 1px solid var(--line-invert);
}

.compare th,
.compare td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line-invert);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}

.compare tbody th {
  font-weight: 600;
  color: rgba(255, 249, 240, 0.9);
  width: 26%;
}

.compare td {
  color: rgba(255, 249, 240, 0.62);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody tr:hover td,
.compare tbody tr:hover th {
  background: rgba(255, 249, 240, 0.035);
}

/* Breeds */
.breeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.breed {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s;
}

.breed:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.breed__media {
  overflow: hidden;
  background: var(--paper-deep);
}

.breed__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.breed:hover .breed__media img {
  transform: scale(1.06);
}

.breed__body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.breed__origin {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
}

.breed__body h3 {
  font-size: 1.3rem;
  margin: 0.4rem 0 0.6rem;
}

.breed__body p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.breed__spec {
  list-style: none;
  padding: 0.9rem 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.breed__spec li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.breed__spec dt,
.breed__spec span:first-child {
  color: var(--ink-muted);
}

.breed__spec b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* Chicken-speak decoder */
.decoder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.decoder__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.calls {
  display: grid;
  gap: 0.75rem;
}

.call {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.call:hover {
  border-color: var(--line-strong);
}

.call.is-open {
  border-color: var(--amber);
  box-shadow: 0 14px 34px -22px rgba(226, 145, 58, 0.9);
}

.call__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.call__sound {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.call__meaning {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: right;
  flex-shrink: 0;
}

.call__chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--amber);
  transition: transform 0.28s;
}

.call.is-open .call__chev {
  transform: rotate(180deg);
}

.call__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.call.is-open .call__panel {
  grid-template-rows: 1fr;
}

.call__panel > div {
  overflow: hidden;
}

.call__panel p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Incubation timeline */
/* Eight days, so four columns keep both rows full at every breakpoint. */
.incubation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.day {
  background: var(--cream);
  padding: 1.5rem 1.25rem;
  transition: background-color 0.25s;
}

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

.day__n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.03em;
}

.day__n small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.day h3 {
  font-size: 1rem;
  margin: 0.75rem 0 0.4rem;
}

.day p {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq__item.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq__icon {
  margin-left: auto;
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--terracotta);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__panel p {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

/* CTA / newsletter */
.cta {
  background: linear-gradient(135deg, var(--terracotta) 0%, #d9772f 55%, var(--marigold) 100%);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 249, 240, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: var(--cream);
  font-size: var(--step-4);
  margin-bottom: 1rem;
}

.cta p {
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: rgba(255, 249, 240, 0.9);
  font-size: var(--step-0);
}

.subscribe {
  display: flex;
  gap: 0.6rem;
  max-width: 470px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.subscribe input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 240, 0.45);
  background: rgba(255, 249, 240, 0.14);
  color: var(--cream);
  backdrop-filter: blur(6px);
}

.subscribe input[type="email"]::placeholder {
  color: rgba(255, 249, 240, 0.65);
}

.subscribe input[type="email"]:focus {
  background: rgba(255, 249, 240, 0.22);
  outline-color: var(--cream);
}

.form-note {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 249, 240, 0.78);
}

.form-note a {
  color: inherit;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status[data-state="error"] {
  color: #ffe0d5;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 249, 240, 0.6);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 249, 240, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-invert);
}

.footer .brand {
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer .brand__sub {
  color: rgba(255, 249, 240, 0.5);
}

.footer__about {
  max-width: 38ch;
  line-height: 1.65;
}

.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(255, 249, 240, 0.45);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Cookie banner */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, calc(100% + 2rem));
  z-index: 200;
  width: min(100% - 2rem, 980px);
  background: var(--ink);
  color: rgba(255, 249, 240, 0.76);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0.45s;
}

.cookie.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
}

.cookie h2 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.cookie p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 68ch;
}

.cookie a {
  color: var(--marigold);
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie__actions .btn {
  padding: 0.75rem 1.35rem;
  font-size: 0.87rem;
  white-space: nowrap;
}

/* Back to top */
.totop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background-color 0.2s;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.totop:hover {
  background: var(--marigold);
}

/* Legal / article pages */
.page-hero {
  background: var(--paper);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: var(--step-5);
  margin-bottom: 0.9rem;
}

.page-hero p {
  color: var(--ink-muted);
  font-size: var(--step-1);
  max-width: 60ch;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--terracotta);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.prose {
  max-width: var(--maxw-text);
}

.prose h2 {
  font-size: var(--step-3);
  margin: 2.75rem 0 1rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--terracotta);
  font-weight: 500;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--paper);
  font-weight: 600;
}

.prose__meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 3px solid var(--amber);
  margin-bottom: 2rem;
}

.toc {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 0.78rem !important;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem !important;
  color: var(--ink-muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
}

.toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

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

.field .req {
  color: var(--terracotta);
}

.field input,
.field textarea,
.field select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 182, 66, 0.28);
}

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

.field__hint {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.checkbox input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}

.info-card {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 1.75rem;
}

.info-card + .info-card {
  margin-top: 1.25rem;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  font-size: 0.9rem;
}

.info-list dt,
.info-list strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.info-list a {
  color: var(--terracotta);
}

/* 404 */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-y);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 14vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--terracotta);
  letter-spacing: -0.05em;
}

/* 6. Utilities & motion ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.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;
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 2rem;
}

/* 7. Responsive -------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__rail-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid rgba(255, 249, 240, 0.1);
  }

  .hero__stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero__stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero__scroll {
    display: none;
  }

  .road__layout,
  .decoder,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact--wide {
    grid-column: span 3;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 76px;
  }

  /* Narrow viewports have no room for copy and artwork in the same layer: a
     16:9 crop this tall shows nothing but feathers. So the hero stops being
     full-bleed and stacks — copy, then a portrait plate, then the stats. */
  .hero {
    min-height: 0;
  }

  .hero__stage {
    position: relative;
    inset: auto;
    z-index: auto;
    order: 1;
  }

  .hero__photo {
    height: auto;
    aspect-ratio: 7 / 8;
    max-height: 58vh;
    /* Keeps the comb and head in frame however the band gets clamped. */
    object-position: center 54%;
  }

  /* Only feather the top edge so the plate melts into the copy above it. */
  .hero__scrim {
    background: linear-gradient(180deg, #0b0806 0%, rgba(11, 8, 6, 0.55) 12%, rgba(11, 8, 6, 0) 30%);
  }

  .hero__inner {
    order: 0;
    padding-block: 7.5rem 1.75rem;
  }

  .hero__rail {
    order: 2;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }

  .nav.is-open {
    display: block;
    animation: navdrop 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  }

  @keyframes navdrop {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-s);
    font-size: 1rem;
  }

  .header__cta {
    display: none;
  }

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

  .road__hero img,
  .road2__media img {
    aspect-ratio: 16 / 11;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    display: block;
    border-bottom: 1px solid var(--line-invert);
    padding: 0.5rem 0;
  }

  .compare tbody tr:last-child {
    border-bottom: none;
  }

  .compare tbody th,
  .compare tbody td {
    display: block;
    width: 100%;
    border: 0;
    padding: 0.4rem 1.25rem;
  }

  .compare tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--marigold);
    margin-bottom: 0.15rem;
  }

  .cookie {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .cookie__actions .btn {
    flex: 1 1 auto;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 620px) {
  .hero__rail-inner {
    grid-template-columns: 1fr;
  }

  .hero__stat {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-left: 0;
  }

  .hero__stat:nth-child(2) {
    border-top: 1px solid rgba(255, 249, 240, 0.1);
  }

  .hero__stat-num {
    flex: 0 0 6.75rem;
    font-size: 1.25rem;
  }

  .hero__stat-label {
    margin-top: 0;
    font-size: 0.74rem;
  }

  .fact,
  .fact--wide {
    grid-column: span 6;
  }

  .hero__badge {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

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

  .call__meaning {
    display: none;
  }

  .road2__grid,
  .incubation {
    grid-template-columns: 1fr;
  }

  .waypoint {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }

  .waypoint__marker {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .waypoints::before {
    left: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .footer,
  .cookie,
  .totop,
  .ticker {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
