:root {
  --paper: #dddbd7;
  --ink: #2b2a28;
  --soft: #74726d;
  --rule: #b9b6b0;
  --mark: #b4623c;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --caps: "Montserrat", "IBM Plex Sans", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --top: 76px;
  /* fine dark specks, like cast concrete */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.19  0 0 0 0 0.18  -11 0 0 0 3.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
ol, ul { list-style: none; }

.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Header */

.top {
  height: var(--top);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter);
}

.mark { font: 400 30px/1 var(--serif); text-decoration: none; }

.top nav { display: flex; gap: clamp(16px, 3vw, 40px); }

.top nav a {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.top nav a:hover, .link:hover { color: var(--mark); }

/* 1. Film */

.intro {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: var(--paper) var(--grain);
}

.film {
  position: relative;
  flex: 1;
  margin: 0 var(--gutter) var(--gutter);
  display: flex;
  align-items: flex-end;
}

.film-frame {
  position: absolute;
  inset: 0;
  background: #c9c6c1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.film-frame video { width: 100%; height: 100%; object-fit: cover; }

.film-text { position: relative; padding: var(--gutter); max-width: 900px; }

h1 {
  font: 400 clamp(46px, 6.4vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.015em;
  margin-top: 18px;
  text-wrap: balance;
}

h1 em { color: var(--mark); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 15px 26px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--mark); border-color: var(--mark); }

.link {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 6px;
}

/* 2. Build */

.build { height: 700vh; position: relative; }
.anchor { position: absolute; top: 100vh; }

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.sticky canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

.build-head {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  font: 400 clamp(26px, 2.8vw, 42px)/1.08 var(--serif);
}

/* Colour options: a vertical scale line beside the model, a swatch at each division */

.tones {
  --d: 40px;
  position: absolute;
  left: 73%;
  top: 46%;
  transform: translateY(-50%);
  display: grid;
  gap: 34px;
}

.tone-group { transition: opacity 0.25s; }
.tone-group .label { margin-bottom: 12px; color: var(--ink); }

.tone-group ol {
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink) 1px, transparent 1px);
  background-size: 1px 100%, 6px calc(var(--d) / 4);
  background-repeat: no-repeat, repeat-y;
}

.tone-group li { height: var(--d); }

.tone-group button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 0 0 28px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.tone-group button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  border-top: 1px solid var(--ink);
}

.tone-group i { display: block; width: 26px; height: 26px; border: 1px solid var(--ink); }

.tone-group button:hover { color: var(--ink); }
.tone-group button[aria-pressed="true"] { color: var(--ink); }
.tone-group button[aria-pressed="true"]::before { width: 22px; border-top: 2px solid var(--mark); margin-top: -1px; }

@media (max-width: 900px) {
  .tones { --d: 34px; left: auto; right: 10px; gap: 20px; }
  .tone-group button span { display: none; }
}

/* The rail: a scale line that slides sideways, one step per division */

.rail {
  --x: 0px;
  --w: clamp(240px, 27vw, 380px);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 176px;
  overflow: hidden;
  background: var(--paper);
}

.rail-track {
  -webkit-mask-image: none;
}

.rail::after {
  content: "";
  position: absolute;
  inset: 20px 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper), transparent 20%, transparent 80%, var(--paper));
}

.rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 100% 1px, var(--w) 18px, calc(var(--w) / 10) 7px;
  background-position: 0 0, calc(var(--x) + var(--w) / 2) 0, var(--x) 0;
  background-repeat: no-repeat, repeat-x, repeat-x;
}

.rail-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  transform: translateX(var(--x));
}

.rail-track li { width: var(--w); flex: none; }

.rail-track button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 34px 18px 0;
  text-align: center;
  font: inherit;
  color: var(--soft);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.rail-track span { display: block; }
.rail-track .n { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; margin-bottom: 10px; }
.rail-track .t { font: 400 28px/1.1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.rail-track .d { font-size: 14px; line-height: 1.4; max-width: 22em; margin: 0 auto; }

.rail-track button[aria-current="true"] { opacity: 1; color: var(--ink); }
.rail-track button[aria-current="true"] .n { color: var(--mark); }

.rail-mark {
  position: absolute;
  left: 50%;
  top: 0;
  height: 26px;
  border-left: 2px solid var(--mark);
  margin-left: -1px;
}

/* 3. Contact */

.contact {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--gutter);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--ink);
}

.big {
  font: 400 clamp(38px, 4.8vw, 76px)/1.02 var(--serif);
  margin: 18px 0 26px;
  text-wrap: balance;
}

.lede { max-width: 26em; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px var(--gutter); }

.wide { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

.field label {
  display: block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.field input, .field textarea {
  width: 100%;
  font: 400 18px/1.4 var(--sans);
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0 10px;
  resize: vertical;
}

.field ::placeholder { color: #9b9892; }

:focus-visible { outline: 1px solid var(--mark); outline-offset: 4px; }
.field :focus-visible { outline: 0; border-bottom-color: var(--mark); box-shadow: 0 1px 0 var(--mark); }

.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.note { font-size: 15px; color: var(--soft); }

/* Footer */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter) 36px;
  border-top: 1px solid var(--ink);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.thanks { padding: clamp(60px, 14vw, 200px) var(--gutter); max-width: 900px; }

/* Narrow */

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  form { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: 6px; }
}

/* Colour options, placed: wall colours stay on the vertical line beside the model,
   base colours run along a horizontal line under it */

.tones { display: contents; }

.tone-group[data-part="wall"] {
  --d: 40px;
  position: absolute;
  left: 73%;
  top: 42%;
  transform: translateY(-50%);
}

.tone-group[data-part="base"] {
  --d: 96px;
  position: absolute;
  left: 50%;
  bottom: 188px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tone-group[data-part="base"] .label { margin: -5px 0 0; white-space: nowrap; }

.tone-group[data-part="base"] ol {
  display: flex;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 100% 1px, calc(var(--d) / 4) 6px;
  background-repeat: no-repeat, repeat-x;
}

.tone-group[data-part="base"] li { width: var(--d); height: auto; }

.tone-group[data-part="base"] button {
  flex-direction: column;
  gap: 7px;
  width: 100%;
  height: auto;
  padding: 20px 0 0;
}

.tone-group[data-part="base"] button::before {
  left: 50%;
  top: 0;
  width: 0;
  height: 14px;
  margin: 0;
  border-top: 0;
  border-left: 1px solid var(--ink);
}

.tone-group[data-part="base"] button[aria-pressed="true"]::before {
  width: 0;
  height: 19px;
  margin: 0 0 0 -1px;
  border-top: 0;
  border-left: 2px solid var(--mark);
}

@media (max-width: 900px) {
  .tone-group[data-part="wall"] { --d: 34px; left: auto; right: 10px; }
  .tone-group[data-part="base"] { --d: 58px; }
  .tone-group[data-part="base"] .label { display: none; }
  .tone-group[data-part="base"] button span { display: block; font-size: 9px; }
}
/* Base colours lie on the table: the line runs along the edge of the brochure sheet,
   in the same isometric projection as the model. scene.js sets the transform each frame. */

.tone-group[data-part="base"] {
  --d: 96px;
  left: 0;
  top: 0;
  bottom: auto;
  gap: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.tone-group[data-part="base"] .label {
  display: block;
  position: absolute;
  right: 100%;
  top: 0;
  margin: -8px 20px 0 0;
  font: 700 15px/1 var(--caps);
  letter-spacing: 0.14em;
}

.tone-group[data-part="base"] button { padding-top: 22px; gap: 9px; font: 600 13px/1 var(--caps); letter-spacing: 0.12em; }
.tone-group[data-part="base"] button span { display: block; font-size: 13px; }
.tone-group[data-part="base"] i { width: 36px; height: 36px; }
/* Base colour line, smaller: swatches about the height of the wall colour ones */

.tone-group[data-part="base"] { --d: 64px; }
.tone-group[data-part="base"] .label { font-size: 12.5px; margin: -6px 14px 0 0; }
.tone-group[data-part="base"] button { padding-top: 16px; gap: 6px; }
.tone-group[data-part="base"] button span { font-size: 11.5px; letter-spacing: 0.1em; }
.tone-group[data-part="base"] i { width: 30px; height: 30px; }
.tone-group[data-part="base"] button::before { height: 10px; }
.tone-group[data-part="base"] button[aria-pressed="true"]::before { height: 14px; }
/* Building type: the same scale line, on the left of the model, there at every step */

.kinds { --d: 44px; position: absolute; left: var(--gutter); top: 42%; transform: translateY(-50%); }
.kinds .label { margin-bottom: 12px; color: var(--ink); }
.kinds ol {
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink) 1px, transparent 1px);
  background-size: 1px 100%, 6px calc(var(--d) / 4);
  background-repeat: no-repeat, repeat-y;
}
.kinds li { height: var(--d); }
.kinds button {
  position: relative;
  height: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 0 0 30px;
  font: 600 12px/1 var(--caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.kinds button::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; border-top: 1px solid var(--ink); }
.kinds button:hover, .kinds button[aria-pressed="true"] { color: var(--ink); }
.kinds button[aria-pressed="true"]::before { width: 22px; border-top: 2px solid var(--mark); margin-top: -1px; }

@media (max-width: 900px) {
  .kinds { --d: 34px; left: 10px; top: 30%; }
  .kinds button { font-size: 10px; padding-left: 24px; }
}
.kinds { --d: 40px; top: 21vh; transform: none; }
.tone-group[data-part="base"] { --d: 78px; }
/* A quiet note under each scale line's name: these are choices, not a legend */

.hint {
  display: block;
  margin-top: 7px;
  font: 400 10.5px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  color: var(--soft);
}
.tone-group[data-part="base"] .hint { font-size: 9.5px; margin-top: 5px; }
/* The notes, larger, and "many more" after the last colour of each line */

.hint { font-size: 13px; margin-top: 8px; color: var(--ink); opacity: 0.72; }
.tone-group[data-part="base"] .hint { font-size: 11.5px; margin-top: 6px; }

.more {
  margin: 10px 0 0;
  padding-left: 28px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--soft);
}
.tone-group[data-part="base"] .more { margin: 0; padding: 26px 0 0 6px; font: 600 11.5px/1 var(--caps); letter-spacing: 0.1em; }
/* Base swatches: drawn in isometric they spread sideways, so the square is smaller
   to come out about 34 x 20px on screen: wider and flatter than a wall swatch (26 x 26), the same visual weight */
.tone-group[data-part="base"] i { width: 24px; height: 24px; }
.tone-group[data-part="base"] button { padding-top: 14px; gap: 7px; }
.tone-group[data-part="base"] .more { padding-top: 20px; }
/* Building type sits nearer the model, level with it */
@media (min-width: 901px) {
  .kinds { left: 12%; top: 24vh; }
}
/* Contact: questions on the left, the call heading with the form under it on the right */

.contact { align-items: start; }
.call .big { margin: 18px 0 44px; }

.faq dl { margin: 22px 0 0; border-bottom: 1px solid var(--ink); }
.faq dl > div { border-top: 1px solid var(--ink); padding: 20px 0 24px; }
.faq dt { font: 400 clamp(22px, 1.9vw, 30px)/1.15 var(--serif); }
.faq dd { margin: 10px 0 0; max-width: 34em; color: var(--soft); }

@media (max-width: 900px) {
  .call { order: -1; }
}
.reach { margin: 26px 0 0; max-width: 34em; }
.reach a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 4px; white-space: nowrap; }
.reach a:hover { color: var(--mark); }
.call .reach { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink); max-width: none; }

/* Headings: smaller, and in from the corners. They sit a little left of centre
   rather than against the screen edge, which matters most on wide screens. */

h1 { font-size: clamp(40px, 4.5vw, 84px); }
.big { font-size: clamp(32px, 3.4vw, 60px); }
.build-head { font-size: clamp(24px, 2.2vw, 38px); }

@media (min-width: 901px) {
  .film { align-items: center; }
  .film-text { margin-left: 11vw; max-width: min(52vw, 900px); }
  .build-head { left: 12%; top: 8vh; }
  .contact { padding-left: 12vw; padding-right: 12vw; }
}
/* the placeholder note keeps out of the heading's way */
.film-frame { place-items: end; }
.film-frame .label { padding: 22px 26px; }

/* One typeface for the whole site: Montserrat. The old names stay as aliases. */

:root {
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --mono: "Montserrat", system-ui, sans-serif;
  --caps: "Montserrat", system-ui, sans-serif;
}

body { font-size: 16px; }
.label, .top nav a, .btn, .link, .field label, .foot { font-weight: 600; font-size: 11px; letter-spacing: 0.12em; }
.mark { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

h1 { font-size: clamp(32px, 3.5vw, 66px); font-weight: 500; line-height: 1.06; letter-spacing: -0.03em; }
h1 em { font-style: italic; }
.big { font-size: clamp(26px, 2.6vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.build-head { font-size: clamp(19px, 1.6vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.faq dt { font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.rail .t { font-size: clamp(17px, 1.45vw, 23px); font-weight: 600; letter-spacing: -0.015em; }
.rail .n { font-weight: 600; letter-spacing: 0.12em; }
.hint { font-weight: 500; font-size: 12px; letter-spacing: 0; }
.tone-group[data-part="base"] .hint { font-size: 10.5px; }
.tone-group button, .more { font-weight: 600; }
/* The film fades out in one go as soon as scrolling starts, not bit by bit */
.intro { transition: opacity 0.8s ease, visibility 0s linear 0s; }
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
.build { height: 635vh; }
.anchor { top: 36vh; }
/* Film and model never show together. Scrolling down: the film fades out fast, and only
   then does the model fade in, slowly. Back at the top: the model goes fast, then the film returns. */
.intro { transition: opacity 0.9s ease 0.3s, visibility 0s linear 0.3s; }
.intro.gone { transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.sticky { opacity: 0; transition: opacity 0.3s ease; }
.sticky.on { opacity: 1; transition: opacity 1.4s ease 0.35s; }
/* Each step is a short scroll now that the model plays the whole move by itself */
.build { height: 335vh; }

/* Schedule a call, on the model page: top right, over the wall colour line */
.stage-call { position: absolute; top: 8vh; left: 73%; }
@media (max-width: 900px) { .stage-call { top: 12px; left: auto; right: 12px; padding: 11px 16px; } }
/* Schedule a call on the model page: bottom right, just above the step rail */
.stage-call { top: auto; left: auto; right: var(--gutter); bottom: 204px; z-index: 3; }
@media (max-width: 900px) { .stage-call { top: auto; right: 12px; bottom: 190px; } }
/* The rule for big screens: nothing sits out at the edges. Headings, controls and buttons
   keep to roughly the middle two thirds of the width; --edge is how far in that starts. */
:root { --edge: var(--gutter); }
@media (min-width: 1100px) { :root { --edge: 13vw; } }
@media (min-width: 1100px) and (min-aspect-ratio: 2/1) { :root { --edge: 17vw; } }

@media (min-width: 901px) {
  .top { padding-left: var(--edge); padding-right: var(--edge); }
  .film-text { margin-left: calc(var(--edge) - var(--gutter)); }
  .build-head, .kinds { left: var(--edge); }
  .stage-call { right: var(--edge); }
  .contact, .foot { padding-left: var(--edge); padding-right: var(--edge); }
}
/* The film is full bleed on every screen: it fills the whole window, edge to edge,
   and the header and heading sit on top of it. */
.film { position: static; margin: 0; }
.film-frame { inset: 0; }
.top { position: relative; z-index: 1; }
.film-text { z-index: 1; }
/* Schedule a call on the model page: under the wall colour line, lined up with it, above the rail */
@media (min-width: 901px) {
  .stage-call { left: 73%; right: auto; top: auto; bottom: 232px; }
}
/* Header: a little lower and a little larger */
.top { height: auto; padding-top: 44px; padding-bottom: 20px; }
.mark { font-size: 29px; }
.top nav a { font-size: 13.5px; }
.top nav { gap: clamp(20px, 3vw, 48px); }
@media (max-width: 900px) { .top { padding-top: 24px; } .mark { font-size: 24px; } .top nav a { font-size: 12px; } }
/* ---------- Phones and upright tablets ----------
   The model keeps the middle of the screen. Building type runs as one line above it,
   the two colour lines as rows of swatches below it, then the step rail. */

@media (max-width: 820px) {
  .top { padding: 18px 16px 12px; }
  .mark { font-size: 21px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 10.5px; letter-spacing: 0.08em; }

  .film { align-items: flex-end; }
  .film-text { padding: 0 16px 13svh; margin: 0; max-width: none; }
  h1 { font-size: clamp(30px, 8.6vw, 44px); margin-top: 12px; }
  .actions { gap: 20px; margin-top: 24px; }
  .film-frame .label { display: none; }

  .build-head { left: 16px; top: 14px; font-size: 16px; line-height: 1.25; max-width: calc(100% - 176px); }
  .stage-call { top: 14px; right: 16px; bottom: auto; left: auto; padding: 11px 12px; font-size: 10px; letter-spacing: 0.08em; }

  .kinds { left: 16px; right: 16px; top: 82px; transform: none; --d: 0px; }
  .kinds .label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 10px; }
  .kinds .hint { margin: 0; font-size: 10.5px; }
  .kinds ol {
    display: flex;
    background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 100% 1px, 11px 5px;
    background-repeat: no-repeat, repeat-x;
  }
  .kinds li { flex: 1; height: auto; }
  .kinds button { width: 100%; height: auto; padding: 17px 0 6px; text-align: left; font-size: 10.5px; letter-spacing: 0.08em; }
  .kinds button::before { left: 0; top: 0; width: 0; height: 10px; margin: 0; border-top: 0; border-left: 1px solid var(--ink); }
  .kinds button[aria-pressed="true"]::before { width: 0; height: 14px; margin: 0; border-top: 0; border-left: 2px solid var(--mark); }

  .tone-group[data-part] {
    --d: 0px;
    position: absolute; left: 16px; right: 16px; top: auto;
    display: flex; align-items: center; gap: 12px;
    transform: none !important;
  }
  .tone-group[data-part="wall"] { bottom: 202px; }
  .tone-group[data-part="base"] { bottom: 158px; }
  .tone-group[data-part] .label { position: static; margin: 0; width: 78px; flex: none; font: 600 10px/1.2 var(--caps); letter-spacing: 0.1em; white-space: normal; display: block; }
  .tone-group[data-part] .hint { display: none; }
  .tone-group[data-part] ol { display: flex; gap: 9px; background: none; }
  .tone-group[data-part] li { width: auto; height: auto; }
  .tone-group[data-part] button { padding: 0; gap: 0; height: auto; width: auto; }
  .tone-group[data-part] button::before { display: none; }
  .tone-group[data-part] button span { display: none; }
  .tone-group[data-part] i { width: 30px; height: 30px; }
  .tone-group[data-part] button[aria-pressed="true"] i { outline: 2px solid var(--mark); outline-offset: 2px; }
  .tone-group[data-part] .more { margin: 0; padding: 0; font: 600 9.5px/1.2 var(--caps); letter-spacing: 0.08em; white-space: normal; width: 44px; }

  .rail { height: 150px; --w: 250px; }
  .rail-track button { padding: 30px 14px 0; }
  .rail-track .n { font-size: 10.5px; margin-bottom: 7px; }
  .rail .t { font-size: 18px; margin-bottom: 4px; }
  .rail-track .d { font-size: 12.5px; line-height: 1.35; }

  .contact { padding: 56px 16px 48px; gap: 48px; }
  .big { font-size: 30px; }
  .call .big { margin: 14px 0 30px; }
  form { gap: 22px 16px; }
  .field input, .field textarea { font-size: 16px; }   /* 16px stops iPhone zooming in on focus */
  .submit .btn { width: 100%; padding: 17px 20px; text-align: center; }
  .reach { font-size: 15px; }
  .reach a { white-space: normal; word-break: break-all; }
  .faq dt { font-size: 17px; }
  .faq dd { font-size: 15px; }
  .foot { padding: 20px 16px 30px; }
}

/* very small phones */
@media (max-width: 370px) {
  .top nav a:first-child { display: none; }
  .build-head { font-size: 14.5px; max-width: calc(100% - 160px); }
  .tone-group[data-part] .label { width: 62px; }
  .tone-group[data-part] i { width: 27px; height: 27px; }
}

/* short screens (phone browser bars showing, or a phone held sideways): tighten the rail */
@media (max-width: 820px) and (max-height: 700px) {
  .rail { height: 132px; }
  .rail-track .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tone-group[data-part="wall"] { bottom: 180px; }
  .tone-group[data-part="base"] { bottom: 139px; }
}
@media (max-width: 820px) {
  .build-head { font-size: 15px; max-width: calc(100% - 170px); }
  .kinds { top: 96px; }
}
@media (max-width: 380px) {
  .build-head { font-size: 13.5px; max-width: calc(100% - 150px); }
  .stage-call { padding: 10px 10px; font-size: 9.5px; }
}
/* ---------- Three pages, one way of moving between them ----------
   Film, model and contact are laid over one another and never scroll into each other.
   Leaving a page it fades out fast; only then does the next fade in, slowly. */

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

.page, .intro.page, .intro.page.gone {
  position: fixed; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.page.on, .intro.page.on {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 1.1s ease 0.35s, visibility 0s linear 0.35s;
}

.intro.page, .build.page { touch-action: none; }
.build.page { height: auto; }
.build .sticky, .build .sticky.on { position: absolute; inset: 0; height: auto; opacity: 1; transition: none; }

.last.page {
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  background: var(--paper) var(--grain);
}
.last .contact { flex: 1 0 auto; min-height: 0; border-top: 0; align-items: center; }
.last .foot { flex: none; }

/* ---------- Phone: pared back ----------
   One step on the rail at a time, no notes, smaller swatches, more room for the model. */
@media (max-width: 820px) {
  .rail { --w: 100vw; height: 118px; }
  .rail::after { display: none; }
  .rail-track button { padding: 28px 28px 0; }
  .rail-track button:not([aria-current="true"]) { opacity: 0; }
  .rail-track .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .kinds { top: 78px; }
  .kinds .label { display: none; }
  .hint { display: none; }

  .tone-group[data-part="wall"] { bottom: 172px; }
  .tone-group[data-part="base"] { bottom: 132px; }
  .tone-group[data-part] .label { width: 44px; font-size: 9.5px; }
  .tone-group[data-part] .label::first-line { letter-spacing: 0.1em; }
  .tone-group[data-part] i { width: 26px; height: 26px; }
  .tone-group[data-part] ol { gap: 10px; }
  .tone-group[data-part] .more { width: auto; font-size: 9px; white-space: nowrap; }

  .last .contact { align-items: start; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .rail { height: 112px; }
  .tone-group[data-part="wall"] { bottom: 162px; }
  .tone-group[data-part="base"] { bottom: 124px; }
}
@media (max-width: 820px) { .lw { display: none; } }

/* ---------- Phone: margins, smaller buttons, centred type line ---------- */
@media (max-width: 820px) {
  :root { --side: 26px; }
  .top { padding-left: var(--side); padding-right: var(--side); }
  .film-text { padding-left: var(--side); padding-right: var(--side); }
  .btn { padding: 12px 16px; font-size: 10px; letter-spacing: 0.1em; }
  .link { font-size: 10px; }

  .build-head { left: var(--side); top: 20px; max-width: calc(100% - var(--side) * 2 - 132px); }
  .stage-call { right: var(--side); top: 20px; padding: 10px 12px; font-size: 9.5px; }

  /* building type: one centred line, each name centred under its mark, a little lower */
  .kinds { left: var(--side); right: var(--side); top: 104px; }
  .kinds button { text-align: center; padding: 18px 0 6px; }
  .kinds button::before, .kinds button[aria-pressed="true"]::before { left: 50%; }
  .kinds button[aria-pressed="true"]::before { margin-left: -1px; }

  .tone-group[data-part] { left: var(--side); right: var(--side); justify-content: center; }

  .contact { padding: 52px var(--side) 44px; }
  .submit .btn { width: auto; padding: 13px 20px; }
  .foot { padding-left: var(--side); padding-right: var(--side); }
}
@media (max-width: 380px) {
  :root { --side: 20px; }
  .build-head { max-width: calc(100% - var(--side) * 2 - 124px); }
}
/* ---------- Phone: colours as two small upright lines in the lower corners ----------
   Wall colours on the right, base colours on the left, small enough to stay out of the way,
   which lets the model, the type line and the heading all sit lower. */
@media (max-width: 820px) {
  .build-head { top: 30px; }
  .stage-call { top: 30px; }
  .kinds { top: 124px; }

  .tone-group[data-part] { display: block; width: auto; left: auto; right: var(--side); bottom: 134px; }
  .tone-group[data-part="base"] { left: var(--side); right: auto; bottom: 134px; }
  .tone-group[data-part] .label { width: auto; margin: 0 0 7px; font-size: 8.5px; letter-spacing: 0.1em; text-align: right; }
  .tone-group[data-part="base"] .label { text-align: left; }
  .tone-group[data-part] ol { flex-direction: column; gap: 6px; align-items: flex-end; }
  .tone-group[data-part="base"] ol { align-items: flex-start; }
  .tone-group[data-part] i { width: 17px; height: 17px; }
  .tone-group[data-part] button[aria-pressed="true"] i { outline-width: 1.5px; outline-offset: 1.5px; }
  .tone-group[data-part] .more { width: auto; margin: 7px 0 0; font-size: 7.5px; letter-spacing: 0.06em; text-align: right; white-space: nowrap; }
  .tone-group[data-part="base"] .more { text-align: left; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .tone-group[data-part="wall"], .tone-group[data-part="base"] { bottom: 124px; }
  .build-head, .stage-call { top: 22px; }
  .kinds { top: 104px; }
}
@media (max-width: 820px) { .build-head { font-size: 13.5px; line-height: 1.3; max-width: calc(100% - var(--side) * 2 - 126px); } }

/* ---------- Phone: everything lower, the call button under the thumb ---------- */
@media (max-width: 820px) {
  .build-head { top: 9svh; max-width: none; right: var(--side); font-size: 15px; }
  .kinds { top: calc(9svh + 78px); }
  .stage-call { top: auto; bottom: 132px; right: var(--side); }
  .tone-group[data-part="wall"] { bottom: 184px; }
  .tone-group[data-part="base"] { bottom: 134px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .build-head { top: 7svh; }
  .kinds { top: calc(7svh + 72px); }
  .stage-call { top: auto; bottom: 124px; }
  .tone-group[data-part="wall"] { bottom: 174px; }
  .tone-group[data-part="base"] { bottom: 124px; }
}
/* Questions fold away: only the question shows until it is opened, one open at a time */
.qa { margin: 22px 0 0; border-bottom: 1px solid var(--ink); }
.qa details { border-top: 1px solid var(--ink); }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0;
  font: 600 clamp(17px, 1.3vw, 21px)/1.3 var(--sans); letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {          /* a plus that becomes a minus */
  content: ""; position: absolute; right: 6px; top: 50%; width: 15px; border-top: 1.5px solid var(--ink);
}
.qa summary::after { transform: rotate(90deg); transition: transform 0.25s ease; }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa details[open] summary::before, .qa details[open] summary::after { border-color: var(--mark); }
.qa summary:hover { color: var(--mark); }
.qa p { margin: -4px 0 20px; max-width: 34em; color: var(--soft); }
@media (max-width: 820px) {
  .qa summary { font-size: 16px; padding: 15px 38px 15px 0; }
  .qa p { font-size: 14.5px; }
}
/* ---------- Phone layout as one set of rules ----------
   Two horizontal lines frame the model page: the building-type line above, the step rail below.
   Everything else is placed from those two:
     - both colour lines share one position: the exact midpoint between the two lines,
       base at the left margin, wall at the right margin, so they always line up with each other;
     - the call button sits a fixed gap above the rail.
   Move either line and the rest follows. */
@media (max-width: 820px) {
  .sticky { --type-line: calc(9svh + 78px); --rail-h: 118px; }
  .kinds { top: var(--type-line); }
  .rail { height: var(--rail-h); }
  .stage-call { top: auto; bottom: calc(var(--rail-h) + 14px); }
  .tone-group[data-part="wall"], .tone-group[data-part="base"] {
    top: calc((var(--type-line) + 100% - var(--rail-h)) / 2);
    bottom: auto;
    transform: translateY(-50%) !important;
  }
}
@media (max-width: 820px) and (max-height: 700px) {
  .sticky { --type-line: calc(7svh + 72px); --rail-h: 112px; }
  .kinds { top: var(--type-line); }
  .rail { height: var(--rail-h); }
  .stage-call { top: auto; bottom: calc(var(--rail-h) + 12px); }
  .tone-group[data-part="wall"], .tone-group[data-part="base"] { top: calc((var(--type-line) + 100% - var(--rail-h)) / 2); bottom: auto; }
}
/* Phone: the two colour lines sit 70% of the way down from the type line to the rail
   (was the midpoint). One number moves both. */
@media (max-width: 820px) {
  .sticky { --tone-pos: 0.7; }
  .tone-group[data-part="wall"], .tone-group[data-part="base"] {
    top: calc(var(--type-line) + (100% - var(--rail-h) - var(--type-line)) * var(--tone-pos));
  }
}
/* Accent: a bright red. One variable drives
   every mark, tick, hover, selected state and the emphasised words in the heading. */
:root { --mark: #d92b2b; }

/* Thank-you page: the same left edge as the name in the header, on every screen.
   (--edge on desktop, --side on phone: the two variables every other page aligns to.) */
.thanks { padding-left: var(--edge); padding-right: var(--edge); }
@media (max-width: 820px) {
  .thanks { padding-left: var(--side); padding-right: var(--side); }
}
.thanks { max-width: none; }
.thanks h1 { max-width: 15em; }

/* ---- The film is in. It is a bright, mid-tone picture, so everything over it turns white
        and one even veil (a little heavier top and bottom) keeps the words readable. ---- */
.film-frame { background: #2c4a52; }
.film-frame video { position: absolute; inset: 0; display: block; }
.film-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,18,20,.5), rgba(12,18,20,.3) 28%, rgba(12,18,20,.3) 60%, rgba(12,18,20,.58));
}
.intro .top .mark, .intro .top nav a, .film-text .label, .film-text h1, .film-text h1 em, .film-text .link { color: #fff; }
.film-text h1 { text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.intro .top nav a:hover, .film-text .link:hover { color: #fff; opacity: .75; }
.film-text .link { border-color: rgba(255,255,255,.7); }

/* the two emphasised words keep the accent colour over the film */
.film-text h1 em { color: var(--mark); }

/* accent: bright ochre */
:root { --mark: #e09a12; }
