/*
  Hollin & Pike: garden cabin configurator (Screenery template)
  ISO A1 architectural cyanotype drafting sheet: deep Prussian indigo ground with a 12 / 60 px metric grid,
  double-ruled ISO drawing borders, chalk-white line work, drafting-amber callouts, and coral redline warnings.
  Barlow Condensed for architectural technical titles, Spline Sans Mono for specs and dimensions,
  Architects Daughter for hand-lettered drafting annotations.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. ISO A1 sheet, frame, registration crosshairs and masthead
   4. Shared components: buttons, links, choices, ranges, steppers, fields
   5. Drawing line styles (shared by every SVG)
   6. Hero: panoramic cyanotype plate, scale bar and ISO title block
   7. Configurator: CAD controls, strip, viewport board, readouts, quote slip, issued stamp
   8. Specification, allowance, delivery, questions, footer
   9. Motion
  10. Narrow screens
*/

/* === 1. Tokens === */
:root {
  /* Palette */
  --prussian: #0d325e;       /* deep cyanotype ground */
  --prussian-mid: #124075;   /* cyanotype wash highlight */
  --prussian-deep: #082140;  /* recessed CAD plates and wells */
  --prussian-ink: #061830;   /* dark ink on chalk-white or amber fills */
  --line: #f4f8fc;           /* crisp chalk-white line work and body text */
  --line-dim: #b8d4f0;       /* secondary text, >9:1 on ground */
  --line-subtle: #9ec3e8;    /* subtle labels and placeholders, >7.5:1 on ground */
  --line-faint: rgb(244 248 252 / 0.34);
  --line-hair: rgb(244 248 252 / 0.16);
  --grid-minor: rgb(244 248 252 / 0.048);
  --grid-major: rgb(244 248 252 / 0.115);
  --amber: #f7c948;          /* drafting-amber callouts, passes, focus */
  --redline: #ff9c8a;        /* coral redline faults and errors */

  /* Type */
  --arch: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --hand: "Architects Daughter", "Comic Neue", "Segoe Print", cursive;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-h3: 1.75rem;
  --fs-h2: clamp(2.25rem, 1.4rem + 2.8vw, 3.6rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 3.4vw, 4.4rem);

  /* Space and shape */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 36px;
  --s-7: 56px;
  --s-8: 84px;
  --radius: 2px;
  --stroke: 1.6px;
  --rail: 22px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === 2. Base and browser surfaces === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--line-dim) var(--prussian-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--line);
  background-color: var(--prussian);
  /* Cyanotype exposure gradient over 12 px minor and 60 px major structural grid */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    radial-gradient(100% 70% at 62% 18%, rgb(25 84 148 / 0.55), transparent 68%),
    radial-gradient(120% 100% at 50% 100%, rgb(6 24 48 / 0.52), transparent 60%);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px, 100% 100%, 100% 100%;
  font-family: var(--mono);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--amber);
  accent-color: var(--amber);
  overflow-x: clip;
}
::selection { background: var(--amber); color: var(--prussian-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--prussian-deep); }
::-webkit-scrollbar-thumb { background: var(--line-dim); border: 3px solid var(--prussian-deep); border-radius: 6px; }
:focus-visible { outline: 2px dashed var(--amber); outline-offset: 3px; }
a { color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
a:hover { color: var(--amber); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }

.arch {
  font-family: var(--arch);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.98;
  font-weight: 600;
}
.hand { font-family: var(--hand); letter-spacing: 0.01em; line-height: 1.15; }
.small { font-size: var(--fs-sm); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 20; padding: var(--s-2) var(--s-4); background: var(--amber); color: var(--prussian-ink); font-weight: 600; }
.skip:focus { top: var(--s-4); }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; }

/* === 3. ISO A1 sheet, double-ruled frame, crosshairs and masthead === */
.sheet {
  position: relative;
  margin: clamp(10px, 1.4vw, 22px);
  border: 2px solid var(--line);
  outline: 1px solid var(--line-faint);
  outline-offset: 5px;
  padding: var(--rail) calc(var(--rail) + var(--gutter));
  box-shadow: 0 24px 60px rgb(4 16 34 / 0.45);
}

.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--line-dim);
}
.frame__bar {
  position: absolute;
  left: var(--rail);
  right: var(--rail);
  height: var(--rail);
  display: flex;
}
.frame__top { top: 0; border-bottom: 1px solid var(--line-faint); }
.frame__bottom { bottom: 0; border-top: 1px solid var(--line-faint); }
.frame__bar span {
  flex: 1;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line-hair);
}
.frame__bar span:first-child { border-left: 0; }

.frame__rail {
  position: absolute;
  top: var(--rail);
  bottom: var(--rail);
  width: var(--rail);
  display: flex;
  flex-direction: column;
}
.frame__left { left: 0; border-right: 1px solid var(--line-faint); }
.frame__right { right: 0; border-left: 1px solid var(--line-faint); }
.frame__rail span {
  flex: 1;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line-hair);
}
.frame__rail span:first-child { border-top: 0; }

/* Corner registration crosshairs inside the 22x22 ISO frame corners */
.reg {
  position: absolute;
  width: var(--rail);
  height: var(--rail);
  display: grid;
  place-items: center;
}
.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--amber);
}
.reg::before { width: 10px; height: 1px; }
.reg::after { width: 1px; height: 10px; }
.reg--tl { top: 0; left: 0; border-right: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.reg--tr { top: 0; right: 0; border-left: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.reg--bl { bottom: 0; left: 0; border-right: 1px solid var(--line-faint); border-top: 1px solid var(--line-faint); }
.reg--br { bottom: 0; right: 0; border-left: 1px solid var(--line-faint); border-top: 1px solid var(--line-faint); }

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: 12px 0;
  border-bottom: 1.6px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; }
.brand__mark .thin { stroke-width: 1; stroke: var(--line-faint); }
.brand__mark .accent { stroke: var(--amber); }
.brand__stack { display: grid; gap: 2px; }
.brand__name { font-family: var(--arch); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; }
.brand__sub { font-size: 0.6875rem; color: var(--line-dim); letter-spacing: 0.08em; }
.nav { display: flex; gap: var(--s-5); margin-left: auto; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { text-decoration: none; padding: var(--s-2) 0; min-height: 36px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--amber); text-decoration: underline; }

/* === 4. Shared components === */
.sheet-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
}
.pip {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  flex: none;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-5);
  border: 1.6px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--solid { background: var(--line); color: var(--prussian-ink); }
a.btn--solid:hover, button.btn--solid:hover { background: var(--amber); border-color: var(--amber); color: var(--prussian-ink); }
.btn--line { background: rgb(8 33 64 / 0.5); color: var(--line); }
.btn--line:hover { background: rgb(244 248 252 / 0.14); border-color: var(--amber); color: var(--amber); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.link { background: none; border: 0; padding: var(--s-2) 0; color: var(--line); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; }
.link:hover { color: var(--amber); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  align-items: end;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--line-faint);
}
.sec-head__title { display: grid; gap: var(--s-2); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-note { color: var(--line-dim); max-width: 62ch; font-size: var(--fs-sm); }
section { padding: var(--s-7) 0; border-bottom: 1.6px solid var(--line-faint); }

/* Radio cards drawn as small framed CAD selection cells */
.choices { display: grid; gap: var(--s-2); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
  padding: var(--s-3); border: 1px solid var(--line-faint); border-radius: var(--radius);
  background: rgb(8 33 64 / 0.45);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice__box svg { width: 52px; height: auto; margin-bottom: var(--s-2); fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.choice__box svg .thin { stroke-width: 1; }
.choice__name { font-weight: 600; font-size: var(--fs-sm); }
.choice__sub { font-size: var(--fs-xs); color: var(--line-dim); }
.choice:hover .choice__box { border-color: var(--line); background: rgb(18 64 117 / 0.6); }
.choice input:checked + .choice__box { border: 1.6px solid var(--amber); background: rgb(247 201 72 / 0.11); }
.choice input:checked + .choice__box .choice__name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.choice input:focus-visible + .choice__box { outline: 2px dashed var(--amber); outline-offset: 2px; }
.choice--row .choice__box { justify-content: center; min-height: 56px; }

/* Ranges drawn as architectural dimension lines with reticle thumb */
.range { display: grid; gap: var(--s-1); }
.range + .range { margin-top: var(--s-4); }
.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.range__head label { font-weight: 600; font-size: var(--fs-sm); }
.range__head output { font-variant-numeric: tabular-nums; color: var(--amber); font-size: var(--fs-sm); font-weight: 600; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.range input::-moz-range-track { height: 2px; background: var(--line); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--prussian-deep); border: 2px solid var(--amber); box-shadow: 0 0 0 3px var(--prussian-deep); }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--prussian-deep); border: 2px solid var(--amber); }
.range input:focus-visible { outline-offset: 0; }
.range__ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--line-dim); font-variant-numeric: tabular-nums; margin-top: -4px; }
.range__ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.hint { font-size: var(--fs-xs); color: var(--line-dim); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-faint); border-radius: var(--radius); background: rgb(8 33 64 / 0.5); cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover:not([disabled]) { border-color: var(--amber); color: var(--amber); background: rgb(247 201 72 / 0.1); }
.icon-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; row-gap: var(--s-1); text-align: center; }
.stepper__label { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--line-dim); text-align: left; text-transform: uppercase; letter-spacing: 0.06em; }
.stepper output { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--amber); }

/* Form fields: underlined CAD title-block entry */
.field { display: grid; gap: var(--s-1); align-content: start; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0; margin-bottom: var(--s-1); }
.opt { font-weight: 400; color: var(--line-dim); text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .select select {
  width: 100%; min-height: 46px; padding: var(--s-2) var(--s-3);
  background: rgb(6 24 48 / 0.68); border: 1px solid var(--line-hair); border-bottom: 1.6px solid var(--line-dim); border-radius: var(--radius) var(--radius) 0 0;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--line-subtle); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible, .select select:focus-visible { outline: 0; border-bottom-color: var(--amber); border-color: var(--amber); background: rgb(6 24 48 / 0.9); }
.field [aria-invalid="true"], .field.is-invalid .choice__box { border-color: var(--redline); }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: var(--prussian-deep); color: var(--line); }
.select .i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
.err { min-height: 1.3em; font-size: var(--fs-xs); color: var(--redline); }
.err:empty { min-height: 0; }

/* === 5. Drawing line styles (every SVG) === */
.ln { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ln.thin, .ln.board { stroke-width: 0.95; }
.ln.board { stroke: var(--line-faint); }
.ln.faint { stroke: var(--line-faint); stroke-width: 1; stroke-dasharray: 3 6; }
.ln.open { stroke-width: 1.35; }
.glass { fill: rgb(244 248 252 / 0.1); }
.hatch-line { stroke: var(--line); stroke-width: 0.9; fill: none; }
.hatch-line.faint { stroke: var(--line-faint); }
.ah { fill: var(--line); }
.ah-amber { fill: var(--amber); }
.dim { fill: none; stroke: var(--line-dim); stroke-width: 1.05; }
.leader { fill: none; stroke: var(--line-dim); stroke-width: 1.05; }
.leader--amber { stroke: var(--amber); stroke-width: 1.25; }
.callout-ring { fill: var(--prussian-deep); stroke: var(--amber); stroke-width: 1.6; }
.t-callout { fill: var(--amber); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.inset-box { fill: rgb(8 33 64 / 0.72); stroke: var(--line-faint); stroke-width: 1.2; }
.limit { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 10 5; }
.limit.over { stroke: var(--redline); }
.ring { fill: none; stroke: var(--redline); stroke-width: 1.8; stroke-dasharray: 4 4; }
.t-dim { fill: var(--line); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.t-note { fill: var(--line); font-family: var(--hand); font-size: 19px; }
.t-note.small { font-size: 14px; fill: var(--line-dim); }
.t-note.warn, .t-dim.warn { fill: var(--redline); }
.t-note.ok, .t-dim.ok, .t-amber { fill: var(--amber); }
.t-label { fill: var(--line); font-family: var(--arch); font-size: 24px; letter-spacing: 0.08em; font-weight: 600; }
.t-small { fill: var(--line-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.sec { stroke: var(--line); stroke-width: 1.2; fill: none; }
.sec--gap { fill: rgb(6 24 48 / 0.7); }
.sec--solid { fill: var(--line); }
.sec--timber { fill: var(--prussian); }
.wall { stroke: var(--line); stroke-width: 1.6; fill-rule: evenodd; }
.cut { fill: var(--prussian-deep); }
.wash { fill: rgb(244 248 252 / 0.06); }
.wash--char { fill: rgb(4 16 32 / 0.62); }
.grass { fill: none; stroke: var(--line); stroke-width: 1.15; }

/* === 6. Hero: ISO A1 panoramic architectural drafting plate === */
.hero {
  padding: 20px 0 24px;
  display: grid;
  gap: 18px;
}

/* Asymmetric architectural plate: technical lettering column paired with wide panoramic isometric + elevation drawing */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.38fr);
  gap: var(--s-4);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: var(--s-4);
  align-content: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 3vw, 4.1rem);
  max-width: 14ch;
  letter-spacing: 0.02em;
}
.lede {
  color: var(--line-dim);
  max-width: 44ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-1);
}

.hero__drawing {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.hero__drawing svg {
  width: 100%;
  max-height: 465px;
  height: auto;
  overflow: visible;
}

/* Bottom strip of Sheet 01: Scale bar + spec strip on left, ISO title block on right */
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
}
.hero__meta {
  display: grid;
  gap: 12px;
  align-content: end;
}

/* Graphic scale bar (SCALE 1:50) */
.scalebar {
  max-width: 290px;
  display: grid;
  gap: 4px;
}
.scalebar__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 600;
}
.scalebar__bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 8px;
  border: 1.2px solid var(--line);
}
.sb-fill { background: var(--line); }
.sb-open { background: var(--prussian-deep); }
.scalebar__nums {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--line-dim);
  font-variant-numeric: tabular-nums;
}

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.hero__facts li {
  display: grid;
  gap: 2px;
  padding: var(--s-3);
  border: 1px solid var(--line-faint);
  border-top: 2px solid var(--line);
  background: rgb(8 33 64 / 0.55);
  font-size: var(--fs-xs);
  color: var(--line-dim);
}
.fact-k {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 600;
}
.hero__facts strong {
  color: var(--line);
  font-family: var(--arch);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  line-height: 1.1;
}

.titleblock {
  justify-self: end;
  align-self: end;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0;
  border: 2px solid var(--line);
  outline: 1px solid var(--line-faint);
  outline-offset: 3px;
  font-size: var(--fs-xs);
  background: var(--prussian-deep);
}
.tb th, .tb td, .rev th, .rev td { padding: 5px 10px; border: 1px solid var(--line-faint); text-align: left; vertical-align: top; }
.tb th, .rev thead th { color: var(--line-dim); font-weight: 500; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; }
.tb td { font-weight: 600; color: var(--line); }
.rev caption { text-align: left; padding: 5px 10px; font-family: var(--arch); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--line-faint); border-bottom: 0; }
.titleblock .rev { border-left: 2px solid var(--line); }

/* === 7. Configurator === */
.config__grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.controls { display: grid; gap: var(--s-4); }
.ctl {
  margin: 0;
  padding: var(--s-4);
  border: 1px solid var(--line-faint);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgb(8 33 64 / 0.72);
  min-width: 0;
}
.ctl legend {
  padding: 0 var(--s-2);
  font-family: var(--arch);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.ctl .hint + .strip, .ctl .choices + .hint { margin-top: var(--s-3); }

.strip { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); margin-top: var(--s-2); border: 1.6px solid var(--line); background: var(--prussian-deep); }
.strip button {
  position: relative; min-height: 52px; min-width: 0; padding: 0; border: 0; border-left: 1px solid var(--line-faint);
  background: transparent; cursor: pointer; font-size: 0.75rem; color: var(--line-dim);
  display: grid; place-items: end center; padding-bottom: 4px;
}
.strip button:first-child { border-left: 0; }
.strip button:hover:not([disabled]) { background: rgb(244 248 252 / 0.1); }
.strip button[aria-pressed="true"]::before { content: ""; position: absolute; left: 20%; right: 20%; top: 8px; height: 22px; border: 1.4px solid var(--line); background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, rgb(244 248 252 / 0.14); }
.strip button[aria-pressed="true"] { color: var(--amber); font-weight: 600; }
.strip button.is-door { background: rgb(247 201 72 / 0.16); color: var(--amber); cursor: default; font-weight: 600; }
.strip button.is-door::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 20px; border: 1.4px solid var(--amber); border-bottom: 0; }
.strip button.is-door + .is-door::before { left: -1px; }
.mover { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-sm); }
.link--reset { justify-self: start; }

.desk { display: grid; gap: var(--s-4); min-width: 0; }
.drawing {
  margin: 0;
  border: 2px solid var(--line);
  background: rgb(8 33 64 / 0.78);
  padding: 0 var(--s-2) var(--s-2);
}
.drawing__bar,
.plate__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  margin: 0 calc(var(--s-2) * -1) var(--s-2);
  border-bottom: 1px solid var(--line-faint);
  background: rgb(6 24 48 / 0.7);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--line-dim);
}
.drawing__bar span:last-child,
.plate__bar span:last-child { color: var(--amber); font-weight: 600; }
.drawing svg { width: 100%; height: auto; }
.drawing .t-dim { font-size: 14px; }
.drawing svg.is-tall .t-dim { font-size: 22px; }
.drawing svg.is-tall .t-small { font-size: 18px; }
.drawing svg.is-tall .t-label { font-size: 30px; }
.drawing svg.is-tall .t-note.small { font-size: 22px; }
.drawing .flash { animation: flash 1.1s var(--ease); }

.readouts { display: grid; grid-template-columns: 1fr 1.25fr 0.9fr; gap: var(--s-4); align-items: start; }
.panel {
  padding: var(--s-4);
  border: 1px solid var(--line-faint);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgb(8 33 64 / 0.78);
  display: grid;
  gap: var(--s-3);
}
.panel h3 { font-size: var(--fs-xl); }
.verdict { font-weight: 600; font-size: var(--fs-sm); }
.panel--check[data-ok="false"] { border-top-color: var(--redline); }
.panel--check[data-ok="true"] { border-top-color: var(--amber); }
.panel--check[data-ok="false"] .verdict { color: var(--redline); }
.panel--check[data-ok="true"] .verdict { color: var(--amber); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.checks li { display: flex; gap: var(--s-2); align-items: baseline; }
.checks li .i { translate: 0 3px; color: var(--amber); }
.checks li[data-ok="false"] { color: var(--redline); }
.checks li[data-ok="false"] .i { color: var(--redline); }
.advice { font-size: var(--fs-xs); color: var(--line-dim); }
.sum { width: 100%; font-size: var(--fs-sm); }
.sum th, .sum td { padding: 4px 0; text-align: left; font-weight: 400; vertical-align: top; }
.sum td { text-align: right; white-space: nowrap; padding-left: var(--s-3); }
.sum tbody th { color: var(--line-dim); }
.sum tbody th small { display: block; font-size: 0.75rem; color: var(--line-subtle); }
.sum tfoot th, .sum tfoot td { padding-top: var(--s-2); border-top: 1.6px solid var(--line); font-weight: 700; font-size: var(--fs-md); }
.sum tfoot td { color: var(--amber); }
.lead { display: flex; gap: var(--s-2); font-size: var(--fs-xs); color: var(--line-dim); }
.lead .i { translate: 0 2px; color: var(--amber); }
.rev--live { width: 100%; font-size: var(--fs-xs); }
.rev--live td:first-child { font-weight: 700; color: var(--amber); width: 3em; }
.rev--live tr.is-new td { animation: rev-in .8s var(--ease); }

.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-6);
  margin-top: var(--s-6);
  padding: var(--s-6);
  border: 2px solid var(--line);
  outline: 1px solid var(--line-faint);
  outline-offset: 4px;
  background: rgb(8 33 64 / 0.8);
}
.quote__intro { display: grid; gap: var(--s-4); align-content: start; }
.quote__intro h3 { font-size: var(--fs-h3); }
.quote__intro p { color: var(--line-dim); max-width: 46ch; font-size: var(--fs-sm); }
.quote__ref { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); margin: 0; padding: var(--s-3) 0 0; border-top: 1px dashed var(--line-faint); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.quote__ref dt { color: var(--amber); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.06em; }
.quote__ref dd { margin: 0; font-weight: 600; }
.qform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.field--wide { grid-column: 1 / -1; }
.qform__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.status { font-size: var(--fs-sm); color: var(--line-dim); }
.status.is-error { color: var(--redline); }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 1.1em; height: 2px; margin-left: 10px; vertical-align: middle; background: currentColor; transform-origin: left; animation: pencil 1s var(--ease) infinite; }
.issued { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.issued[hidden] { display: none; }
.issued:focus { outline: none; }
.issued h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.issued p { color: var(--line-dim); max-width: 56ch; margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.issued__stamp { width: 220px; height: auto; rotate: -6deg; }
.issued__stamp rect { fill: none; stroke: var(--amber); stroke-width: 3; }
.issued__stamp rect.thin { stroke-width: 1; }
.issued__stamp .t-stamp { fill: var(--amber); font-family: var(--arch); font-size: 44px; letter-spacing: 0.16em; font-weight: 700; }
.issued__stamp .t-dim { fill: var(--amber); }
.quote.is-done .qform, .quote.is-done .quote__intro { display: none; }

/* === 8. Specification, allowance, delivery, questions, footer === */
.plate {
  border: 1.6px solid var(--line);
  background: rgb(8 33 64 / 0.72);
  padding: 0 var(--s-3) var(--s-4);
}
.plate .plate__bar { margin: 0 calc(var(--s-3) * -1) var(--s-3); }

.spec__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.detail { margin: 0; }
.detail svg { width: 100%; height: auto; }
.detail .t-note { font-size: 24px; }
.detail .t-dim { font-size: 18px; }
.detail figcaption { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed var(--line-faint); font-size: var(--fs-xs); color: var(--line-dim); max-width: 60ch; }
.spec__notes { display: grid; gap: var(--s-5); }
.spec__notes h3 { font-size: var(--fs-h3); }
.notes { margin: 0; padding-left: 1.6em; display: grid; gap: var(--s-3); font-size: var(--fs-sm); max-width: 68ch; }
.notes li::marker { font-family: var(--mono); font-weight: 700; color: var(--amber); }
.spec-table { width: 100%; font-size: var(--fs-sm); border: 2px solid var(--line); background: rgb(8 33 64 / 0.65); }
.spec-table caption { text-align: left; font-family: var(--arch); font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); padding-bottom: var(--s-2); }
.spec-table th, .spec-table td { padding: 9px 12px; border: 1px solid var(--line-faint); text-align: left; }
.spec-table thead th { color: var(--line-dim); font-weight: 600; text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.06em; background: rgb(6 24 48 / 0.65); }

.allow__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.envelope { margin: 0; }
.envelope svg { width: 100%; height: auto; }
.allow__text { display: grid; gap: var(--s-4); max-width: 64ch; font-size: var(--fs-sm); }
.rules { margin: 0; display: grid; gap: var(--s-3); }
.rules dt { font-family: var(--arch); font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
.rules dd { margin: 0 0 var(--s-2); padding-left: var(--s-4); border-left: 2px solid var(--line-faint); color: var(--line-dim); font-size: var(--fs-sm); }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; border-top: 2px solid var(--line); }
.day { position: relative; padding: var(--s-5) var(--s-4) var(--s-4); border-left: 1px dashed var(--line-faint); display: grid; gap: var(--s-3); align-content: start; }
.day:first-child { border-left: 0; }
.day::before { content: ""; position: absolute; top: -8px; left: -1px; width: 2px; height: 14px; background: var(--amber); }
.day:first-child::before { left: 0; }
.day__num { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--amber); font-weight: 700; }
.day svg { width: 100%; max-width: 190px; height: auto; }
.day h3 { font-size: var(--fs-xl); }
.day p { font-size: var(--fs-sm); color: var(--line-dim); }
.prep { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: var(--s-5); padding: var(--s-5); border: 1px solid var(--line-faint); background: rgb(8 33 64 / 0.65); }
.prep h3 { font-size: var(--fs-h3); color: var(--amber); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); }
.ticks li { display: flex; gap: var(--s-3); }
.ticks .i { color: var(--amber); translate: 0 4px; }

.faq { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.85fr); column-gap: var(--s-6); align-items: start; }
.faq .sec-head { grid-column: 1 / -1; }
.faq__list { border-top: 2px solid var(--line); }
.ask { position: relative; padding: 56px 52px; display: grid; gap: var(--s-3); font-size: var(--fs-sm); color: var(--line-dim); }
.ask__cloud { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ask h3 { font-size: var(--fs-xl); color: var(--amber); }
.ask a { color: var(--line); display: inline-flex; align-items: center; min-height: 28px; padding: 4px 0; }
.faq details { border-bottom: 1px solid var(--line-faint); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 60px; padding: var(--s-3) 0; cursor: pointer; list-style: none; font-family: var(--arch); font-size: 1.45rem; letter-spacing: 0.03em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--amber); transition: rotate .35s var(--ease); }
.faq details[open] summary .i { rotate: 45deg; }
.faq details p { padding: 0 0 var(--s-5); max-width: 68ch; color: var(--line-dim); font-size: var(--fs-sm); }

.foot { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: var(--s-6) 0 var(--s-5); border: 2px solid var(--line); background: var(--prussian-deep); font-size: var(--fs-sm); }
.foot__block { padding: var(--s-4); border-left: 1px solid var(--line-faint); display: grid; gap: var(--s-2); align-content: start; color: var(--line-dim); }
.foot__block:first-child { border-left: 0; }
.foot__block a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 0; }
.foot__name { font-size: var(--fs-xl); color: var(--line); letter-spacing: 0.06em; }

/* === 9. Motion === */
@media (prefers-reduced-motion: no-preference) {
  .iso [pathLength] { stroke-dasharray: 1; animation: draw 1.35s var(--ease) both; animation-delay: var(--d, 0s); }
  .iso .ln.faint[pathLength] { stroke-dasharray: 3 6; animation: none; }
  .iso .glass, .iso text, .iso .callout-ring, .iso .inset-box { animation: fade .9s var(--ease) both; animation-delay: 1.9s; }
  .drawing .redrawn { stroke-dasharray: 1; animation: draw .85s var(--ease) both; }
}
:root[data-static] .iso * { animation: none !important; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes flash { from { fill: var(--amber); } }
@keyframes rev-in { from { background: rgb(247 201 72 / 0.25); } }
@keyframes pencil { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* === 10. Narrow screens === */
@media (max-width: 1200px) {
  .hero__copy { max-width: 420px; }
  .hero__foot { grid-template-columns: 1fr; }
  .titleblock { justify-self: start; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .panel--rev { grid-column: 1 / -1; }
  .nav { gap: var(--s-4); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .masthead__cta { margin-left: auto; }
  .hero__stage { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero__copy { max-width: 62ch; }
  .hero__drawing svg { max-height: none; }
  .titleblock { justify-self: stretch; }
  .config__grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .link--reset { grid-column: 1 / -1; }
  .spec__grid, .allow__grid, .faq { grid-template-columns: 1fr; gap: var(--s-6); }
  .days { grid-template-columns: 1fr 1fr; }
  .day:nth-child(3) { border-left: 0; }
  .day:nth-child(n+3) { border-top: 1px dashed var(--line-faint); }
  .quote { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 768px) {
  :root { --rail: 16px; --fs-h3: 1.5rem; }
  .sheet { margin: 6px; outline: 0; padding: var(--rail) calc(var(--rail) + 14px); }
  .frame { font-size: 0.5625rem; }
  .frame__right { display: none; }
  .reg--tr, .reg--br { border-left: 0; }
  .frame__top span:nth-child(n+5),
  .frame__bottom span:nth-child(n+5) { display: none; }
  .sheet { padding-right: 16px; }
  .masthead { gap: var(--s-3); }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.25rem; }
  .masthead__cta { padding: 0 var(--s-3); }
  section { padding: var(--s-6) 0; }
  .hero__facts { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr; outline: 0; }
  .titleblock .rev { border-left: 0; border-top: 2px solid var(--line); }
  .controls { grid-template-columns: 1fr; }
  .readouts { grid-template-columns: 1fr; }
  .quote { padding: var(--s-4); outline: 0; }
  .qform { grid-template-columns: 1fr; }
  .choices--3.choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field .choices--3 { grid-template-columns: 1fr; }
  .issued { grid-template-columns: 1fr; gap: var(--s-4); }
  .issued__stamp { width: 180px; }
  .days { grid-template-columns: 1fr; }
  .day, .day:nth-child(3) { border-left: 0; padding-left: var(--s-2); border-top: 1px dashed var(--line-faint); }
  .day:first-child { border-top: 0; }
  .day::before { display: none; }
  .prep { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot__block { border-left: 0; border-top: 1px solid var(--line-faint); }
  .foot__block:first-child { border-top: 0; }
  .drawing__bar, .plate__bar { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 420px) {
  .masthead__cta { display: none; }
  .ask { padding: 44px 36px; }
}
