:root {
  --ink: #102e30;
  --paper: #f4f3eb;
  --gold: #f4bd49;
  --muted: #495d58;
  --line: #c4cbc1;
  --sans: Inter, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 100%/1.48 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after {box-sizing:border-box}
body,h1,h2,h3,p,figure,dl,dd {margin:0}
img {display:block;width:100%;height:auto}
a {color:inherit;text-decoration:none}
button,input {font:inherit}
button,summary {cursor:pointer}
button {color:inherit}
[hidden] {display:none!important}
:focus-visible {outline:3px solid #c66e10;outline-offset:4px}
.hero :focus-visible {outline-color:var(--gold)}
.skip {position:fixed;z-index:5;top:-8rem;left:1rem;background:white;color:var(--ink);padding:1rem}
.skip:focus {top:1rem}
.wrap {width:min(calc(100% - clamp(2.5rem,8.4vw,9rem)),94rem);margin-inline:auto}
.masthead {background:var(--paper)}
.masthead-inner,.footer-inner {display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:4.6rem}
.brand {display:inline-flex;align-items:center;gap:.65rem;font-weight:700;font-size:1.38rem;letter-spacing:-.045em;white-space:nowrap}
.brand-mark {display:inline-block;width:1.52rem;height:1.35rem;transform:skew(-20deg);background:linear-gradient(to bottom,currentColor 0 25%,transparent 25% 37.5%,currentColor 37.5% 62.5%,transparent 62.5% 75%,currentColor 75%);color:var(--ink)}
nav {display:flex;align-items:center;gap:2.4rem}
nav a,.footer-inner>a:last-child {display:inline-flex;align-items:center;min-height:48px;font-size:.91rem;font-weight:590}
nav a:hover,.footer-inner>a:last-child:hover {text-decoration:underline;text-underline-offset:.3em}
.stage {display:inline-flex;align-items:center;gap:.6rem;font: .77rem var(--mono)}
.stage i {width:.55rem;height:.55rem;border:1px solid #856118;background:var(--gold);border-radius:50%}
.hero {color:var(--paper);background:radial-gradient(ellipse at 81% 43%,#315657 0,#1c3f40 28%,#112e30 59%,#0c2729 100%);overflow:hidden}
.hero-grid {display:grid;grid-template-columns:39% 61%;align-items:center;min-height:clamp(33rem,42vw,46rem);padding-block:clamp(2.7rem,4.8vw,5rem)}
.hero-copy {z-index:1}
.category,.micro,.dimension,.chapter-label,.hero-data dt {font-family:var(--mono);font-size:.73rem;letter-spacing:.035em}
.category {display:flex;align-items:center;gap:.68rem;color:#e0e7dd}
.category>span {width:1.8rem;height:2px;background:var(--gold)}
h1,h2 {font-weight:550;letter-spacing:-.055em;line-height:.94}
h1 {font-size:clamp(5rem,7.9vw,8.8rem);margin:1.25rem 0 1.4rem}
.intro {color:#d0ded7;font-size:clamp(1.01rem,1.18vw,1.24rem);max-width:34ch;line-height:1.5}
.primary {margin-top:1.7rem;min-height:48px;display:inline-flex;align-items:center;gap:1.65rem;padding:.75rem 1.05rem;background:var(--gold);color:var(--ink);border-radius:3px;font-size:.95rem;font-weight:700}
.primary:hover {background:#ffd47f}
.primary span {font-size:1.25rem}
.hero-plate {position:relative;min-width:0;margin-left:3%;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.plate-top {position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.5rem;align-self:stretch;min-height:48px}
.micro {color:#b1c6bd}
.view-switch {display:flex;border:1px solid #68827d;border-radius:2rem;padding:2px}
.view-switch button {border:0;border-radius:1.6rem;min-height:48px;min-width:4.2rem;padding:.3rem .8rem;color:#e6ede7;background:transparent;font-size:.82rem}
.view-switch button[aria-pressed="true"] {background:#dfe6db;color:#153536;font-weight:680}
.plate-bed {pointer-events:none;position:relative;isolation:isolate;display:grid;place-items:center;flex:1;min-height:0;background-image:radial-gradient(#d9ede424 .8px,transparent 1px);background-size:22px 22px}
.drawing-ring {position:absolute;width:73%;aspect-ratio:1;max-height:94%;border:1px solid #bed1c81e;border-radius:50%;transform:rotate(-15deg);z-index:-1}
.plate-bed img {position:relative;width:105%;max-width:none;filter:drop-shadow(0 20px 14px #04161775);margin-block:-4%}
.dimension {margin:.3rem auto .2rem;width:76%;display:flex;align-items:center;gap:.55rem;white-space:nowrap;color:#dddfcb}
.dimension b {font:inherit;color:#b0c4bb}
.dimension span {flex:1;position:relative;height:1px;background:#8da89d}
.dimension span:first-child::before,.dimension span:last-child::after {content:'';height:.7rem;width:1px;position:absolute;top:-.33rem;background:#a5bdb0}
.dimension span:last-child::after {right:0}
.hero-data {display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #5c7571;padding-block:1.2rem 1.45rem}
.hero-data>div+div {padding-left:14%;border-left:1px solid #506a64}
.hero-data dt {color:#b6c8c0;margin-bottom:.18rem}
.hero-data dd {font-size:clamp(.98rem,1.4vw,1.35rem);letter-spacing:-.03em}
.hero-data small {color:#bfd0c8;font-size:.85em}
.chapter {padding-block:clamp(4rem,7.5vw,8rem)}
.chapter-label {color:var(--muted);display:flex;align-items:center;gap:.65rem;margin-bottom:1.4rem}
.chapter-label i {display:inline-block;width:1.5rem;height:.4rem;border-inline:1px solid currentColor;border-bottom:1px solid currentColor}
h2 {font-size:clamp(3.15rem,5.1vw,6rem)}
.hardware {display:grid;grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr);gap:clamp(2rem,6vw,7rem);align-items:center}
.hardware-copy>p:not(.chapter-label),.chapter-head p {color:var(--muted);font-size:1.045rem;max-width:37ch;margin-top:1.55rem}
.specs {margin-top:1.7rem;max-width:27rem}
.specs>div {display:flex;justify-content:space-between;align-items:baseline;gap:1rem;border-top:1px solid var(--line);padding:.65rem 0}
.specs dt,.instrument figcaption,.questions p {color:var(--muted)}
.specs dt {font-size:.88rem}
.specs dd {text-align:right;font-weight:650;font-size:.92rem}
.instrument {min-width:0}
.instrument-frame {overflow:hidden;background:#afb8b4;border-radius:4px}
.instrument-frame img {aspect-ratio:1.78;object-fit:cover;object-position:center}
.instrument-frame[data-orbit] {touch-action:pan-y pinch-zoom;cursor:grab;user-select:none}
.instrument-frame[data-dragging] {cursor:grabbing}
.instrument figcaption {display:flex;justify-content:space-between;align-items:center;padding:.7rem 0 .35rem;font:.8rem var(--mono)}
.turn-controls {display:flex;align-items:center;gap:.55rem}
.turn-controls button {min-width:48px;min-height:48px;border:1px solid #a5b0a7;border-radius:50%;background:transparent;font-size:1.7rem}
.turn-controls input {accent-color:var(--ink)}
#view-range {flex:1;min-width:2rem;height:48px}
.turn-controls label {min-height:48px;display:inline-flex;align-items:center;font-size:.85rem;gap:.25rem}
.workflow {background:#e4e8de}
.chapter-head {display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2.5rem}
.chapter-head p {margin:0 0 .25rem}
.field-report {display:grid;grid-template-columns:1.1fr 1fr;background:#f9f9f2}
.report-plate {display:flex;flex-direction:column;justify-content:space-between;background:#123032;color:var(--paper);padding:clamp(1.2rem,3vw,3rem)}
.report-head {display:flex;align-items:baseline;justify-content:space-between;gap:1rem}
.report-head span,.report-plate figcaption {font:.78rem var(--mono);color:#c0d0c6}
.report-head strong {font-size:1.7rem;letter-spacing:-.045em}
.report-plate img {object-fit:contain}
.report-plate figcaption {display:flex;flex-wrap:wrap;gap:1.5rem}
.box-key {display:inline-flex;gap:.5rem;align-items:center}
.box-key::before {content:'';width:1.25rem;border-top:1px dashed #c2d8c6}
.box-key.net::before {border-top:2px solid var(--gold)}
.report-body {padding:clamp(1.35rem,3.4vw,3.5rem)}
.field-stages {list-style:none;counter-reset:stage;margin:0;padding:0}
.field-stages li {counter-increment:stage;display:flex;gap:1.05rem;margin-bottom:1.3rem}
.field-stages li::before {content:'0' counter(stage);font:.78rem var(--mono);color:#546a60;padding-top:.25rem}
.field-stages h3 {font-size:1.12rem;letter-spacing:-.03em}
.field-stages p {font-size:.94rem;color:var(--muted);margin:.25rem 0}
.result {border-top:1px solid var(--line);padding-top:1.1rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.result span,.result small {display:block}
.result>div small {font-size:.78rem;color:var(--muted)}
.result strong {font-size:clamp(2rem,3.2vw,3.7rem);line-height:1;letter-spacing:-.065em;font-weight:550}
.result strong small {display:inline;font-size:.42em;letter-spacing:0}
.screen-link {display:inline-flex;align-items:center;gap:.65rem;min-height:48px;margin-top:.5rem;font-weight:650;font-size:.9rem;text-decoration:underline;text-underline-offset:.25em}
.notes {display:grid;grid-template-columns:.8fr 1.2fr;gap:2rem}
details {border-top:1px solid #a6b3aa}
details:last-child {border-bottom:1px solid #a6b3aa}
summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.3rem;font-size:1.12rem;font-weight:600;list-style:none}
summary::-webkit-details-marker {display:none}
summary::after {content:'+';font-size:1.5rem;font-weight:400}
details[open] summary::after {content:'−'}
.questions p {max-width:60ch;padding-bottom:1.4rem}
footer {background:var(--ink);color:var(--paper)}
.footer-inner {min-height:6rem}
.footer-inner .brand-mark {color:var(--gold)}
@media(min-width:1650px){.hero-plate{max-height:39rem}.plate-bed img{width:94%}}
@media(max-width:900px){
  .hero-grid {grid-template-columns:42% 58%;min-height:31rem}
  h1 {font-size:clamp(4.6rem,8vw,6rem)}
  .hero-plate {margin-left:0}
  .plate-bed img {width:108%}
  .hero-data>div+div {padding-left:9%}
  nav {gap:1.4rem}
  .chapter-head p {max-width:28ch}
}
@media(max-width:680px){
  .masthead-inner {flex-wrap:wrap;gap:0;min-height:auto;padding-top:.7rem}
  .brand {font-size:1.23rem}
  .stage {margin-left:auto}
  nav {order:3;flex-basis:100%;gap:1.5rem}
  nav a {min-height:40px;font-size:.85rem}
  .hero-grid {grid-template-columns:1fr;min-height:0;padding-block:2rem 1.4rem;gap:1.4rem}
  .hero-copy {display:grid;grid-template-columns:1fr auto;align-items:center}
  .category,.intro {grid-column:1/-1}
  h1 {grid-column:1/-1;margin:.6rem 0 .7rem;font-size:clamp(3.1rem,10.7vw,5rem);line-height:1}
  h1 br {display:none}
  .intro {max-width:42ch;font-size:1rem}
  .primary {margin-top:1rem;justify-self:start;min-height:44px}
  .hero-plate {margin:0}
  .plate-top {min-height:0}
  .plate-bed {max-height:18rem;min-height:10rem;overflow:visible}
  .plate-bed img {width:91%;margin-block:-2%}
  .view-switch button {min-height:48px;min-width:3.8rem}
  .hero-data {grid-template-columns:1fr 1fr;gap:.9rem 1rem;padding-block:1rem 1.25rem}
  .hero-data>div+div {border:0;padding:0}
  .hero-data dd {font-size:1.04rem}
  .hardware,.field-report,.notes {grid-template-columns:1fr}
  .hardware {gap:1.8rem}
  .chapter-head {display:block}
  .chapter-head p {margin-top:1.25rem;max-width:42ch}
  .chapter-label {margin-bottom:.9rem}
  .specs {max-width:100%}
  .instrument-frame img {aspect-ratio:1.6}
  .turn-controls {flex-wrap:wrap}
  .report-plate {gap:1rem}
  .notes {gap:1.4rem}
}
@media(prefers-reduced-motion:no-preference){
  .hero-plate img {animation:plate-arrival .55s ease-out}
  @keyframes plate-arrival {from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none}}
}

/* The sticky masthead records progress without constraining native scrolling. */
.masthead {position:sticky;top:0;z-index:8;border-bottom:1px solid #c4cbc19c}
.reading-line {position:absolute;bottom:-1px;left:0;width:100%;height:3px;background:#c88719;transform:scaleX(0);transform-origin:left;pointer-events:none}
nav a[aria-current="location"] {text-decoration:underline;text-underline-offset:.38em;text-decoration-thickness:2px}
section[id] {scroll-margin-top:5rem}
.stone-chapter {background:#173738;color:#f5f4e9}
.stone-chapter .chapter-label,.stone-chapter .chapter-head p {color:#c9d9cf}
.stone-chapter .chapter-head p {max-width:39ch}
.atlas {display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,.34fr);background:#0f292a;border:1px solid #55716b}
.stone-plate {min-width:0}
.stone-crop {overflow:hidden;background:#394342}
.stone-view {position:relative;transform-origin:center}
.stone-view img {width:100%;height:auto;aspect-ratio:16/9}
.sight {position:absolute;display:grid;place-items:center;width:2.35rem;height:2.35rem;border:1px solid #fff;border-radius:50%;font:700 .8rem var(--mono);box-shadow:0 0 0 .33rem #17313250;background:#183333bb;color:white;transform:translate(-50%,-50%)}
.site-a {left:37%;top:39%}.site-b {left:49%;top:60%}.site-c {left:84%;top:65%}
.atlas[data-step="0"] .site-a,.atlas[data-step="1"] .site-b,.atlas[data-step="2"] .site-c {background:var(--gold);border-color:#ffe5a8;color:var(--ink)}
.stone-plate figcaption,.power-figure figcaption {display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;font:.72rem/1.4 var(--mono);padding:.85rem 1rem;color:#c4d4c8}
.field-lens {padding:clamp(1rem,2.2vw,2.4rem);align-self:center}
.field-lens .micro {text-transform:uppercase;letter-spacing:.11em}
.lens-controls {margin:.85rem 0 1.1rem;display:grid}
.lens-controls button {text-align:left;border:0;border-bottom:1px solid #48645c;background:none;color:#c9d7cb;min-height:3.15rem;font-weight:600;padding:.4rem 0}
.lens-controls b {display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;margin-right:.55rem;border:1px solid currentColor;border-radius:50%;font:.72rem var(--mono)}
.lens-controls [aria-pressed=true] {color:var(--gold)}
.site-note {min-height:5.4em;font-size:.97rem;color:#d1dfd3}
.power-story {position:relative;background:#dde2d7;border-top:1px solid var(--line)}
.power-stick {display:grid;grid-template-columns:.72fr 1.28fr;gap:clamp(2rem,5vw,6rem);align-items:center;padding-block:clamp(3rem,6vw,6.5rem)}
.power-copy>p:not(.chapter-label) {color:var(--muted);max-width:34ch;margin:1.4rem 0}
.power-bed {position:relative;background:radial-gradient(ellipse,#eef1e7 0%,#cbd3c6 84%);border:1px solid #b0bcae;overflow:hidden}
.power-bed img {aspect-ratio:4/3;object-fit:contain;filter:drop-shadow(0 8px 8px #1f362929)}
.power-figure {min-width:0}
.power-figure figcaption {color:var(--muted);padding:.85rem 0}
.power-figure figcaption strong {color:var(--ink)}
.power-controls {display:inline-flex;border:1px solid #a3b3a3;padding:3px;border-radius:4px;max-width:100%}
.power-controls button {background:none;border:0;padding:.55rem .82rem;font-size:.88rem;min-height:44px}
.power-controls [aria-pressed=true] {background:var(--ink);color:var(--paper);border-radius:2px}
@media(min-width:820px) and (min-height:600px) and (prefers-reduced-motion:no-preference){
  .power-story {min-height:155svh}
  .power-stick {position:sticky;top:4.65rem;min-height:calc(100svh - 4.65rem);padding-block:1.8rem}
  .power-bed img {max-height:65svh}
}
@media(prefers-reduced-motion:no-preference){
  .stone-view {transition:transform .65s cubic-bezier(.22,.68,.17,1)}
  .atlas[data-step="0"] .stone-view {transform:scale(1.05) translate(1%,1%)}
  .atlas[data-step="1"] .stone-view {transform:scale(1.19) translate(0,-2%)}
  .atlas[data-step="2"] .stone-view {transform:scale(1.23) translate(-6%,-3%)}
}
@media(max-width:900px){
  .atlas {grid-template-columns:minmax(0,1fr) minmax(13rem,.48fr)}
  .site-note {min-height:6em}
}
@media(max-width:680px){
  .masthead-inner {padding-top:.45rem}
  .masthead nav {gap:0;justify-content:space-between}
  .masthead nav a {font-size:.8rem;min-height:44px}
  section[id] {scroll-margin-top:5.3rem}
  .atlas,.power-stick {grid-template-columns:1fr}
  .field-lens {padding:1rem}
  .lens-controls {display:flex;align-items:stretch;gap:.4rem;margin:.6rem 0}
  .lens-controls button {flex:1;display:flex;align-items:flex-start;flex-direction:column;gap:.3rem;font-size:.83rem;padding:.4rem 0}
  .site-note {min-height:4.5em}
  .stone-plate figcaption {padding:.6rem .85rem}
  .power-stick {gap:1.5rem}
  .power-copy>p:not(.chapter-label) {max-width:44ch}
}
@media(max-height:480px) { .masthead {position:relative} section[id] {scroll-margin-top:.6rem} }
