/* ==========================================================================
   BuildAxis Group — Spec Sheet
   The site organised as a construction document: title block, numbered
   divisions, a scope schedule, a basis-of-service definition list, a
   submittal checklist, an enquiry form. Rules run edge to edge; content
   sits in the shell. One typeface, one accent, no decoration.
   Order: tokens > reset > base > shell/bands > nav > hero > sections > motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* --- colour ------------------------------------------------------------ */
  --paper: #ffffff;
  --fill: #f7f7f7;           /* group rows, sunk cells */
  --ink: #101010;            /* headings, data          — 19.0:1 */
  --ink-2: #4a4a4a;          /* body copy               —  8.9:1 */
  --ink-3: #666666;          /* labels, meta — 5.7:1 white, 4.9:1 on tone */
  --rule: #e2e2e2;           /* hairline between rows */
  --rule-2: #c9c9c9;         /* heavier hairline */
  --clay: #b4552f;           /* the single accent */
  --clay-ink: #9a421f;       /* accent for text         —  6.6:1 */
  --alert: #9e2b20;

  /* --- type -------------------------------------------------------------- */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system,
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* --- space (4px base) -------------------------------------------------- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* --- layout ------------------------------------------------------------ */
  --max: 1440px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 58px;

  /* --- motion ------------------------------------------------------------ */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
dl,
dd,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
}

/* --- the two display sizes --------------------------------------------- */

/* title-block headline: heavy, uppercase, set tight like a drawing title */
.title-1 {
  font-size: clamp(2.2rem, 5.6vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

/* division statement: sentence case, so the page is not all shouting */
.statement {
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
  font-weight: 600;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

.statement + .note {
  margin-top: var(--s5);
}

/* the model band's statement is a single line of plain prose, not a headline
   wrap — it wants more measure than the 22ch default */
.statement--wide {
  max-width: 34ch;
}

.note {
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 58ch;
}

/* --- the label: every small caps run on the page ------------------------ */

.label {
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.label--ink {
  color: var(--ink);
}

.label--clay {
  color: var(--clay-ink);
}

.skip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: var(--s3) var(--s5);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  transform: translateY(-110%);
  transition: transform 0.18s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. SHELL + SECTION PANELS
   Rules run the full viewport width; content is inset by the shell.
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Sections are full-bleed tone panels. The tone change is the only divider —
   no rules, no numbers, no header bars. */
.band {
  background: var(--paper);
}

/* One reversed panel for contrast. Redefining the tokens inside it flips
   every component it contains without a single component-level override. */
.band--ink {
  --paper: #101010;
  --fill: #1d1d1d;
  --ink: #ffffff;
  --ink-2: #b9b9b9;
  --ink-3: #909090;
  --rule: rgba(255, 255, 255, 0.14);
  --rule-2: rgba(255, 255, 255, 0.3);
  --clay: #d9814f;
  --clay-ink: #d9814f;   /* 6.5:1 on the ink panel; the light clay fails it */
  background: #101010;
  color: var(--ink-2);
}

.band__body {
  padding-block: clamp(var(--s5), 3.5vw, var(--s8));
}

/* the model band carries a tall figure, so it runs tighter than the prose
   bands — the viewer supplies the vertical presence the padding would */
.band--ink .band__body {
  padding-block: clamp(var(--s4), 2.2vw, 40px);
}

.band--ink .band__name {
  margin-bottom: var(--s4);
}

/* the statement sits above a figure that is already carrying the section, so
   it is set down a step from the prose bands' */
.band--ink .statement {
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.15;
}

/* the section name, set small so the statement stays the loud element */
.band__name {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay-ink);
  margin-bottom: var(--s6);
}

/* --------------------------------------------------------------------------
   5. TITLE BAR — wordmark + section links (no burger, no drawer)
   -------------------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.bar__in {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  width: 20px;
  height: 20px;
  flex: none;
  overflow: visible;
  transition: transform 0.5s var(--ease);
}

.brand__mark path,
.brand__mark line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.brand__mark .axis-y {
  stroke: var(--clay);
}

.brand:hover .brand__mark {
  transform: rotate(90deg);
}

/* the index doubles as navigation — numbers on every screen size */
.dex {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dex__a {
  padding: var(--s2) var(--s3);
  font-size: 0.9375rem;
  white-space: nowrap;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.dex__a:hover {
  color: var(--ink);
}

.dex__a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

/* --------------------------------------------------------------------------
   6. BUTTONS + LINKS — square, document-plain
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 48px;
  padding: 13px var(--s5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
}

.btn--ghost {
  background: none;
  color: var(--ink);
  border-color: var(--rule-2);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: none;
  border-color: var(--ink);
  color: var(--ink);
}

.btn__x {
  font-weight: 400;
}

.link {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link:hover {
  color: var(--clay-ink);
  border-color: var(--clay);
}

/* --------------------------------------------------------------------------
   7. TITLE BLOCK (hero)
   -------------------------------------------------------------------------- */

.head__in {
  padding-block: clamp(var(--s5), 3vw, var(--s7)) clamp(var(--s6), 4vw, var(--s8));
}

.head__eyebrow {
  margin-bottom: var(--s5);
}

.head h1 {
  max-width: 18ch;
}

.head__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  padding-top: var(--s5);
  border-top: 1px solid var(--rule);
}

.head__note {
  flex: 1 1 34ch;
  min-width: 0;
  margin: 0;
}

.head__act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* the metadata strip — a drawing's title block, four cells on one rule */
.tblock {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.tblock__in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tblock__cell {
  padding: var(--s5) var(--s5) var(--s5) 0;
  border-left: 1px solid var(--rule);
  padding-left: var(--s5);
}

.tblock__cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.tblock__cell dt {
  margin-bottom: var(--s2);
}

.tblock__cell dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. THE COMBINED MODEL — interactive federated-model viewer
   Lives on the reversed panel, so it inherits the flipped tokens. The SVG is
   a true isometric projection; discipline groups are painted back to front so
   the only elements that overlap out of depth order are the two clashes.
   -------------------------------------------------------------------------- */

.viz {
  /* the stage scales with its own width, so capping the panel is what keeps
     the figure from growing to full-bleed height on a wide screen */
  max-width: 1040px;
  margin-top: clamp(var(--s4), 2vw, var(--s5));
  border: 1px solid var(--rule-2);
  background: #0a0d0f;
}

.viz__head,
.viz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.viz__head {
  border-bottom: 1px solid var(--rule);
}

.viz__title {
  color: var(--ink);
}

.viz__dots {
  display: inline-flex;
  gap: 5px;
}

.viz__dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--rule-2);
}

.viz__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
}

.viz__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s3) var(--s4);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.viz__stage.is-drag {
  cursor: grabbing;
}

.viz__svg {
  width: 100%;
  height: auto;
}

/* the scene group carries the pointer parallax; the viewBox carries the zoom */
.viz__scene {
  transition: transform 0.4s var(--ease);
}

.viz__hint {
  position: absolute;
  left: var(--s4);
  bottom: var(--s3);
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

/* --- discipline groups: hidden, or dimmed while another is previewed ---- */

.ly {
  transition: opacity 0.35s var(--ease);
}

.ly.is-off {
  opacity: 0;
  pointer-events: none;
}

.viz[data-solo] .ly:not(.is-off) {
  opacity: 0.12;
}

.viz[data-solo="arch"] .ly[data-layer="arch"],
.viz[data-solo="struct"] .ly[data-layer="struct"],
.viz[data-solo="mech"] .ly[data-layer="mech"],
.viz[data-solo="elec"] .ly[data-layer="elec"],
.viz[data-solo="plumb"] .ly[data-layer="plumb"] {
  opacity: 1;
}

/* --- flow: a dotted run along each service centreline ------------------- */

.flow {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: flow 5s linear infinite;
}

.flow--mech  { stroke: #c6f2f2; }
.flow--elec  { stroke: #f4e7ab; }
.flow--plumb { stroke: #c8dfff; }

@keyframes flow {
  to { stroke-dashoffset: -160; }
}

/* --- leader labels ------------------------------------------------------ */

.viz__leads {
  transition: opacity 0.3s var(--ease);
}

.lead__l {
  fill: none;
  stroke: #6d7780;
  stroke-width: 1;
}

.lead__o {
  fill: #6d7780;
}

.lead__t {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: #8d979f;
}

/* --- clash markers ------------------------------------------------------ */

.mk {
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.mk__halo {
  fill: currentColor;
  opacity: 0.14;
  transform-box: fill-box;
  transform-origin: center;
}

.mk__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: 0.9;
  transition: stroke-width 0.25s var(--ease);
}

.mk__dot {
  fill: currentColor;
}

.mk__tick {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mk--crit { color: #e0503a; }
.mk--warn { color: #e0a33a; }
.mk--done { color: #57b189; }

.mk--done .mk__ring {
  stroke-dasharray: 3 3;
}

.mk--crit .mk__halo,
.mk--warn .mk__halo {
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.5); opacity: 0.4; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.mk:hover,
.mk.is-on {
  transform: scale(1.25);
}

.mk.is-on .mk__ring {
  stroke-width: 2.6;
}

/* while an issue is selected the drawing quiets down around it */
.viz.is-zoom .viz__leads,
.viz.is-zoom .viz__hint {
  opacity: 0;
}

/* --- side panel: layer schedule + issue log ----------------------------- */

.viz__side {
  padding: var(--s3) var(--s4) var(--s4);
  border-left: 1px solid var(--rule);
  background: #0d1215;
}

.viz__sub {
  color: var(--ink);
  margin-bottom: var(--s2);
}

.viz__sub--gap {
  margin-top: 20px;
}

.lyrs,
.isus {
  border-top: 1px solid var(--rule-2);
}

.lyr {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: 7px 0;
  text-align: left;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.lyr__sw {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--c);
}

.lyr__name {
  flex: 1;
  min-width: 0;
}

.lyr__state {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.lyr:hover {
  color: var(--clay-ink);
}

.lyr[aria-pressed="false"] {
  opacity: 0.4;
}

.lyr[aria-pressed="false"] .lyr__sw {
  background: none;
  box-shadow: inset 0 0 0 1px var(--rule-2);
}

.viz__ctl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-top: var(--s3);
}

.ctl {
  padding: 9px var(--s3);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ctl:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

.isu {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 9px 0 9px var(--s3);
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  transition: background-color 0.2s var(--ease);
}

.isu--crit { border-left-color: #e0503a; }
.isu--warn { border-left-color: #e0a33a; }
.isu--done { border-left-color: #57b189; }

.isu__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}

.isu__id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.isu__flag,
.isu__meta {
  font-size: 0.5938rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.isu__txt {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.isu:hover {
  background: rgba(255, 255, 255, 0.045);
}

.isu[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.isu[aria-pressed="true"] .isu__flag {
  color: var(--clay-ink);
}

/* --------------------------------------------------------------------------
   9. CORE SERVICES — four numbered cells on one rule
   -------------------------------------------------------------------------- */

.svcs {
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.svc {
  position: relative;
  padding: var(--s5) var(--s5) var(--s7) 0;
  border-bottom: 1px solid var(--rule);
}

.svc + .svc {
  border-left: 1px solid var(--rule);
  padding-left: var(--s5);
}

/* a clay rule draws across the cell head on hover */
.svc::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: var(--s5);
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.svc + .svc::after {
  left: -1px;
}

.svc:hover::after {
  transform: scaleX(1);
}

.svc__n {
  display: block;
  margin-bottom: var(--s6);
  transition: transform 0.35s var(--ease);
}

.svc:hover .svc__n {
  transform: translateY(-2px);
}

.svc__name {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 700;
}

.svc__desc {
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. COORDINATION PROCESS — six stages, the rule fills as they arrive
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(var(--s6), 4vw, var(--s7));
}

.step {
  position: relative;
  padding: var(--s5) var(--s5) 0 0;
}

.step__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
}

.step__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.step.is-on .step__rule::after {
  transform: scaleX(1);
}

.step__n {
  display: block;
  margin-bottom: var(--s4);
  color: var(--ink-3);
  transition: color 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.step.is-on .step__n {
  color: var(--clay-ink);
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--s3);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   11. EXAMPLE ISSUE — draggable section comparison + the issue record
   -------------------------------------------------------------------------- */

.dtl {
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(var(--s6), 4vw, var(--s8));
  align-items: start;
}

.dt {
  margin: 0;
}

.dt__frame {
  position: relative;
  overflow: hidden;
  background: #0f1418;
  border: 1px solid var(--ink);
  color: #7f8a93;               /* the hatch pattern paints with currentColor */
}

.dt__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* the range input is the whole frame: click to jump, drag or arrow to scrub */
.dt__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}

.dt__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 999px;
  cursor: ew-resize;
}

.dt__range::-moz-range-thumb {
  width: 48px;
  height: 999px;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: ew-resize;
}

.dt__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 0;
  pointer-events: none;
}

.dt__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #0f1418;
  border: 1px solid #cfd6db;
  transition: transform 0.25s var(--ease);
}

.dt__frame:hover .dt__handle::after,
.dt__range:focus-visible + .dt__handle::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
}

.dt__range:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: -2px;
}

/* --- the drawing itself -------------------------------------------------- */

.dt__hatch {
  fill: url(#hatch);
  opacity: 0.5;
}

.dt__edge {
  fill: none;
  stroke: #6d7780;
  stroke-width: 1.2;
}

.dt__ceil {
  fill: none;
  stroke: #545e66;
  stroke-width: 1;
  stroke-dasharray: 9 6;
}

.dt__steel {
  fill: #aab2b8;
  stroke: #5a626a;
  stroke-width: 1;
}

.dt__duct {
  fill: #2c8e8e;
  stroke: #7fd6d6;
  stroke-width: 1.2;
}

.dt__flow {
  fill: none;
  stroke: #c6f2f2;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: flow 5s linear infinite;
}

.dt__dim {
  fill: none;
  stroke: #e0a33a;
  stroke-width: 1;
}

.dt__t {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: #8d979f;
}

.dt__t--duct { fill: #9fdede; }
.dt__t--beam { fill: #c2cad0; }
.dt__t--dim  { fill: #e0a33a; }

.dt__state {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: #cfd6db;
}

.dt__split {
  fill: none;
  stroke: #cfd6db;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.dt__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-top: var(--s3);
}

.dt__capx {
  color: var(--clay-ink);
}

/* --- the issue record ---------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule-2);
  color: var(--ink);
}

.chip--crit {
  border-color: var(--alert);
  color: var(--alert);
}

.chip--crit::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--alert);
}

.dtl__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: var(--s4) 0 var(--s5);
}

.dtl__list {
  border-top: 1px solid var(--ink);
}

.dtl__row {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}

.dtl__row dd {
  margin: var(--s2) 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12. WHO WE SUPPORT — definition list on the reversed panel
   -------------------------------------------------------------------------- */

.sup {
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  border-top: 1px solid var(--ink);
}

.sup__row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: var(--s5);
  align-items: baseline;
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
}

.sup__row dt {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.sup__row dd {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   13. TEAM — one profile plate, copy alongside
   -------------------------------------------------------------------------- */

.team {
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: center;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* portrait plate: the square source then fits top to bottom, so the caption
     lands below the chin instead of across the face */
  aspect-ratio: 4 / 5;
  min-height: 18rem;
  margin: 0;
  padding: var(--s6);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

/* The portrait fills the plate; the ink panel stays visible while it loads and
   shows through the scrim underneath the name. */
.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: contrast(1.04);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.card:hover .card__photo {
  filter: contrast(1.02);
  transform: scale(1.02);
}

.card__id {
  position: relative;
  margin-top: auto;
  padding-top: var(--s7);
  /* scrim sized to the caption, bled out to the plate edges */
  background: linear-gradient(to top, rgba(16, 16, 16, 0.92) 38%, rgba(16, 16, 16, 0) 100%);
  margin-inline: calc(var(--s6) * -1);
  margin-bottom: calc(var(--s6) * -1);
  padding-inline: var(--s6);
  padding-bottom: var(--s4);
}

.card__name {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.018em;
}

.card__role {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: #d9814f;
}

.team__copy p {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.65;
}

.team__copy p + p {
  margin-top: var(--s4);
}

.team__copy .pull {
  margin-top: var(--s5);
  padding-left: var(--s4);
  border-left: 2px solid var(--clay);
  color: var(--ink);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   14. CONTACT — what to send by email + details
   -------------------------------------------------------------------------- */

/* The form is gone: enquiries come in by email, so this block tells people
   exactly what to put in one. Numbered rows, same vocabulary as the services
   and process lists. */
.ask {
  border-top: 1px solid var(--ink);
  margin-top: clamp(var(--s6), 4vw, var(--s7));
}

.ask__h {
  display: block;
  padding-top: var(--s4);
}

.ask__list {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
}

.ask__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: baseline;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}

.ask__n {
  display: block;
}

.ask__t {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ask__d {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.ask__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
  padding-top: clamp(var(--s5), 3vw, var(--s6));
}

.ask__note {
  flex: 1 1 16rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.ask__note a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ask__note a:hover {
  color: var(--clay-ink);
  border-color: var(--clay);
}

/* --- enquiry layout: the email brief left, issued-by block right -------- */

.enq {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
  gap: clamp(var(--s6), 5vw, var(--s9));
  /* the details block sits centred against the form, not pinned to its top */
  align-items: center;
}

.issued {
  border-top: 1px solid var(--ink);
}

.issued__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--s4);
  align-items: baseline;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}

.issued__row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}

.issued__row dd a {
  border-bottom: 1px solid var(--rule-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.issued__row dd a:hover {
  color: var(--clay-ink);
  border-color: var(--clay);
}

/* --------------------------------------------------------------------------
   15. FOOTER — closing title block
   -------------------------------------------------------------------------- */

.foot {
  background: var(--paper);
  border-top: 1px solid var(--rule-2);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  padding-block: var(--s6) var(--s7);
}

.foot__mail {
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.foot__mail:hover {
  color: var(--clay-ink);
}

/* --------------------------------------------------------------------------
   16. MOTION — one effect: rows and blocks rise a little on first sight
   -------------------------------------------------------------------------- */

.reveal [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  /* the viewer's side panel stops being a side panel */
  .viz__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .viz__side {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .lyrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s5);
  }

  .isus {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--s5);
  }

  .viz__ctl {
    grid-template-columns: repeat(2, minmax(0, 12rem));
  }
}

@media (max-width: 1080px) {
  .enq,
  .dtl,
  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  /* stacked, the plate would run the full width and read as a banner */
  .card {
    max-width: 20rem;
  }

  .svcs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* the third cell starts a new row, so it loses its left rule and gains a
     top one — same trick the title block uses */
  .svc:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .svc:nth-child(odd)::after {
    left: 0;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    min-height: 14rem;
  }
}

@media (max-width: 900px) {
  .sup__row {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  }

  .isus {
    grid-template-columns: minmax(0, 1fr);
  }

  .tblock__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tblock__cell:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .tblock__cell:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .foot__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5) var(--s6);
  }
}

@media (max-width: 620px) {
  :root {
    --nav-h: 94px;
  }

  .svcs,
  .lyrs {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc {
    border-left: 0;
    padding-left: 0;
  }

  .svc::after {
    left: 0;
    right: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz__ctl {
    grid-template-columns: 1fr 1fr;
  }

  .dt__cap {
    flex-direction: column;
  }

  /* brand and index no longer fit on one line — stack them */
  .bar__in {
    min-height: 0;
    flex-wrap: wrap;
    row-gap: var(--s1);
    padding-block: var(--s3) var(--s2);
  }

  .brand {
    width: 100%;
  }

  .dex {
    width: 100%;
    justify-content: space-between;
  }

  .dex__a {
    padding-inline: 0;
    font-size: 0.8125rem;
  }

  .sup__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s2);
  }

  .ask__foot .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .head__act .btn {
    width: 100%;
  }

  .dex__a {
    padding-inline: var(--s2);
  }
}

/* --------------------------------------------------------------------------
   18. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  /* .reveal sits on <html>, so match its specificity or this loses the
     cascade when the reader turns reduced motion on after load */
  .reveal [data-reveal],
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   19. PRINT — it is already a document; let it behave like one
   -------------------------------------------------------------------------- */

@media print {
  .bar,
  .ask__foot,
  .head__act,
  .viz__side,
  .viz__foot,
  .viz__hint,
  .dt__range,
  .dt__handle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .band {
    break-inside: avoid;
  }

  .svc,
  .step,
  .sup__row {
    break-inside: avoid;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
