:root {
  color-scheme: light;
  --ink: #193640;
  --ink-soft: #47616a;
  --paper: #f5f3ec;
  --paper-deep: #e7e7dc;
  --signal: #cf5a3f;
  --signal-dark: #a63d2c;
  --copper: #c68750;
  --copper-hot: #f4cb8b;
  --rule: #bdd0ce;
  --focus: #005c8c;
  --sans: "Atkinson Hyperlegible", "Arial", sans-serif;
  --display: "Iowan Old Style", "Baskerville", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: .12em; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: .18em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 5; background: #fff; color: var(--ink); padding: .5rem .8rem; }
.skip:focus { top: .75rem; }

.site-header { align-items: baseline; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem max(1.25rem, calc((100vw - 1280px) / 2)); }
.wordmark { font-family: var(--display); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-header p { color: var(--ink-soft); font-size: .8rem; letter-spacing: .04em; margin: 0; text-transform: uppercase; }

main { overflow: hidden; }
.hero, .flow-section, .article-section, .storage-section, .limits-section, .method-section, footer { margin-inline: auto; max-width: 1280px; padding-inline: 1.25rem; }
.hero { padding-block: clamp(4rem, 10vw, 9rem) 4rem; }
.eyebrow, .section-label { color: var(--signal-dark); font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 1rem; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
h1 { font-size: clamp(3.2rem, 9vw, 8.6rem); margin: 0; max-width: 1200px; }
h1 em { color: var(--signal); font-style: normal; }
.hero-grid { align-items: start; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .55fr); margin-top: 2.75rem; max-width: 980px; }
.deck { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; margin: 0; }
.source-stamp { border-top: 4px solid var(--signal); color: var(--ink-soft); font-size: .88rem; padding-top: .6rem; }
.source-stamp span { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.source-stamp strong { color: var(--ink); display: block; font-size: 1rem; line-height: 1.25; margin: .45rem 0; }
.source-stamp a { display: inline-block; margin-top: .35rem; }
.source-stamp small { display: block; font-family: var(--mono); margin-top: .9rem; }

.flow-section { border-top: 1px solid var(--rule); padding-block: 3.5rem 5rem; }
.section-intro { display: grid; gap: 1rem; grid-template-columns: 15rem minmax(0, 1fr); margin-bottom: 2.5rem; }
.section-intro .section-label { grid-row: span 2; margin-top: .65rem; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.7rem); margin: 0; max-width: 920px; }
.section-intro > p:last-child { font-size: 1rem; margin: 0; max-width: 720px; }

.stage-controls { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-left: 15rem; max-width: 960px; }
.stage-control { background: transparent; border: 1px solid var(--rule); color: var(--ink); cursor: pointer; min-height: 5.2rem; padding: .8rem 1rem; text-align: left; }
.stage-control + .stage-control { border-left: 0; }
.stage-control span { color: var(--signal-dark); display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700; margin-bottom: .25rem; }
.stage-control[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stage-control[aria-pressed="true"] span { color: var(--copper-hot); }

.conductor { margin: 2rem 0 0 15rem; max-width: 960px; }
.conductor__frame { height: 210px; overflow: hidden; position: relative; }
.conductor__rail, .conductor__live { height: 30px; left: 0; position: absolute; top: 88px; }
.conductor__rail { background: #b6c5c2; width: 100%; }
.conductor__live { background: linear-gradient(90deg, var(--copper), var(--copper-hot)); box-shadow: 0 0 0 1px rgba(84, 49, 24, .3), 0 0 32px rgba(198, 135, 80, .55); transition: width .4s ease; width: 100%; }
.conductor[data-stage="constructie"] .conductor__live { width: 59.9%; }
.conductor[data-stage="anre"] .conductor__live { width: 19.4%; }
.conductor__gate { align-items: center; background: var(--paper-deep); border: 1px solid var(--ink); color: var(--ink); display: flex; height: 78px; justify-content: center; position: absolute; top: 64px; transform: translateX(-50%); width: 76px; z-index: 1; }
.conductor__gate::before, .conductor__gate::after { background: var(--ink); content: ""; height: 16px; position: absolute; width: 2px; }
.conductor__gate::before { top: -17px; }.conductor__gate::after { bottom: -17px; }
.conductor__gate span { font-family: var(--mono); font-size: .65rem; font-weight: 700; transform: rotate(-90deg); }
.gate-one { left: 19%; }.gate-two { left: 60%; }.gate-three { left: 88%; }
.readout { background: var(--ink); color: var(--paper); display: grid; gap: .4rem; grid-template-columns: 1fr auto; margin: -17px 0 0; padding: 1.3rem 1.5rem 1.25rem; position: relative; z-index: 2; }
.readout__label { font-size: .9rem; grid-column: 1 / -1; margin: 0; }
.readout__number { font-family: var(--display); font-size: clamp(3rem, 7vw, 5.7rem); letter-spacing: -.055em; line-height: .85; margin: .25rem 0 0; }
.readout__number abbr { font-family: var(--mono); font-size: .22em; letter-spacing: 0; text-decoration: none; vertical-align: middle; }
.readout dl { align-self: end; display: grid; gap: .6rem; margin: 0; min-width: 150px; }
.readout dl div { border-left: 2px solid var(--copper-hot); padding-left: .7rem; }
.readout dt { color: #c8d7d4; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.readout dd { font-family: var(--mono); font-size: 1rem; font-weight: 700; margin: 0; }
figcaption { color: var(--ink-soft); font-size: .83rem; margin-top: 1rem; }
.proof-line { border-bottom: 1px solid var(--rule); display: grid; gap: 1.25rem 3rem; grid-template-columns: 1fr 1fr; margin: 2.75rem 0 0 15rem; max-width: 960px; padding-bottom: 2rem; }
.proof-line p { font-size: .95rem; margin: 0; }

.article-section { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .65fr); padding-block: 6rem; }
.article-copy { max-width: 730px; }
.article-copy h2 { margin-bottom: 2rem; }
.article-copy p { margin: 1rem 0; }
.definition-list { border-top: 4px solid var(--ink); margin: 0; }
.definition-list div { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.definition-list dt { color: var(--signal-dark); font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.definition-list dd { font-size: .95rem; margin: .3rem 0 0; }

.storage-section { background: var(--ink); color: var(--paper); display: grid; gap: 4rem; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); max-width: none; padding: 6rem max(1.25rem, calc((100vw - 1280px) / 2)); }
.storage-section .section-label { color: var(--copper-hot); }
.storage-copy { max-width: 720px; }
.storage-copy h2 { margin-bottom: 1.8rem; }
.storage-copy p { color: #d2dfdb; }
.storage-copy strong { color: var(--paper); }
.duration-tool { background: #f4efe3; color: var(--ink); padding: clamp(1.5rem, 4vw, 3rem); }
.duration-tool label { display: block; font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.duration-tool output { color: var(--signal-dark); display: block; font-family: var(--display); font-size: 2rem; margin: .5rem 0; }
input[type="range"] { accent-color: var(--signal); cursor: pointer; width: 100%; }
.duration-result { border-block: 1px solid var(--rule); font-family: var(--display); font-size: clamp(2.3rem, 5vw, 4.4rem); letter-spacing: -.04em; line-height: 1; margin: 1.6rem 0 1rem; padding-block: 1.25rem; }
.duration-result span:last-child { color: var(--ink-soft); display: block; font-family: var(--sans); font-size: .25em; letter-spacing: 0; margin-top: .5rem; }
.formula { font-family: var(--mono); font-size: .84rem; margin: 0; }
.formula span { font-weight: 700; }
.tool-limit { color: var(--ink-soft); font-size: .8rem; margin: 1.5rem 0 0; }

.limits-section { padding-block: 5.5rem; }
.limits-section h2 { max-width: 780px; }
.limits-grid { border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.75rem; }
.limits-grid p { border-right: 1px solid var(--rule); font-size: .92rem; margin: 0; padding: 1rem 1.2rem 0 0; }
.limits-grid p + p { padding-left: 1.2rem; }
.limits-grid p:last-child { border-right: 0; }
.limits-grid strong { display: block; font-family: var(--display); font-size: 1.28rem; line-height: 1.1; margin-bottom: .55rem; }

.method-section { border-top: 1px solid var(--rule); display: grid; gap: 3rem; grid-template-columns: .7fr 1fr; padding-block: 5rem; }
.method-section h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.method-copy { max-width: 680px; }
.method-copy p { margin-top: 0; }
.source-links { margin: 1.5rem 0 0; padding-left: 1.2rem; }
.source-links li + li { margin-top: .55rem; }

footer { align-items: baseline; border-top: 1px solid var(--rule); display: flex; gap: 2rem; justify-content: space-between; padding-block: 1.5rem 3rem; }
footer p { color: var(--ink-soft); font-size: .78rem; margin: 0; max-width: 780px; }
footer a { font-family: var(--mono); font-size: .76rem; white-space: nowrap; }

@media (max-width: 860px) {
  .section-intro { display: block; }
  .section-intro .section-label { margin-top: 0; }
  .stage-controls, .conductor, .proof-line { margin-left: 0; }
  .article-section, .storage-section, .method-section { grid-template-columns: 1fr; }
  .storage-section { gap: 2.5rem; }
  .limits-grid { grid-template-columns: 1fr 1fr; }
  .limits-grid p:nth-child(2) { border-right: 0; }
  .limits-grid p:nth-child(n + 3) { border-top: 1px solid var(--rule); padding-top: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .hero { padding-block: 3.6rem; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-grid { display: block; margin-top: 2rem; }
  .source-stamp { margin-top: 2rem; max-width: 300px; }
  .stage-controls { display: block; }
  .stage-control { display: block; width: 100%; }
  .stage-control + .stage-control { border-left: 1px solid var(--rule); border-top: 0; }
  .stage-control[aria-pressed="true"] { border-color: var(--ink); }
  .conductor__frame { height: 135px; }
  .conductor__rail, .conductor__live { top: 55px; }
  .conductor__gate { height: 60px; top: 40px; width: 54px; }
  .conductor__gate::before { top: -12px; }.conductor__gate::after { bottom: -12px; }
  .conductor__gate span { font-size: .5rem; }
  .gate-one { left: 17%; }.gate-two { left: 58%; }.gate-three { left: 89%; }
  .readout { display: block; padding: 1.25rem; }
  .readout dl { display: flex; gap: 1.5rem; margin-top: 1rem; }
  .readout dl div { min-width: 0; }
  .proof-line { display: block; }
  .proof-line p + p { margin-top: 1rem; }
  .article-section, .storage-section, .limits-section, .method-section { padding-block: 3.8rem; }
  .limits-grid { display: block; }
  .limits-grid p, .limits-grid p + p { border-right: 0; border-top: 1px solid var(--rule); padding: 1rem 0; }
  .limits-grid p:first-child { border-top: 0; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
