/* R4: one chapter at a time, using individual original assets.
   This file only arranges the presentation. No scientific figure is repainted. */
html:has(> body.home-reimagined) {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--home-nav-height, 72px);
}
body.home-reimagined.a2p-fused-home {
  --home-gutter: clamp(28px, 5.4vw, 84px);
  --home-ink: #f2ede7;
  --home-muted: #c9c6d6;
  --home-faint: #b6b2c7;
  --home-line: #d7c9e231;
  --home-orange: #edb18d;
  --home-ice: #a6d9e3;
  --home-pink: #edb1cc;
  --home-surface: #12162bd9;
  --home-ease: cubic-bezier(.22,.61,.36,1);
  background: linear-gradient(180deg,#0a1026 0%,#17152e 19%,#2a192d 41%,#1b1b35 64%,#101e32 84%,#0d132a 100%);
  background-attachment: fixed;
  color: var(--home-ink);
}
.home-reimagined .home-story { overflow: clip; }
.home-reimagined .home-chapter {
  min-height: calc(100svh - var(--home-nav-height,72px));
  padding: clamp(30px,5.3svh,60px) var(--home-gutter);
  scroll-snap-stop: normal;
  overflow: visible;
}
.home-reimagined .home-chapter::before {
  inset: 0;
  background: radial-gradient(ellipse at var(--pointer-x,72%) 46%,var(--chapter-glow,#8057b521),transparent 68%);
}
.home-reimagined .home-chapter-inner,
.home-reimagined .home-chapter:nth-of-type(even) .home-chapter-inner {
  max-width: 1180px;
  grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
  gap: 22px clamp(34px,5vw,72px);
  align-items: center;
}
.home-reimagined .home-chapter:nth-of-type(even) .home-copy {
  grid-column: 1;
  grid-row: 1;
}
.home-reimagined .home-copy { max-width: 58ch; }
.home-reimagined .home-chapter-next { position:relative; z-index:6; }
body.home-reimagined.a2p-fused-home .home-copy h1 {
  font-size: clamp(56px,5.3vw,70px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 650;
  margin: 0 0 22px;
}
body.home-reimagined.a2p-fused-home .home-copy h2,
body.home-reimagined.a2p-fused-home #platform .home-copy h2 {
  font-size: clamp(34px,3.2vw,44px);
  line-height: 1.15;
  letter-spacing: -.037em;
  font-weight: 600;
  margin: 0 0 23px;
}
body.home-reimagined.a2p-fused-home :is(#top,#journey,#challenge,#resources,#platform,#biology,#nutrition,#vision) .home-copy p {
  max-width: 58ch;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--home-muted);
  font: 400 16.5px/1.75 var(--sans,Arial,sans-serif);
  letter-spacing: 0;
  overflow-wrap: break-word;
}
body.home-reimagined.a2p-fused-home #top .home-copy > p:first-of-type {
  color: var(--home-orange);
  max-width: 30ch;
  font-size: clamp(20px,1.8vw,24px);
  line-height: 1.5;
}
body.home-reimagined.a2p-fused-home #journey .home-copy > p:first-of-type {
  color: var(--home-pink);
  font-size: 18px;
  line-height: 1.6;
}
.home-reimagined :is(.home-eyebrow,.home-chapter-label,.home-visual-label) {
  display: block;
  margin: 0 0 15px;
  color: var(--home-orange);
  font: 500 13.5px/1.5 var(--mono,monospace);
  letter-spacing: .075em;
}
.home-reimagined :is(.home-hint,.home-visual-caption,.home-interaction-hint,.mission-hint) {
  display: block;
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--home-faint);
  font: 400 13.5px/1.65 var(--sans,Arial,sans-serif);
}
.home-reimagined .home-hint::before,
.home-reimagined .home-interaction-hint::before {
  content: "↳";
  display: inline-block;
  margin-right: 8px;
  color: var(--home-orange);
}
.home-reimagined .home-context {
  margin-top: 20px;
  border-top: 1px solid var(--home-line);
  padding-top: 5px;
}
.home-reimagined .home-context > summary {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #e0cfdf;
  font: 500 14px/1.5 var(--sans,Arial,sans-serif);
  list-style: none;
  cursor: pointer;
}
.home-reimagined .home-context > summary::-webkit-details-marker { display: none; }
.home-reimagined .home-context > summary::before {
  content: "+";
  width: 20px;
  color: var(--home-orange);
  font-size: 21px;
  font-weight: 400;
}
.home-reimagined .home-context[open] > summary::before { content: "−"; }
.home-reimagined .home-context > summary:hover { color: #fff3e8; }
.home-reimagined .home-context[open] { padding-bottom: 8px; }
.home-reimagined .home-context > summary > span[aria-hidden="true"] { display: none; }
.home-reimagined .home-context[open] > :not(summary) { animation: home-context-in .25s ease-out; }
.home-reimagined :is(.home-hint,.home-interaction-hint,.home-visual-caption,.mission-hint) { font-size: 14px; }
.home-reimagined .home-hint:has(> span)::before { content: none; }
.home-reimagined .home-hint > span { color: var(--home-orange); margin-right: 6px; }
.home-reimagined .home-range-label { display: block; margin-bottom: 2px; color: #d2c8d8; font-size: 14px; }
.home-reimagined .home-stage-stat { color: var(--home-orange); font: 500 32px/1.25 var(--mono,monospace); }
.home-reimagined .home-stage-stat span { color: var(--home-muted); font: 400 15px/1.4 var(--sans,Arial,sans-serif); margin-left: 7px; }
.home-reimagined .home-output-note { color: #e3d7e2; font-size: 16px; line-height: 1.7; }
.home-reimagined .home-tabset { margin-top: 23px; }
.home-reimagined .home-choice-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 17px;
}
.home-reimagined :is(.home-choice-list,.gas-controls,.mission-stage-bar) button {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d9c5de4d;
  border-radius: 6px;
  background: #151a30c7;
  color: #dbd4df;
  font: 500 14px/1.4 var(--sans,Arial,sans-serif);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s,background .2s,color .2s,box-shadow .2s;
}
.home-reimagined :is(.home-choice-list,.gas-controls,.mission-stage-bar) button:is(:hover,:focus-visible) {
  color: #fff3e7;
  background: #2e2944;
  border-color: #e9b5bfad;
}
.home-reimagined :is(.home-choice-list,.gas-controls,.mission-stage-bar) button:is([aria-selected="true"],[aria-pressed="true"],.is-active) {
  color: #211626;
  background: #eab699;
  border-color: #f3ceb4;
  box-shadow: 0 3px 22px #d78b7b12;
}
.home-reimagined .home-choice-panel {
  padding: 16px 18px;
  border-left: 2px solid var(--home-orange);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(100deg,#deb1c110,#13192b45);
}
body.home-reimagined.a2p-fused-home .home-copy .home-choice-panel p:last-child { margin-bottom: 0; }
.home-reimagined :is(button,a,summary,input):focus-visible {
  outline: 2px solid #b0e6f3;
  outline-offset: 4px;
}
.home-reimagined .home-visual {
  min-width: 0;
  width: 100%;
  position: relative;
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: linear-gradient(145deg,#1c2035b8,#14162ab0 64%,#27203d85);
  box-shadow: 0 22px 75px #04091c25,inset 0 1px #e7d3e707;
  isolation: isolate;
}
.home-reimagined .home-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse,#ae8ab216,transparent 70%);
}
.home-reimagined .home-visual > img,
.home-reimagined .home-visual-panel > img,
.home-reimagined .nutrition-visual img {
  display: block;
  width: 100%;
  max-height: min(45svh,370px);
  height: auto;
  margin: auto;
  object-fit: contain;
}
.home-reimagined .home-visual-panel:not([hidden]) { animation: home-panel-in .35s var(--home-ease); }
.home-reimagined .home-visual-panel { min-width: 0; }
.home-reimagined [hidden] { display: none !important; }
.home-reimagined .home-hero-world {
  position: relative;
  width: 100%;
  min-height: 390px;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 68% 40%,#bd7b9b18,transparent 60%);
  box-shadow: none;
}
.home-reimagined .home-hero-world::before {
  content: "";
  position: absolute;
  inset: 9% 6% 12%;
  border: 1px solid #d8a8cb2b;
  border-radius: 50%;
  transform: rotate(-21deg);
  pointer-events: none;
}
.home-reimagined .hero-landscape {
  position: absolute;
  inset: auto 0 0;
  height: 65%;
  overflow: hidden;
  opacity: 1;
}
.home-reimagined .hero-landscape img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}
.home-reimagined .hero-mascot {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 13%;
  width: clamp(130px,15vw,190px);
  transform: translate3d(var(--mascot-x,0px),var(--mascot-y,0px),0) rotate(var(--mascot-rotation,-5deg));
  transform-origin: 50% 75%;
  transition: transform .65s var(--home-ease);
}
.home-reimagined .hero-mascot img { display: block; width: 100%; height: auto; }
.home-reimagined .hero-mascot::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse,#edb1cc24,transparent 68%);
}
.home-reimagined .home-hero-world:hover .hero-mascot { --mascot-y: -9px; --mascot-rotation: 0deg; }
.home-reimagined .home-hero-world > .home-visual-label { position: absolute; top: 5px; left: 9px; z-index: 3; }
.home-reimagined .home-hero-world > .home-visual-caption { position: absolute; left: 10px; right: 10px; bottom: 0; z-index: 3; margin: 0; text-align: center; }
.home-reimagined .home-story-action {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  min-height: 44px;
  margin: 4px 18px 0 0;
  padding: 11px 16px;
  border: 1px solid #f0c4a8;
  border-radius: 6px;
  color: #231526;
  background: #e7b698;
  text-decoration: none;
  font: 500 14px/1.45 var(--sans,Arial,sans-serif);
}
.home-reimagined .home-story-action:hover { background: #f0cbb2; }
.home-reimagined .mission-stage-bar {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin: 15px 0;
}
.home-reimagined .mission-stage-bar button { text-align: center; padding-inline: 8px; }
.home-reimagined .mission-stage-bar button span { display: block; font-size: 13.5px; margin-top: 3px; }
.home-reimagined .mission-track {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 12px;
}
.home-reimagined .mission-track::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 34%;
  transform: translateY(-50%);
  border-top: 1px dashed #eac1ba80;
  border-radius: 50%;
}
.home-reimagined .mission-track:has(.mission-orbit)::before { content: none; }
.home-reimagined .mission-orbit { position: absolute; left: 13%; right: 13%; top: 24%; height: 43%; border: 1px dashed #eac1ba66; border-bottom-color: #eac1ba2b; border-radius: 50%; pointer-events: none; z-index: -1; }
.home-reimagined :is(.mission-earth,.mission-mars) span { display: block; margin-top: 10px; color: #d9ccd9; font: 400 14px/1.4 var(--mono,monospace); text-align: center; }
.home-reimagined .mission-track img { display: block; width: 100%; height: auto; object-fit: contain; }
.home-reimagined :is(.mission-earth,.mission-mars) { width: 27%; max-width: 128px; }
.home-reimagined .mission-mars { width: 33%; max-width: 150px; }
.home-reimagined .mission-craft {
  position: absolute;
  width: 20%;
  max-width: 92px;
  left: calc(14% + var(--mission-progress,.35) * 62%);
  top: 35%;
  transform: translate(-50%,-50%);
  transition: left .5s var(--home-ease),top .5s var(--home-ease);
}
.home-reimagined #journey[data-choice="outbound"] .mission-craft { left: 43%; top: 24%; transform: translate(-50%,-50%) rotate(-8deg); }
.home-reimagined #journey[data-choice="stay"] .mission-craft { left: 76%; top: 21%; transform: translate(-50%,-50%) rotate(8deg); }
.home-reimagined #journey[data-choice="return"] .mission-craft { left: 43%; top: 68%; transform: translate(-50%,-50%) rotate(174deg); }
.home-reimagined #journey .mission-craft { transition: left .65s var(--home-ease),top .65s var(--home-ease),transform .65s var(--home-ease); }
.home-reimagined input[data-mission-range] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 4px 0;
  accent-color: #ecb397;
  cursor: ew-resize;
}
.home-reimagined input[data-mission-range]::-webkit-slider-runnable-track { height:3px; border:0; border-radius:3px; background:#aa99b47d; }
.home-reimagined input[data-mission-range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:18px; height:18px; margin-top:-7.5px; border:3px solid #fff0e0; border-radius:50%; background:#edb18d; box-shadow:0 0 0 4px #edb18d22; }
.home-reimagined input[data-mission-range]::-moz-range-track { height:3px; border:0; border-radius:3px; background:#aa99b47d; }
.home-reimagined input[data-mission-range]::-moz-range-thumb { width:13px; height:13px; border:3px solid #fff0e0; border-radius:50%; background:#edb18d; }
.home-reimagined .gas-instrument { display: grid; justify-items: center; gap: 18px; }
.home-reimagined .gas-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%,300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -90deg,#d49a7f 0 95.3%,#a6d9e3 95.3% 98%,#766e8b 98% 100%);
  box-shadow: 0 0 60px #bc78951a;
  isolation: isolate;
  margin-bottom: 87px;
  transition: background .35s,box-shadow .35s;
}
.home-reimagined .gas-orbit::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 50%;
  background: #151a2d;
}
.home-reimagined .gas-orbit img {
  width: 74%;
  max-height: none;
  height: auto;
  object-fit: contain;
  grid-area: 1/1;
}
.home-reimagined .gas-orbit > :not(img) { position: relative; text-align: center; }
.home-reimagined .gas-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.home-reimagined #resources .gas-controls { justify-content: flex-start; }
.home-reimagined #resources .gas-controls button span { display: block; margin-top: 4px; font: 500 14px/1.4 var(--mono,monospace); }
.home-reimagined #resources .home-choice-panel:empty { display: none; }
.home-reimagined .gas-readout { text-align: center; min-height: 67px; }
.home-reimagined .gas-orbit > .gas-readout { position: absolute; top: calc(100% + 16px); left: 50%; width: 100%; transform: translateX(-50%); }
.home-reimagined #resources[data-choice="co2"] .gas-orbit { background: conic-gradient(from -90deg,#e3a485 0 95.3%,#a6d9e3 95.3% 98%,#b5a7c2 98% 100%); box-shadow: 0 0 44px #d49a7f20; }
.home-reimagined #resources[data-choice="n2"] .gas-orbit { background: conic-gradient(from -90deg,#8f6d70 0 95.3%,#b8f0fa 95.3% 98%,#b5a7c2 98% 100%); box-shadow: 0 0 44px #a6d9e328; }
.home-reimagined #resources[data-choice="other"] .gas-orbit { background: conic-gradient(from -90deg,#8f6d70 0 95.3%,#8aafbd 95.3% 98%,#f0c2df 98% 100%); box-shadow: 0 0 44px #edb1cc28; }
.home-reimagined .gas-readout strong {
  display: block;
  color: #f1c5a4;
  font: 500 clamp(24px,2.5vw,32px)/1.25 var(--mono,monospace);
}
.home-reimagined .gas-readout span { display: block; margin-top: 7px; font-size: 14px; color: var(--home-muted); }
.home-reimagined .platform-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 15px; }
.home-reimagined .flow-input {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 15px 12px;
  border: 1px solid #d9ae9859;
  border-radius: 10px;
  background: #cf967f0b;
  color: #efc6ad;
  text-align: center;
}
.home-reimagined .flow-input:nth-child(2) { border-color: #a6d9e350; color: #b1dce3; background: #97d1da08; }
.home-reimagined .flow-input img { display: block; width: 100%; max-width: 180px; height: 95px; object-fit: contain; }
.home-reimagined .flow-input :is(strong,span) { display: block; font-size: 14px; line-height: 1.5; }
.home-reimagined .flow-input::after {
  content: "↓";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font: 400 25px/1 var(--sans,Arial,sans-serif);
}
.home-reimagined .platform-flow:has(.flow-convergence) .flow-input::after { content: none; }
.home-reimagined .flow-convergence { grid-column: 1/-1; color: #dfc3ce; font-size: 24px; line-height: 1; text-align: center; }
.home-reimagined .flow-input,.home-reimagined .flow-core { transition: border-color .35s,background .35s,box-shadow .35s; }
.home-reimagined #platform[data-choice="carbon"] .flow-carbon { border-color: #edbd9b; box-shadow: inset 0 -2px #edbd9b; background: #d99e8112; }
.home-reimagined #platform[data-choice="nitrogen"] .flow-nitrogen { border-color: #b3e2eb; box-shadow: inset 0 -2px #b3e2eb; background: #99d3df10; }
.home-reimagined #platform .flow-core { border: 1px solid transparent; border-radius: 9px; }
.home-reimagined #platform[data-choice="core"] .flow-core { border-color: #ddb1cc8c; background: #ddb1cc09; box-shadow: inset 0 -2px #ddb1cc; }
.home-reimagined .flow-core { grid-column: 1/-1; padding: 14px 8px 0; text-align: center; }
.home-reimagined .flow-core img { display: block; width: 100%; max-height: 230px; height: auto; object-fit: contain; margin: 0 auto 8px; }
.home-reimagined .flow-core :is(strong,span) { display: block; color: var(--home-pink); font-size: 14px; line-height: 1.5; }
.home-reimagined .pathway-image {
  display: block;
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9c1dc44;
  border-radius: 8px;
  padding: 12px;
  background: #f5f2eb;
  cursor: zoom-in;
}
.home-reimagined .pathway-image img { display: block; width: 100%; height: auto; max-height: 370px; object-fit: contain; }
.home-reimagined .pathway-image:hover { border-color: #e7b5c8; box-shadow: 0 0 0 3px #e4abc515; }
.home-reimagined .home-image-zoom { appearance: none; display: block; width: 100%; min-height: 44px; margin: 0; padding: 12px; border: 1px solid #c9c1dc55; border-radius: 8px; background: #f5f2eb; cursor: zoom-in; }
.home-reimagined .home-image-zoom img { display: block; width: 100%; max-height: 350px; height: auto; object-fit: contain; }
.home-reimagined .home-image-zoom > span { display: flex; justify-content: flex-end; gap: 9px; margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #342f4526; color: #3f344c; font: 500 14px/1.4 var(--sans,Arial,sans-serif); }
.home-reimagined .home-image-zoom:hover { border-color: #e6b3ce; box-shadow: 0 0 0 3px #e6b3ce19; }
.home-reimagined .nutrition-inputs { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 11px; }
.home-reimagined .nutrition-inputs img { display: block; width: 53px; height: 48px; object-fit: contain; }
.home-reimagined .nutrition-inputs > span { color: var(--home-muted); font-size: 20px; }
.home-reimagined .nutrition-switchboard { margin: 0 auto 16px; padding: 10px 0; border-block: 1px solid #d7c9e222; }
.home-reimagined .nutrition-switchboard img { display: block; width: 100%; max-width: 390px; height: 48px; object-fit: contain; margin: auto; }
.home-reimagined .nutrition-visual { min-height: 340px; display: grid; align-items: center; }
.home-reimagined .nutrition-switchboard + .nutrition-visual { min-height: 260px; }
.home-reimagined .nutrition-switchboard + .nutrition-visual img { max-height: 250px; }
.home-reimagined .nutrition-visual .home-visual-panel { width: 100%; }
.home-reimagined .nutrition-visual .home-visual-label { margin-bottom: 22px; color: var(--home-pink); }
.home-reimagined .vision-world { position: relative; display: grid; align-items: end; min-height: 280px; }
.home-reimagined .vision-world { --vision-accent: #ddb09c; isolation: isolate; }
.home-reimagined .vision-world::before { content: ""; position: absolute; inset: 8% 0 21%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse,color-mix(in srgb,var(--vision-accent) 13%,transparent),transparent 68%); transition: background .5s; }
.home-reimagined #vision[data-choice="inputs"] .vision-world { --vision-accent: #a6d9e3; }
.home-reimagined #vision[data-choice="metabolism"] .vision-world { --vision-accent: #edb1cc; }
.home-reimagined #vision[data-choice="nutrition"] .vision-world { --vision-accent: #d8cba2; }
.home-reimagined .vision-world > img { width: 100%; max-height: 340px; height: auto; object-fit: contain; }
.home-reimagined .vision-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.home-reimagined .vision-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  color: #e6d7e2;
  background: #141a2e99;
  font: 500 14px/1.4 var(--sans,Arial,sans-serif);
  text-decoration: none;
}
.home-reimagined .vision-links a::after { content: "↗"; margin-left: 14px; color: var(--home-orange); }
.home-reimagined .vision-links a:has(> span)::after { content: none; }
.home-reimagined .vision-links a > span { color: var(--vision-accent); }
.home-reimagined .vision-links a { border-color: color-mix(in srgb,var(--vision-accent) 48%,transparent); transition: border-color .4s,background .25s; }
.home-reimagined .vision-links a:hover { border-color: #e0b0c29c; background: #29253e; }
.home-reimagined .home-chapter-next { grid-column: 1/-1; font-size: 14px; min-height: 44px; gap: 16px; padding-block: 9px; }
.home-reimagined .home-source-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #c9b6d14d;
  border-radius: 0;
  color: #c6bace;
  background: transparent;
  font: 400 14px/1.5 var(--sans,Arial,sans-serif);
  cursor: pointer;
}
.home-reimagined .home-source-open:hover { color: #ffdfc8; border-color: #e7b496; }
.home-reimagined .home-traveler {
  position: fixed;
  z-index: 24;
  right: 9px;
  bottom: 100px;
  width: 58px;
  pointer-events: none;
  opacity: .8;
  transform: translate3d(0,0,0) rotate(-5deg);
  transition: transform 1.3s var(--home-ease),opacity .7s;
}
.home-reimagined .home-traveler::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse,#edb1cc30,transparent 67%);
}
.home-reimagined .home-traveler img { display: block; width: 100%; height: auto; }
.home-reimagined[data-home-chapter="top"] .home-traveler { opacity: 0; transform: translate3d(0,16px,0) rotate(-8deg); }
.home-reimagined[data-home-chapter="journey"] .home-traveler { transform: translate3d(-4px,-18px,0) rotate(7deg); }
.home-reimagined[data-home-chapter="challenge"] .home-traveler { transform: translate3d(0,5px,0) rotate(-6deg); }
.home-reimagined[data-home-chapter="resources"] .home-traveler { transform: translate3d(-5px,-12px,0) rotate(3deg); }
.home-reimagined[data-home-chapter="platform"] .home-traveler { transform: translate3d(-2px,-30px,0) rotate(-4deg); }
.home-reimagined[data-home-chapter="biology"] .home-traveler { transform: translate3d(-3px,-8px,0) rotate(8deg); }
.home-reimagined[data-home-chapter="nutrition"] .home-traveler { transform: translate3d(-5px,-22px,0) rotate(-3deg); }
.home-reimagined[data-home-chapter="vision"] .home-traveler { transform: translate3d(-1px,8px,0) rotate(4deg); }
.home-reimagined.home-art-open .home-traveler,
.home-reimagined.menu-open .home-traveler { opacity: 0; }
@keyframes home-panel-in { from { opacity: .45; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes home-context-in { from { opacity: .5; } to { opacity: 1; } }
/* Entry cues never hide a chapter or alter an original illustration. */
.home-reimagined .home-chapter.is-current .home-visual,
.home-reimagined .home-chapter.is-current .home-hero-world {
  animation: home-visual-arrive .7s var(--home-ease) both;
}
@keyframes home-visual-arrive {
  from { opacity: .78; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Long desktop chapters hold one readable instrument in the viewport while
   native document scrolling advances its existing tabs. No wheel interception. */
@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html:has(> body.home-reimagined) { scroll-snap-type: y mandatory; }
  .home-reimagined .home-chapter { scroll-snap-stop: always; }
  .home-reimagined .home-scroll-story[data-scroll-stages] {
    display: block;
    height: 185svh !important;
    min-height: 185svh;
    padding-block: 0;
    overflow: visible;
  }
  .home-reimagined #nutrition.home-scroll-story[data-scroll-stages] {
    height: 210svh !important;
    min-height: 210svh;
  }
  .home-reimagined .home-scroll-story[data-scroll-stages] > .home-chapter-inner {
    position: sticky;
    top: var(--home-nav-height,72px);
    min-height: calc(100svh - var(--home-nav-height,72px));
    padding-block: 32px;
    display: grid;
    grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
    align-content: center;
    align-items: center;
  }
  html.page-loading:has(> body.home-reimagined) { scroll-snap-type: none; }
  /* Keep native snap rules stable while menus and top-layer dialogs open,
     preventing the browser from re-snapping the reader on close. */
}
@media (min-width: 1450px) {
  .home-reimagined .home-traveler { right: max(20px,calc((100vw - 1390px)/2)); }
}
@media (max-width: 1100px) {
  .home-reimagined .home-chapter-inner,
  .home-reimagined .home-chapter:nth-of-type(even) .home-chapter-inner { gap: 20px 32px; }
  .home-reimagined .home-visual { padding: 18px; }
  .home-reimagined .home-hero-world { min-height: 340px; }
  .home-reimagined .home-traveler { width: 42px; right: 5px; }
}
@media (max-width: 800px) {
  .home-reimagined .home-chapter { padding-inline: 28px; }
  .home-reimagined .home-chapter-inner,
  .home-reimagined .home-chapter:nth-of-type(even) .home-chapter-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    max-width: 620px;
  }
  .home-reimagined .home-chapter:nth-of-type(even) .home-copy { grid-column: auto; grid-row: auto; }
  .home-reimagined .home-copy { max-width: none; }
  .home-reimagined .home-visual { order: 1; }
  .home-reimagined .home-chapter-next { order: 2; }
  body.home-reimagined.a2p-fused-home .home-copy h1 { font-size: clamp(50px,10vw,62px); }
  body.home-reimagined.a2p-fused-home .home-copy h2,
  body.home-reimagined.a2p-fused-home #platform .home-copy h2 { font-size: clamp(32px,6.5vw,40px); }
  .home-reimagined .home-hero-world { min-height: 310px; max-height: 360px; aspect-ratio: 1.35; }
  .home-reimagined .hero-mascot { width: 140px; top: 3%; right: 16%; }
  .home-reimagined .home-traveler { width: 26px; right: 1px; bottom: 90px; opacity: .58; }
  .home-reimagined .home-visual > img,
  .home-reimagined .home-visual-panel > img,
  .home-reimagined .nutrition-visual img { max-height: 300px; }
  .home-reimagined .nutrition-visual { min-height: 280px; }
  .home-reimagined .mission-track { min-height: 180px; }
  .home-reimagined .gas-orbit { width: min(75%,260px); }
  .home-reimagined .vision-world { min-height: 220px; }
}
@media (max-width: 480px) {
  .home-reimagined .home-chapter { padding: 34px 24px 44px; }
  .home-reimagined #top { padding-top: 34px; }
  body.home-reimagined.a2p-fused-home .home-copy h1 { font-size: 50px; margin-bottom: 18px; }
  body.home-reimagined.a2p-fused-home .home-copy h2,
  body.home-reimagined.a2p-fused-home #platform .home-copy h2 { font-size: 33px; margin-bottom: 20px; }
  body.home-reimagined.a2p-fused-home :is(#top,#journey,#challenge,#resources,#platform,#biology,#nutrition,#vision) .home-copy p { font-size: 16px; line-height: 1.72; }
  body.home-reimagined.a2p-fused-home #top .home-copy > p:first-of-type { font-size: 20px; }
  .home-reimagined .home-choice-list { gap: 7px; }
  .home-reimagined .home-choice-list button { flex-grow: 1; padding-inline: 11px; }
  .home-reimagined .home-choice-panel { padding: 14px; }
  .home-reimagined .home-visual { padding: 16px; border-radius: 11px; }
  .home-reimagined .home-hero-world { min-height: 280px; max-height: 330px; }
  .home-reimagined .hero-mascot { width: 126px; right: 10%; }
  .home-reimagined .mission-stage-bar { gap: 5px; }
  .home-reimagined .mission-stage-bar button { font-size: 14px; padding: 9px 5px; }
  .home-reimagined .mission-track { min-height: 150px; padding-inline: 3px; }
  .home-reimagined .platform-flow { gap: 20px 10px; }
  .home-reimagined .flow-input { padding: 12px 8px; }
  .home-reimagined .flow-input img { height: 72px; }
  .home-reimagined .flow-core img { max-height: 190px; }
  .home-reimagined .nutrition-visual { min-height: 240px; }
  .home-reimagined .vision-links { gap: 8px; }
  .home-reimagined .vision-links a { padding-inline: 11px; }
  .home-reimagined .home-traveler { width: 23px; right: 0; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .home-reimagined .home-chapter { padding-block: 28px; }
  .home-reimagined .home-chapter-inner { row-gap: 14px; }
  body.home-reimagined.a2p-fused-home .home-copy h1 { font-size: 58px; }
  body.home-reimagined.a2p-fused-home .home-copy h2,
  body.home-reimagined.a2p-fused-home #platform .home-copy h2 { font-size: 35px; margin-bottom: 18px; }
  .home-reimagined .home-hero-world { min-height: 310px; max-height: 390px; }
  .home-reimagined .home-visual > img,
  .home-reimagined .home-visual-panel > img,
  .home-reimagined .nutrition-visual img { max-height: 265px; }
  .home-reimagined .gas-orbit { width: 230px; }
  .home-reimagined .nutrition-visual { min-height: 300px; }
  .home-reimagined .mission-track { min-height: 160px; }
  .home-reimagined .home-context { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(> body.home-reimagined) { scroll-snap-type: y proximity; }
  .home-reimagined .home-chapter { scroll-snap-stop: normal; }
  .home-reimagined .home-traveler,
  .home-reimagined .hero-mascot,
  .home-reimagined .mission-craft,
  .home-reimagined .home-chapter::before,
  .home-reimagined :is(.home-choice-list,.gas-controls,.mission-stage-bar) button { transition: none !important; }
  .home-reimagined .home-visual-panel,
  .home-reimagined .home-chapter.is-current .home-visual,
  .home-reimagined .home-chapter.is-current .home-hero-world,
  .home-reimagined .home-context[open] > :not(summary) { animation: none !important; }
  .home-reimagined .home-traveler { transform: none !important; }
}
@media print {
  .home-reimagined .home-chapter { min-height: 0; padding: 20px 0; break-inside: avoid; }
  .home-reimagined .home-chapter-inner,
  .home-reimagined .home-chapter:nth-of-type(even) .home-chapter-inner { display: block; }
  .home-reimagined .home-traveler,
  .home-reimagined .home-source-open,
  .home-reimagined .home-hint { display: none !important; }
  .home-reimagined .home-visual { box-shadow: none; margin-top: 20px; }
  .home-reimagined .home-copy .home-choice-panel p { color: #111 !important; }
}

/* R4 scene integration: elements share the chapter's space, with no poster box. */
.home-reimagined .home-pointer-hint { display: inline; }
.home-reimagined .home-touch-hint { display: none; }
.home-reimagined :is(.home-image-note,.home-reference-note),
.home-reimagined .home-visual-panel[data-visual-key="foundation"] > div {
  display: block;
  margin-top: 12px;
  color: #d7c6d5;
  font: 400 14px/1.6 var(--sans,Arial,sans-serif);
}
@media (pointer: coarse), (max-width: 800px) {
  .home-reimagined .home-pointer-hint { display: none; }
  .home-reimagined .home-touch-hint { display: inline; }
}
.home-reimagined .home-visual {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.home-reimagined .home-visual::before { inset: -9%; background: radial-gradient(ellipse,#bb87b414,transparent 67%); }
.home-reimagined #top { overflow: clip; }
.home-reimagined #top .home-chapter-inner {
  min-height: calc(100svh - var(--home-nav-height,72px) - clamp(60px,10.6svh,120px));
  align-content: center;
}
.home-reimagined #top .home-copy { position: relative; z-index: 5; max-width: 520px; }
.home-reimagined #top .home-visual {
  position: absolute;
  inset: 0 auto 0 calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.home-reimagined #top .home-visual::before { content: none; }
.home-reimagined #top .home-hero-world {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
}
.home-reimagined #top .home-hero-world::before {
  content: "";
  inset: -90px 0 -90px;
  z-index: 2;
  border: 0;
  border-radius: 0;
  transform: none;
  background: linear-gradient(90deg,#0c1229eb 0%,#11162ac9 26%,#15162a73 48%,transparent 72%);
  pointer-events: none;
}
.home-reimagined #top .hero-landscape {
  inset: auto -1% -65px;
  height: 79%;
  overflow: visible;
  mask-image: linear-gradient(180deg,transparent 0%,#000 26%,#000 90%,transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,transparent 0%,#000 26%,#000 90%,transparent 100%);
}
.home-reimagined #top .hero-landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.home-reimagined #top .hero-mascot {
  top: 4%;
  right: max(11%,calc((100vw - 1120px)/2));
  width: clamp(150px,18vw,230px);
  z-index: 3;
  transform: translate3d(calc(var(--scene-pointer-x,0) * 11px),calc(var(--scene-pointer-y,0) * 8px + var(--mascot-y,0px)),0) rotate(calc(-5deg + var(--scene-pointer-x,0) * 3deg));
}
.home-reimagined #top .home-hero-world > .home-visual-label { top: auto; bottom: 30%; left: auto; right: 11%; color: #f0c8b4; }
.home-reimagined #top .home-hero-world > .home-visual-caption { left: auto; right: 8%; bottom: 23%; max-width: 30ch; text-align: right; color: #e0d1da; }
.home-reimagined #top .home-chapter-next { position: relative; z-index: 5; }
@media (max-width: 800px) {
  .home-reimagined #top .home-chapter-inner { min-height: 0; padding-bottom: 290px; }
  .home-reimagined #top .home-copy { max-width: 540px; }
  .home-reimagined #top .home-visual { inset-block: 0; }
  .home-reimagined #top .hero-landscape { height: 46%; bottom: -40px; }
  .home-reimagined #top .hero-mascot { top: auto; bottom: 68px; right: 13%; width: 132px; }
  .home-reimagined #top .home-hero-world::before { background: linear-gradient(180deg,#10162bd9 0%,#11162bb0 40%,transparent 72%); }
  .home-reimagined #top .home-hero-world > .home-visual-label { bottom: 260px; right: 9%; }
  .home-reimagined #top .home-hero-world > .home-visual-caption { bottom: 24px; right: 9%; max-width: 33ch; }
  .home-reimagined #top .home-chapter-next { position: absolute; bottom: 230px; left: 0; }
}
.home-reimagined #journey .home-visual { width: 110%; margin-left: -5%; }
.home-reimagined #journey .mission-track { min-height: 310px; padding: 20px 8px; }
.home-reimagined #journey .mission-orbit { left: 11%; right: 11%; top: 24%; height: 45%; }
.home-reimagined #journey .mission-earth { width: 31%; max-width: 150px; }
.home-reimagined #journey .mission-mars { width: 37%; max-width: 180px; }
.home-reimagined #journey .mission-craft { z-index: 2; }
.home-reimagined #journey .home-visual-caption { text-align: center; }
.home-reimagined #challenge .home-visual-label { margin-top: 20px; text-align: center; }
.home-reimagined #challenge .home-visual-panel > img { max-height: min(52svh,400px); }
.home-reimagined #resources .gas-orbit { width: min(100%,325px); }
.home-reimagined #resources .gas-orbit::before { background: #15182b; }
.home-reimagined #resources .gas-orbit img { width: 80%; }
.home-reimagined #resources .home-visual-caption { text-align: center; }
.home-reimagined #platform .platform-flow { gap: 8px 24px; }
.home-reimagined #platform .flow-input,
.home-reimagined #platform[data-choice] .flow-input {
  border: 0;
  border-radius: 0;
  padding: 8px 2px;
  background: none;
  box-shadow: none;
}
.home-reimagined #platform .flow-input img { height: 116px; max-width: 215px; }
.home-reimagined #platform .flow-input span { padding-bottom: 8px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.home-reimagined #platform[data-choice="carbon"] .flow-carbon span { border-color: #edbd9b; }
.home-reimagined #platform[data-choice="nitrogen"] .flow-nitrogen span { border-color: #b3e2eb; }
.home-reimagined #platform .flow-convergence { position: relative; height: 32px; font-size: 0; }
.home-reimagined #platform .flow-convergence::before,
.home-reimagined #platform .flow-convergence::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg,#edbd9b88,#d8b5cc5c);
}
.home-reimagined #platform .flow-convergence::before { left: 24%; transform: rotate(9deg); transform-origin: right; }
.home-reimagined #platform .flow-convergence::after { right: 24%; transform: rotate(-9deg); transform-origin: left; background: linear-gradient(270deg,#b3e2eb88,#d8b5cc5c); }
.home-reimagined #platform .flow-core,
.home-reimagined #platform[data-choice] .flow-core { border: 0; border-radius: 0; padding-top: 0; background: none; box-shadow: none; }
.home-reimagined #platform .flow-core img { max-height: 250px; }
.home-reimagined #platform .flow-core span { display: inline-block; padding-bottom: 7px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.home-reimagined #platform[data-choice="core"] .flow-core span { border-color: #e5b6d1; }
.home-reimagined #platform .home-visual-caption { text-align: center; }
.home-reimagined .nutrition-switchboard { border: 0; padding: 8px 0; }
.home-reimagined .nutrition-switchboard + .nutrition-visual { min-height: 250px; }
.home-reimagined .nutrition-switchboard + .nutrition-visual img { max-height: 270px; }
.home-reimagined #vision { overflow: clip; }
.home-reimagined #vision .home-chapter-inner { min-height: calc(100svh - var(--home-nav-height,72px) - 100px); align-content: center; }
.home-reimagined #vision .home-copy { position: relative; z-index: 4; }
.home-reimagined #vision .home-visual,
.home-reimagined #vision .vision-world { position: static; }
.home-reimagined #vision .vision-world::before { content: none; }
.home-reimagined #vision .vision-world > img {
  position: absolute;
  z-index: 0;
  left: calc(50% - 50vw);
  bottom: -70px;
  width: 100vw;
  height: 65%;
  max-height: none;
  object-fit: cover;
  object-position: center 56%;
  mask-image: radial-gradient(ellipse 74% 87% at 73% 78%,#000 16%,#000 54%,transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 74% 87% at 73% 78%,#000 16%,#000 54%,transparent 95%);
}
.home-reimagined #vision .vision-links { position: relative; z-index: 4; margin-top: 260px; }
.home-reimagined #vision .vision-links a { background: #11182cdb; }
.home-reimagined .home-detail-dialog {
  width: min(1120px,calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 18px;
  overflow: auto;
  border: 1px solid #cdb4ce66;
  border-radius: 10px;
  background: #11172c;
  color: #f2e9e5;
  box-shadow: 0 32px 100px #0009;
}
.home-reimagined .home-detail-dialog::backdrop { background: #070b19d9; backdrop-filter: blur(9px); }
.home-reimagined .home-detail-dialog h2 { margin: 0 0 18px; max-width: 75%; font-size: 22px; line-height: 1.4; }
.home-reimagined .home-detail-close { display: block; position: sticky; top: 0; margin: 0 0 12px auto; min-height: 44px; padding: 10px 18px; border: 1px solid #d8c3dc6b; border-radius: 5px; background: #2c2840; color: #ffeadb; font: 500 14px/1.4 var(--sans,Arial,sans-serif); cursor: pointer; }
.home-reimagined .home-detail-image { display: block; width: 100%; max-height: none; height: auto; object-fit: contain; background: #f5f2eb; }
@media (max-width: 800px) {
  .home-reimagined #journey .home-visual { width: 100%; margin-left: 0; }
  .home-reimagined #journey .mission-track { min-height: 245px; }
  .home-reimagined #resources .gas-orbit { width: min(82%,280px); }
  .home-reimagined #platform .flow-input img { height: 106px; }
  .home-reimagined #platform .flow-core img { max-height: 230px; }
  .home-reimagined #vision .home-chapter-inner { min-height: 0; }
  .home-reimagined #vision .vision-world { min-height: 280px; }
  .home-reimagined #vision .vision-world > img { height: 36%; bottom: 0; }
  .home-reimagined #vision .vision-links { margin-top: 215px; }
  .home-reimagined .home-detail-dialog { width: calc(100vw - 18px); max-height: calc(100svh - 18px); padding: 12px; }
}
@media (max-width: 480px) {
  .home-reimagined #journey .mission-track { min-height: 210px; }
  .home-reimagined #platform .platform-flow { column-gap: 12px; }
  .home-reimagined #platform .flow-input img { height: 86px; }
  .home-reimagined #platform .flow-core img { max-height: 205px; }
  .home-reimagined .nutrition-switchboard + .nutrition-visual { min-height: 225px; }
  .home-reimagined .nutrition-switchboard + .nutrition-visual img { max-height: 225px; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .home-reimagined #top .hero-mascot { width: 170px; }
  .home-reimagined #platform .flow-input img { height: 90px; }
  .home-reimagined #platform .flow-core img { max-height: 210px; }
  .home-reimagined #resources .gas-orbit { width: 245px; }
  .home-reimagined #vision .vision-links { margin-top: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-reimagined #top .hero-mascot { transform: none; }
  .home-reimagined #journey .mission-craft,
  .home-reimagined .gas-orbit,
  .home-reimagined .flow-input,
  .home-reimagined .flow-core,
  .home-reimagined .vision-links a { transition: none; }
}
@media print {
  .home-reimagined #top .home-visual,
  .home-reimagined #top .home-hero-world,
  .home-reimagined #vision .vision-world > img { position: relative; inset: auto; width: 100%; height: auto; mask-image: none; }
  .home-reimagined #top .home-chapter-inner { padding-bottom: 0; min-height: 0; }
  .home-reimagined #top .home-hero-world { min-height: 280px; }
  .home-reimagined #vision .vision-links { margin-top: 10px; }
}
