/* ==========================================================================
   Fairy S Pty Ltd — fairys.com.au
   One stylesheet, no inline styles (the Worker's CSP forbids them).
   Fonts are self-hosted (SIL OFL 1.1, see /assets/fonts/OFL.txt).
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/newsreader-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-normal-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --paper: #f5f4f1;
  --paper-2: #ecebe6;
  --surface: #fbfaf8;
  --ink: #161d29;
  --ink-2: #2d3543;
  --muted: #5a6271;
  --line: rgba(22, 29, 41, 0.12);
  --line-strong: rgba(22, 29, 41, 0.22);
  --heather: #5a4b82;
  --heather-2: #a998d4;
  --heather-wash: #ece8f3;
  --on-dark: #f5f4f1;
  --on-dark-muted: rgba(245, 244, 241, 0.74);
  --ok: #2f6b4f;
  --error: #9b2c2c;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -28px rgba(22, 29, 41, 0.35);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--ink-2); }
.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-ghost-light { border-color: rgba(245, 244, 241, 0.45); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); background: rgba(245, 244, 241, 0.08); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--heather); flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid,
.page-plain .site-header {
  background: rgba(245, 244, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.02rem/1 var(--sans); letter-spacing: 0.2em; }
.brand-sub {
  margin-top: 5px;
  font: 500 0.62rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.72;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease;
}
.site-nav a:hover { background: rgba(127, 127, 127, 0.14); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font: 500 0.82rem/1 var(--mono); text-decoration: none; opacity: 0.85; white-space: nowrap; }
.header-phone:hover { opacity: 1; }
.site-header .btn { min-height: 42px; padding: 0 20px; font-size: 0.72rem; }
.site-header:not(.is-solid) .header-cta { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.page-plain .site-header .header-cta,
.site-header.is-solid .header-cta { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: inherit;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: #1d1a2b;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  animation: hero-settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 14, 28, 0.86) 0%, rgba(16, 14, 28, 0.62) 42%, rgba(16, 14, 28, 0.12) 78%),
    linear-gradient(0deg, rgba(16, 14, 28, 0.78) 0%, rgba(16, 14, 28, 0) 46%),
    linear-gradient(180deg, rgba(16, 14, 28, 0.55) 0%, rgba(16, 14, 28, 0) 24%);
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-content { padding-top: calc(var(--header-h) + 64px); padding-bottom: 40px; width: 100%; }
.hero .eyebrow {
  background: rgba(245, 244, 241, 0.1); border-color: rgba(245, 244, 241, 0.26); color: var(--on-dark);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero .eyebrow-dot { background: var(--heather-2); }
.hero h1 {
  margin-top: 24px; max-width: 16ch;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.25rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.02em;
  color: var(--on-dark);
}
.hero h1 em { font-style: normal; color: var(--heather-2); }
.hero-lede { max-width: 58ch; margin-top: 26px; font-size: 1.07rem; color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-index {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px; border-top: 1px solid rgba(245, 244, 241, 0.22);
}
.hero-index div { padding: 18px 24px 4px 0; }
.hero-index dt { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--heather-2); }
.hero-index dd { margin: 6px 0 0; font-size: 0.95rem; color: var(--on-dark); }

.js .hero-stage { opacity: 0; transform: translateY(18px); animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.js .hero-stage-2 { animation-delay: 0.15s; }
.js .hero-stage-3 { animation-delay: 0.3s; }
.js .hero-stage-4 { animation-delay: 0.45s; }
.js .hero-stage-5 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 6vw + 40px, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-2); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 64px; align-items: end; margin-bottom: 56px;
}
.section-head h2 { margin-top: 18px; max-width: 17ch; }
.section-head .lede { color: var(--muted); font-size: 1.04rem; max-width: 46ch; }

/* ---------- Statement panel ---------- */

.statement {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 40px 64px;
  padding: clamp(32px, 4vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(251, 250, 248, 0.6));
  box-shadow: var(--shadow);
}
.statement-quote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.45rem); line-height: 1.24; color: var(--ink);
}
.statement-quote em { font-style: normal; color: var(--heather); }
.statement-points {
  grid-column: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.statement-points h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.statement-points p { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Service stage cards ---------- */

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stage-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.stage-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 28px 50px -30px rgba(22, 29, 41, 0.45); }
.stage-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.stage-card:hover .stage-media img { transform: scale(1.04); }
.stage-tag {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(251, 250, 248, 0.92); color: var(--ink);
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.stage-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.stage-body > p { color: var(--muted); font-size: 0.96rem; }
.checklist { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.checklist svg { width: 16px; height: 16px; margin-top: 3px; color: var(--heather); }

/* ---------- Approach steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step {
  padding: 28px 24px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.step-meta {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
  font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--heather);
}
.step h3 { font-size: 1.35rem; }
.step p { margin-top: 12px; font-size: 0.93rem; color: var(--muted); }

.types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; align-items: center; }
.types-label { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.88rem; color: var(--ink-2);
}
.chip svg { width: 14px; height: 14px; color: var(--heather); }

/* ---------- Regions ---------- */

.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.region-card {
  position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: var(--on-dark); isolation: isolate;
  background: var(--ink);
}
.region-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.region-card:hover img { transform: scale(1.035); }
.region-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(16, 14, 28, 0.9) 0%, rgba(16, 14, 28, 0.55) 45%, rgba(16, 14, 28, 0.05) 80%);
}
.region-body { padding: 32px; }
.region-kicker { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--heather-2); }
.region-body h3 { margin-top: 10px; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); color: var(--on-dark); }
.region-body p { margin-top: 12px; color: var(--on-dark-muted); font-size: 0.95rem; max-width: 46ch; }

/* ---------- Enquiry ---------- */

.enquiry-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px 64px; align-items: start; }
.enquiry-intro h2 { margin-top: 18px; max-width: 14ch; }
.enquiry-intro .lede { margin-top: 22px; color: var(--muted); max-width: 44ch; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt, .contact-key { font: 500 0.7rem/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--heather); }

.enquiry-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.enquiry-form { display: grid; gap: 20px; }
.enquiry-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-label { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.field-req { color: var(--heather); margin-left: 3px; }
.field-opt, .char-counter { font: 400 0.7rem/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }

.text-input,
.text-area,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font: 400 0.95rem/1.4 var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.text-area { min-height: 150px; resize: vertical; line-height: 1.55; }
.select-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6271' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.text-input::placeholder, .text-area::placeholder { color: #8a909b; }
.text-input:focus, .text-area:focus, .select-input:focus {
  outline: none; border-color: var(--heather); box-shadow: 0 0 0 4px rgba(90, 75, 130, 0.14);
}
.text-input[aria-invalid="true"], .text-area[aria-invalid="true"] { border-color: var(--error); }

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

.consent-row {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line);
  cursor: pointer; font-size: 0.86rem; color: var(--ink-2); line-height: 1.55;
}
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--heather); cursor: pointer; }
.consent-row a { color: var(--heather); }

.form-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fbefee; color: var(--error); border: 1px solid rgba(155, 44, 44, 0.22);
  font-size: 0.9rem;
}
.form-alert[hidden] { display: none; }
.form-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.form-submit-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.form-note svg { width: 15px; height: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.spinner { animation: spin 0.9s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.enquiry-receipt { text-align: left; display: grid; gap: 14px; }
.enquiry-receipt[hidden] { display: none; }
.receipt-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--heather-wash); color: var(--heather); }
.receipt-badge svg { width: 24px; height: 24px; }
.receipt-ref { font: 500 0.85rem/1.4 var(--mono); color: var(--heather); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(245, 244, 241, 0.2); }
.footer-blurb { margin-top: 20px; max-width: 38ch; font-size: 0.92rem; }
.footer-col h2 {
  font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--heather-2); margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-col a { text-decoration: none; color: var(--on-dark); opacity: 0.86; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(245, 244, 241, 0.14);
  font-size: 0.8rem; color: rgba(245, 244, 241, 0.6);
}
.footer-bottom p { max-width: 70ch; }

/* ---------- Plain pages (privacy, disclaimer, 404) ---------- */

.page-plain main { padding-top: var(--header-h); }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-top: 18px; }
.legal .updated { margin-top: 14px; font: 500 0.75rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--heather); }

.notfound { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; justify-items: start; }
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-top: 18px; max-width: 16ch; }
.notfound p { margin-top: 18px; color: var(--muted); max-width: 48ch; }
.notfound .hero-cta { margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 10px; }
  .site-header.is-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 12px var(--gutter) 24px; background: var(--paper); box-shadow: 0 18px 30px -24px rgba(22, 29, 41, 0.5);
  }
  .site-header.is-open .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .site-header.is-open .header-cta { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

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

@media (max-width: 900px) {
  .section-head, .statement, .enquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .statement-points { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .region-grid { grid-template-columns: minmax(0, 1fr); }
  .region-card { min-height: 380px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-sub { display: none; }
  .site-header .header-cta { display: none; }
  .hero-content { padding-bottom: 28px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(16, 14, 28, 0.62) 0%, rgba(16, 14, 28, 0.72) 45%, rgba(16, 14, 28, 0.9) 100%);
  }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-index { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .hero-index div { padding: 14px 0 0; }
  .steps, .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-list li { grid-template-columns: 80px 1fr; }
  .form-submit-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-stage { opacity: 1; transform: none; }
}

/* Phone link shown only inside the opened mobile menu */
.site-nav .nav-call { display: none; }
@media (max-width: 1080px) {
  .site-header.is-open .site-nav .nav-call { display: block; border-bottom: 0; color: var(--heather); }
}
