/* ============================================================
   PLAIN SITE — "THE FILE" (sidebar edition, production build)
   Paper, ink rules, safety orange, Archivo + IBM Plex Mono.
   Shell: full-bleed hero over the file spine, page nav in the
   spine, section index in the topbar once scrolled.
   ============================================================ */

:root {
  --paper: #f1ede3;
  --paper-2: #eae5d7;
  --ink: #16181b;
  --ink-soft: #4c5054;
  --rule: rgba(22, 24, 27, 0.16);
  --rule-mid: rgba(22, 24, 27, 0.34);
  --accent: #f04a00;
  --accent-deep: #b93a03;
  --fig-water: #2b59c4;
  --fig-green: #3e7c4b;
  --sans: 'Archivo', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease-mech: cubic-bezier(0.22, 1, 0.3, 1);
  --side-w: 252px;
  --pad: clamp(1.4rem, 3vw, 2.6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  font-weight: 500;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 0; }

section[id] { scroll-margin-top: 76px; }

/* ---------- paper grain ---------- */

.paper {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.72 0 0 0 0 0.70 0 0 0 0 0.65 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* ---------- reveals: file vocabulary, not uniform fade-up ----------
   .r--slide: a sheet slid into the file from the spine side.
   .r--stamp: pressed onto the page — fast, no travel, slight settle.
   Sibling stagger via --i (set in JS, capped). */

.r {
  opacity: 0;
  transition: opacity 0.4s var(--ease-mech), transform 0.5s var(--ease-mech);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.r--slide { transform: translateX(-18px); }
.r--stamp {
  transform: scale(1.06);
  transition-duration: 0.2s, 0.24s;
}
.r.is-in { opacity: 1; transform: none; }

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100dvh;
}

/* ---------- sidebar (the file spine — page nav, no divider) ---------- */

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  background: transparent;
  z-index: 20; /* above the full-bleed hero so logo + nav stay visible from the top */
}

.side__brand { display: block; width: max-content; position: relative; }
.side__word { display: block; width: 128px; height: auto; }

.nav { display: flex; flex-direction: column; gap: 0.1rem; }
.nav__item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink-soft);
  padding: 0.42rem 0.6rem 0.42rem 0.9rem;
  margin-left: -0.9rem;
  position: relative;
  transition: color 0.2s;
}
.nav__item:hover { color: var(--ink); }
.nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s, transform 0.35s var(--ease-mech);
}
.nav__item[aria-current="page"] {
  color: var(--ink);
  font-weight: 640;
  padding-left: 1.3rem;
}
.nav__item[aria-current="page"]::before { opacity: 1; transform: none; }

.side__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
/* on the home page the follow/company block stays hidden until the hero is scrolled past */
.side__foot.is-waiting { opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-mech), visibility 0.45s; }
.side__foot.is-shown { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-mech), visibility 0.45s; }
.side__meta-head { display: block; color: var(--ink-soft); margin-bottom: 0.25rem; font-size: 0.56rem; }
.side__meta a { font-weight: 560; color: var(--ink); }
.side__meta a:hover { color: var(--accent-deep); }
.side__meta--co { border-top: 1px solid var(--rule); padding-top: 0.9rem; }

/* ---------- main / topbar ---------- */

.main { min-width: 0; position: relative; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  transition: background 0.3s, box-shadow 0.3s;
}
.topbar.is-scrolled {
  background: rgba(241, 237, 227, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1.5px 0 var(--ink);
}

/* chip and section index share the left slot and crossfade on scroll */
.topbar__slot { position: relative; min-width: 0; flex: 1 1 auto; display: flex; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.6rem;
  border: 1px solid var(--rule-mid);
  padding: 0.42rem 0.8rem;
  background: var(--paper);
  border-radius: 2px;
  white-space: nowrap;
  transition: opacity 0.3s var(--ease-mech), transform 0.3s var(--ease-mech);
}
.chip__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  display: inline-block;
}

.topnav {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-mech), transform 0.3s var(--ease-mech);
}
.topnav::-webkit-scrollbar { display: none; }
.topbar.is-scrolled .chip { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.topbar.is-scrolled .topnav { opacity: 1; transform: none; pointer-events: auto; }
.topnav__item {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.topnav__item:hover { color: var(--ink); }
.topnav__item.is-active { color: var(--paper); background: var(--ink); }

/* ---------- buttons ---------- */

.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 640;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.72rem 1.35rem;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.16s var(--ease-mech), box-shadow 0.16s var(--ease-mech), background 0.25s, color 0.25s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-doc:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn-doc:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-doc--sm { padding: 0.5rem 1rem; font-size: 0.78rem; box-shadow: 2.5px 2.5px 0 var(--ink); }
.btn-doc--ghost { box-shadow: none; border-color: var(--rule-mid); }
.btn-doc--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); transform: none; }
.btn-doc--submit { background: var(--accent); border-color: var(--ink); color: #fff; }
.btn-doc--submit:hover { background: var(--ink); color: var(--paper); }
.btn-doc--invert {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(241, 237, 227, 0.35);
}
.btn-doc--invert:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- hero (00 cover) — full-bleed over the spine ---------- */

.hero {
  position: relative;
  z-index: 10;
  background: var(--paper);
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) 2.2rem;
  margin-left: calc(-1 * var(--side-w));
}

.hero__band {
  position: relative;
  flex: 1 1 auto;
  min-height: 52vh;
  border-radius: 2px;
  background: var(--paper);
  overflow: hidden;
  /* band starts below the sidebar nav block so logo + nav sit on plain paper */
  margin-top: clamp(9rem, 16vh, 12rem);
}
.hero__band canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__card {
  position: absolute;
  left: var(--side-w); /* card's left edge lines up with the topbar text column */
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, calc(100% - 2.4rem));
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 7px 7px 0 rgba(22, 24, 27, 0.16);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.hero__meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.58rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-mid);
  margin-bottom: 1.3rem;
}
.hero__title {
  font-weight: 730;
  font-stretch: 119%;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.hero__title em { font-style: normal; color: var(--accent); display: block; }
.hero__lead {
  font-size: 0.96rem;
  line-height: 1.66;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.hero__lead strong { color: var(--ink); font-weight: 680; }
.hero__ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- sections / two-col ---------- */

.sec {
  border-top: 1.5px solid var(--ink);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
}
.sec--tint { background: var(--paper-2); }
.sec--flush { border-top: 0; }

.twocol {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 1200px;
}
.twocol__label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 84px;
  align-self: start;
}
.sec__no {
  font-weight: 730;
  font-stretch: 121%;
  font-size: 1.05rem;
}
.sec__name { color: var(--accent-deep); }
.sec__page { color: var(--ink-soft); font-size: 0.56rem; margin-top: 0.5rem; }

.sec__title {
  font-weight: 700;
  font-stretch: 114%;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.014em;
  max-width: 24ch;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
}

.lead {
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 70ch;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.mail { color: var(--accent-deep); font-weight: 620; border-bottom: 1.5px solid rgba(185, 58, 3, 0.4); }
.mail:hover { color: var(--accent); border-color: var(--accent); }

/* clauses */
.clause {
  position: relative;
  padding-left: 3.2rem;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  max-width: 62ch;
}
.clause__no { position: absolute; left: 0; top: 0.4em; color: var(--accent-deep); }
.clause:first-of-type { color: var(--ink); }

/* cost cards */
.costrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 2rem 0;
}
.costcard {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: 2px;
  transition: transform 0.2s var(--ease-mech), box-shadow 0.2s var(--ease-mech);
}
.costcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.costcard__no { color: var(--accent-deep); font-size: 0.56rem; }
.costcard h3 { font-weight: 700; font-stretch: 114%; font-size: 1.18rem; margin: 0.4rem 0 0.3rem; }
.costcard p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.costcard--accent { border-color: var(--accent); }
.costcard--accent:hover { box-shadow: 4px 4px 0 var(--accent); }
.costcard--accent .costcard__no { color: var(--accent); }

.bigstat { border-top: 1.5px solid var(--ink); padding-top: 1.1rem; max-width: 540px; }
.bigstat__value {
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(3.8rem, 6.5vw, 5.8rem);
  line-height: 0.9;
  display: block;
  font-variant-numeric: tabular-nums;
}
.bigstat__pc { color: var(--accent); font-size: 0.55em; }
.bigstat__label { display: block; color: var(--ink-soft); margin-top: 0.6rem; max-width: 40ch; line-height: 1.7; font-size: 0.58rem; }

/* ---------- method (02) — pinned figure, text swaps in place ---------- */

.methodpin { position: relative; height: 320vh; }
.method {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: center;
}

.method__title, .method__eyebrow { display: none; } /* shown only inside the mobile pin */
.method__steps { position: relative; min-height: 300px; }
.mstep {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1.5px solid var(--rule-mid);
  padding-left: clamp(1rem, 2vw, 1.7rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-mech), transform 0.4s var(--ease-mech);
  pointer-events: none;
}
.mstep.is-active { opacity: 1; transform: none; pointer-events: auto; border-left-color: var(--ink); }
.mstep::before {
  content: '';
  position: absolute;
  left: -1.5px; top: 0;
  width: 1.5px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-mech);
}
.mstep.is-active::before { transform: scaleY(1); }
.mstep__head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.7rem; }
.mstep__no { font-weight: 730; font-stretch: 78%; font-size: 2rem; line-height: 1; }
.mstep__tag {
  color: var(--accent-deep);
  border: 1px solid currentColor;
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  font-size: 0.56rem;
}
.mstep h3 { font-weight: 700; font-stretch: 114%; font-size: 1.2rem; line-height: 1.15; margin-bottom: 0.45rem; }
.mstep p { color: var(--ink-soft); font-size: 0.88rem; max-width: 44ch; }

.method__dots { display: flex; gap: 0.45rem; margin-top: 1.4rem; position: absolute; bottom: -2.4rem; left: clamp(1rem, 2vw, 1.7rem); }
.method__dot { width: 7px; height: 7px; border: 1px solid var(--rule-mid); border-radius: 50%; transition: background 0.3s, border-color 0.3s; }
.method__dot.is-active { background: var(--accent); border-color: var(--accent); }

.fig {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 2px;
  padding: 0.9rem 1rem 0.8rem;
  box-shadow: 6px 6px 0 rgba(22, 24, 27, 0.08);
  max-height: calc(100vh - 110px);
}
.fig__hud {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.3rem;
  font-size: 0.56rem;
}
.fig__hud-eal b { color: var(--accent-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
#fig { width: 100%; height: auto; display: block; max-height: calc(100vh - 210px); }
.fig__caption {
  display: flex;
  gap: 1.4rem;
  color: var(--ink-soft);
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.56rem;
}
.fig__key { position: relative; padding-left: 1.2rem; }
.fig__key::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 8px;
  margin-top: -4px;
}
.fig__key--water::before { background: repeating-linear-gradient(-60deg, var(--fig-water) 0 1.5px, transparent 1.5px 4px); }
.fig__key--green::before { background: repeating-linear-gradient(60deg, var(--fig-green) 0 1.5px, transparent 1.5px 3.5px); }
.fig__key--sensor::before { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); left: 2px; }

/* fig internals */
#fig { --t: 0.6s; }
#fig .site-slab { fill: #ece7da; }
#fig .site-edge { stroke: var(--ink); stroke-width: 1.5; }
#fig .site-edge-in { stroke: var(--rule-mid); stroke-width: 0.8; stroke-dasharray: 4 4; }
#fig .yard-grid line { stroke: rgba(22, 24, 27, 0.14); stroke-width: 0.8; }
#fig .bldg .face-t { fill: #f6f3ea; stroke: var(--ink); stroke-width: 1.1; }
#fig .bldg .face-s { fill: #ddd7c5; stroke: var(--ink); stroke-width: 1.1; }
#fig .bldg .face-e { fill: #cdc6b1; stroke: var(--ink); stroke-width: 1.1; }
#fig .roof-line { stroke: rgba(22, 24, 27, 0.3); stroke-width: 0.8; stroke-dasharray: 3 4; }
#fig .bldg-door { fill: #b9b19a; stroke: var(--ink); stroke-width: 0.9; }
#fig .flood-edge-full, #fig .flood-edge-small { fill: none; stroke: var(--fig-water); stroke-width: 1.3; }
#fig .flood-full, #fig .flood-edge-full,
#fig .flood-small, #fig .flood-edge-small { transition: opacity var(--t) ease; }
#fig .flow-arrows line { stroke: var(--fig-water); stroke-width: 1; }
#fig .flow-arrows { transition: opacity var(--t) ease; }
.fig-state-0 #fig .flood-small, .fig-state-0 #fig .flood-edge-small { opacity: 0; }
.fig-state-1 #fig .flood-full, .fig-state-1 #fig .flood-edge-full,
.fig-state-2 #fig .flood-full, .fig-state-2 #fig .flood-edge-full { opacity: 0; }
.fig-state-1 #fig .flow-arrows, .fig-state-2 #fig .flow-arrows { opacity: 0.35; }
#fig .fx-iv, #fig .fx-sensors { transition: opacity var(--t) ease, transform var(--t) var(--ease-mech); }
.fig-state-0 #fig .fx-iv { opacity: 0; transform: translateY(7px); }
.fig-state-0 #fig .fx-sensors, .fig-state-1 #fig .fx-sensors { opacity: 0; transform: translateY(7px); }
#fig .iv-rain-edge, #fig .iv-perm-edge { fill: none; stroke: var(--fig-green); stroke-width: 1.2; }
#fig .iv-basin { fill: none; stroke: var(--fig-green); stroke-width: 1.4; }
#fig .iv-basin-in { fill: rgba(62, 124, 75, 0.14); stroke: var(--fig-green); stroke-width: 0.9; stroke-dasharray: 3 3; }
#fig .iv-swale { fill: none; stroke: var(--fig-green); stroke-width: 1.3; stroke-dasharray: 5 4; }
#fig .sensor line { stroke: var(--ink); stroke-width: 1.1; }
#fig .sensor .s-dot { fill: var(--accent); }
#fig .sensor .s-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.55; }
.fig-state-2 #fig .sensor .s-ring { animation: sring 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sring {
  0% { transform: scale(0.55); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
#fig .fig-label line { stroke: rgba(22, 24, 27, 0.42); stroke-width: 0.8; }
#fig .fig-label circle { fill: var(--ink); }
#fig .fig-label text { font-family: var(--mono); font-size: 8.2px; letter-spacing: 0.08em; fill: var(--ink-soft); }
#fig .fig-label { transition: opacity var(--t) ease; }
.fig-state-0 #fig .lab-iv, .fig-state-0 #fig .lab-sn, .fig-state-1 #fig .lab-sn { opacity: 0; }
#fig .lab-low text, #fig .lab-low circle { fill: var(--fig-water); }
#fig .lab-low line { stroke: var(--fig-water); }
#fig .lab-iv text { fill: var(--fig-green); }
#fig .lab-iv circle { fill: var(--fig-green); }
#fig .lab-sn text { fill: var(--accent-deep); }
#fig .lab-sn circle { fill: var(--accent); }
#fig .fig-north circle { stroke: var(--rule-mid); stroke-width: 1; fill: none; }
#fig .fig-north path { stroke: var(--ink-soft); stroke-width: 1.1; fill: none; }
#fig .fig-north text { font-family: var(--mono); font-size: 8.5px; fill: var(--ink-soft); }

/* ---------- schedule (03) ---------- */

.schedule { border-top: 1.5px solid var(--ink); }
.schedule__row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.8rem;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid var(--rule-mid);
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: background 0.25s, box-shadow 0.25s;
}
.schedule__row--head { padding-block: 0.6rem; border-bottom: 1.5px solid var(--ink); }
.schedule__row:not(.schedule__row--head):hover {
  background: rgba(22, 24, 27, 0.035);
  box-shadow: inset 3px 0 0 var(--accent);
}
.schedule__item b { display: block; font-weight: 700; font-stretch: 114%; font-size: 1.05rem; color: var(--ink); }
.schedule__item i { font-style: normal; color: var(--accent-deep); font-size: 0.56rem; }

/* ---------- checks (04) ---------- */

.checks { list-style: none; border-top: 1.5px solid var(--ink); }
.check {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid var(--rule-mid);
  transition: background 0.25s;
}
.check:hover { background: rgba(22, 24, 27, 0.03); }
.check__box {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  border: 1.5px solid var(--ink);
  margin-top: 0.3rem;
  position: relative;
  background: var(--paper);
}
.check__box::before, .check__box::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 2.5px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
  transition: transform 0.3s var(--ease-mech) 0.15s;
}
.check__box::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); transition-delay: 0.28s; }
.check.is-in .check__box::before { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
.check.is-in .check__box::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
.check h3 { font-weight: 700; font-stretch: 114%; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.18; margin-bottom: 0.25rem; }
.check p { color: var(--ink-soft); font-size: 0.9rem; }
.check__no { margin-left: auto; color: var(--ink-soft); white-space: nowrap; padding-top: 0.4rem; font-size: 0.56rem; }
.checks__note { margin-top: 1.6rem; font-size: 0.95rem; color: var(--ink); font-weight: 640; max-width: 66ch; }

/* ---------- process (05) ---------- */

.proc { list-style: none; }
.proc__step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: 1.6rem 0;
  border-top: 1.5px solid var(--ink);
}
.proc__no {
  font-weight: 780;
  font-stretch: 82%;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--ink);
  transition: color 0.3s;
}
.proc__step:hover .proc__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.proc__step h3 { font-weight: 700; font-stretch: 114%; font-size: 1.2rem; margin-bottom: 0.4rem; }
.proc__step p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.7rem; max-width: 62ch; }
.proc__meta { display: block; color: var(--accent-deep); border-top: 1px dotted var(--rule-mid); padding-top: 0.55rem; font-size: 0.56rem; }

.procnote {
  margin-top: 2.2rem;
  border-top: 1px solid var(--rule-mid);
  padding-top: 1.8rem;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  color: var(--ink);
  max-width: 56ch;
  font-weight: 480;
}

/* ---------- dark CTA ---------- */

.cta {
  background: var(--ink);
  color: var(--paper);
  border-top: 1.5px solid var(--ink);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
}
.cta__inner {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.cta__title {
  font-weight: 730;
  font-stretch: 119%;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.cta__text { color: rgba(241, 237, 227, 0.68); font-size: 0.98rem; max-width: 58ch; }
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.cta__note { color: rgba(241, 237, 227, 0.5); font-size: 0.58rem; }

/* ---------- contact form ---------- */

.docform {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(22, 24, 27, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 720px;
}
.docform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.docform__field { display: flex; flex-direction: column; gap: 0.4rem; }
.docform__field label { color: var(--ink-soft); font-size: 0.56rem; }
.docform__field input,
.docform__field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--rule-mid);
  border-radius: 2px;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.docform__field input::placeholder,
.docform__field textarea::placeholder { color: rgba(76, 80, 84, 0.5); }
.docform__field input:focus,
.docform__field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(22, 24, 27, 0.14);
}
.btn-doc--submit { align-self: flex-start; }
.docform__status { color: var(--accent-deep); min-height: 1.1em; font-size: 0.6rem; }
.docform__status.is-error {
  font-size: 0.84rem;
  color: var(--accent);
  border-top: 1.5px solid var(--ink);
  padding-top: 0.7rem;
}

/* ---------- article pages (about / ai / privacy / 404) ---------- */

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 0;
}
.page-hero__meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.58rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 1200px;
}
.page-hero__title {
  font-weight: 730;
  font-stretch: 119%;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 1.2rem;
}
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.prose { max-width: 68ch; color: var(--ink-soft); font-size: clamp(0.95rem, 1.05vw, 1.02rem); }
.prose p { margin-bottom: 1.2rem; }
.prose p strong { color: var(--ink); font-weight: 680; }
.prose h2 {
  font-weight: 700;
  font-stretch: 114%;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ink);
  line-height: 1.15;
  margin: 2.4rem 0 0.9rem;
}
.prose h3 {
  font-weight: 700;
  font-stretch: 114%;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
}
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li strong { color: var(--ink); font-weight: 660; }
.prose a { color: var(--accent-deep); font-weight: 560; border-bottom: 1px solid rgba(185, 58, 3, 0.35); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose .pullquote {
  position: relative;
  padding: 1.1rem 0;
  margin: 1.8rem 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-mid);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 620;
  font-stretch: 110%;
  color: var(--ink);
  line-height: 1.35;
}

/* photographic evidence plate (about page) */
.plate {
  margin: 2rem 0;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  padding: 0.6rem;
  box-shadow: 6px 6px 0 rgba(22, 24, 27, 0.08);
}
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { padding: 0.6rem 0.2rem 0.1rem; color: var(--ink-soft); font-size: 0.56rem; }

/* ---------- footer ---------- */

.foot { border-top: 1.5px solid var(--ink); padding: 0 var(--pad) 1.8rem; }

.foot__logos { padding: 2rem 0 1.6rem; border-bottom: 1px solid var(--rule-mid); }
.foot__logos-label { display: block; color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 0.56rem; }
.foot__logos-row {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  flex-wrap: wrap;
}
.foot__logos-row img {
  height: 30px;
  width: auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.62;
  mix-blend-mode: multiply;
  transition: opacity 0.3s;
}
.foot__logos-row img:hover { opacity: 0.95; }

/* wordmark art: sits flush on a rule */
.foot__art {
  display: block;
  margin: 2.6rem 0 0;
  width: 100%;
  height: auto;
  opacity: 0.075;
}
.foot__artrule { border: 0; border-top: 1.5px solid var(--ink); margin: 0 0 1.4rem; }

.foot__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-bottom: 1.2rem;
}
.foot__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot__links a { font-weight: 560; color: var(--ink); opacity: 0.8; }
.foot__links a:hover { opacity: 1; color: var(--accent-deep); }

.foot__notice {
  max-width: 76ch;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  /* section index can overflow: fade the clipped edge so hidden items are discoverable */
  .topnav {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    border-bottom: 1.5px solid var(--ink);
    padding: 1rem 1.2rem;
  }
  .side__foot { display: none; }
  .nav { flex-direction: row; gap: 0.2rem; margin-left: auto; }
  .nav__item { margin-left: 0; padding: 0.3rem 0.6rem; font-size: 0.82rem; }
  .nav__item::before { display: none; }
  .nav__item[aria-current="page"] { color: var(--accent-deep); padding-left: 0.6rem; }
  .hero { margin-left: 0; min-height: 0; padding-top: 0.4rem; }
  .hero__band { margin-top: 0.4rem; }
  .side__foot.is-waiting { opacity: 1; visibility: visible; }
  .hero__band { min-height: 74vh; }
  .hero__card { position: relative; left: 0; top: 0; transform: none; margin: 10vh auto 3rem; }
  .twocol { grid-template-columns: 1fr; }
  .twocol__label { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
  .sec__page { margin-top: 0; margin-left: auto; }
  .methodpin { height: auto; }
  .method {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .method__steps { min-height: 0; }
  .mstep {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding-block: 1.3rem;
    border-left-color: var(--rule-mid);
  }
  .mstep.is-active { border-left-color: var(--ink); }
  .method__dots { display: none; }
  .fig { max-height: none; }
  #fig { max-height: none; }
  .cta__inner { grid-template-columns: 1fr; }
  .schedule__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 640px) {
  .side { padding: 0.85rem 1.1rem; gap: 0.8rem; }
  .nav__item { font-size: 0.78rem; padding: 0.55rem 0.45rem; white-space: nowrap; }
  .topbar { padding: 0.7rem 1.1rem; }
  .topbar .chip { font-size: 0.52rem; padding: 0.34rem 0.55rem; }
  .topnav__item { font-size: 0.54rem; padding: 0.55rem 0.4rem; }
  .hero { padding-inline: 1.1rem; }
  .hero__band { min-height: 78vh; }
  .costrow { grid-template-columns: 1fr; }
  .docform__grid { grid-template-columns: 1fr; }
  .check__no { display: none; }
  .proc__step { grid-template-columns: 1fr; gap: 0.6rem; }
  .foot__meta { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  /* figure labels render ~4px at phone width otherwise */
  #fig .fig-label text, #fig .fig-north text { font-size: 13.5px; }

  /* ---------- mobile-lite content ---------- */
  /* 01: keep clause 1.1 only, as a plain paragraph (cards + big stat stay) */
  #s01 .clause:not(:first-of-type) { display: none; }
  #s01 .clause { padding-left: 0; }
  #s01 .clause__no { display: none; }
  /* 03: drop the ITEM / COVER header row */
  .schedule__row--head { display: none; }
  /* partner logos on one line */
  .foot__logos-row { flex-wrap: nowrap; gap: 0.8rem; justify-content: space-between; }
  .foot__logos-row img { height: 17px; }
  /* 02: re-pin — one step at a time above the figure, both advance on scroll */
  #s02 { padding-top: 1.6rem; padding-bottom: 0.8rem; }
  #s02 .twocol { display: none; } /* the whole section header lives inside the pin */
  .methodpin { height: 200vh; }
  .method__eyebrow { display: block; color: var(--accent-deep); margin-bottom: 0.5rem; }
  .method__title {
    display: block;
    font-weight: 700;
    font-stretch: 114%;
    font-size: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
  }
  .method {
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    padding-top: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .method__steps { position: relative; min-height: 172px; flex: 0 0 auto; width: 100%; }
  .mstep {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    padding-block: 0;
    justify-content: center;
  }
  .mstep.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .method__dots { display: flex; position: static; margin: 0 0 0 1rem; }
  .fig { max-height: calc(100vh - 350px); }
  #fig { max-height: calc(100vh - 460px); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .r { opacity: 1; transform: none; transition-delay: 0s !important; }
  .mstep { opacity: 1; }
}
