/* MASTER TILES — sample board system */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* board */
  --board: #1e2221;
  --board-raised: #262b29;
  --board-recess: #171a19;
  --joint: #363c3a;
  --on-board: #ebe9e4;
  --on-board-soft: #b3b8b3;
  --on-board-faint: #8d938e;

  /* printed chip label */
  --label: #f5f4f0;
  --label-ink: #151716;
  --label-soft: #4f5552;
  --label-rule: #d6d4ce;

  /* carbonless docket */
  --docket: #f1dd6a;
  --docket-deep: #e6cd45;
  --docket-ink: #1c1a10;
  --docket-soft: #5a5326;
  --docket-rule: #c8b240;

  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1440px;
  --joint-w: clamp(6px, 0.8vw, 12px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchor targets and focused elements clear of the sticky header strip */
  scroll-padding-top: 84px;
  scrollbar-color: var(--joint) var(--board-recess);
}

body {
  margin: 0;
  background-color: var(--board);
  /* fibre-board grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--on-board);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--docket); color: var(--docket-ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--board-recess); }
::-webkit-scrollbar-thumb { background: var(--joint); border: 3px solid var(--board-recess); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #4a514e; }

img, svg, canvas { display: block; max-width: 100%; }

a, button, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(241, 221, 106, 0.18);
}

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--docket);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--docket);
  color: var(--docket-ink);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 10px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ */
/* Header strip — the board's printed top rail                         */
/* ------------------------------------------------------------------ */

.strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--board-raised);
  border-bottom: 1px solid var(--joint);
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  text-decoration: none;
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__mark {
  width: 22px; height: 22px;
  flex: none;
  align-self: center;
}
.wordmark small {
  font-size: 0.55em;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  color: var(--on-board-faint);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-board-soft);
  padding-block: 8px;
  position: relative;
  transition: color 160ms var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--docket);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav__link:hover { color: var(--on-board); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--on-board); }

.strip__cta { flex: none; }

.menu-btn {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--joint);
  color: var(--on-board);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
.menu-btn svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .strip .strip__cta { display: none; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--board-raised);
    border-bottom: 1px solid var(--joint);
    margin: 0;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }
  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--joint);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--docket); }
}

/* ------------------------------------------------------------------ */
/* Buttons — docket tabs                                              */
/* ------------------------------------------------------------------ */

.btn {
  --b-bg: var(--docket);
  --b-fg: var(--docket-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--b-bg);
  color: var(--b-fg);
  border: 0;
  border-bottom: 3px solid var(--docket-rule);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 220ms var(--ease-out); }
.btn:hover { background: var(--docket-deep); text-decoration: none; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 2px; }
.btn--sm { min-height: 40px; padding: 9px 14px; font-size: 0.75rem; }
.btn--ink {
  --b-bg: var(--docket-ink);
  --b-fg: var(--docket);
  border-bottom-color: #000;
}
.btn--ink:hover { background: #000; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Type                                                               */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  font-stretch: 112%;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 0.94;
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-stretch: 112%;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-stretch: 105%;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--on-board-soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.prose p { max-width: 66ch; text-wrap: pretty; color: var(--on-board-soft); }
.prose p strong { color: var(--on-board); font-weight: 650; }
.spec {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Sections — rhythm                                                  */
/* ------------------------------------------------------------------ */

.section {
  padding-block: clamp(80px, 11vw, 168px) clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--joint);
}
.section--flush { border-top: 0; }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head .lede { margin: 0; }
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; align-items: start; }
}

/* ------------------------------------------------------------------ */
/* Chips — mounted material faces                                     */
/* ------------------------------------------------------------------ */

.chip {
  position: relative;
  margin: 0;
  background: var(--chip-base, #888);
  isolation: isolate;
  min-height: 0;
}
.chip::before {
  /* the recess the chip sits in, revealed when lifted */
  content: "";
  position: absolute;
  inset: 0 0 -5px 0;
  background: var(--board-recess);
  outline: 1px dashed var(--joint);
  outline-offset: -1px;
  z-index: -2;
}
.chip::after {
  /* tile body thickness: the chip is a raised piece, no shadow */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 5px;
  background: var(--chip-edge, rgba(0,0,0,.35));
  z-index: -1;
}
.chip__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.chip__btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.chip__btn:focus-visible { outline-offset: -4px; }

/* the printed tag stuck to the chip's corner */
.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  background: var(--label);
  color: var(--label-ink);
  padding: 7px 10px 8px;
  pointer-events: none;
  transform-origin: 0 100%;
  transition: transform 300ms var(--ease-out);
}
.tag__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.tag__meta {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.chip:hover .tag { transform: translateY(-2px); }

/* lifted state: the full printed label unfolds over the chip */
.label-card {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: var(--label);
  color: var(--label-ink);
  padding: 16px 16px 14px;
  clip-path: inset(calc(100% - 46px) calc(100% - 140px) 0 0);
  opacity: 0;
  visibility: hidden;
  transition:
    clip-path 420ms var(--ease-out),
    opacity 120ms linear,
    visibility 0s linear 420ms;
  max-height: calc(100% - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--label-rule) transparent;
}
.chip.is-open .label-card {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  visibility: visible;
  transition:
    clip-path 460ms var(--ease-out),
    opacity 80ms linear,
    visibility 0s;
}
.chip.is-open { z-index: 5; }
.chip.is-open .chip__btn { z-index: 1; }
.label-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--label-ink);
}
.label-card__name {
  font-size: 1rem;
  font-weight: 850;
  font-stretch: 110%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.label-card__close {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  margin: -6px -6px 0 0;
  background: none;
  border: 0;
  color: var(--label-ink);
  cursor: pointer;
}
.label-card__close svg { width: 16px; height: 16px; }
.label-card dl {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
}
.label-card dt,
.label-card dd {
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--label-rule);
  font-size: 0.74rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.label-card dt {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--label-soft);
}
.label-card dd { font-weight: 550; }
.label-card a {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Hero board                                                         */
/* ------------------------------------------------------------------ */

.hero {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  height: clamp(600px, calc(100svh - 64px - 72px), 860px);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  padding-top: clamp(4px, 2vw, 24px);
}
.hero__copy .lede { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
.hero .display { font-size: clamp(2.6rem, 4.9vw, 4.6rem); }
.hero__board-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--on-board-faint);
}

.board {
  display: grid;
  gap: var(--joint-w);
  /* the last column carries the narrow glazed chip, so it gets a little more width */
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr);
  grid-template-rows: 1.15fr 0.85fr 0.9fr;
  grid-template-areas:
    "mar mar mar por por por"
    "mar mar mar ter ter zel"
    "tra tra cer cer gra gra";
  height: calc(100% - 40px);
  padding: 14px;
  background:
    radial-gradient(circle, #5d6461 0 2.5px, #1a1d1c 3px, transparent 3.6px) 0 0 / 14px 14px no-repeat,
    radial-gradient(circle, #5d6461 0 2.5px, #1a1d1c 3px, transparent 3.6px) 100% 0 / 14px 14px no-repeat,
    radial-gradient(circle, #5d6461 0 2.5px, #1a1d1c 3px, transparent 3.6px) 0 100% / 14px 14px no-repeat,
    radial-gradient(circle, #5d6461 0 2.5px, #1a1d1c 3px, transparent 3.6px) 100% 100% / 14px 14px no-repeat,
    var(--board-raised);
  outline: 1px solid var(--joint);
}
.board .chip[data-area="mar"] { grid-area: mar; }
.board .chip[data-area="por"] { grid-area: por; }
.board .chip[data-area="ter"] { grid-area: ter; }
.board .chip[data-area="zel"] { grid-area: zel; }
.board .chip[data-area="tra"] { grid-area: tra; }
.board .chip[data-area="cer"] { grid-area: cer; }
.board .chip[data-area="gra"] { grid-area: gra; }

.board .chip[data-area="zel"] .tag { white-space: nowrap; }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; height: auto; }
  .board { height: auto; grid-template-rows: 300px 180px 200px; }
}
@media (max-width: 620px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 170px 170px 170px;
    grid-template-areas:
      "mar mar"
      "por ter"
      "zel tra"
      "cer gra";
  }

}

/* ------------------------------------------------------------------ */
/* Docket — carbonless order slip                                     */
/* ------------------------------------------------------------------ */

.docket {
  position: relative;
  background: var(--docket);
  color: var(--docket-ink);
  padding: 18px 20px 20px;
  /* perforated tear edge along the top */
  -webkit-mask:
    radial-gradient(circle 4px at 8px 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  mask:
    radial-gradient(circle 4px at 8px 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
}
.docket__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0 10px;
  border-bottom: 2px solid var(--docket-ink);
  margin-bottom: 4px;
}
.docket__title {
  font-size: 0.95rem;
  font-weight: 850;
  font-stretch: 118%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.docket__sub {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--docket-soft);
}
.field {
  display: grid;
  gap: 2px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--docket-rule);
}
.field label,
.field legend {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--docket-soft);
  padding: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0 2px;
  color: var(--docket-ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  caret-color: var(--docket-ink);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231c1a10' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px;
  padding-right: 24px;
  cursor: pointer;
}
.field select option { color: #111; background: #fff; }
.field input::placeholder,
.field textarea::placeholder { color: #5a5328; opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; }
.field:focus-within { border-bottom: 2px solid var(--docket-ink); padding-bottom: 7px; }
.field:focus-within label { color: var(--docket-ink); }
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--docket) inset;
  -webkit-text-fill-color: var(--docket-ink);
}
fieldset.field { border-width: 0 0 1px; border-style: solid; border-color: var(--docket-rule); margin: 0; min-width: 0; }
fieldset.field legend { float: left; width: 100%; }
fieldset.field .ticks { clear: both; }
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-bottom: 0;
  padding: 0;
}
.field--row > .field { border-bottom: 1px solid var(--docket-rule); }
.field[data-invalid] { border-bottom-color: #9b2a12; }
.field__error {
  font-size: 0.75rem;
  font-weight: 650;
  color: #8a240f;
}
.docket__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.docket__note {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--docket-soft);
  margin: 0;
  max-width: 34ch;
}
.docket--hero { max-width: 460px; margin-top: auto; }
.docket--hero .docket__note,
.close .docket__note { max-width: none; flex: 1 1 180px; }

/* checkbox chips inside docket */
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  border: 0;
  padding: 0;
}
.tick { position: relative; }
.tick input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.tick span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1.5px solid var(--docket-ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.tick input:checked + span { background: var(--docket-ink); color: var(--docket); }
.tick input:focus-visible + span { outline: 2px solid var(--docket-ink); outline-offset: 2px; }
.tick:hover span { background: rgba(28, 26, 16, 0.08); }
.tick input:checked:hover + span { background: #000; }

/* ------------------------------------------------------------------ */
/* Route — the one unbroken line                                      */
/* ------------------------------------------------------------------ */

.route {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 40px);
}
.route__line {
  position: relative;
  grid-row: 1 / span 7;
  grid-column: 1;
}
.route__line svg {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 4px;
  transform: translateX(-50%);
  overflow: visible;
}
.route__line .track { stroke: var(--joint); }
.route__line .run { stroke: var(--docket); }
.stage {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 3.4vw, 48px);
  position: relative;
}
.stage + .stage { border-top: 1px solid var(--joint); }
.stage__pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  left: calc(-56px - clamp(16px, 3vw, 40px));
  top: clamp(34px, 4.4vw, 62px);
  width: 56px;
  display: grid;
  place-items: center;
}
.stage__pin i {
  display: block;
  width: 16px; height: 16px;
  background: var(--board);
  border: 2px solid var(--joint);
  transform: rotate(45deg);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.stage.is-reached .stage__pin i { background: var(--docket); border-color: var(--docket); }
/* printed tag stuck across the route line */
.stage__pin b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--label);
  color: var(--label-ink);
  padding: 10px 5px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  transition: background-color 300ms var(--ease-out);
}
.stage.is-reached .stage__pin b { background: var(--docket); color: var(--docket-ink); }
.stage.is-reached .stage__copy p { color: var(--on-board-soft); max-width: 52ch; margin: 14px 0 0; text-wrap: pretty; }
.stage__media {
  margin: 0;
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--board-recess);
}
.stage:nth-child(odd) .stage__media { aspect-ratio: 5 / 2; width: 88%; justify-self: end; }
.stage__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.stage__media figcaption {
  position: absolute;
  left: -14px; bottom: -12px;
  background: var(--label);
  color: var(--label-ink);
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage--origins { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding-bottom: clamp(72px, 7vw, 104px); }
.stage--origins .stage__copy { grid-column: 1; }
.mounts {
  grid-column: 1 / -1;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: var(--joint-w);
  align-items: end;
}
.mount { position: relative; }
.mount .chip { height: var(--h, 180px); }
.mount .chip::before { display: none; }
.mount:nth-child(1) { --h: 230px; }
.mount:nth-child(2) { --h: 170px; }
.mount:nth-child(3) { --h: 128px; }
.mount:nth-child(4) { --h: 196px; }
.mount .origin {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 14px);
  margin: -44px 0 -40px 14px;
  padding: 10px 14px 12px;
  gap: 6px;
}
.mount:nth-child(3) .origin,
.mount--end .origin { max-width: calc(100% - 14px); }
.mount .origin__goods { padding-top: 6px; }
.stage--end { align-items: center; }
.docket--slip {
  display: block;
  text-decoration: none;
  max-width: 420px;
  width: 100%;
  justify-self: end;
  transition: transform 220ms var(--ease-out);
}
.docket--slip:hover { transform: translateY(-3px); text-decoration: none; }
.docket__slip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-weight: 650;
}
.docket__slip-row svg { width: 20px; height: 20px; transition: transform 220ms var(--ease-out); }
.docket--slip:hover .docket__slip-row svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .mounts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 44px; }
  .mount:nth-child(n) { --h: 200px; }
  .mount .origin, .mount--end .origin, .mount:nth-child(3) .origin { margin: -30px 0 -26px 8px; max-width: calc(100% - 4px); width: auto; padding: 7px 9px 8px; gap: 4px; }
  .mount .origin__region { font-size: 0.82rem; }
  .mount .origin__goods { display: none; }
  .stage:nth-child(odd) .stage__media { width: 100%; }
  .docket--slip { justify-self: stretch; max-width: none; }
}

@media (max-width: 860px) {
  .route { grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; }
  .stage, .stage--origins { grid-template-columns: 1fr; }
  .stage__media figcaption { left: -8px; }
  .stage__pin { left: -58px; width: 56px; top: clamp(30px, 4vw, 56px); }
}

/* origin labels */
.origin {
  background: var(--label);
  color: var(--label-ink);
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.origin__region {
  font-size: 1.05rem;
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}
.origin__goods {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-soft);
  padding-top: 8px;
  border-top: 1px solid var(--label-rule);
}
.origin p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: #2c302e; }

/* ------------------------------------------------------------------ */
/* Range strip (index)                                                */
/* ------------------------------------------------------------------ */

.range-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--joint-w);
}
.range-rail a {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  background: var(--board-raised);
  min-height: 100%;
}
.range-rail .chip { aspect-ratio: 4 / 3; }
.range-rail .chip::after { display: none; }
.range-rail .chip::before { display: none; }
.range-rail__text { padding: 16px 16px 20px; display: grid; gap: 8px; align-content: start; }
.range-rail__name {
  font-size: 1.1rem;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.range-rail__name svg { width: 18px; height: 18px; flex: none; color: var(--on-board-faint); transition: transform 220ms var(--ease-out), color 220ms var(--ease-out); }
.range-rail a:hover .range-rail__name svg { transform: translateX(4px); color: var(--docket); }
.range-rail__text p { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--on-board-soft); }
.range-rail a:hover { background: #2c312f; }
@media (max-width: 1080px) { .range-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .range-rail__text { padding: 12px 12px 16px; } .range-rail__name { font-size: 1rem; } .range-rail__text p { font-size: 0.85rem; } }

/* ------------------------------------------------------------------ */
/* Spec sheet table (why trade buys direct)                           */
/* ------------------------------------------------------------------ */

.sheet {
  background: var(--label);
  color: var(--label-ink);
  padding: clamp(20px, 3vw, 40px);
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--label-ink);
}
.sheet__title {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 850;
  font-stretch: 118%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sheet__ref { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label-soft); }
.sheet__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--label-rule);
  align-items: baseline;
}
.sheet__row:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet__row h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 800;
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
.sheet__row p { margin: 0; color: #303532; line-height: 1.5; text-wrap: pretty; }
.sheet__row .spec { color: var(--label-soft); text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; }
.sheet__colhead {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 12px 0;
  border-bottom: 1px solid var(--label-ink);
  color: var(--label-soft);
}
@media (max-width: 760px) {
  .sheet__row, .sheet__colhead { grid-template-columns: 1fr; gap: 8px; }
  .sheet__colhead { display: none; }
}

/* ------------------------------------------------------------------ */
/* Adhesive — trowel profile and setting table                        */
/* ------------------------------------------------------------------ */

.setting {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 960px) { .setting { grid-template-columns: 1fr; } }
.setting > *, .split > *, .close > *, .contact > *, .hero__grid > * { min-width: 0; }
.profile {
  margin: 0;
  background: var(--board-raised);
  padding: clamp(18px, 2.4vw, 30px);
}
.profile svg { width: 100%; height: auto; }
.profile figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--on-board-soft);
}
.profile .p-tile { fill: #d9d5cd; }
.profile .p-tile-edge { fill: #a9a59d; }
.profile .p-bed { fill: #8f9592; }
.profile .p-bed-ridge { fill: #a4aaa7; }
.profile .p-sub { fill: #3a403e; }
.profile .p-sub-hatch { stroke: #4b5250; }
.profile .p-dim { stroke: var(--docket); fill: none; }
.profile .p-dimtext { fill: var(--docket); font: 700 13px var(--font); letter-spacing: 0.08em; }
.profile .p-text { fill: var(--on-board-soft); font: 600 12px var(--font); letter-spacing: 0.1em; text-transform: uppercase; }

.settable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.settable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 560px;
}
.settable caption {
  text-align: left;
  padding-bottom: 16px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 780;
  font-stretch: 105%;
  color: var(--on-board);
}
.settable th,
.settable td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--joint);
  font-size: 0.95rem;
  line-height: 1.4;
}
.settable thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-board-faint);
  border-bottom: 2px solid var(--on-board-faint);
}
.settable tbody th { font-weight: 750; color: var(--on-board); }
.settable td { color: var(--on-board-soft); }
.class {
  display: inline-block;
  background: var(--label);
  color: var(--label-ink);
  padding: 2px 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.material__label .class,
.supplier .class { background: var(--label-ink); color: var(--label); }
.settable td:nth-child(3) { white-space: nowrap; }
.close > :last-child:not(.docket) { justify-self: end; }
.close > .supplier { width: 100%; max-width: 460px; }
@media (max-width: 960px) { .close > :last-child:not(.docket) { justify-self: start; } }
.fineprint {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--on-board-faint);
  max-width: 70ch;
}

/* ------------------------------------------------------------------ */
/* Closing docket band                                                */
/* ------------------------------------------------------------------ */

.close {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.close .docket { max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 960px) {
  .close { grid-template-columns: 1fr; }
  .close .docket { justify-self: stretch; max-width: none; }
}

/* ------------------------------------------------------------------ */
/* Footer — bottom rail                                               */
/* ------------------------------------------------------------------ */

.foot {
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--board-raised);
  border-top: 1px solid var(--joint);
  padding-block: clamp(40px, 5vw, 64px) 28px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
}
.foot__brand .wordmark { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.foot__brand p { color: var(--on-board-soft); margin: 14px 0 0; max-width: 38ch; font-size: 0.95rem; }
.foot h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-board-faint);
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; color: var(--on-board-soft); }
.foot ul a:hover { color: var(--on-board); text-decoration: underline; }
.foot dl { margin: 0; display: grid; gap: 10px; }
.foot dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-board-faint); }
.foot dd { margin: 2px 0 0; color: var(--on-board-soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--joint);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--on-board-faint);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Inner-page heads                                                   */
/* ------------------------------------------------------------------ */

.pagehead {
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.pagehead .lede { margin: 0; }
@media (max-width: 860px) { .pagehead { grid-template-columns: 1fr; align-items: start; } }

/* ------------------------------------------------------------------ */
/* Range page — one row per material                                  */
/* ------------------------------------------------------------------ */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px 8px 8px;
  background: var(--board-raised);
  border: 1px solid var(--joint);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-board-soft);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.jump a:hover { border-color: var(--docket); color: var(--on-board); }
.jump i { width: 22px; height: 22px; display: block; background: var(--sw); flex: none; }

.material {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--joint);
  scroll-margin-top: 80px;
}
.material .chip { aspect-ratio: 5 / 4; }
.material .chip::before { display: none; }
.material:nth-of-type(even) .material__chip { order: 2; }
.material__body { display: grid; gap: 20px; align-content: start; }
.material__body .prose p { margin: 0; }
.material__body .prose p + p { margin-top: 12px; }
.material:target .material__label { outline: 3px solid var(--docket); outline-offset: 4px; }
.material__label {
  background: var(--label);
  color: var(--label-ink);
  padding: 4px 18px 8px;
}
.material__label dl { margin: 0; display: grid; grid-template-columns: minmax(110px, auto) 1fr; column-gap: 18px; }
.material__label dt,
.material__label dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--label-rule);
  font-size: 0.88rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.material__label dt { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label-soft); padding-top: 12px; }
.material__label dd { font-weight: 550; }
.material__label dt:nth-last-of-type(1),
.material__label dd:last-child { border-bottom: 0; }
.material__set {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--on-board-soft);
}
@media (max-width: 860px) {
  .material { grid-template-columns: 1fr; }
  .material:nth-of-type(even) .material__chip { order: 0; }
}

/* ------------------------------------------------------------------ */
/* About page                                                         */
/* ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.photo {
  margin: 0;
  position: relative;
  background: var(--board-recess);
}
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo { min-height: 1px; }
.photo figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  background: var(--label);
  color: var(--label-ink);
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo--wide { aspect-ratio: 21 / 9; overflow: hidden; }
.photo--tall { aspect-ratio: 4 / 5; overflow: hidden; }
@media (max-width: 620px) { .photo--wide { aspect-ratio: 4 / 3; } }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--label);
  color: var(--label-ink);
  counter-reset: none;
}
.checks li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--label-rule);
}
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.checks strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.checks span { display: block; margin-top: 4px; color: #303532; font-size: 0.95rem; line-height: 1.45; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--on-board);
}
.principles > div {
  padding: 24px clamp(16px, 2.4vw, 32px) 8px 0;
}
.principles > div + div { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--joint); }
.principles h3 { margin-bottom: 12px; }
.principles p { margin: 0; color: var(--on-board-soft); text-wrap: pretty; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--joint); }
}

/* ------------------------------------------------------------------ */
/* Contact page                                                       */
/* ------------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.docket--full { padding: 22px clamp(20px, 3vw, 36px) 28px; }
.docket--full .docket__title { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.supplier {
  background: var(--label);
  color: var(--label-ink);
  padding: 4px 22px 18px;
  position: sticky;
  top: 88px;
}
.supplier__head {
  padding: 16px 0 12px;
  border-bottom: 3px solid var(--label-ink);
  font-size: 1.05rem;
  font-weight: 850;
  font-stretch: 116%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.supplier dl { margin: 0; }
.supplier dt {
  padding-top: 14px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--label-soft);
}
.supplier dd {
  margin: 4px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--label-rule);
  font-size: 1.02rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.supplier dd:last-of-type { border-bottom: 0; }
.supplier .abn {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 850;
  font-stretch: 108%;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.supplier a { text-decoration-thickness: 1px; }
.supplier small { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 500; color: var(--label-soft); }
@media (max-width: 960px) { .supplier { position: static; } }

.sent {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--docket-ink);
  color: var(--docket);
  font-size: 0.88rem;
  line-height: 1.45;
}
.sent[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Motion — chips mount onto the board once                           */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .board .chip {
    animation: mount 900ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 70ms + 120ms);
  }
  .js .board .tag {
    animation: tagon 600ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 70ms + 520ms);
  }
  @keyframes mount {
    from { transform: translateY(-14px); clip-path: inset(0 0 100% 0); }
    to { transform: none; clip-path: inset(0 0 -6px 0); }
  }
  @keyframes tagon {
    from { transform: rotate(-4deg) translateY(6px); clip-path: inset(0 100% 0 0); }
    to { transform: none; clip-path: inset(0 0 0 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; gap: 24px; padding-block: 80px; }

/* setting tables stack into label rows on phones */
@media (max-width: 620px) {
  .settable { min-width: 0; }
  .settable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .settable tr {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--joint);
  }
  .settable th, .settable td { border: 0; padding: 2px 0; }
  .settable tbody th { grid-column: 1 / -1; padding-bottom: 6px; }
  .settable td:last-child { grid-column: 1 / -1; padding-top: 6px; }
}

/* The glazed chip is too narrow to hold its own label: when lifted, the label
   overhangs leftwards across the neighbouring chips instead of being cut off. */
.board .chip[data-area="zel"] .label-card {
  left: auto;
  right: 10px;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: none;
  overflow: visible;
  clip-path: inset(calc(100% - 46px) 0 0 calc(100% - 140px));
}
.board .chip[data-area="zel"].is-open .label-card { clip-path: inset(0 0 0 0); }
@media (max-width: 620px) {
  .board .chip[data-area="zel"] .label-card {
    right: auto;
    left: 10px;
    clip-path: inset(calc(100% - 46px) calc(100% - 140px) 0 0);
  }
}

/* narrow phones: the lifted glazed label fits the viewport */
@media (max-width: 620px) {
  .board .chip[data-area="zel"] .label-card { width: calc(100vw - 2 * var(--gutter) - 48px); }
}

/* narrow phones: dockets stack their paired fields and keep labels on one line */
@media (max-width: 420px) {
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .docket__head { flex-wrap: wrap; row-gap: 4px; }
  .docket__head .docket__sub { flex-basis: 100%; }
  .docket .btn { width: 100%; justify-content: space-between; white-space: nowrap; }
  .docket__actions { flex-direction: column; align-items: stretch; }
}

.field__count {
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--docket-soft);
  font-variant-numeric: tabular-nums;
}
.field__count[data-near] { color: #8a240f; }
