/* Runs Itself. The departures board.
   A rail concourse split-flap board: matte black flap faces, white paint letters, a brushed steel frame,
   amber row lamps for anything waiting on you. One world owns the page. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-var.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2");
}

:root {
  --board: #0b0b0c;
  --board-2: #0e0f10;
  --flap: #17181a;
  --flap-lo: #121315;
  --split: #050506;
  --frame: #2a2c30;
  --frame-2: #3a3d42;
  --field-line: #6e7178;
  --ink: #f3f1ea;
  --muted: #9c9c97;
  --dim: #8a8a85;
  --amber: #f2c14e;
  --amber-dim: #5a4a22;
  --red: #d2655a;
  --inv: #ece8df;
  --inv-ink: #0b0b0c;
  --stone: #e8e4da;
  --stone-2: #dcd7cb;
  --stone-ink: #111213;
  --stone-muted: #4e4c46;
  --stone-line: rgba(17, 18, 19, 0.16);

  --display: "Bricolage Grotesque", "Onest", sans-serif;
  --flapfont: "Archivo", "Bricolage Grotesque", sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --caps: "Archivo", "Bricolage Grotesque", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The board. 20 columns fill the width; --rows is how many rows it holds, so its space is kept before the script runs. */
  --cols: 20;
  --rows: 3;
  --pad: 14px;
  --cap: 59.6px;
  /* Small cells (clock, times, statuses). They grow where the example night has room. */
  --sw: 13px;
  --sh: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--frame-2) var(--board);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--board); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--inv); color: var(--inv-ink); padding: 0.6rem 1rem; z-index: 50; text-transform: uppercase; font-family: var(--caps); font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 1300px); margin-inline: auto; }

/* Type */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2.display { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.5; color: #d6d4cd; max-width: 34ch; text-wrap: pretty; }
.caps { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.board-label { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--dim); }
.tag { display: inline-block; background: var(--inv); color: var(--inv-ink); font-family: var(--caps); font-variation-settings: "wdth" 80; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; line-height: 1; padding: 0.55em 0.7em 0.5em; border-radius: 3px; }

/* Buttons: white blocks, like a lit flap */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.05rem 1.5rem;
  font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; line-height: 1;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn { white-space: nowrap; }
.btn .arrow { width: 1em; height: 1em; }
.btn-primary { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--frame-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: wait; }

/* Header */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 20; padding: 1.4rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
/* The logo: stencil letters, chosen 4 Oct 2026. Drawn shapes in /assets/img, made by brand\logo\make-files.js. */
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 0.35rem 0; }
.brand-logo { display: block; height: 20px; width: auto; }
.foot-logo { display: block; height: 66px; width: auto; margin-bottom: 1rem; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 0.75rem 1.1rem; font-size: 0.78rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 359px) { .site-head .wrap { gap: 0.6rem; } .brand-logo { height: 17px; } .nav .btn { padding: 0.7rem 0.7rem; letter-spacing: 0.06em; } }

/* The board: split-flap cells */
.hero h1 { container-type: inline-size; }
.board {
  /* Cell width: the board's own column, less its padding, frame and gaps, shared between the columns */
  --cw: min(var(--cap), calc((100vw - 2 * var(--gutter) - 2 * var(--pad) - 4px - (var(--cols) - 1) * 4px) / var(--cols)));
  --ch: calc(var(--cw) * 1.6);
  display: grid; grid-template-columns: repeat(var(--cols), var(--cw)); gap: 4px; padding: var(--pad); border: 2px solid var(--frame); background: var(--board-2); border-radius: 4px; width: max-content; max-width: 100%;
}
@supports (width: 1cqw) {
  .board { --cw: min(var(--cap), calc((100cqw - 2 * var(--pad) - 4px - (var(--cols) - 1) * 4px) / var(--cols))); }
}
/* Keep the board's space before the script fills it, so nothing below jumps */
.js .board {
  min-width: calc(var(--cols) * var(--cw) + (var(--cols) - 1) * 4px + 2 * var(--pad) + 4px);
  min-height: calc(var(--rows) * var(--ch) + (var(--rows) - 1) * 4px + 2 * var(--pad) + 4px);
}
.board-row { display: contents; }
.flap {
  position: relative; width: var(--cw); height: var(--ch); border-radius: 5px; overflow: hidden;
  background: var(--flap-lo);
  font-family: var(--flapfont); font-variation-settings: "wdth" 68; font-weight: 700;
  font-size: calc(var(--ch) * 0.72); line-height: 1; color: var(--ink);
  perspective: calc(var(--ch) * 3);
}
.flap > b, .flap .lf > b { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; font-weight: inherit; }
.flap > b i, .flap .lf > b i { position: absolute; left: 0; right: 0; height: var(--ch); line-height: var(--ch); text-align: center; font-style: normal; padding-top: calc(var(--ch) * 0.04); }
.flap .t { top: 0; background: var(--flap); border-radius: 5px 5px 0 0; }
.flap .t i { top: 0; }
.flap .b { bottom: 0; background: var(--flap-lo); border-radius: 0 0 5px 5px; }
.flap .b i { top: calc(var(--ch) * -0.5); }
.flap .lf { position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; pointer-events: none; visibility: hidden; }
.flap .lf > b { height: 100%; }
.flap .lf .lt { top: 0; background: var(--flap); border-radius: 5px 5px 0 0; backface-visibility: hidden; }
.flap .lf .lt i { top: 0; }
.flap .lf .lb { top: 0; background: var(--flap-lo); border-radius: 0 0 5px 5px; transform: rotateX(180deg); backface-visibility: hidden; }
.flap .lf .lb i { top: calc(var(--ch) * -0.5); }
.flap.is-flipping .lf { visibility: visible; animation: flap-turn 130ms cubic-bezier(0.55, 0, 1, 0.45) forwards; }
@keyframes flap-turn { from { transform: rotateX(0deg); } to { transform: rotateX(-180deg); } }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--split); z-index: 2; }
.flap::before { content: ""; position: absolute; top: 50%; left: 0; width: 4px; height: 8px; margin-top: -4px; background: var(--split); z-index: 3; box-shadow: calc(var(--cw) - 4px) 0 0 var(--split); }
.flap.inv { color: var(--inv-ink); }
.flap.inv .t, .flap.inv .lf .lt { background: var(--inv); }
.flap.inv .b, .flap.inv .lf .lb { background: #dfdbd1; }
.flap.inv::after, .flap.inv::before { background: #b9b4a9; box-shadow: calc(var(--cw) - 4px) 0 0 #b9b4a9; }
.flap.amber { color: var(--amber); }
.flap.dimmed { color: var(--dim); }
.flap.sm { --cw: var(--sw); --ch: var(--sh); border-radius: 3px; font-size: calc(var(--sh) * 0.66); }
.flap.sm::before { display: none; }
.flap.sm::after { height: 1px; margin-top: 0; background: rgba(5, 5, 6, 0.5); }
.flap.sm .t, .flap.sm .lf .lt { border-radius: 3px 3px 0 0; }
.flap.sm .b, .flap.sm .lf .lb { border-radius: 0 0 3px 3px; }
.cells { display: inline-flex; gap: 2px; vertical-align: middle; }
.no-js .board { display: block; width: auto; }
.no-js .board-row { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 5rem); line-height: 1.05; }
.no-js .board-row::before { content: attr(data-text); }

/* Hero */
.hero { position: relative; padding: 6.75rem 0 4rem; overflow: hidden; }
.hero h1 { margin: 0; }
.hero .board { margin-top: 0.5rem; }
.hero-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; } }
.hero-copy .lede { color: #d6d4cd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* The example night, as departure rows */
.dep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.dep-head .board-label { color: var(--amber); margin: 0; }
.dep-clock { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--sh); }
.js .dep-clock .cells { min-width: calc(8 * var(--sw) + 7 * 2px); }
/* The rows size themselves to the room the example night has, not to the screen.
   Narrow (the default): time and status on one line, the job under them. */
.night { container: night / inline-size; }
.dep-cols { display: none; grid-template-columns: calc(8 * var(--sw) + 7 * 2px) 1fr calc(6 * var(--sw) + 5 * 2px) 20px; gap: 0 12px; margin-bottom: 0.5rem; }
.dep-cols span { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--dim); }
.dep { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dep li { display: grid; grid-template-columns: auto 1fr auto 20px; grid-template-areas: "time . status lamp" "job job job job"; gap: 6px 10px; align-items: center; min-height: var(--sh); }
.dep li time { grid-area: time; display: inline-flex; gap: 2px; height: var(--sh); line-height: var(--sh); }
.dep li .job { grid-area: job; font-family: var(--caps); font-variation-settings: "wdth" 76; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem; line-height: 1.15; color: var(--ink); transition: color 0.4s; }
.dep li:not(.is-done) .job { color: var(--dim); }
.dep li .status { grid-area: status; display: inline-flex; gap: 2px; }
.dep li .lamp { grid-area: lamp; }
/* With room: one line a row, under column headings */
@container night (min-width: 620px) {
  .dep-cols { display: grid; }
  .dep { gap: 8px; }
  .dep li { grid-template-columns: calc(8 * var(--sw) + 7 * 2px) 1fr calc(6 * var(--sw) + 5 * 2px) 20px; grid-template-areas: "time job status lamp"; gap: 0 12px; }
  .dep li .job { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* With more room: full-size cells and letters */
@container night (min-width: 690px) {
  .dep-head, .dep-cols, .dep { --sw: 16px; --sh: 26px; }
  .dep li .job { font-size: 0.95rem; letter-spacing: 0.12em; }
}
.dep li .lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--frame); justify-self: end; transition: background-color 0.3s, box-shadow 0.3s; }
.dep li.is-ready .lamp { background: var(--amber); box-shadow: 0 0 0 2px var(--board), 0 0 0 3px var(--amber-dim); }
.dep-pause { background: transparent; border: 1px solid var(--frame-2); border-radius: 3px; padding: 0.4rem 0.6rem; cursor: pointer; font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--muted); }
.dep-pause:hover { color: var(--ink); border-color: var(--ink); }
.dep-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; min-height: 2.1rem; }
.dep-foot .dep-note { margin-top: 0; }
.dep-note { margin-top: 1rem; font-size: 0.86rem; color: var(--muted); }
.no-js .dep li .job { color: var(--ink); }

.shift-state { margin: 0 0 1rem; font-size: 0.95rem; color: var(--muted); }
.plain { padding-top: 0; }
body.plain main { padding: 8rem 0 4rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section + .section { border-top: 1px solid var(--frame); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.split { display: grid; gap: 1.2rem 3rem; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 7fr 5fr; } }
.section-head .lede { color: var(--muted); }
.fine { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); max-width: 60ch; }

/* What gets done: the ledger as a board */
.ledger { border-top: 2px solid var(--frame-2); }
.ledger-head, .ledger-row { display: grid; gap: 1rem 2.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--frame); }
@media (min-width: 760px) { .ledger-head, .ledger-row { grid-template-columns: 3fr 4fr 5fr; } }
.ledger-head { padding: 0.9rem 0; }
.ledger-head span { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--dim); }
.ledger-head span:first-child { color: var(--amber); }
.ledger-row h3 { font-family: var(--caps); font-variation-settings: "wdth" 76; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; line-height: 1.2; }
.ledger-row h3 .tag { font-size: 0.72rem; }
.ledger-row .before { color: var(--muted); }
.ledger-row .after-txt { color: var(--ink); }
@media (max-width: 759px) { .ledger-head { display: none; } .ledger-row .before::before { content: "Often: "; color: var(--dim); font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-right: 0.4rem; } .ledger-row .after-txt::before { content: "Set up: "; color: var(--amber); font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-right: 0.4rem; } }

/* Enter a job once: the route diagram */
.track { counter-reset: stop; list-style: none; padding: 0; margin: 0 0 clamp(2.5rem, 5vw, 4rem); display: grid; gap: 0; position: relative; }
.track li { position: relative; padding: 0 0 1.75rem 2.6rem; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 0.2rem; top: 0.3rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--board); box-shadow: 0 0 0 3px var(--ink); z-index: 1; }
.track li::after { content: ""; position: absolute; left: 0.68rem; top: 0.9rem; bottom: -0.3rem; width: 3px; background: var(--frame-2); }
.track li:last-child::after { display: none; }
.track h3 { font-family: var(--caps); font-variation-settings: "wdth" 76; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1rem; }
.track p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
@media (min-width: 900px) {
  .track { grid-template-columns: repeat(5, 1fr); }
  .track li { padding: 2.4rem 1.5rem 0 0; }
  .track li::before { left: 0; top: 0; }
  .track li::after { left: 1.05rem; right: 0; top: 0.5rem; bottom: auto; width: auto; height: 3px; }
  .track::after { content: ""; position: absolute; top: 0.5rem; left: 0; height: 3px; width: 4.5rem; margin-top: 0; border-radius: 3px; background: var(--amber); transform: translateX(-5rem); z-index: 2; }
  .track.is-in::after { animation: travel 4.6s cubic-bezier(0.45, 0, 0.25, 1) 0.6s 1 both; }
}
@keyframes travel { from { transform: translateX(-5rem); opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } to { transform: translateX(min(80rem, calc(100vw - 2 * var(--gutter)))); opacity: 0; } }
.connect-points { display: grid; gap: 1.6rem 3rem; border-top: 1px solid var(--frame); padding-top: 2rem; }
@media (min-width: 900px) { .connect-points { grid-template-columns: repeat(3, 1fr); } }
.connect-points p { color: var(--muted); }
.connect-points h3 { margin-bottom: 0.35rem; }

/* How a job runs: the printed timetable on the concourse wall */
.on-stone { background: var(--stone); color: var(--stone-ink); }
.on-stone .lede { color: var(--stone-muted); }
.on-stone .section-head .lede { color: var(--stone-muted); }
.section.on-stone + .section, .section + .section.on-stone { border-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; border-top: 2px solid var(--stone-ink); }
.step { display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--stone-line); }
@media (min-width: 760px) { .step { grid-template-columns: 5rem 4fr 7fr; align-items: baseline; } }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--flapfont); font-variation-settings: "wdth" 68; font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--stone-ink); background: var(--stone-2); display: inline-block; padding: 0.35rem 0.5rem 0.25rem; border-radius: 4px; justify-self: start; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--stone-muted); max-width: 46ch; }

/* Small business only */
.only-title em { font-style: normal; color: var(--amber); }
.only-grid { display: grid; gap: 2.5rem 4rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .only-grid { grid-template-columns: 1fr 1fr; } }
.only-grid h3 { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--amber); margin-bottom: 1rem; }
.only-grid ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--frame); }
.only-grid li { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--frame); font-family: var(--caps); font-variation-settings: "wdth" 80; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; line-height: 1.3; }
.only-grid li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 1px; background: var(--ink); position: relative; top: -1px; }
.crosses li { color: var(--red); }
.crosses li::before { background: var(--red); }
.crosses h3 { color: var(--red); }

/* It's yours when we leave: three board rows, each ending on YOURS */
.keep-ledger { --sw: 18px; --sh: 29px; }
.keep-ledger .ledger-row { grid-template-columns: 1fr auto; align-items: center; }
.keep-ledger .ledger-row h3 { grid-column: 1; }
.keep-ledger .ledger-row .yours { grid-column: 2; grid-row: 1; margin: 0; line-height: 0; }
.keep-ledger .ledger-row .how { grid-column: 1 / -1; color: var(--muted); max-width: 62ch; }
@media (min-width: 760px) {
  .keep-ledger { --sw: 21px; --sh: 34px; }
  .keep-ledger .ledger-head, .keep-ledger .ledger-row { grid-template-columns: 3fr 6fr calc(5 * var(--sw) + 4 * 2px); }
  .keep-ledger .ledger-row .how { grid-column: 2; grid-row: 1; }
  .keep-ledger .ledger-row .yours { grid-column: 3; }
}

/* Questions */
.faq-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; } }
details { border-top: 1px solid var(--frame); }
details:last-child { border-bottom: 1px solid var(--frame); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; font-family: var(--flapfont); font-weight: 700; font-size: 1.1rem; line-height: 1; background: var(--inv); color: var(--inv-ink); border-radius: 3px; transition: transform 0.35s var(--ease-out); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 1.2rem; color: var(--muted); max-width: 62ch; }

/* Book a call */
.book-grid { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.book-lede { margin-top: 1rem; color: var(--muted); }
.book-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.book-list li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--ink); }
.book-list li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 1px; background: var(--amber); position: relative; top: -1px; }
.book-action { margin-top: 2rem; }
.book-form { border: 2px solid var(--frame); border-radius: 4px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--board-2); }
.book-form h3 { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--amber); margin-bottom: 1.2rem; }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; align-content: start; }
.field label { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--flap-lo); color: var(--ink); border: 1px solid var(--field-line); border-radius: 3px; padding: 0.8rem 0.9rem; font: inherit; caret-color: var(--amber); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field textarea { min-height: 7rem; resize: vertical; }
.field ::placeholder, .chat-form ::placeholder { color: var(--dim); opacity: 1; }
.err { font-size: 0.85rem; color: var(--red); }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.5em; color: var(--ink); }
.form-status a { color: var(--amber); }
.form-note { margin-top: 0.6rem; font-size: 0.82rem; color: var(--dim); }
.form-note a { color: var(--muted); }

/* Without JavaScript: hide the controls that need it, and offer email in place of the form */
.no-js [data-open-chat] { display: none; }
.nojs-note { display: none; }
.no-js .nojs-note { display: block; color: var(--muted); }
.no-js .nojs-note a { color: var(--amber); }
.no-js .book-form > :not(h3):not(.nojs-note) { display: none; }

/* Footer */
.site-foot { border-top: 2px solid var(--frame-2); padding: 3rem 0 2rem; }
.foot-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-line { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }
.site-foot h3 { font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--dim); margin-bottom: 0.6rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.site-foot small { display: block; margin-top: 2.5rem; color: var(--dim); font-size: 0.8rem; }

/* Reveal on scroll: visible by default, moved a touch when JS runs */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Chat */
.chat-launch { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; background: var(--inv); color: var(--inv-ink); border: 0; border-radius: 3px; cursor: pointer; font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.chat-launch .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.chat-launch { transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s; }
.chat-launch.is-tucked { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }
.chat-launch:hover { background: #ffffff; }
.chat-launch .short { display: none; }
@media (max-width: 560px) { .site-foot { padding-bottom: 5.75rem; } .chat-launch { padding: 0.9rem; } .chat-launch .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .chat-launch .short { display: inline; } }
.chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: min(400px, calc(100vw - 2.5rem)); height: min(620px, calc(100vh - 2.5rem)); display: flex; flex-direction: column; background: var(--board-2); color: var(--ink); border: 2px solid var(--frame); border-radius: 4px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.chat[hidden] { display: none; }
.chat.is-open { opacity: 1; transform: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--frame); }
.chat-head strong { display: block; font-family: var(--caps); font-variation-settings: "wdth" 84; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.chat-head span { display: block; font-size: 0.8rem; color: var(--muted); }
.chat-close { background: transparent; border: 1px solid var(--frame-2); border-radius: 3px; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; cursor: pointer; }
.chat-close svg { width: 1rem; height: 1rem; }
.chat-close:hover { border-color: var(--ink); }
.chat-log { flex: 1; overflow: auto; padding: 1rem; display: grid; gap: 0.7rem; align-content: start; }
.msg { max-width: 88%; padding: 0.75rem 0.9rem; border-radius: 4px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--flap); border: 1px solid var(--frame); justify-self: start; }
.msg.me { background: var(--inv); color: var(--inv-ink); justify-self: end; }
.msg.note { max-width: 100%; background: transparent; color: var(--dim); font-size: 0.8rem; padding: 0 0.2rem; }
.msg.is-typing:empty::after { content: "· · ·"; letter-spacing: 0.2em; color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips button { background: transparent; border: 1px solid var(--frame-2); color: var(--ink); border-radius: 3px; padding: 0.5rem 0.75rem; font-size: 0.85rem; cursor: pointer; }
.chips button:hover { border-color: var(--amber); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--frame); }
.chat-form textarea { flex: 1; resize: none; background: var(--flap-lo); color: var(--ink); border: 1px solid var(--field-line); border-radius: 3px; padding: 0.7rem 0.8rem; font: inherit; font-size: 0.95rem; line-height: 1.4; max-height: 7rem; caret-color: var(--amber); }
.chat-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.chat-send { width: 2.8rem; border: 0; border-radius: 3px; background: var(--inv); color: var(--inv-ink); display: grid; place-items: center; cursor: pointer; }
.chat-send svg { width: 1.1rem; height: 1.1rem; }
.chat-send[disabled] { opacity: 0.5; cursor: wait; }

/* Page not found */
.lost-title { container-type: inline-size; margin: 0 0 2rem; }
.lost-board { --cols: 9; --rows: 1; --cap: 64px; }
.lost .lede { max-width: 40ch; color: var(--muted); }

/* Privacy and other plain pages */
.plain .prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.8rem; }
.prose p, .prose li { margin-bottom: 0.9rem; color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--amber); }
.plain.on-stone .prose p, .plain.on-stone .prose li { color: var(--stone-muted); }
.plain.on-stone .prose strong { color: var(--stone-ink); }
.plain.on-stone .prose a { color: var(--stone-ink); }

@media (max-width: 719px) {
  .hero { padding-top: 5.75rem; }
}
/* Phones: the board narrows to 11 columns, wraps by word, and still fills the width */
@media (max-width: 559px) {
  :root { --cols: 11; --rows: 5; --pad: 10px; --cap: 999px; }
}

/* Reduced motion. The .motion-on class is set only on the test address and the local preview, by ?motion=on,
   for checking the animation on a computer that reduces motion. It is never set on runsitself.com.au. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html.js:not(.motion-on) .reveal { opacity: 1; transform: none; transition: none; }
  html:not(.motion-on) .track::after { display: none; }
  html:not(.motion-on) .flap.is-flipping .lf { animation: none; visibility: hidden; }
  html:not(.motion-on) .btn, html:not(.motion-on) summary::after, html:not(.motion-on) .chat, html:not(.motion-on) .chat-launch { transition: none; }
}
