/* Hallmark · built: 2026-11-26 · genre: editorial · theme: custom (vibe: "crisp Swiss editorial for a Sydney party DJ") · system: DESIGN.md (locked) · hero: Ledge (no visual yet: the head rests at the base of the first screen) · nav: wordmark left, five links right · footer: brand line over contact lists · signature: the display line set huge in ink under the crimson wordmark · v2.0.0
 * critique: one crimson signal per screen (wordmark on screen 1, crimson action in the closing band); type does the work until Michael's photos arrive; no stand-in images ship
 * hero-review: folded into the finish review (sections were built before it ran)
 * waive 79 · /thanks/, /book-error/ and /404.html are one-message result pages (noindex); filling the space would be padding
 * waive 77 · the same three pages, /privacy/ and /contact/: utility pages, not landing pages, so two or three sections is their right size
 * waive 77 (thin section) · Home's service list: four one-line rows whose text ends about 72% across; the hairlines run full width, and padding the rows would be filler
 * waive 59 · every page: Michael asked twice for less white space (2026-11-28), so sections sit 103 to 119px apart at 1440 (65 to 81px on a phone), under the 120px guide
 * waive 71 · desktop rows: a row's title heads the text beside it, not below; when that text wraps to two lines the next title sits further off, and the hairline between rows carries the grouping
 * open FAIL 58 · /birthdays/ (105 words) and /corporate/ (110) at 1440, /weddings/ WARN (94): the tighter spacing Michael asked for puts the event rows and the three steps on one desktop screen; all one-line items. Kept at his request; clearing it means cutting copy he hasn't signed off, so it waits for his call
 * waive 83 · Home's photos: sloplint counts all 12 gallery slides at full size (60%), but they are stacked in three panels, so three show at a time; with the two wide room shots, the pictures on screen cover 27% of the page below the hero at 1440 and 22% on a phone (measured 2026-11-29), inside the quarter-to-a-third guide
 * dismissed WARN 58 · /privacy/ holds about 91 words (Jost sets narrower than Montserrat did) in one 900px window: the Privacy Act content (what, why, overseas, access) cannot be cut further
 * finish-review: subagent · 8 findings · 8 resolved (bilingual fact to the lede, crimson band action, no-break track by track, phone hero to content height, nav five links, band echo removed, band top-aligned, rows text-wrap pretty) · sloplint 0 FAIL 0 REFLEX 0 WARN
 */
/* Tokens from DESIGN.md: every colour, font and space on the site comes from here. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF8F5;
  --ink: #141215;
  --ink-2: #5C5761;
  --crimson: #DC143C;
  --crimson-deep: #B3102F;
  --teal: #008080;
  --teal-deep: #006B6B;
  --rule: #E2DDD6;
  --paper-dim: #BDB6C0; /* secondary text on ink, 9:1 */

  --font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(3rem, 1.2rem + 7.5vw, 9rem);
  --text-h2: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --text-h3: 1.25rem;
  --text-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-small: 0.875rem;
  --text-brand-line: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap-s: clamp(32px, 8px + 3vw, 56px);
  --section-gap: clamp(40px, 8px + 4vw, 64px);

  --wrap: 1200px;
  --header-h: 72px;
  --radius-btn: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 150ms;
}


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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  /* the header is sticky: in-page links (#book, #main) land below it. Two rows under 48rem, one row above */
  scroll-padding-top: 7.5rem;
}

@media (min-width: 48rem) {
  html {
    scroll-padding-top: 5rem; /* the one-row header is 79px tall */
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
}

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

input,
select,
textarea {
  caret-color: var(--ink);
  accent-color: var(--ink);
}

a:focus-visible,
.btn:focus-visible,
.gallery-pause:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
  z-index: 20; /* above the sticky header */
}

.skip:focus-visible {
  transform: none;
}

/* Header */
/* Michael, 2026-11-29: the whole header stays on screen while the page scrolls */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-4);
}

.brand {
  display: block;
  color: var(--crimson);
  line-height: 0;
}

.wordmark {
  display: block;
  height: clamp(20px, 0.85rem + 0.7vw, 30px);
  width: auto;
}

.wm-dj,
.wm-rule {
  fill: var(--ink);
}

.wm-one {
  fill: var(--crimson);
}

.header-call {
  margin-inline-end: calc(-1 * var(--s-2));
  padding: var(--s-3) var(--s-2);
  font-size: var(--text-small);
  font-weight: 600;
  text-underline-offset: 4px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: var(--s-3);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Hero, Ledge: no visual yet, so the first screen is a tall field with the head resting at its base */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 560px);
  padding-block: var(--s-7);
}

.display {
  margin: 0;
  max-width: 11ch;
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

.lead {
  max-width: 40ch;
  margin: var(--s-5) 0 var(--s-6);
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: 1.45;
  text-wrap: pretty; /* no single word left on the last line ("clubs.", "nights.") */
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  font-family: inherit; /* <button> doesn't inherit the page font by default (it fell back to Arial) */
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary,
.btn-submit {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover,
.btn-submit:hover {
  background: var(--crimson-deep);
  border-color: var(--crimson-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary:active,
.btn-submit:active {
  background: var(--crimson);
  border-color: var(--crimson);
}

a:active {
  opacity: 0.7;
}

/* Booking panel: the primary action opens the form in place (no script needed) */
.booking > summary {
  list-style: none;
  cursor: pointer;
}

.booking > summary::-webkit-details-marker {
  display: none;
}

.booking {
  scroll-margin-top: var(--s-5);
}

.booking[open] {
  flex: 1 1 100%;
}

.booking .when-open,
.booking[open] .when-closed {
  display: none;
}

.booking[open] .when-open {
  display: inline;
}

.booking[open] > summary {
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) {
  .booking[open] > summary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }
}

.booking-form noscript {
  grid-column: 1 / -1;
}

/* Closed means not rendered. Explicit, because Chrome's closed-details content is only content-visibility: hidden,
   which layout tools (Hallmark's sloplint included) still measure as on screen. */
.booking:not([open]) > .booking-form {
  display: none;
}

.actions:has(.booking[open]) > .btn {
  display: none;
}

.booking-form {
  display: grid;
  gap: var(--s-5);
  max-width: 760px;
  margin-top: var(--s-5);
}

.form-group {
  display: grid;
  gap: var(--s-4) var(--s-5);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-group + .form-group {
  margin-top: var(--s-4);
}

.form-group legend {
  margin-bottom: var(--s-4);
  padding: 0;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
}

.booking-form > .btn-submit {
  justify-self: start;
}

.field label,
.field-pair label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--text-small);
  font-weight: 600;
}

/* A hint sits under its label, outside the box, so it stays readable once the box has text */
.field .hint {
  display: block;
  margin-top: var(--s-1);
  color: var(--ink-2);
  font-weight: 400;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-3);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-btn);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--dur) var(--ease);
}

/* Safari's native select ignores min-height (27 px tall); draw our own caret so it matches the 48 px fields */
.booking-form select {
  appearance: none;
  padding-right: var(--s-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form input:hover,
.booking-form select:hover,
.booking-form textarea:hover {
  border-color: var(--ink);
}

.booking-form input:focus-visible,
.booking-form select:focus-visible,
.booking-form textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

.booking-form input:user-invalid,
.booking-form select:user-invalid,
.booking-form textarea:user-invalid {
  border-color: var(--crimson-deep);
}

.booking-form input:disabled,
.booking-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cf-turnstile {
  min-height: 65px; /* the widget's height, reserved so nothing shifts */
}

.form-note {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-small);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Statement: one sentence set large across the measure */
.statement {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--rule);
}

.statement-text {
  max-width: 20ch;
  margin: 0;
  text-wrap: balance;
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  min-width: 0;
}

.points {
  display: grid;
  gap: 0 var(--s-7);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}

.point {
  padding-block: var(--s-4);
  border-top: 1px solid var(--ink);
  font-size: var(--text-lead);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.statement-link {
  margin: var(--s-6) 0 0;
  font-weight: 600;
  text-wrap: balance;
}

.statement-link a {
  text-underline-offset: 4px;
}

/* Rows: the night in order, parted by hairlines */
.rows {
  display: grid;
  gap: var(--s-6) var(--s-7);
  padding-block: var(--section-gap-s);
  border-top: 1px solid var(--rule);
}

.row-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.row {
  display: grid;
  gap: var(--s-1) var(--s-6);
  padding-block: var(--s-4); /* phones; 24 px from 900 px up */
  border-bottom: 1px solid var(--rule);
}

.row-title {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
}

.row-text {
  margin: 0;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Links in rows (Home's services, Contact's details): a 44 px tap area without moving the row */
.row-title a,
.row-text a {
  display: inline-block;
  padding-block: var(--s-3);
  margin-block: calc(-1 * var(--s-3));
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.row-title a:hover,
.row-text a:hover {
  text-decoration-thickness: 2px;
}

/* Photos: Michael's stills, all 2:3, no captions. Phones: the first full width, the next two side by side */
.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  padding-block: var(--section-gap-s);
  border-top: 1px solid var(--rule);
}

.photo {
  min-width: 0;
  margin: 0;
}

.photos .photo:first-child {
  grid-column: 1 / -1;
}

/* Wide room shots (3:2): one column on phones, two across from 900 px */
.photos-wide {
  grid-template-columns: minmax(0, 1fr);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--rule);
}

/* Gallery (Home). Base: the stills in one row that slides sideways (swipe, trackpad, arrow keys or the scrollbar),
   the next photo peeking in. This is what a visitor who asks for reduced motion gets. When motion is welcome the
   block further down turns the same markup into three panels that cross-fade. No script either way */
.gallery {
  padding-block: var(--section-gap-s);
  border-top: 1px solid var(--rule);
}

/* The row runs to both screen edges; at rest the first photo lines up with the text, and snaps back to that line */
.gallery-track {
  --bleed: max(var(--gutter), (100vw - var(--wrap)) / 2 + var(--gutter)); /* the space beside the text column */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 340px);
  gap: var(--s-4);
  margin-inline: calc(-1 * var(--bleed));
  padding: var(--s-2) var(--bleed) var(--s-4);
  scroll-padding-inline: var(--bleed);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-2) transparent;
}

/* Inset, because the row touches the screen edges where an outer ring would be clipped */
.gallery-track:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.gallery .photo {
  scroll-snap-align: start;
}

/* Every panel and slide is tall 2:3. The four wide room shots are cut to that shape here, each at the point that
   keeps the laptop or the room's subject in frame (picked from a sheet of crops, 2026-11-29) */
.gallery .photo img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gallery img[src*="room-purple"] { object-position: 90% 50%; }
.gallery img[src*="room-pink"] { object-position: 55% 50%; }
.gallery img[src*="wedding-ballroom"] { object-position: 10% 50%; }

.gallery-pause,
.gallery-pause-label {
  display: none;
}

/* Three-panel slideshow (Michael, 2026-11-29: "auto slide show on two panels", then "make it three panels" showing
   every picture on the site). Photos fill the panels in rows of three: 1, 4, 7, 10 share the left cell, 2, 5, 8, 11
   the middle, 3, 6, 9, 12 the right. Each fades in over the one before it; the panels change 2 s apart, one at a time.
   shortcut: the delays below are written for 12 photos (4 a panel, 6 s each, 24 s a lap); test_home_gallery_slideshow
   fails if the count changes, and then the delays and the keyframe percentages need redoing. */
@media (prefers-reduced-motion: no-preference) {
  .gallery-pause,
  .gallery-pause-label {
    display: inline-block;
    vertical-align: middle;
  }

  .gallery-pause {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0 var(--s-2) 0 0;
  }

  .gallery-pause-label {
    padding-block: var(--s-3); /* a 44 px tap area with the box */
    font-size: var(--text-small);
    font-weight: 600;
  }

  .gallery-track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: min(var(--s-4), 2vw); /* 8 px on a phone, where each panel is about 106 px wide */
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery .photo {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    animation: gallery-fade 24s linear infinite;
  }

  .gallery .photo:nth-child(3n + 2) {
    grid-column: 2;
  }

  .gallery .photo:nth-child(3n) {
    grid-column: 3;
  }

  /* left panel: on screen at load, then every 6 s */
  .gallery .photo:nth-child(1) { animation-delay: -1s; }
  .gallery .photo:nth-child(4) { animation-delay: 5s; }
  .gallery .photo:nth-child(7) { animation-delay: 11s; }
  .gallery .photo:nth-child(10) { animation-delay: 17s; }

  /* middle panel: the same, 2 s later */
  .gallery .photo:nth-child(2) { animation-delay: -5s; }
  .gallery .photo:nth-child(5) { animation-delay: 1s; }
  .gallery .photo:nth-child(8) { animation-delay: 7s; }
  .gallery .photo:nth-child(11) { animation-delay: 13s; }

  /* right panel: 2 s later again */
  .gallery .photo:nth-child(3) { animation-delay: -3s; }
  .gallery .photo:nth-child(6) { animation-delay: 3s; }
  .gallery .photo:nth-child(9) { animation-delay: 9s; }
  .gallery .photo:nth-child(12) { animation-delay: 15s; }

  .gallery-pause:checked ~ .gallery-track .photo {
    animation-play-state: paused;
  }
}

/* One photo's lap: fade in on top (1 s), hold (to 6 s), then stay solid underneath while the next fades in over it,
   so the paper never shows through mid-change */
@keyframes gallery-fade {
  0% { opacity: 0; z-index: 2; }
  4% { opacity: 1; z-index: 2; }
  25% { opacity: 1; z-index: 2; }
  25.01% { opacity: 1; z-index: 1; }
  29% { opacity: 1; z-index: 1; }
  29.01% { opacity: 0; z-index: 1; }
  100% { opacity: 0; z-index: 1; }
}

/* Steps: how booking works, three titled steps */
.steps-section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--rule);
}

.steps {
  display: grid;
  gap: 0 var(--s-7);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-block: var(--s-4);
  border-top: 1px solid var(--ink);
}

.step-title {
  margin: 0 0 var(--s-2);
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
}

.step-text {
  margin: 0;
  color: var(--ink-2);
  text-wrap: pretty;
}

.h2 {
  margin: 0;
  text-wrap: balance;
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  min-width: 0;
}


/* Closing band, in ink: the hero's action again, then the details */
.enquire {
  padding-block: var(--section-gap-s);
  background: var(--ink);
  color: var(--paper);
}

.enquire-grid {
  display: grid;
  gap: var(--s-6) var(--s-7);
}

.enquire a {
  color: var(--paper);
}

.enquire a:focus-visible,
.enquire .btn:focus-visible {
  outline-color: var(--paper);
}

.enquire-lead {
  max-width: 36ch;
  margin: var(--s-4) 0 0;
  color: var(--paper-dim);
  font-size: var(--text-lead);
  line-height: 1.45;
  text-wrap: balance;
}

.enquire .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.enquire .btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.enquire .btn-primary {
  border-color: var(--crimson);
  background: var(--crimson);
  color: var(--paper);
}

.enquire .btn-primary:hover {
  background: var(--crimson-deep);
  border-color: var(--crimson-deep);
  color: var(--paper);
}

/* Simple pages: privacy, thanks, book-error */
.page-simple {
  padding-block: var(--section-gap-s);
}

.page-simple:has(+ .rows) {
  padding-bottom: var(--s-7);
}

.page-simple + .rows {
  padding-top: var(--s-7);
}

.h1-simple {
  margin: 0 0 var(--s-6);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose p {
  max-width: 60ch;
  margin: 0 0 var(--s-4);
}

.prose .lead {
  margin-bottom: var(--s-7);
}

.doc-rows {
  max-width: 900px;
}

.page-simple .actions {
  margin-top: var(--s-6);
}

/* Footer */
.site-footer {
  padding-block: var(--section-gap-s) var(--s-7);
  border-top: 1px solid var(--rule);
}

.brand-line {
  margin: 0 0 var(--s-6);
  color: var(--teal);
  font-size: var(--text-brand-line);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.footer-grid {
  display: grid;
  gap: var(--s-5);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-block;
  padding-block: var(--s-3);
  font-size: var(--text-small);
}

.fine {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-small);
}

@media (max-width: 480px) {
  .actions .btn,
  .actions .booking {
    flex: 1 1 100%;
  }

  .booking > summary,
  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .field-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Under 60rem the Ledge collapses to its content's height (Hallmark layout § 6) */
@media (max-width: 60rem) {
  .hero {
    min-height: 0;
    padding-block: var(--s-6) var(--section-gap-s);
  }
}

/* Under 48rem: wordmark and Call on one row, the five links in one row below (scrolls sideways if they don't fit) */
@media (max-width: 47.9375rem) {
  .header-row {
    gap: 0 var(--s-4);
    padding-block: var(--s-2) 0;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-row > nav {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* one row; scrolls sideways when five links don't fit. Padding keeps focus rings and the underline inside the clip */
  .nav {
    flex-wrap: nowrap;
    gap: 0 var(--s-2);
    margin-inline: calc(-1 * var(--s-2));
    padding: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    white-space: nowrap;
  }
}

@media (min-width: 48rem) {
  .header-call {
    display: none;
  }
}

/* The frame only where there's room for it: on phones the fields use the full width (critique 2026-11-28) */
@media (min-width: 640px) {
  .booking-form {
    padding: var(--s-6);
    border: 1px solid var(--ink);
  }

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

  .field-wide {
    grid-column: 1 / -1;
  }

  /* Service pages have no Event menu, so Start and Finish take the row, under Date and Location */
  .form-group:not(:has(select)) > .field-pair {
    grid-column: 1 / -1;
    column-gap: var(--s-5);
  }
}

@media (min-width: 900px) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .statement-text {
    font-size: clamp(2.5rem, 1.2rem + 3vw, 4rem);
  }

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

  .photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }

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

  .photos .photo:first-child {
    grid-column: auto;
  }

  .rows {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  /* Home's service rows have a sentence for a head, so it takes the full width above the list */
  .rows:has(.row-title a) {
    grid-template-columns: minmax(0, 1fr);
  }

  .enquire-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
    align-items: baseline;
    padding-block: var(--s-5);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .fine {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .skip,
  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    transition: none;
  }
}
