:root {
  color-scheme: dark;
  --ink: #f3eedc;
  --quiet: #c4cabb;
  --moss: #8eb384;
  --lichen: #c9d596;
  --bark: #a86446;
  --forest: #101a13;
  --forest-deep: #070c08;
  --well: #111b15e8;
  --rule: #dbe5c044;
  font-family: Tahoma, Calibri, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--forest-deep); }
body { color: var(--ink); }
button { font: inherit; }
a { color: inherit; }
main { width: min(1600px, 100%); min-height: 100svh; margin: auto; overflow: hidden; background: var(--forest); box-shadow: 0 0 90px #000; }

.scene-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #142218 url("./assets/redwood-clearing-composite.webp") center / cover;
}

#scene,
.scene-fallback,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene { z-index: -3; cursor: grab; touch-action: none; }
#scene:active { cursor: grabbing; }
#scene:focus-visible { outline: 3px solid var(--lichen); outline-offset: -5px; }
.scene-fallback { z-index: -2; object-fit: cover; }
.hero-shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #07100bd9 0, #07100b8f 34%, transparent 66%),
    linear-gradient(180deg, #06100b99 0, transparent 25%, transparent 68%, #06100bc7 100%);
}

.hierarchy-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px clamp(18px, 4vw, 58px);
  color: #edf2e7;
  background: linear-gradient(180deg, #06100bea, #06100b00);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hierarchy-nav a { display: inline-flex; min-height: 40px; align-items: center; text-underline-offset: 4px; }

.hero-copy {
  position: absolute;
  left: clamp(20px, 6vw, 88px);
  bottom: clamp(148px, 20vh, 230px);
  width: min(900px, calc(100% - 40px));
}
h1 {
  margin: 0;
  max-width: 980px;
  color: var(--ink);
  font: 800 clamp(58px, 10vw, 150px)/.78 Georgia, serif;
  letter-spacing: -.07em;
  text-shadow: 0 3px 26px #030704b8;
}
h1 i { color: #c7d79b; font-weight: 400; }
.hero-copy p {
  max-width: 650px;
  margin: clamp(22px, 4vw, 38px) 0 0;
  color: #e3e5d7;
  font: clamp(17px, 2vw, 23px)/1.5 Georgia, serif;
  text-shadow: 0 2px 18px #030704;
}

.look-instrument {
  position: absolute;
  right: clamp(16px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 38px);
  width: min(380px, calc(100% - 32px));
  padding: 16px;
  color: #e5eadc;
  background: var(--well);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px #ffffff12, 0 12px 34px #0008;
}
.look-instrument > span { display: block; color: var(--lichen); font: 700 17px/1.25 Georgia, serif; }
.look-instrument p { margin: 7px 0 13px; color: var(--quiet); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.look-instrument div { display: flex; gap: 7px; }
.look-instrument button {
  min-height: 42px;
  padding: 9px 12px;
  color: #ecf2e8;
  background: #293a2d;
  border: 1px solid #849579;
  border-top-color: #bdcbb0;
  box-shadow: 0 2px 0 #080d09;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.look-instrument button:active { translate: 0 1px; box-shadow: 0 1px 0 #080d09; }
.look-instrument button:focus-visible { outline: 3px solid var(--lichen); outline-offset: 2px; }

h2 { margin: 0; font: 800 clamp(44px, 6.5vw, 92px)/.9 Georgia, serif; letter-spacing: -.055em; text-wrap: balance; }
.fixed-point {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: clamp(44px, 8vw, 130px);
  padding: clamp(62px, 8vw, 118px);
  color: #172019;
  background: #e8eadc;
  border-top: 1px solid #aeb6a2;
}
.fixed-point > div > p { max-width: 760px; margin: 30px 0 0; font: 18px/1.68 Georgia, serif; }
.fixed-point dl { align-self: end; margin: 0; border-top: 1px solid #647365; }
.fixed-point dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid #9da899; }
.fixed-point dt { color: #536153; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fixed-point dd { margin: 0; color: #71432f; font: 800 clamp(20px, 2.4vw, 32px) Georgia, serif; text-align: right; }

.projection-test { padding: clamp(62px, 8vw, 118px); color: #edf0e4; background: #142019; border-top: 1px solid #667566; }
.projection-test > header { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(32px, 7vw, 105px); align-items: end; }
.projection-test > header p { margin: 0; color: #bec8b8; font: 17px/1.65 Georgia, serif; }
.projection-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 62px; }
figure { margin: 0; }
.projection-pair figure { background: #080c09; border: 1px solid #6c796b; }
.projection-pair figure.winner { border-color: #c9d596; box-shadow: inset 0 -5px #92ad76; }
.projection-pair img, .consensus img { display: block; width: 100%; height: auto; }
.projection-pair figcaption { display: flex; justify-content: space-between; gap: 22px; padding: 15px 17px 18px; color: #c9d2c3; font-size: 11px; letter-spacing: .05em; }
.projection-pair figcaption strong { color: #f1efdf; font: 700 18px Georgia, serif; letter-spacing: 0; }
.projection-pair .winner figcaption span { color: var(--lichen); }
.score-comparison { display: grid; gap: 10px; margin: 34px 0; padding: 20px 0; border-top: 1px solid #536253; border-bottom: 1px solid #536253; }
.score-comparison span { position: relative; display: flex; z-index: 0; justify-content: space-between; width: var(--score); min-width: 260px; padding: 12px 14px; overflow: hidden; color: #f1efdf; background: linear-gradient(90deg, #76513b, #9b7657); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.score-comparison span + span { background: linear-gradient(90deg, #50664d, #8baa78); }
.score-comparison b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.finding { max-width: 900px; margin: 0; color: #c8d1c1; font: 18px/1.65 Georgia, serif; }

.consensus { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: clamp(38px, 7vw, 100px); align-items: center; padding: clamp(62px, 8vw, 118px); color: #201e16; background: #d8cfad; }
.consensus-copy p { margin: 30px 0; font: 18px/1.66 Georgia, serif; }
.consensus button {
  min-height: 48px;
  padding: 13px 16px;
  color: #f1f5e9;
  background: #36523a;
  border: 1px solid #17291b;
  border-top-color: #77947a;
  box-shadow: 4px 4px 0 #7e6546;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.consensus button:focus-visible { outline: 3px solid #563620; outline-offset: 3px; }
.consensus figure { border: 1px solid #665c44; box-shadow: 12px 14px 0 #71563e44; }
.consensus figcaption { padding: 12px 14px; color: #4f4835; background: #ede6ca; font-size: 11px; letter-spacing: .04em; }

.flow-study { padding: clamp(62px, 8vw, 118px); color: #172019; background: #e8eadc; border-top: 1px solid #aeb6a2; }
.flow-study > header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(34px, 7vw, 105px); align-items: end; }
.flow-study > header p { margin: 0; color: #455247; font: 17px/1.68 Georgia, serif; }
.flow-study figure { margin-top: clamp(42px, 6vw, 78px); border: 1px solid #6e786d; background: #0b110d; box-shadow: 12px 14px 0 #68745933; }
.flow-study figure img { display: block; width: 100%; height: auto; }
.flow-study figcaption { padding: 13px 15px; color: #dce5d5; background: #172019; font-size: 11px; letter-spacing: .06em; }
.flow-study dl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 38px 0 0; border-top: 1px solid #7c887b; }
.flow-study dl div { padding: 17px 15px 0 0; border-right: 1px solid #a8b1a4; }
.flow-study dl div + div { padding-left: 15px; }
.flow-study dt { color: #667267; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.flow-study dd { margin: 9px 0 0; color: #71432f; font: 800 clamp(20px, 2.2vw, 31px) Georgia, serif; }

.method { padding: clamp(62px, 8vw, 118px); color: #e9eddf; background: #253126; border-top: 1px solid #72806f; }
.method h2 { max-width: 920px; }
.method ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 62px 0 0; padding: 0; list-style: none; counter-reset: steps; border-top: 1px solid #7a8878; }
.method li { min-height: 260px; padding: 22px 24px 18px 0; counter-increment: steps; border-right: 1px solid #687467; }
.method li + li { padding-left: 24px; }
.method li:nth-child(n + 4) { border-top: 1px solid #687467; }
.method li::before { content: "0" counter(steps); display: block; margin-bottom: 62px; color: var(--lichen); font: 700 11px Georgia, serif; }
.method strong, .method span { display: block; }
.method strong { margin-bottom: 12px; font: 800 23px/1.05 Georgia, serif; }
.method span { color: #bdc8ba; font-size: 13px; line-height: 1.55; }

.scene-status { display: flex; justify-content: space-between; gap: 28px; padding: 18px clamp(20px, 4vw, 58px); color: #bfc8b9; background: #080d09; border-top: 1px solid #5b655a; font-size: 10px; letter-spacing: .05em; }
.scene-status p { margin: 0; }
.scene-status code { color: var(--lichen); }
.scene-status div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.scene-status a { color: #eef2e9; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .hero-copy { top: 18vh; bottom: auto; }
  .hero-copy p { max-width: 31rem; }
  .look-instrument { left: 16px; right: 16px; width: auto; }
  .look-instrument div { flex-wrap: wrap; }
  .fixed-point,
  .projection-test > header,
  .projection-pair,
  .consensus,
  .flow-study > header { grid-template-columns: 1fr; }
  .projection-pair figcaption { flex-direction: column; gap: 5px; }
  .flow-study dl { grid-template-columns: 1fr 1fr; }
  .flow-study dl div { padding: 15px 12px 15px 0; border-bottom: 1px solid #a8b1a4; }
  .method ol { grid-template-columns: 1fr; }
  .method li, .method li + li { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid #687467; }
  .method li::before { margin-bottom: 18px; }
  .scene-status { flex-direction: column; }
  .scene-status div { justify-content: flex-start; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .hero-copy { bottom: 52px; width: 56%; }
  h1 { font-size: clamp(54px, 8vw, 98px); }
  .look-instrument { width: 340px; }
}

@media (prefers-contrast: more) {
  .hero-shade { background: linear-gradient(90deg, #030704f2 0 42%, transparent 75%), linear-gradient(180deg, #030704cc, transparent 30%, #030704e8); }
  .look-instrument { background: #08100b; border-color: #f2f4dc; }
}

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