/* ------------------------------------------------------------------
   Shannon Ahmed · portfolio design system
   Palette: paper white, ink, slate, pine. One accent, used sparingly.
   Type: Space Grotesk (display) · Instrument Sans (body) · Fraunces (voice)
------------------------------------------------------------------- */
:root {
  --paper: #fbfbf9;
  --ink: #171b1a;
  --slate: #5b6562;
  --pine: #1b5a44;
  --pine-deep: #0f3d2e;
  --moss: #ebf1ec;
  --line: #e4e7e2;
  --maxw: 1060px;
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Instrument Sans", system-ui, sans-serif;
  --font-v: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pine); color: #fff; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--font-d);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pine); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-d); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.section-intro { color: var(--slate); max-width: 56ch; margin: 14px 0 0; }

/* ---------- progress rail ---------- */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; z-index: 90; }
.rail::before { content: ""; position: absolute; inset: 0; background: var(--line); }
.rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--pine); }
.rail-tick { position: absolute; left: 0; width: 100%; height: 14px; background: var(--paper); }
.rail-tick.passed { background: transparent; }
@media (max-width: 720px) { .rail { width: 2px; } }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 249, 0.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-d); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand b { color: var(--pine); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.nav-links > a { color: var(--ink); text-decoration: none; }
.nav-links > a:hover { color: var(--pine); }

.menu { position: relative; }
.menu-btn {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
}
.menu-btn::after { content: " ▾"; font-size: 0.7em; color: var(--slate); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; margin: 0; list-style: none;
  box-shadow: 0 10px 30px rgba(23, 27, 26, 0.08);
  display: none;
}
.menu-list.open { display: block; }
.menu-list a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.menu-list a:hover { background: var(--moss); color: var(--pine-deep); }

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  letter-spacing: -0.03em; max-width: 17ch;
}
.hero h1 .accent { color: var(--pine); }
.hero-sub { color: var(--slate); max-width: 52ch; margin: 22px 0 0; font-size: 1.08rem; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--font-d); font-size: 0.95rem; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn.primary:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 64px; }
.stat { background: var(--paper); padding: 22px 20px; }
.stat .num { font-family: var(--font-d); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; }
.stat .lbl { color: var(--slate); font-size: 0.86rem; margin-top: 2px; line-height: 1.4; }

/* ---------- flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.flip { perspective: 1100px; }
.flip-inner {
  position: relative; width: 100%; min-height: 220px;
  transform-style: preserve-3d; transition: transform 0.55s var(--ease);
  cursor: pointer; border: 0; background: none; padding: 0; font: inherit; text-align: left; display: block;
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  background: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.flip-face .word { font-family: var(--font-d); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; }
.flip-face .word-line { color: var(--slate); }
.flip-face .hint { color: var(--slate); font-size: 0.8rem; margin-top: 14px; }
.flip-back {
  transform: rotateY(180deg);
  background: var(--pine-deep); color: #f2f5f0; justify-content: center;
  font-family: var(--font-v); font-style: italic; font-size: 1.02rem; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

.ai-strip {
  margin-top: 44px; padding: 20px 24px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--moss); color: var(--pine-deep); font-size: 0.95rem;
}

/* ---------- apply cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.work-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.work-card:hover { border-color: var(--pine); transform: translateY(-3px); color: var(--ink); }
.work-card .meta { color: var(--slate); font-size: 0.85rem; }
.work-card .go { color: var(--pine); font-family: var(--font-d); font-weight: 500; margin-top: 8px; }
.work-card p { margin: 0; color: var(--slate); }

/* ---------- case rows ---------- */
.case-rows { margin-top: 36px; display: flex; flex-direction: column; }
.case-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline;
  padding: 22px 6px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background 0.2s var(--ease);
}
.case-row:last-child { border-bottom: 1px solid var(--line); }
.case-row:hover { background: #fff; }
.case-row .cr-title { font-family: var(--font-d); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.case-row .cr-org { color: var(--slate); font-size: 0.9rem; }
.case-row .cr-metric { color: var(--pine); font-family: var(--font-d); font-size: 0.9rem; white-space: nowrap; }
.case-row .cr-arrow { color: var(--slate); }
@media (max-width: 640px) { .case-row { grid-template-columns: 1fr auto; } .case-row .cr-metric { grid-column: 1; } }

/* ---------- evaluate ---------- */
.judge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 40px; }
.judge-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 26px; display: flex; flex-direction: column; }
.judge-card.picked { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.judge-card .tag { color: var(--slate); font-size: 0.85rem; }
.judge-card ul { margin: 16px 0 22px; padding-left: 18px; color: var(--slate); font-size: 0.95rem; display: grid; gap: 8px; }
.judge-card .btn { margin-top: auto; align-self: flex-start; }
.judge-reveal {
  margin-top: 26px; border: 1px solid var(--pine); border-radius: 16px;
  background: var(--moss); padding: 28px; display: none;
}
.judge-reveal.show { display: block; }
.judge-reveal h3 { color: var(--pine-deep); }
.judge-reveal p { margin: 12px 0 0; max-width: 62ch; }
.judge-verdict { font-family: var(--font-v); font-style: italic; color: var(--pine-deep); }
.recreation-note { color: var(--slate); font-size: 0.82rem; margin-top: 18px; }

/* ---------- create + payoff ---------- */
.create-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.create-loc { color: var(--slate); font-size: 0.9rem; margin-top: 20px; }
.payoff {
  padding: 84px 0; border-top: 1px solid var(--line); text-align: center;
}
.payoff p {
  font-family: var(--font-v); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.6; color: var(--pine-deep); max-width: 44ch; margin: 0 auto;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--slate); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--slate); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-card, .btn { transition: none; }
}

/* ---------- case study pages ---------- */
.case-page { padding: 72px 0 40px; }
.crumb { color: var(--slate); font-size: 0.85rem; }
.crumb a { color: var(--slate); }
.case-page h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.025em; max-width: 22ch; margin-top: 16px; }
.case-meta { color: var(--slate); margin-top: 12px; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 40px; }
.case-stat { background: var(--moss); border-radius: 12px; padding: 18px 20px; }
.case-stat .num { font-family: var(--font-d); font-size: 1.5rem; font-weight: 500; color: var(--pine-deep); }
.case-stat .lbl { color: var(--slate); font-size: 0.85rem; }
.case-section { padding: 56px 0 0; border: 0; }
.case-section h2 { font-size: 1.45rem; }
.case-section p { max-width: 68ch; color: #2c3230; }
.case-section ul.constraints { padding-left: 18px; color: var(--slate); display: grid; gap: 8px; max-width: 68ch; }
.step { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px 24px; margin-top: 16px; }
.step .step-n { color: var(--pine); font-family: var(--font-d); font-size: 0.8rem; letter-spacing: 0.1em; }
.step h3 { margin-top: 4px; }
.step p { margin: 8px 0 0; color: var(--slate); }
.artifact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.artifact {
  border: 1px dashed var(--slate); border-radius: 14px; min-height: 180px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--slate); font-size: 0.9rem; padding: 20px; background: #fff;
}
.case-next { margin: 72px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.case-next a { font-family: var(--font-d); font-weight: 500; text-decoration: none; }

/* ---------- interview adventure entry ---------- */
.ia-preview {
  margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  padding: 30px; font-family: var(--font-v); font-style: italic; color: var(--slate);
}
.ia-preview .q { color: var(--ink); font-size: 1.1rem; }
.ia-note { color: var(--slate); font-size: 0.85rem; margin-top: 26px; }

/* ==================================================================
   Natural theme layer: color, imagery, icons, artifact components
=================================================================== */
:root { --sand: #f3eee3; --sand-deep: #c9a86a; --bark: #4a3f33; }

/* section tints: alternating warm and green washes */
#understand { background: linear-gradient(180deg, var(--paper), var(--moss) 24%, var(--moss) 76%, var(--paper)); }
#evaluate { background: linear-gradient(180deg, var(--paper), var(--sand) 24%, var(--sand) 76%, var(--paper)); }
#create { background: var(--moss); border-top-color: transparent; }
.payoff { background: var(--pine-deep); border-top: 0; }
.payoff p { color: #e9f0e9; }

/* hero visual */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); gap: 48px; align-items: center; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-illo svg { width: 100%; max-width: 400px; height: auto; display: block; }
.portrait { margin: 0; position: absolute; right: 4%; bottom: 2%; width: 34%; z-index: 2; }
.portrait img, .portrait svg { width: 100%; height: auto; border-radius: 50%; display: block; border: 4px solid var(--paper); box-shadow: 0 10px 26px rgba(15, 61, 46, 0.18); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 10px auto 0; }
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.illo-grow circle[stroke] { transform-origin: 210px 210px; }
@media (prefers-reduced-motion: no-preference) {
  .illo-grow circle[stroke]:nth-of-type(1) { animation: slowSpin 90s linear infinite; }
  .illo-grow circle[stroke]:nth-of-type(3) { animation: slowSpin 70s linear infinite reverse; }
}

/* eyebrow + card icons */
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow .ic, .cr-org .ic { display: inline-flex; }
.eyebrow .ic svg { width: 17px; height: 17px; }
.flip-face .ic svg { width: 26px; height: 26px; color: var(--pine); margin-bottom: auto; }
.work-card .cover { margin: -8px -8px 6px; }
.work-card .cover svg { width: 100%; height: auto; display: block; }
.case-row .cr-org { display: flex; align-items: center; gap: 7px; }
.case-row .cr-org svg { width: 15px; height: 15px; color: var(--pine); }

/* judge mini-screens */
.judge-mini { border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; padding: 14px; margin: 14px 0 4px; font-size: 0.8rem; color: var(--slate); }
.judge-mini .jm-bar { height: 7px; border-radius: 4px; background: var(--line); margin: 7px 0; }
.judge-mini .jm-bar.w60 { width: 60%; } .judge-mini .jm-bar.w80 { width: 80%; } .judge-mini .jm-bar.w40 { width: 40%; }
.judge-mini .jm-bubble { background: var(--moss); color: var(--pine-deep); border-radius: 8px; padding: 7px 10px; margin: 7px 0; max-width: 85%; }
.judge-mini .jm-bubble.right { margin-left: auto; background: var(--sand); color: var(--bark); }

/* ---------- case study artifact components ---------- */
.artifact { border: 1px solid var(--line); border-style: solid; min-height: 0; display: block; text-align: left; color: var(--ink); padding: 22px; }
.artifact figcaption { color: var(--slate); font-size: 0.85rem; margin-top: 14px; }
.af-label { font-family: var(--font-d); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); margin: 0 0 12px; }

/* timeline compare (halliburton) */
.af-lane { margin: 12px 0; }
.af-lane .lane-name { font-size: 0.8rem; color: var(--slate); margin-bottom: 6px; }
.af-lane .lane-bar { display: flex; gap: 3px; }
.af-lane .seg { height: 26px; border-radius: 6px; flex: 1; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.66rem; color: var(--bark); }
.af-lane.new .seg { background: var(--pine); color: #eaf3ec; }
.af-lane.new { width: 50%; min-width: 240px; }
.af-scale { display: flex; justify-content: space-between; color: var(--slate); font-size: 0.7rem; margin-top: 4px; }

/* blueprint table */
.af-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.af-table th { text-align: left; font-family: var(--font-d); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.af-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: #2c3230; }
.af-table td:first-child { color: var(--slate); }

/* before/after openings (square) */
.af-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.af-screen { border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; padding: 14px; }
.af-screen .sc-name { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-family: var(--font-d); margin-bottom: 8px; }
.af-screen .sc-line { height: 7px; border-radius: 4px; background: var(--line); margin: 7px 0; }
.af-screen .sc-line.w80 { width: 80%; } .af-screen .sc-line.w60 { width: 60%; } .af-screen .sc-line.w40 { width: 40%; }
.af-screen .sc-bullet { display: flex; gap: 7px; align-items: center; }
.af-screen .sc-bullet i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); flex: none; }
.af-screen .sc-bubble { background: var(--moss); color: var(--pine-deep); border-radius: 9px; padding: 7px 10px; margin: 7px 0; font-size: 0.8rem; max-width: 92%; }
.af-screen .sc-bubble.right { margin-left: auto; background: var(--sand); color: var(--bark); }
.af-screen.win { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }

/* audit board */
.af-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.af-col { background: #fafaf7; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.af-col .col-name { font-family: var(--font-d); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.af-col.keep .col-name { color: var(--pine); } .af-col.rebuild .col-name { color: var(--sand-deep); } .af-col.retire .col-name { color: #a05a3c; }
.af-col .col-card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 0.78rem; color: var(--slate); margin-top: 6px; }

/* roadmap scatter (predictive index) */
.af-plot { position: relative; height: 220px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); margin: 8px 6px 26px 6px; }
.af-plot .quad { position: absolute; left: 0; bottom: 50%; top: 0; right: 50%; background: var(--moss); opacity: 0.55; }
.af-plot .dot { position: absolute; transform: translate(-50%, 50%); background: var(--pine); color: #fff; font-size: 0.68rem; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.af-plot .dot.wait { background: #fff; color: var(--slate); border: 1px solid var(--slate); }
.af-plot .ax { position: absolute; color: var(--slate); font-size: 0.7rem; }
.af-plot .ax.x { bottom: -22px; right: 0; } .af-plot .ax.y { top: -4px; left: 8px; }
.af-plot .quad-tag { position: absolute; top: 8px; left: 10px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pine-deep); font-family: var(--font-d); }

/* release note */
.af-release { display: grid; gap: 10px; }
.af-release .rel { border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; padding: 12px 14px; font-size: 0.85rem; }
.af-release .rel b { font-family: var(--font-d); font-weight: 500; color: var(--pine-deep); display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.af-release .rel-link { text-align: center; color: var(--pine); font-size: 0.8rem; }

/* four forms (endisability) */
.af-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.af-form { border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; padding: 14px 12px; text-align: center; color: var(--pine-deep); font-size: 0.82rem; }
.af-form svg { width: 24px; height: 24px; color: var(--pine); display: block; margin: 0 auto 8px; }

/* tutor flow */
.af-flow { position: relative; border: 2px dashed var(--pine); border-radius: 12px; padding: 16px 14px 12px; }
.af-flow .scope-tag { position: absolute; top: -10px; left: 14px; background: var(--paper); color: var(--pine-deep); font-family: var(--font-d); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 8px; }
.af-flow .fl-bubble { border-radius: 9px; padding: 8px 11px; font-size: 0.8rem; margin: 7px 0; max-width: 88%; }
.af-flow .fl-bubble.learner { background: var(--sand); color: var(--bark); margin-left: auto; }
.af-flow .fl-bubble.tutor { background: var(--moss); color: var(--pine-deep); }
.af-flow .fl-out { margin-top: 10px; font-size: 0.76rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 8px; }

/* ==================================================================
   Immersion layer: the climb in color, motion, and atmosphere
   The page darkens and warms as the visitor ascends the taxonomy.
=================================================================== */
section { position: relative; overflow: hidden; border-top: 0; }
section .wrap { position: relative; z-index: 1; }

/* stage colors, blended top-to-bottom */
.hero { background: linear-gradient(180deg, #eef4ef, #f4f8f3 60%); }
#understand { background: linear-gradient(180deg, #f4f8f3, var(--moss) 140px); }
#apply { background: linear-gradient(180deg, var(--moss), #f3eee3 140px); }
#analyze { background: linear-gradient(180deg, #f3eee3, var(--pine-deep) 150px); color: #e8efe9; }
#evaluate { background: linear-gradient(180deg, var(--pine-deep), #efe7d2 150px); }
#create { background: linear-gradient(180deg, #efe7d2, #dfe9e0 140px); }
.payoff { background: linear-gradient(180deg, #dfe9e0, var(--pine-deep) 150px); border-top: 0; padding-top: 130px; }
footer { background: var(--bark); border-top: 0; color: #e8e2d6; }
footer a { color: #e8e2d6; }

/* dark analyze section */
#analyze h2 { color: #f4f8f3; }
#analyze .section-intro { color: #b9cbbd; }
#analyze .eyebrow { color: #9dbfae; }
.case-rows .case-row { background: #fffdf8; border: 0; border-radius: 14px; margin-bottom: 12px; padding: 22px 22px; transition: transform 0.25s var(--ease); }
.case-rows .case-row:last-child { border: 0; }
.case-rows .case-row:hover { background: #fff; transform: translateX(6px); }

/* tinted surfaces instead of white space */
.stat { background: #f2f6f0; }
.stat .num { color: var(--pine-deep); }
.flip-face { background: #f6f9f5; }
.flip-back { background: var(--pine-deep); }
.work-card { background: #fffdf8; }
.ai-strip { background: #dcE8de; border-color: #c8dccc; }
.judge-card { background: #fffdf8; }
.step { background: #f2f6f0; border-color: #dce6de; }
.artifact { background: #fffdf8; }
.case-section h2 { color: var(--pine-deep); }
.case-stat { background: #e3eee4; }

/* progress rail, readable over light and dark stages */
.rail { width: 4px; }
.rail::before { background: rgba(23, 27, 26, 0.12); }
.rail-fill { background: linear-gradient(180deg, var(--pine), #7fbf9f); }
.rail-tick { height: 16px; }
@keyframes tickPulse { 0% { box-shadow: 0 0 0 0 rgba(127, 191, 159, 0.7); } 100% { box-shadow: 0 0 0 9px rgba(127, 191, 159, 0); } }
.rail-tick.passed { animation: tickPulse 0.9s var(--ease) 1; }

/* drifting stage word beside the rail */
.rail-stage {
  position: fixed; left: 16px; top: 44vh; z-index: 91; pointer-events: none;
  font-family: var(--font-v); font-style: italic; font-size: 1.05rem; color: var(--pine-deep);
  background: rgba(251, 251, 249, 0.85); padding: 3px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rail-stage.show { opacity: 1; transform: none; }

/* a leaf blooms when the climb completes */
.rail-leaf { position: fixed; left: 8px; bottom: 12px; z-index: 91; width: 22px; color: #7fbf9f; opacity: 0; transform: scale(0.4); transition: opacity 0.6s var(--ease), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.rail-leaf.show { opacity: 1; transform: scale(1); }
.rail-leaf svg { width: 100%; height: auto; }

/* large faint ornaments that parallax as the visitor climbs */
.section-orn { position: absolute; z-index: 0; width: 320px; opacity: 0.09; color: var(--pine); pointer-events: none; will-change: transform; }
.section-orn svg { width: 100%; height: auto; }
.section-orn.right { right: -70px; } .section-orn.left { left: -70px; }
#analyze .section-orn, .payoff .section-orn { color: #9dbfae; opacity: 0.12; }
#apply .section-orn, #evaluate .section-orn { color: var(--sand-deep); }

/* payoff, word by word */
.payoff p .w { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.payoff p.in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rail-tick.passed { animation: none; }
  .payoff p .w { opacity: 1; transform: none; transition: none; }
  .section-orn { display: none; }
  .rail-stage { transition: none; }
}
@media (max-width: 720px) { .rail-stage { display: none; } .section-orn { width: 220px; } }

/* ==================================================================
   Exploration layer: composer, design notes, teasers, living hero
=================================================================== */
/* stats you can follow */
a.stat-link { text-decoration: none; color: var(--ink); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
a.stat-link::after { content: "→"; color: var(--pine); opacity: 0; font-size: 0.85rem; display: inline-block; transition: opacity 0.2s, transform 0.2s; margin-left: 6px; }
a.stat-link:hover { background: #e6efe7; transform: translateY(-2px); }
a.stat-link:hover::after { opacity: 1; transform: translateX(3px); }

/* case row teasers */
.cr-tease { max-height: 0; overflow: hidden; color: var(--slate); font-size: 0.88rem; font-family: var(--font-v); font-style: italic; transition: max-height 0.35s var(--ease), margin 0.35s var(--ease); margin-top: 0; }
.case-row:hover .cr-tease, .case-row:focus-visible .cr-tease { max-height: 3em; margin-top: 8px; }

/* design notes */
.note-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fffdf8; color: var(--pine); cursor: pointer; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.note-btn svg { width: 100%; height: 100%; }
.note-btn:hover, .note-btn[aria-expanded="true"] { transform: rotate(-14deg) scale(1.12); border-color: var(--pine); }
.note-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; max-width: 320px;
  background: var(--pine-deep); color: #e9f0e9; font-family: var(--font-v); font-style: italic;
  font-size: 0.95rem; letter-spacing: 0; text-transform: none; line-height: 1.55;
  padding: 14px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 61, 46, 0.25);
}
#analyze .note-btn { background: transparent; color: #9dbfae; border-color: rgba(157, 191, 174, 0.4); }
#analyze .note-pop { background: #f4f8f3; color: var(--pine-deep); }

/* the note composer */
.composer { margin-top: 34px; max-width: 720px; }
.composer-label { font-family: var(--font-d); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-deep); margin: 22px 0 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: 0.92rem; padding: 10px 18px; border-radius: 999px;
  border: 1px solid #c8dccc; background: #fffdf8; color: var(--ink); cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, color 0.18s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--pine); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.note-paper {
  margin-top: 26px; background: #fffdf8; border: 1px solid #dce6de; border-radius: 4px 16px 16px 16px;
  padding: 24px 26px; box-shadow: 0 10px 26px rgba(15, 61, 46, 0.08); position: relative;
}
.note-paper::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; bottom: 0; background: var(--pine); border-radius: 4px 0 0 4px; }
.note-paper p { margin: 0; font-family: var(--font-v); font-style: italic; font-size: 1.08rem; line-height: 1.7; color: #2c3230; }
.note-paper.empty p { color: var(--slate); }
.composer-acts { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.create-cta { margin-top: 26px; }
.create-cta .btn { font-size: 0.85rem; padding: 9px 18px; }

/* hero grows when touched */
#heroIllo.clickable { cursor: pointer; }
.grown-leaf { position: absolute; width: 26px; color: var(--pine); pointer-events: none; z-index: 3; }
.grown-leaf svg { width: 100%; height: auto; }
@keyframes leafPop { 0% { opacity: 0; scale: 0.2; } 70% { scale: 1.25; } 100% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .grown-leaf { animation: leafPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-tease { transition: none; }
  a.stat-link, .chip, .note-btn { transition: none; }
}
