@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  /* ISO 3098 drawing lettering, for everything that sits on a drawing */
  font-family: "osifont";
  src: url("/fonts/osifont-lgpl3fe.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: light;
  /* layout space and paper */
  --ground: #e4e6e5;
  --sheet: #ffffff;
  --ink: #161819;
  --ink-2: #3d4347;
  --ink-3: #5b6267;
  --rule: #c7ccce;
  --rule-2: #e2e5e6;
  /* the drawing's own colours, each with one job */
  --glass: #1d7f80;
  --glass-tint: #d8ecea;
  --select: #1f5fbf;
  --select-tint: #e2ebf9;
  --markup: #cf3427;
  --laser: #e0322c;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;
  --iso: "osifont", "Barlow", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(64px, 9vw, 128px);
  --page: 1200px;
  --hang: 0 1px 2px rgb(16 20 24 / 0.1), 0 14px 30px -16px rgb(16 20 24 / 0.32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #a9b0b3 var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font: 400 1.125rem/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--select-tint); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

:focus-visible { outline: 2.5px solid var(--select); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.25rem + 3.1vw, 3.4rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 1.75vw, 2.8rem); line-height: 1.06; letter-spacing: -0.016em; }
p { margin: 0; text-wrap: pretty; }

main > section {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
main > section + section { margin-top: var(--gap); }

.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head p { max-width: 60ch; color: var(--ink-2); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); }

/* ------------------------------------------------------------------ top bar */

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 36px);
  padding: 10px max(var(--gutter), calc((100% - var(--page)) / 2));
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; color: var(--ink); flex: none; }
.brand__word { font-weight: 600; font-size: 1.22rem; letter-spacing: 0.12em; text-transform: uppercase; }
/* on a phone the headline sits right under the logo: the logo comes up to meet it */
@media (max-width: 640px) {
  .brand { gap: 11px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { font-size: 1.3rem; letter-spacing: 0.13em; }
}
/* the full "Join the mailing list" needs about 402px beside the phone logo; narrower, it reads
   "Join the list" in the bar only. The label sits in one span: the button is a flex box, and
   bare text beside a span would lose its spaces */
@media (max-width: 409px) {
  .top__more { display: none; }
}

/* ------------------------------------------------------------------ buttons and fields */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0.7em 1.35em;
  border: 0; border-radius: 4px;
  font: 600 1.04rem/1 var(--sans);
  letter-spacing: 0.01em;
  color: #fff; background: var(--ink);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--select); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #5d6366; cursor: progress; }
.btn--sm { min-height: 40px; padding: 0.55em 1em; font-size: 0.96rem; }
.btn-quiet {
  justify-self: start;
  border: 0; background: none; padding: 8px 0;
  font: 500 0.98rem var(--sans); color: var(--ink-2);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  cursor: pointer;
}
.btn-quiet:hover { color: var(--select); }

.field { display: grid; gap: 6px; min-width: 0; }
.field label, .cell label {
  font: 400 0.78rem/1.2 var(--iso); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3);
}
.opt { text-transform: none; letter-spacing: 0.02em; }
.field input {
  width: 100%; min-height: 50px;
  padding: 0.68em 0.8em 0.6em;
  font: 500 1.1rem/1.2 var(--sans); color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink-3); border-radius: 4px;
  caret-color: var(--select);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--select); box-shadow: 0 0 0 3px var(--select-tint); }
input::placeholder { color: #6b7276; }
input[aria-invalid="true"] { border-color: var(--markup) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.join__note { font-size: 0.95rem; color: var(--ink-3); }
.join__status { font-weight: 600; font-size: 1rem; }
.join__status:empty { display: none; }
.join__status.is-ok { color: var(--glass); }
.join__status.is-bad { color: var(--markup); }

/* ------------------------------------------------------------------ sheets: plain white pages */

.sheet, .paper {
  position: relative;
  background: var(--sheet);
  box-shadow: var(--hang);
}

/* ------------------------------------------------------------------ hero sheet */

.hero { margin-top: clamp(20px, 3vw, 34px); }
.sheet--hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  grid-template-areas: "plan plan" "text form";
  column-gap: clamp(24px, 3.4vw, 48px);
  padding: 30px clamp(26px, 3vw, 40px) 30px;
}
.measure { grid-area: plan; margin: 0; position: relative; }
.measure__stage { position: relative; }
.measure__3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; touch-action: none; cursor: grab;
  transition: opacity 0.3s var(--ease);
}
.measure__3d:active { cursor: grabbing; }
.measure .plan { transition: opacity 0.45s var(--ease), visibility 0s linear 0s; }
.measure.is-3d .measure__3d { opacity: 1; transition: none; }
.measure.is-3d .plan { opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s; }
.measure.is-3d .tip { display: none !important; }
/* the panel drawings that follow the 3D: one page per panel, turned in place */
.measure .psheet {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.measure .psheet--tall { display: none; }
.measure.is-panels .psheet { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.measure.is-3d.is-panels .measure__3d { opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.ps-page { opacity: 0; transition: opacity 0.18s linear; }
.ps-page.is-on { opacity: 1; }
.psheet text { font-family: var(--iso); }
.psheet .ps-glass { fill: var(--glass-tint); stroke: var(--glass); stroke-width: 1.5; stroke-linejoin: round; }
.psheet .ps-cons { stroke: var(--ink-3); stroke-width: 0.9; stroke-dasharray: 6 4; }
.psheet .ps-ext { fill: none; stroke: var(--ink-3); stroke-width: 0.8; }
.psheet .ps-dim, .psheet .ps-lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.psheet .ps-tickmark { stroke: var(--ink); stroke-width: 1.4; }
.psheet .ps-arrowhead { fill: var(--ink); }
.psheet .ps-t { font-size: 13px; fill: var(--ink); }
.psheet .ps-s { font-size: 11px; letter-spacing: 0.08em; fill: var(--ink-3); }
.psheet .ps-view { font-size: 13px; letter-spacing: 0.08em; fill: var(--ink); }
.psheet .ps-sub { font-size: 12px; letter-spacing: 0.04em; fill: var(--ink-3); }
.psheet .ps-note { font-size: 12px; letter-spacing: 0.03em; fill: var(--ink-2); }
.psheet .ps-id { font-size: 46px; fill: var(--ink); }
.psheet .ps-head { font-size: 16px; letter-spacing: 0.04em; fill: var(--ink); }
.psheet .ps-spigot { fill: #5f686c; }
.psheet .ps-plate { fill: #4a5155; }
.psheet .ps-ffl { stroke: var(--ink); stroke-width: 1.2; }
.psheet .ps-kwall { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.psheet .ps-krun { fill: none; stroke: #b5bcbf; stroke-width: 2.4; }
.psheet .ps-kjoint { stroke: #fff; stroke-width: 1.6; }
.psheet .ps-khi {
  fill: none; stroke: var(--glass); stroke-width: 5; stroke-dasharray: 0 1000;
  transition: stroke-dashoffset 0.45s var(--ease), stroke-dasharray 0.45s var(--ease);
}
.psheet .ps-kid { font-size: 13px; fill: var(--glass); }
.psheet .ps-khi.ps-khi--fixed { stroke-dasharray: none; transition: none; }
.a3 .plan .tag { pointer-events: none; }
.psheet--tall .ps-t { font-size: 21px; }
.psheet--tall .ps-s { font-size: 17px; }
.psheet--tall .ps-view { font-size: 21px; }
.psheet--tall .ps-sub { font-size: 19px; }
.psheet--tall .ps-note { font-size: 17px; }
.psheet--tall .ps-id { font-size: 64px; }
.psheet--tall .ps-head { font-size: 24px; }
.psheet--tall .ps-kid { font-size: 20px; }
.psheet--tall .ps-dim, .psheet--tall .ps-lead { stroke-width: 1.4; }
.psheet--tall .ps-ext { stroke-width: 1.1; }
.psheet--tall .ps-glass { stroke-width: 2; }
.psheet--tall .ps-khi { stroke-width: 7; }
/* the hero's own controls: quiet buttons, a light outline and a soft hover, so they read as
   something to press without competing with the drawing; the view on show sits filled */
.measure__ctrl { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.measure__ctrl button {
  font: 400 0.82rem/1 var(--iso); letter-spacing: 0.04em; color: var(--ink-2);
  background: #fff; border: 1px solid var(--rule); border-radius: 3px;
  padding: 7px 11px 6px; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.measure__ctrl button:hover { border-color: var(--select); color: var(--select); background: var(--select-tint); }
.measure__ctrl button[aria-pressed="true"] { color: var(--ink); background: var(--ground); border-color: var(--ink-3); cursor: default; }
.measure__ctrl .next, .measure__ctrl .replay { margin-left: 6px; }
.plan {
  display: block;
  width: 100%;
  height: auto;
  max-height: max(280px, calc(100svh - 470px));
  overflow: visible;
}
/* the words for each view are spoken to screen readers only; nothing captions the hero on screen */
.measure__what { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the script holds this row at the height of every button it can show (holdRow in app.js), and
   the buttons sit at its top, so the first row stays put when a second one fills in */
.measure__cap {
  display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; justify-content: flex-end; gap: 6px 18px;
  margin-top: 2px;
  font: 400 0.82rem/1.3 var(--iso); letter-spacing: 0.04em; color: var(--ink-3);
}
.hint { text-transform: none; letter-spacing: 0.01em; }
.hero__text { grid-area: text; margin-top: clamp(16px, 2vw, 24px); display: grid; gap: 12px; align-content: end; }
.offer { max-width: 50ch; color: var(--ink-2); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.24rem); line-height: 1.45; }
.join--hero {
  grid-area: form;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "field btn" "status status";
  align-items: end;
  gap: 8px 10px;
  margin-top: 18px;
}
.join--hero .field { grid-area: field; }
.join--hero .btn { grid-area: btn; }
.join--hero .join__status { grid-area: status; }

/* plan drawing (SVG) */
.plan .hatch-line { stroke: var(--ink-3); stroke-width: 1; }
.plan .p-wall { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.plan .p-wall-hatch { stroke: none; }
.plan .p-side { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.plan .p-ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 5 7; opacity: 0; }
.plan .p-edge { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.plan .pt { fill: var(--laser); transform-box: fill-box; transform-origin: center; }
.plan .p-glass { fill: none; stroke: var(--glass); stroke-width: 6; }
.plan .p-gap { stroke: #fff; stroke-width: 3.5; }
.plan .p-joint { stroke: var(--ink); stroke-width: 1.2; }
.plan .p-post { fill: var(--ink); }
.plan .p-tp { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.plan .p-tpt { font-family: var(--iso); font-size: 13px; letter-spacing: 0.06em; fill: var(--ink-2); }
.plan--tall .p-tpt { font-size: 18px; }
.plan .p-tpl { stroke: var(--ink-2); stroke-width: 1; }
.plan .p-leader { stroke: var(--ink); stroke-width: 1.1; }
.plan .p-dot { fill: var(--ink); }
.plan .tag { cursor: pointer; outline: none; }
.plan .tag rect { fill: #fff; stroke: var(--ink); stroke-width: 1.3; transition: fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.plan .tag:hover rect, .plan .tag.is-open rect { fill: var(--select-tint); stroke: var(--select); }
.plan .tag:focus-visible rect { stroke: var(--select); stroke-width: 3; }
.plan .t-id, .plan .t-dim, .plan .t-ghost,
.plan .p-name { font-family: var(--iso); }
.plan .t-id { font-size: 19px; fill: var(--ink-3); }
.plan .t-dim { font-size: 21px; fill: var(--ink); }
.plan .t-ghost { font-size: 21px; fill: var(--ink-3); opacity: 0; }
.plan .p-rline { stroke: var(--ink); stroke-width: 1.1; }
.plan .arrow-head { fill: var(--ink); }
.plan .p-name { font-size: 13.5px; letter-spacing: 0.05em; fill: var(--ink-2); }
.plan .p-nline { stroke: var(--ink-3); stroke-width: 1; }
.plan .beam { stroke: var(--laser); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.plan .p-legs { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.plan .p-head { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
.plan .p-cross { stroke: var(--ink); stroke-width: 1; }
.plan .p-eye { fill: var(--laser); }

.plan--tall { display: none; }
.plan--tall .t-id { font-size: 27px; }
.plan--tall .t-dim, .plan--tall .t-ghost { font-size: 29px; }
.plan--tall .p-name { font-size: 19px; }

.tip {
  position: absolute; z-index: 5;
  width: max-content; max-width: min(320px, 86vw);
  padding: 11px 13px 10px;
  background: var(--ink); color: #fff;
  border-radius: 4px;
  font-size: 0.98rem; line-height: 1.4;
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.55);
  pointer-events: none;
}
.tip b { display: block; font: 400 1.04rem/1.3 var(--iso); letter-spacing: 0.03em; margin-bottom: 3px; }

.after { margin-top: 28px; max-width: 56ch; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); color: var(--ink-2); }

.mini, .det { display: block; width: 100%; height: auto; overflow: visible; }
:is(.mini, .det) .ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
:is(.mini, .det) .ln-2 { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-linecap: round; }
:is(.mini, .det) .ln-fill { fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
:is(.mini, .det) .gl { fill: none; stroke: var(--glass); stroke-width: 3.2; stroke-linejoin: round; }
:is(.mini, .det) .gl-f { fill: var(--glass-tint); stroke: none; }
:is(.mini, .det) .dm { fill: none; stroke: var(--ink); stroke-width: 1; }
:is(.mini, .det) .hatch { fill: url(#hatch-ui); stroke: none; }
:is(.mini, .det) .pt { fill: var(--laser); }
:is(.mini, .det) .ray { fill: none; stroke: var(--laser); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.75; }
:is(.mini, .det) text { font-family: var(--iso); }
:is(.mini, .det) .tx-s { font-size: 13px; fill: var(--ink); letter-spacing: 0.03em; }
:is(.mini, .det) .tx-xs { font-size: 10.5px; fill: var(--ink-2); letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ how we deliver our service */

.steps {
  --mini-h: 132px;
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.steps::before {
  content: "";
  position: absolute;
  top: calc(var(--mini-h) + 18px + 17px);
  left: 17px; right: calc(25% - 13px);
  border-top: 1.5px dashed var(--ink-3);
  transform-origin: left center;
}
.steps.is-armed::before { transform: scaleX(0); }
.steps.is-armed.is-drawn::before { animation: lead 1.3s var(--ease) both; }
@keyframes lead { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps li { position: relative; display: grid; align-content: start; gap: 8px; }
.mini--step { height: var(--mini-h); width: auto; max-width: 100%; justify-self: start; }
.balloon {
  position: relative; z-index: 1;
  margin-top: 10px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--ink);
  font: 400 1rem/1 var(--iso); padding-top: 2px;
}
.steps b { font-weight: 600; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.26rem); line-height: 1.2; margin-top: 4px; }
.steps li > span:last-child { color: var(--ink-2); font-size: 1rem; line-height: 1.45; max-width: 26ch; text-wrap: pretty; }

/* ------------------------------------------------------------------ settings */

.sheet--settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "view props" "sched props";
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 3vw, 40px);
  padding: 34px clamp(26px, 3vw, 40px) 32px;
}
.settings__view { grid-area: view; min-width: 0; display: grid; gap: 4px; align-content: start; }
.elev { display: block; width: 100%; height: auto; overflow: visible; }
.view-title {
  font: 400 0.86rem/1.3 var(--iso); letter-spacing: 0.06em; color: var(--ink);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.settings__sched { grid-area: sched; min-width: 0; }
.sched-wrap { margin-top: 6px; overflow-x: auto; }
.sched { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.sched caption {
  caption-side: top; text-align: left; padding-bottom: 8px;
  font: 400 0.82rem/1.2 var(--iso); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.sched th {
  text-align: left; font: 400 0.74rem/1.2 var(--iso); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 10px 7px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap;
}
.sched td { padding: 9px 10px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; transition: color 0.4s var(--ease), background-color 0.4s var(--ease); }
.sched td:first-child { font-family: var(--iso); }
.sched th:last-child, .sched td:last-child { padding-right: 0; }
.sched td.hot { color: var(--select); background: var(--select-tint); }

.props {
  grid-area: props;
  display: grid; align-content: start; gap: 0;
  border: 1.5px solid var(--ink);
  padding: 4px 16px 12px;
  background: #fff;
}
.prop { border: 0; margin: 0; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); min-width: 0; display: grid; gap: 8px; }
.prop > label, .prop > legend { font-weight: 600; font-size: 0.98rem; line-height: 1.2; color: var(--ink); padding: 0; }
.prop--seg legend { float: left; width: 100%; margin-bottom: 8px; }
.prop--seg .seg { clear: both; }
.prop__row { display: grid; grid-template-columns: minmax(0, 1fr) 5.2em; align-items: center; gap: 12px; }
.prop output {
  font: 400 1.02rem/1 var(--iso); letter-spacing: 0.02em; text-align: right; color: var(--ink);
  padding: 7px 8px 6px; border: 1px solid var(--rule); border-radius: 3px;
}
.prop output::after { content: " " attr(data-unit); color: var(--ink-3); font-size: 0.8em; }
.prop__note { font: 400 0.82rem/1.35 var(--iso); letter-spacing: 0.03em; color: var(--ink-3); }
.prop[data-rise].is-off { opacity: 0.45; }
.seg {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden;
}
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg label + label { border-left: 1.5px solid var(--ink); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center;
  padding: 9px 6px 8px;
  font: 600 0.95rem/1.1 var(--sans);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg label:hover input:not(:checked) + span { background: var(--select-tint); }
.seg input:focus-visible + span { outline: 2.5px solid var(--select); outline-offset: -4px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink-3); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink-3); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 24px; margin-top: -11px;
  background: #fff; border: 2px solid var(--select); border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
  width: 10px; height: 20px;
  background: #fff; border: 2px solid var(--select); border-radius: 3px;
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--select-tint); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--select-tint); }
input[type="range"]:disabled { cursor: not-allowed; }
input[type="range"]:disabled::-webkit-slider-thumb { border-color: var(--ink-3); }
.props .btn-quiet { margin-top: 8px; }

/* elevation (drawn by app.js) */
.elev text { font-family: var(--iso); }
.elev .e-ffl { stroke: var(--ink); stroke-width: 1.3; }
.elev .e-floor, .elev .e-slab { fill: url(#hatch-ui); stroke: none; }
.elev .e-slab-line { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.elev .e-glass { fill: var(--glass-tint); stroke: var(--glass); stroke-width: 2; stroke-linejoin: round; }
.elev .e-spigot { fill: #4a5155; stroke: var(--ink); stroke-width: 1; }
.elev .e-plate { fill: var(--ink); }
.elev .e-standoff { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.elev .e-cross { stroke: var(--ink); stroke-width: 0.9; }
.elev .e-channel { fill: #c9cfd2; stroke: var(--ink); stroke-width: 1.2; }
.elev .e-lip { stroke: #8a9396; stroke-width: 1; }
.elev .e-dim { fill: none; stroke: var(--ink); stroke-width: 1; transition: stroke 0.4s var(--ease); }
.elev .e-dimt { font-size: 15px; fill: var(--ink); transition: fill 0.4s var(--ease); }
.elev .e-break { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.elev .e-pid { font-size: 17px; fill: var(--ink-3); }
.elev .e-rad { font-size: 14px; fill: var(--glass); letter-spacing: 0.04em; }
.elev .e-lbl { font-size: 13px; fill: var(--ink-2); letter-spacing: 0.05em; }
.elev .e-level { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.elev .e-leader { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.elev .hot .e-dim, .elev .e-dim.hot { stroke: var(--select); }
.elev .hot .e-dimt, .elev .e-dimt.hot { fill: var(--select); }
.elev text.halo { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.elev.is-narrow .e-dimt { font-size: 25px; }
.elev.is-narrow .e-pid { font-size: 27px; }
.elev.is-narrow .e-rad { font-size: 22px; }
.elev.is-narrow .e-lbl { font-size: 21px; }
.elev.is-narrow .e-dim, .elev.is-narrow .e-ffl { stroke-width: 1.6; }
.elev.is-narrow .e-glass { stroke-width: 2.8; }
.elev.is-narrow .e-break { stroke-width: 1.8; }

/* ------------------------------------------------------------------ what you receive */

.get__set {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-template-areas: "a3 cut" "a3 view";
  gap: 40px clamp(28px, 3.4vw, 48px);
  align-items: start;
}
/* the one line on fit, said quietly under what you receive */
.get__fine { margin-top: clamp(22px, 2.6vw, 32px); font-size: 0.95rem; color: var(--ink-3); }
.a3-fig { grid-area: a3; margin: 0; }
.paper { padding: 14px; }
.paper--link { display: block; cursor: zoom-in; }
.paper--link:focus-visible { outline-offset: 4px; }
.full {
  display: inline-block; margin: 10px 0 0 40px;
  font: 400 0.86rem/1 var(--iso); letter-spacing: 0.04em; color: var(--select);
}
.a3 { display: block; width: 100%; height: auto; }
.a3 text { font-family: var(--iso); }
.a3 .s-trim { fill: none; stroke: var(--rule); stroke-width: 1; }
.a3 .s-frame { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.a3 .s-ref { font-size: 9px; fill: var(--ink-3); }
.a3 .s-tick { stroke: var(--rule); stroke-width: 1; }
.a3 .hatch-line { stroke: var(--ink-3); stroke-width: 0.9; }
.a3 .s-wall { stroke: var(--ink); stroke-width: 1.2; }
.a3 .s-line { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.a3 .s-pane-plan { stroke: var(--ink); stroke-width: 0.4; stroke-linejoin: round; }
.a3 .s-pane-tint { fill: #e2f0f7; }
.a3 .glass-hatch { stroke: #7fb6d4; stroke-width: 0.45; }
.a3 .s-pid { font-size: 11px; fill: var(--ink); }
.a3 .s-tpt { font-size: 8.5px; letter-spacing: 0.06em; fill: var(--ink-2); }
.a3 .s-view { font-size: 12px; letter-spacing: 0.08em; fill: var(--ink); }
.a3 .s-viewsub, .a3 .s-note { font-size: 10.5px; fill: var(--ink-2); letter-spacing: 0.03em; }
.a3 .s-view--sm { font-size: 9.5px; }
.a3 .s-note--sm { font-size: 8.5px; }
.a3 .s-pane { fill: var(--glass-tint); stroke: var(--glass); stroke-width: 1.8; }
.a3 .s-clamp { fill: #4a5155; }
.a3 .s-hole { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.a3 .s-chan { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 3; }
.a3 .s-dim { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.a3 .tick-mark { stroke: var(--ink); stroke-width: 1.4; }
.a3 .s-dimt { font-size: 11px; fill: var(--ink); }
.a3 .s-table { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.a3 .s-rule { stroke: var(--ink); stroke-width: 1.2; }
.a3 .s-rule--thin { stroke: var(--rule); stroke-width: 0.9; }
.a3 .s-th { font-size: 10px; letter-spacing: 0.08em; fill: var(--ink); }
.a3 .s-td { font-size: 11px; fill: var(--ink); }
.a3 .s-tb { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.a3 .s-brand { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; fill: var(--ink); }
.a3 .s-tbt { font-size: 10.5px; fill: var(--ink-2); }
.a3 .s-lead { stroke: var(--ink); stroke-width: 0.9; }

/* each thing you receive, numbered in a balloon under its figure */
.item {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  margin-top: 16px;
  font-weight: 500; font-size: 1.04rem; line-height: 1.4;
}
.item::before {
  content: attr(data-n);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.3px solid var(--ink); background: #fff;
  font: 400 0.84rem/1 var(--iso); padding-top: 2px;
}

.cutfile { grid-area: cut; margin: 0; }
.paper--file { padding: 16px 16px 10px; }
.file-tab {
  position: absolute; top: 12px; right: 14px;
  font: 400 0.8rem/1 var(--iso); letter-spacing: 0.04em; color: var(--ink-2);
  padding: 6px 8px 5px; border: 1px solid var(--rule); border-radius: 3px;
}
.dxf { display: block; width: 100%; height: auto; margin-top: 18px; }
.dxf text { font-family: var(--iso); }
/* a cut file is black, solid cut geometry; its dimensions are thin black */
.dxf .d-pane, .dxf .d-hole { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dxf .d-txt { font-size: 15px; fill: var(--ink); }
.dxf .d-txt--s { font-size: 11px; fill: var(--ink-2); }
.dxf .d-dim { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.dxf .d-dimt { font-size: 12px; fill: var(--ink); }

.viewport { grid-area: view; margin: 0; }
.viewport__frame {
  position: relative;
  border: 1px solid #b9bfc2;
  background: linear-gradient(180deg, #fcfdfd 0%, #e9eef0 62%, #d8dfe2 100%);
  box-shadow: var(--hang);
}
.viewport__label, .viewport__hint {
  position: absolute; font: 400 0.76rem/1 var(--iso); letter-spacing: 0.06em; color: var(--ink-3);
  pointer-events: none;
}
.viewport__label { top: 10px; left: 12px; text-transform: uppercase; }
.viewport__hint { bottom: 10px; right: 12px; }
.viewport__view { display: block; width: 100%; height: auto; aspect-ratio: 420 / 300; touch-action: none; cursor: grab; }
.viewport__view:active { cursor: grabbing; }

/* ------------------------------------------------------------------ jobs: a detail sheet */

.details {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--sheet);
  box-shadow: var(--hang);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.details li {
  display: grid; gap: 10px; align-content: start;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) clamp(16px, 2vw, 22px);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.details li > span {
  font-weight: 600; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  padding-top: 10px; border-top: 1.5px solid var(--ink);
}
.det { max-height: 170px; }


/* ------------------------------------------------------------------ join */

.sheet--join { padding: clamp(34px, 4vw, 52px) clamp(28px, 4vw, 56px) clamp(30px, 3.4vw, 44px); }
.sheet--join h2 { max-width: 22ch; }
.joinsec--alone { margin-top: clamp(20px, 3vw, 34px); }
.join--block { margin-top: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
/* plain fields, the same as the one at the top of the page */
.cells { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cell { display: grid; gap: 6px; min-width: 0; align-content: start; }
.cell input, .cell select {
  width: 100%; min-height: 50px;
  padding: 0.68em 0.8em 0.6em;
  font: 500 1.1rem/1.2 var(--sans); color: var(--ink);
  background-color: #fff;
  border: 1.5px solid var(--ink-3); border-radius: 4px;
  caret-color: var(--select);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cell input:focus, .cell select:focus { outline: none; border-color: var(--select); box-shadow: 0 0 0 3px var(--select-tint); }
.cell select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.join__go { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.join__go .btn { min-width: 12rem; }
.joinsec__contact {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 1.05rem; color: var(--ink-2);
}
.joinsec__contact a { color: var(--select); font-weight: 500; overflow-wrap: anywhere; }

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

.foot {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin: var(--gap) auto 0;
  padding: 16px 0 40px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  font-size: 0.92rem; color: var(--ink-3);
}
.foot p { display: inline-flex; align-items: center; gap: 8px; }
.foot__mark { width: 22px; height: 22px; color: var(--ink); }
.foot__email { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--ink-2); }
.foot__email:hover { color: var(--select); }

/* ------------------------------------------------------------------ the sheet at full size (sheet.html) */

.viewer {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.viewer .top { position: static; flex: none; }
.view {
  flex: 1 1 auto; min-height: 0;
  display: flex;
  overflow: auto; overscroll-behavior: contain;
}
.view:focus-visible { outline-offset: -3px; }
.view.is-pannable { cursor: grab; }
.view.is-zoomable { cursor: zoom-in; }
.view { user-select: none; }
.view.is-dragging { cursor: grabbing; }
/* auto margins centre a sheet smaller than the frame and give way when it is bigger */
.view__pad { flex: none; margin: auto; padding: clamp(16px, 2vw, 24px); display: grid; gap: clamp(14px, 2vw, 24px); }
.view__paper { width: var(--sheet-w, 1100px); background: var(--sheet); box-shadow: var(--hang); }
.view__bar {
  flex: none;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(var(--gutter), calc((100% - var(--page)) / 2));
  background: rgb(255 255 255 / 0.96);
  border-top: 1px solid var(--rule);
}
.view__back {
  flex: none; padding: 8px 0;
  font: 500 0.98rem/1 var(--sans); color: var(--ink-2);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.view__back:hover { color: var(--select); }
.view__hint {
  flex: 1 1 auto; text-align: right;
  font: 400 0.76rem/1.2 var(--iso); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.view__zoom { flex: 0 1 300px; }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1040px) {
  .sheet--settings { grid-template-columns: 1fr; grid-template-areas: "view" "props" "sched"; grid-template-rows: auto; }
  /* the drawing stays in view while the settings scroll under it */
  .settings__view {
    position: sticky; top: 61px; z-index: 3;
    background: #fff; padding: 6px 0 8px; margin: -6px 0 0;
    box-shadow: 0 10px 12px -12px rgb(16 20 24 / 0.35);
  }
  .get__set { grid-template-columns: 1fr 1fr; grid-template-areas: "a3 a3" "cut view"; }
}

@media (max-width: 860px) {
  .sheet--hero { grid-template-columns: 1fr; grid-template-areas: "plan" "text" "form"; }
  .join--hero { margin-top: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sheet--hero { grid-template-areas: "text" "form" "plan"; padding-top: 28px; }
  .hero__text { margin-top: 4px; }
  .measure { margin-top: 26px; }
  .plan--wide { display: none; }
  .plan--tall { display: block; max-height: none; }
  .measure .psheet--wide { display: none; }
  .measure .psheet--tall { display: block; }
  .join--hero { grid-template-columns: 1fr; grid-template-areas: "field" "btn" "status"; }
  .join--hero .btn { width: 100%; }
  .get__set { grid-template-columns: 1fr; grid-template-areas: "a3" "cut" "view"; }
  .sheet--settings { padding: 30px 22px 26px; }
  .sched { font-size: 0.86rem; }
  .sched th:nth-child(3), .sched td:nth-child(3) { display: none; }
  .sched th, .sched td { padding-right: 7px; }
  .sched td:last-child { white-space: normal; }
  .view__bar { padding-block: 8px; justify-content: space-between; }
  .view__hint { display: none; }
  .view__zoom { flex-basis: 220px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .steps li { grid-template-columns: 34px 1fr; column-gap: 16px; row-gap: 6px; }
  .steps .balloon { grid-column: 1; grid-row: 1; margin-top: 0; }
  .steps .mini--step { grid-column: 2; grid-row: 1; height: 96px; }
  .steps li > b, .steps li > span:last-child { grid-column: 2; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 16.25px; top: 40px; bottom: -28px;
    border-left: 1.5px dashed var(--ink-3);
  }
  .details { grid-template-columns: 1fr; }
  .join__go .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps.is-armed::before { transform: none; animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
