/* ============================================================
   TheCatProblem.com — global styles
   Warm, friendly, a little cute. Deep-sea-style stepped scroll.
   ============================================================ */

:root {
  /* --- warm near-white paper palette --- */
  --cream:        #FDFBF6;   /* warm off-white, keeps it professional */
  --cream-deep:   #F6EFE2;
  --dusk:         #EFE4D0;
  --ink:          #38302A;   /* warm near-black */
  --ink-soft:     #6E5F52;
  --marigold:     #E8A23D;
  --terracotta:   #D9744A;
  --sage:         #8FA98A;

  /* --- the cat (soft slate grey — refined, not mascot-y) --- */
  --cat:          #A6ABB2;
  --cat-dark:     #7B818B;
  --cat-cream:    #F1F0ED;
  --cat-pink:     #E8A7A2;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- brand mark ---------- */
.brand {
  position: fixed;
  top: 22px; left: 26px;
  z-index: 50;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  color: var(--ink);
  text-decoration: none;
  opacity: .72;
  transition: opacity .3s var(--ease);
  mix-blend-mode: multiply;
}
.brand:hover { opacity: 1; }
.brand-dot { color: var(--terracotta); }

/* ============================================================
   Stepped-scroll scaffolding
   Each .step is (at least) a full viewport; content reveals in.
   ============================================================ */
.step {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

/* reveal-on-scroll primitive */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* gentle stagger for stacked reveals in a section */
.in-view .reveal:nth-child(1) { transition-delay: .00s; }
.in-view .reveal:nth-child(2) { transition-delay: .10s; }
.in-view .reveal:nth-child(3) { transition-delay: .20s; }
.in-view .reveal:nth-child(4) { transition-delay: .30s; }
.in-view .reveal:nth-child(5) { transition-delay: .42s; }

/* ============================================================
   SCREEN 1 — hero
   ============================================================ */
.hero { overflow: hidden; }

.hero-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 120vmax; height: 120vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
              #FFFFFF 0%, #FDF7EC 34%, var(--cream) 64%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.kicker {
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 8.8vw, 96px);
  line-height: 1.0;
  letter-spacing: -1.8px;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 8px;
  font-weight: 500;
}

.cat-wrap {
  width: clamp(200px, 34vw, 290px);
  margin: 26px auto 20px;
}

.hero-turn {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--ink);
  margin: 4px 0 0;
}

/* ---------- floating motes ---------- */
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mote {
  position: absolute;
  bottom: -10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--marigold);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.6);   opacity: 0; }
  12%  { opacity: .5; }
  100% { transform: translateY(-92vh) scale(1); opacity: 0; }
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-soft);
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.scroll-cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   The cat — living idle animation
   ============================================================ */
.cat { width: 100%; height: auto; display: block; overflow: visible; }

.cat-shadow { fill: rgba(90, 80, 70, .14); }

.body      { fill: var(--cat); }
.belly     { fill: var(--cat-cream); }
.head      { fill: var(--cat); }
.ear       { fill: var(--cat); }
.ear-inner { fill: var(--cat-pink); }
.stripe    { stroke: var(--cat-dark); stroke-width: 6; stroke-linecap: round; fill: none; opacity: .85; }
.blush     { fill: var(--cat-pink); opacity: .42; }
.eyeball   { fill: #2A2622; }
.glint     { fill: #FFFFFF; }
.glint-sm  { fill: #FFFFFF; opacity: .8; }
.nose      { fill: var(--cat-pink); stroke: #CE7C72; stroke-width: 1.5; stroke-linejoin: round; }
.mouth     { stroke: #9C7F72; stroke-width: 3; fill: none; stroke-linecap: round; }
.whiskers path { stroke: #C4BEB6; stroke-width: 2; stroke-linecap: round; }

/* breathing */
.cat-torso { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 4.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  50%      { transform: scaleY(1.025) scaleX(.992); }
}

/* tail sway */
.tail, .tail-tip {
  transform-box: fill-box;
  transform-origin: 4px 64px;   /* near the base where it meets the body */
  animation: sway 3.9s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(7deg);  }
}

/* blink — toggled by JS */
.eyes { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .11s var(--ease); }
.eyes.blink { transform: scaleY(.12); }

/* ear twitch — toggled by JS (rotate slightly) */
.ear { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .18s var(--ease); }
.ear.twitch { transform: rotate(-7deg); }

/* ============================================================
   SCREEN 2 — the unseen scale
   Tall scroll container with a pinned viewport; scroll drives
   the counter and fills the dot field.
   ============================================================ */
.scale {
  position: relative;
  height: 340vh;                 /* scroll distance that drives the count */
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 16%);
}
.scale-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.scale-lead {
  margin: 0 0 6px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  color: var(--ink-soft);
}
.scale-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 11vw, 116px);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.scale-unit {
  margin: 8px 0 26px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  max-width: 460px;
}
.dotfield {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  align-content: flex-start;
  max-width: min(660px, 92vw);
  margin: 0 auto;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(150, 120, 100, .13);
  transition: background .2s var(--ease);
}
.dot.lit { background: var(--terracotta); }
.scale-legend {
  margin: 20px 0 0;
  font-size: clamp(14px, 1.9vw, 17px);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.scale-source {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .8;
  max-width: 440px;
}
.scale-source em { font-style: italic; }

/* ============================================================
   BRIDGE
   ============================================================ */
.bridge {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.bridge-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 760px;
  letter-spacing: -.5px;
}
.bridge-line em { color: var(--terracotta); font-style: normal; font-weight: 700; }

/* ============================================================
   SCREEN 3a — where cats rank (bar chart)
   ============================================================ */
.rank-inner { width: 100%; max-width: 780px; }
.rank-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 8px 0 38px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  text-align: left;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 128px) 1fr auto;
  grid-template-areas: "label track value";
  align-items: center;
  gap: 14px;
}
.bar-label {
  grid-area: label;
  font-weight: 700;
  font-size: clamp(12.5px, 1.6vw, 15px);
  color: var(--ink);
  text-align: right;
  line-height: 1.15;
}
.bar-track {
  grid-area: track;
  position: relative;
  height: 26px;
  background: rgba(150, 120, 100, .10);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  min-width: 3px;
  border-radius: 6px;
  background: var(--sage);
  transition: width 1.3s var(--ease);
}
.bar-fill.cats { background: var(--terracotta); }
.in-view .bar-fill { width: var(--w); }
/* fill in top-to-bottom, cats first */
.bar-row:nth-child(1) .bar-fill { transition-delay: .10s; }
.bar-row:nth-child(2) .bar-fill { transition-delay: .22s; }
.bar-row:nth-child(3) .bar-fill { transition-delay: .34s; }
.bar-row:nth-child(4) .bar-fill { transition-delay: .46s; }
.bar-row:nth-child(5) .bar-fill { transition-delay: .58s; }
.bar-row:nth-child(6) .bar-fill { transition-delay: .70s; }
.bar-value {
  grid-area: value;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--ink-soft);
  white-space: nowrap;
}
.rank-source {
  margin: 30px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: .85;
}

/* narrow screens: stack the label above its bar so the track keeps room */
@media (max-width: 560px) {
  .bar-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label label"
      "track value";
    gap: 5px 12px;
  }
  .bar-label { text-align: left; }
}

/* ============================================================
   SCREEN 3b — the honest reckoning
   ============================================================ */
.reckon {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.reckon-inner { max-width: 680px; }
.reckon-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 4.6vw, 46px);
  letter-spacing: -.6px;
  line-height: 1.1;
  color: var(--terracotta);
  margin: 0 0 24px;
}
.reckon-body {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.62;
  font-weight: 500;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 22px;
}
.reckon-turn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.9vw, 29px);
  line-height: 1.28;
  letter-spacing: -.4px;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}
.reckon-turn em { color: var(--terracotta); font-style: normal; }
.reckon-source {
  margin: 26px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: .85;
}
.reckon-source em { font-style: italic; }

/* ============================================================
   SCREEN 4 — the gallery of the lost
   ============================================================ */
.gallery-intro { background: var(--cream-deep); }
.gallery-intro strong { font-weight: 800; }

.gallery {
  position: relative;
  height: 520vh;                 /* scroll distance across the 5 species */
  background: var(--cream-deep);
}
.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.gallery-kicker {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.species-stack {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: clamp(380px, 60vh, 460px);
  margin: 0 auto;
}
.species-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.species-card.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.silhouette {
  margin-bottom: 6px;
  height: clamp(120px, 20vh, 158px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sil {
  display: block;
  height: 100%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}
.species-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -.5px;
  line-height: 1.05;
  color: var(--ink);
  margin: 4px 0 8px;
}
.species-meta {
  font-size: clamp(12.5px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--terracotta);
  margin: 0 0 14px;
}
.species-note {
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 440px;
  margin: 0 0 16px;
}
.species-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(110, 95, 82, .35);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.species-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

.gallery-rail {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.rail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(150, 120, 100, .22);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.rail-dot.on { background: var(--terracotta); transform: scale(1.15); }

.gallery-outro {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
}
.gallery-outro strong { color: var(--ink); font-weight: 800; }

/* ============================================================
   SCREEN 5 — why cats, specifically (the hidden toll)
   ============================================================ */
.seen-inner { max-width: 720px; }

.critters {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 13px;
  justify-content: center;
  max-width: 452px;
  margin: 30px auto 14px;
}
.critter {
  opacity: 0;
  transition: opacity .5s var(--ease);
  color: #B7ADA3;
  line-height: 0;
}
.critter.seen { color: var(--terracotta); }
.critter-ico { width: 30px; height: auto; display: block; fill: currentColor; }
.in-view .critter.seen { opacity: 1; }
.in-view .critter.hidden { opacity: .32; }

.critter-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin: 0 auto 26px;
}
.swatch {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
  vertical-align: middle;
}
.swatch.seen { background: var(--terracotta); }
.swatch.hidden { background: #C7BEB4; }

.seen-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3.1vw, 31px);
  letter-spacing: -.5px;
  line-height: 1.15;
  color: var(--ink);
  margin: 4px 0 12px;
}
.seen-stat strong { color: var(--terracotta); }
.seen-line {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  max-width: 540px;
  margin: 0 auto 18px;
}
.seen-line strong { color: var(--terracotta); font-weight: 800; }

/* ============================================================
   SCREEN 6 — closer to home (health)
   ============================================================ */
.pathway-sec {
  background: linear-gradient(180deg, var(--cream) 0%, #EAF1F1 100%);
}
.pathway-inner { max-width: 620px; width: 100%; }
.path-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4.2vw, 42px);
  letter-spacing: -.8px;
  line-height: 1.1;
  color: var(--ink);
  margin: 6px auto 36px;
  max-width: 520px;
}
.pathway {
  position: relative;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}
.pathway::before {
  content: "";
  position: absolute;
  left: 26px; top: 42px; bottom: 42px;
  width: 3px;
  background: rgba(120, 110, 100, .18);
  border-radius: 2px;
}
.path-fill {
  position: absolute;
  left: 26px; top: 42px;
  width: 3px;
  height: 0;
  background: var(--terracotta);
  border-radius: 2px;
  transition: height 2.4s var(--ease);
}
.in-view .path-fill { height: calc(100% - 84px); }
.pnode {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
}
.node-badge {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid rgba(120, 110, 100, .22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px;
  color: var(--ink-soft);
  position: relative; z-index: 2;
  transition: border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.in-view .node-badge {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: scale(1.06);
  transition-delay: var(--d);
}
.node-title {
  font-weight: 800;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink);
  margin: 7px 0 4px;
}
.node-desc {
  font-size: clamp(13.5px, 1.8vw, 15px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.node-desc em { font-style: italic; }

/* human-health fact cards */
.health-facts { background: linear-gradient(180deg, #EAF1F1 0%, var(--cream) 60%); }
.facts-inner { max-width: 940px; width: 100%; }
.facts-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -.6px;
  color: var(--ink);
  margin: 0 0 34px;
}
.fact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fact-card {
  background: #FFFFFF;
  border: 1px solid rgba(150, 120, 100, .14);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: left;
  box-shadow: 0 6px 22px rgba(90, 70, 50, .05);
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 14px;
  min-height: 46px;
  display: flex;
  align-items: center;
}
.fact-ico { width: 42px; height: 42px; color: var(--terracotta); }
.fact-label {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.fact-label em { font-style: italic; }
.fact-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.fact-src {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: .7;
  margin: 0;
}
@media (max-width: 640px) {
  .fact-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   SCREEN 7 — a few more fair questions
   ============================================================ */
.counter { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.counter-inner { max-width: 680px; }
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 740px;
  margin: 0 auto 22px;
}
@media (max-width: 640px) {
  .qa-grid { grid-template-columns: 1fr; }
}
.qa {
  text-align: left;
  margin: 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(150, 120, 100, .14);
  border-radius: 14px;
}
.qa-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.2;
  color: var(--terracotta);
  margin: 0 0 10px;
}
.qa-a {
  font-size: clamp(14.5px, 1.9vw, 16.5px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   SCREEN 8 — what actually works (the ladder)
   ============================================================ */
.solutions { background: var(--cream); }
.solutions-inner { max-width: 640px; }
.ladder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px auto 0;
  text-align: left;
}
.sol-card {
  background: #FFFFFF;
  border: 1px solid rgba(150, 120, 100, .14);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 5px 18px rgba(90, 70, 50, .05);
}
.sol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.sol-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.sol-eff {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.eff-high  { background: #DDECD8; color: #4B7A46; }
.eff-med   { background: #FBE8C6; color: #A2701A; }
.eff-birds { background: #DFEAEF; color: #4C7182; }
.eff-base  { background: #EFE6DA; color: #8A6C4F; }
.sol-desc {
  font-size: clamp(13.5px, 1.8vw, 15px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   SCREEN 9 — the gentle close
   ============================================================ */
.closing { overflow: hidden; background: var(--cream); }
.closing-inner { position: relative; z-index: 2; max-width: 680px; }
.closing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 8px 0 22px;
}
.closing-title em { color: var(--terracotta); font-style: italic; }
.closing-body {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
}

.pledge { margin: 0 auto 20px; }
.pledge-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 19px);
  color: #fff;
  background: var(--terracotta);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(217, 116, 74, .32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .3s var(--ease);
}
.pledge-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217, 116, 74, .42); }
.pledge-btn.pledged {
  background: var(--sage);
  box-shadow: none;
  cursor: default;
  transform: none;
}
.pledge-count {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.pledge-count.pop { animation: countPop .55s var(--ease); }
@keyframes countPop {
  0%   { transform: scale(1);    color: var(--ink-soft); }
  35%  { transform: scale(1.28); color: var(--terracotta); }
  100% { transform: scale(1);    color: var(--ink-soft); }
}

/* pledge confetti */
.confetti-piece {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 14px;
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
}

.closing-actions { margin: 0 0 36px; }
.ghost-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
  border: 2px solid rgba(120, 110, 100, .28);
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.ghost-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }

.resources { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.resources-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); opacity: .7; margin: 0 0 3px;
}
.res-link {
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid rgba(217, 116, 74, .35); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.res-link:hover { color: var(--terracotta); border-color: var(--terracotta); }

.site-footer {
  position: relative; z-index: 2;
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-soft);
}
.site-footer a {
  color: var(--ink-soft); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-footer a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.footer-mark { font-weight: 800; opacity: .55; }

/* ============================================================
   Satellite pages (bibliography, contact)
   ============================================================ */
.page { max-width: 760px; margin: 0 auto; padding: 88px 24px 100px; }
.page-back {
  display: inline-block; margin-bottom: 30px;
  font-weight: 700; font-size: 14px; color: var(--ink-soft); text-decoration: none;
}
.page-back:hover { color: var(--terracotta); }
.page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 6vw, 52px); letter-spacing: -1px; line-height: 1.05;
  margin: 0 0 12px;
}
.page-intro {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 44px; max-width: 620px;
}

/* bibliography */
.bib-group { margin-bottom: 36px; }
.bib-group h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: var(--terracotta); margin: 0 0 16px;
}
.bib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bib-item { font-size: 15px; line-height: 1.5; color: var(--ink); }
.bib-item a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(150, 120, 100, .35); }
.bib-item a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.bib-item em { font-style: italic; }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(150, 120, 100, .28); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); }
.field textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn {
  align-self: flex-start;
  font-family: var(--font-body); font-weight: 800; font-size: 16px; color: #fff;
  background: var(--terracotta); border: none; border-radius: 999px;
  padding: 14px 30px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(217, 116, 74, .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(217, 116, 74, .4); }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }
.form-status { font-size: 15px; font-weight: 700; margin: 8px 0 0; min-height: 1.2em; }

/* ============================================================
   Accessibility — respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cat-torso, .tail, .tail-tip, .scroll-cue svg, .mote { animation: none !important; }
  .reveal { transition-duration: .01ms; }
  .bar-fill { transition-duration: .01ms; }
  .critter { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .pledge-count.pop { animation: none; }
  html { scroll-behavior: auto; }
}
