/* ==========================================================================
   Baytal Enterprises — v3 "Site plan"
   Concept: the whole site is a construction drawing. The home page is a
   blueprint you pan and zoom around; every page is a paper sheet lying on it.
   ========================================================================== */

:root {
  /* Paper sheets */
  --ink: #16303d;           /* drawing ink + text */
  --ink-soft: #4a5f67;
  --paper: #fbfcfa;
  --stone: #eef3f2;         /* tinted band on a sheet */
  --line: #d3dee0;

  /* Blueprint table */
  --bp: #123a52;
  --bp-deep: #0c2c40;
  --bp-2: #1b4a66;
  --bp-ink: #c3ebf7;        /* light linework on blueprint */
  --bp-soft: rgba(195,235,247,0.62);
  --bp-grid: rgba(126,207,236,0.10);
  --bp-grid-major: rgba(126,207,236,0.20);

  /* Brand */
  --teal: #0f7f98;
  --teal-dark: #0b6377;
  --cyan: #7fcfec;
  --green: #78c96b;
  --hivis: #d6f03c;
  --red: #d9533a;

  /* Division colours */
  --construction: #1b4359;
  --facilities: #2f7390;
  --property: #3a7142;

  /* Type */
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  /* Layout */
  --shell: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --radius: 10px;
  --header-h: 68px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--tight { padding-block: calc(var(--section) * 0.65); }

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; line-height: 1.6; }
.muted { color: var(--ink-soft); }
.h-display { font-size: var(--step-4); }
.h-section { font-size: var(--step-3); }
.h-sub { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--division, var(--teal)); margin-top: 0.6rem; letter-spacing: -0.01em; }
.accent { color: var(--teal); }

.section-head { display: grid; gap: 0.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1.1rem; }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 4rem;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .section-head--split .lede { margin-top: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--teal); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cyan); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.phone-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.phone-link svg { width: 20px; height: 20px; color: var(--teal); }
.phone-link:hover { color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Statement band ---------- */
.statement { position: relative; overflow: hidden; }
.statement-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .statement-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; } }
.statement h2 { font-size: var(--step-3); }
.statement p + p { margin-top: 1rem; }
.statement-mark { position: absolute; right: -60px; bottom: -80px; width: 320px; opacity: 0.08; pointer-events: none; }

/* ---------- Connected divisions (one property, three divisions) ---------- */
.trio { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.trio-item { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.6rem; align-content: start; }
@media (min-width: 840px) {
  .trio-item { border-bottom: 0; padding: 2.25rem 2rem; border-left: 1px solid var(--line); }
  .trio-item:first-child { border-left: 0; padding-left: 0; }
}
.trio-item h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 0.75rem; }
.trio-item h3::before { content: ""; width: 16px; height: 16px; background: var(--division); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%); flex-shrink: 0; }
.trio-item p { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; background: var(--division, var(--teal));
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 62% 100%); opacity: 0.9;
}
.cta-inner { position: relative; display: grid; gap: 1.25rem; max-width: 44rem; }
.cta-band .kicker { color: var(--cyan); }
.cta-band h2 { font-size: var(--step-4); }
.cta-band p { font-size: var(--step-1); color: rgba(255,255,255,0.82); }
.cta-band .actions { margin-top: 1rem; }
.cta-band .phone-link { color: var(--paper); font-size: 1.3rem; }
.cta-band .phone-link svg { color: var(--cyan); }
.cta-band .phone-link:hover { color: var(--cyan); }
@media (max-width: 700px) { .cta-band::before { clip-path: polygon(80% 0, 100% 0, 100% 100%, 55% 100%); opacity: .55; } }

/* ---------- Division page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.page-hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.page-hero .kicker { color: var(--division, var(--teal)); }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .subline { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--division, var(--teal)); letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.35rem; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .actions { margin-top: 2rem; }
.page-hero .division-card { max-width: 420px; justify-self: center; width: 100%; }
[data-division] .btn-primary { background: var(--division); }
[data-division] .btn-primary:hover { background: var(--ink); }
[data-division] .kicker { color: var(--division); }
[data-division] .phone-link svg { color: var(--division); }

/* ---------- Service grid ---------- */
.service-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.service { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.section--stone .service { background: var(--paper); }
.service .service-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--division, var(--teal)) 12%, white); color: var(--division, var(--teal)); }
.service .service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.service p { color: var(--ink-soft); }

/* ---------- Process steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.step { counter-increment: step; position: relative; padding-top: 3.25rem; display: grid; gap: 0.5rem; align-content: start; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--division, var(--teal)); color: var(--paper); font-variant-numeric: tabular-nums;
}
.step::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1.25rem; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .step::after { display: none; } }

/* ---------- Feature list (2x2) ---------- */
.feature-split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .feature-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; } }
.feature-split .h-section { font-size: var(--step-3); }
.feature-split .lede { margin-top: 1.25rem; }
.feature-list { list-style: none; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature-list li { display: grid; gap: 0.4rem; padding-top: 1.1rem; border-top: 2px solid var(--division, var(--teal)); }
.feature-list strong { font-family: var(--font-display); font-size: 1.15rem; }
.feature-list span { color: var(--ink-soft); }

/* ---------- Quote / callout ---------- */
.callout {
  background: var(--division, var(--teal)); color: var(--paper);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1rem; position: relative; overflow: hidden;
}
.callout::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 35%; background: rgba(255,255,255,0.07); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.callout h2, .callout h3 { font-size: var(--step-2); position: relative; }
.callout p { position: relative; color: rgba(255,255,255,0.88); max-width: 40rem; }
.callout .btn { justify-self: start; position: relative; }
.note { font-size: 0.95rem; color: var(--ink-soft); border-left: 3px solid var(--division, var(--teal)); padding-left: 1rem; }
.note strong { display: block; color: var(--ink); font-family: var(--font-display); }

/* ---------- Cross-sell ---------- */
.next-division { display: grid; gap: 2rem; align-items: center; border-radius: var(--radius); background: var(--stone); padding: clamp(1rem, 3vw, 2rem); }
.next-division .division-card { max-width: 360px; width: 100%; }
@media (min-width: 840px) { .next-division { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 3.5rem; } }
.next-division-body { padding: 0 0.5rem 1rem; display: grid; gap: 1rem; }
@media (min-width: 840px) { .next-division-body { padding: 0 2rem 0 0; } }
.next-division-body h2 { font-size: var(--step-3); color: var(--division); }
.next-division-body .h-sub { color: var(--ink); margin-top: 0; }
.next-division-body .btn { justify-self: start; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contact-details { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.contact-details div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.contact-details dd { margin: 0; font-weight: 500; }
.contact-details a { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--teal); }
.contact-details a:hover { text-decoration: underline; }
.urgent { margin-top: 2rem; }

.form-card { background: var(--stone); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-card h2 { font-size: var(--step-2); }
.form-card > p { color: var(--ink-soft); margin-top: 0.5rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #cfd6d5; border-radius: 10px; padding: 0.8rem 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,145,0.15); }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-foot small { color: var(--ink-soft); }
.form-status { border-radius: 10px; padding: 0.9rem 1rem; font-weight: 500; }
.form-status.is-success { background: #e3f3df; color: #22502a; }
.form-status.is-error { background: #fbe7e5; color: #8a1f17; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); background: var(--stone); }
.legal-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.legal-hero p { margin-top: 1.25rem; max-width: 44rem; color: var(--ink-soft); font-size: var(--step-1); }
.legal-updated { display: inline-block; margin-top: 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--paper); }
.legal { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
@media (min-width: 960px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 4.5rem; align-items: start; } }
.legal-toc { display: grid; gap: 0.1rem; font-size: 0.95rem; }
@media (min-width: 960px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-toc strong { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.legal-toc a { text-decoration: none; padding: 0.35rem 0 0.35rem 0.9rem; border-left: 2px solid var(--line); color: var(--ink-soft); }
.legal-toc a:hover { color: var(--teal); border-color: var(--teal); }
.legal-body { max-width: 46rem; display: grid; gap: 2.75rem; }
.legal-section { display: grid; gap: 1rem; }
.legal-section h2 { font-size: var(--step-2); }
.legal-section h3 { font-size: 1.15rem; margin-top: 0.5rem; }
.legal-section ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.legal-section a { color: var(--teal); text-underline-offset: 3px; }
.legal-section code, .legal-section strong { font-weight: 700; }
.legal-section .bt-cookie-table, .legal-section table { width: 100%; border-collapse: collapse; }
.pref-box { background: var(--stone); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.9rem; }
.pref-status { font-weight: 700; }
.pref-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pref-actions .btn { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.95rem; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 10vw, 8rem); }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 20vw, 14rem); line-height: 0.9; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cyan) 0 40%, var(--teal) 40% 62%, var(--green) 62%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: var(--step-3); margin-top: 1.5rem; }
.notfound p { margin-top: 1rem; }
.notfound .actions { margin-top: 2rem; }
.notfound-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; font-family: var(--font-display); font-weight: 700; }
.notfound-links a { text-decoration: none; border-bottom: 2px solid var(--division); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--paper); }
.footer-logo img { width: 34px; height: auto; }
.footer-logo span { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; line-height: 1.1; }
.footer-logo small { display: block; font-size: 0.62rem; letter-spacing: 0.3em; font-weight: 700; color: var(--cyan); margin-top: 0.2rem; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a, .footer-links button { color: rgba(255,255,255,0.78); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--cyan); }
.footer-phone { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--paper); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-phone:hover { color: var(--cyan); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-stripe { display: flex; height: 6px; }
.footer-stripe span { flex: 1; }
.footer-stripe span:nth-child(1) { background: var(--construction); }
.footer-stripe span:nth-child(2) { background: var(--facilities); }
.footer-stripe span:nth-child(3) { background: var(--property); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  max-width: 44rem; margin-inline: auto; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  display: grid; gap: 0.9rem;
}
.cookie-banner p { font-size: 0.97rem; line-height: 1.55; color: rgba(255,255,255,0.88); }
.cookie-banner a { color: var(--cyan); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { min-height: 40px; padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.cookie-actions .btn-ghost { color: var(--paper); }
.cookie-actions .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Reveal on scroll (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: 0.6rem; }
.legal-card h3 { margin-top: 0; }

/* Dark bands keep light accents whatever division they sit in */
.cta-band .kicker, .cta-band[data-division] .kicker { color: var(--cyan); }
.cta-band .phone-link svg, .cta-band[data-division] .phone-link svg { color: var(--cyan); }
.callout .btn-light, [data-division] .callout .btn-light { background: var(--paper); color: var(--ink); }
.contact-grid h1 { font-size: var(--step-3); }
.contact-grid .subline { font-size: var(--step-2); }
.field input, .field select { min-height: 52px; }

/* ---------- People (contact) ---------- */
.people { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.person-badge { width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--paper); background: var(--teal); clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%); border-radius: 10px 0 0 0; }
.person:nth-child(2) .person-badge { background: var(--construction); }
.person-body { display: grid; gap: 0.15rem; min-width: 0; }
.person-body h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
.person-role { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.person-body a { color: var(--teal); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.person-body a:hover { text-decoration: underline; }

/* ---------- Good work guide ---------- */
.guide-hero .hero-build-stage { max-width: 620px; width: 100%; justify-self: center; }
.jump-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.jump-links a { padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--stone); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background-color .2s, color .2s; }
.jump-links a:hover { background: var(--ink); color: var(--paper); }

.guide-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 960px) {
  .guide-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .guide-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

.question-list { list-style: none; counter-reset: q; display: grid; padding: 0; margin: 0; background: var(--paper); border-radius: var(--radius); padding-inline: clamp(1rem, 3vw, 1.75rem); }
.question-list li { counter-increment: q; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.question-list li:last-child { border-bottom: 0; }
.question-list li::before { content: counter(q); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.question-list strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; }
.question-list span { color: var(--ink-soft); }

.warning-list { list-style: none; display: grid; gap: 0.75rem; }
.warning-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: #fdf1ee; font-weight: 500; font-size: 1.05rem; }
.warning-list svg { width: 26px; height: 26px; padding: 4px; border-radius: 7px; background: #c2462f; color: var(--paper); stroke-width: 2.4; }

.check-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.check-grid li { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.check-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(8,127,145,0.1); color: var(--teal); margin-bottom: 0.35rem; }
.check-icon svg { width: 24px; height: 24px; }
.check-grid h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.check-grid p { color: var(--ink-soft); }

.paperwork-list { list-style: none; display: grid; gap: 0.75rem; }
.paperwork-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.paperwork-list svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); color: var(--paper); stroke-width: 3; }
.paperwork-list div { display: grid; gap: 0.15rem; }
.paperwork-list strong { font-family: var(--font-display); font-size: 1.08rem; }
.paperwork-list span { color: var(--ink-soft); }

.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--paper); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 600; color: var(--teal); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 42rem; }


/* ==========================================================================
   v3 layer
   ========================================================================== */
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.kicker { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.12em; }
@view-transition { navigation: auto; }
::view-transition-group(sheet) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Brand lock-up ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand-mark { width: 30px; height: auto; overflow: visible; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.16em; line-height: 1; }
.brand-word small { display: block; font-size: 0.55rem; letter-spacing: 0.32em; margin-top: 0.25rem; opacity: .7; font-weight: 700; }

/* ---------- Blueprint table behind every sheet ---------- */
body.is-sheet {
  background-color: var(--bp);
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--ink);
}

/* ---------- Sheet header (inner pages) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 44, 64, 0.86);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  color: var(--bp-ink);
  border-bottom: 1px solid rgba(126,207,236,0.18);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.plan-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid rgba(126,207,236,0.35);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--bp-ink); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s;
}
.plan-link svg { width: 16px; height: 16px; }
.plan-link .crumb { opacity: .65; }
.plan-link:hover { background: var(--cyan); color: var(--bp-deep); border-color: var(--cyan); }
.nav { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.nav a { color: var(--bp-ink); text-decoration: none; padding: 0.55rem 0.75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem; transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(126,207,236,0.12); color: #fff; }
.nav a[aria-current="page"]:not(.btn) { color: #fff; background: rgba(126,207,236,0.16); }
.nav-no { font-family: var(--font-mono); font-weight: 500; font-size: 0.72em; opacity: .6; letter-spacing: 0; }
.nav .btn { margin-left: 0.5rem; min-height: 40px; padding: 0.45rem 1.1rem; background: var(--hivis); color: var(--bp-deep); }
.nav .btn:hover { background: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(126,207,236,0.35); border-radius: 50%; background: transparent; color: var(--bp-ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { border-top: 1px solid rgba(126,207,236,0.18); }
.mobile-menu nav { display: grid; padding-block: 0.5rem 1.25rem; }
.mobile-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(126,207,236,0.14); color: var(--bp-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--hivis); }
.mobile-menu .phone-link { color: #fff; border-bottom: 0; margin-top: 0.75rem; }
.mobile-menu .phone-link svg { color: var(--hivis); }
@media (max-width: 1080px) { .plan-link .crumb { display: none; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 420px) { .brand-word small { display: none; } .plan-link span:not(.crumb) { display: none; } .plan-link { padding: 0.5rem; } }

/* ---------- The paper sheet ---------- */
.paper {
  position: relative; display: block;
  margin: clamp(10px, 2.2vw, 32px) auto;
  width: min(100% - 2 * clamp(8px, 2vw, 28px), 1320px);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(27,74,102,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,74,102,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 2px 0 rgba(255,255,255,0.4) inset;
  view-transition-name: sheet;
  overflow: clip;
}
.paper::before {
  content: ""; position: absolute; inset: clamp(6px, 1vw, 12px); pointer-events: none; z-index: 5;
  border: 1px solid rgba(22,48,61,0.55); outline: 3px solid rgba(22,48,61,0.12); outline-offset: 3px;
}
.paper > *:first-child { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.section--stone { background: rgba(214,227,229,0.35); }
.section--stone, .cta-band { position: relative; }

/* sheet page hero */
.page-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .kicker { color: var(--division, var(--teal)); }
.page-hero h1 { font-size: var(--step-4); position: relative; }
.page-hero .subline { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--division, var(--teal)); letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.35rem; }
.hero-art { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,0.7); border-radius: 6px; padding: clamp(0.75rem, 2vw, 1.25rem); color: var(--bp-2); min-width: 0; }
.hero-art svg { width: 100%; height: auto; }
.hero-art .build-label { margin-top: 0.5rem; }
.art-label { font-family: var(--font-mono); letter-spacing: .04em; }

.title-block {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0 0;
  border: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 0.72rem; background: var(--paper); max-width: 34rem;
}
.title-block div { padding: 0.4rem 0.6rem; border-right: 1px solid rgba(22,48,61,.35); border-bottom: 1px solid rgba(22,48,61,.35); min-width: 0; }
.title-block div:nth-child(3n) { border-right: 0; }
.title-block .tb-project { grid-column: 1 / -1; border-right: 0; }
.title-block div:nth-last-child(-n+3) { border-bottom: 0; }
.title-block dt { text-transform: uppercase; opacity: .6; font-size: 0.62rem; letter-spacing: .1em; }
.title-block dd { margin: 0; font-weight: 600; font-size: 0.8rem; overflow-wrap: anywhere; }

/* section heads as drawing callouts */
.section-head .kicker, .feature-split .kicker { display: inline-flex; align-items: center; gap: 0.6rem; }
.section-head .kicker::before, .feature-split .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* division colours carry onto sheets */
[data-division] .btn-primary { background: var(--division); }
.btn-primary { background: var(--teal); }
.btn-light { background: var(--paper); color: var(--ink); }

/* cta band = a blueprint panel on the sheet */
.cta-band { background: var(--bp); color: #fff; margin: 0; }
.cta-band::before { background: var(--division, var(--teal)); opacity: .55; }
.cta-band .kicker { color: var(--hivis); }
.cta-band .phone-link svg { color: var(--hivis); }

/* next-division card uses a drawing now */
.next-division { grid-template-columns: minmax(0, 1fr); }
.next-division .sheet-art { color: var(--bp-2); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
@media (min-width: 840px) { .next-division { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); } }
.next-division .sheet-art svg { width: 100%; height: auto; }

/* ---------- Footer (on the blueprint) ---------- */
.site-footer { background: transparent; color: var(--bp-soft); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.site-footer .brand { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--font-mono); font-weight: 500; }
.footer-links a, .footer-links button { color: var(--bp-soft); display: inline-flex; gap: 0.5rem; align-items: baseline; }
.footer-links a:hover, .footer-links button:hover { color: var(--hivis); }
.footer-phone { color: #fff; }
.footer-phone:hover { color: var(--hivis); }
.footer-base { border-color: rgba(126,207,236,0.18); color: rgba(195,235,247,0.5); }

/* ---------- Title reveal: words rise out of a mask ---------- */
.tr-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.tr-in { display: inline-block; }
.is-revealing .tr-in { transform: translateY(105%); }
.is-revealing.is-go .tr-in { transform: none; transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 55ms); }

/* ---------- Home: guided tour of the site plan ---------- */
body.is-home { background-color: var(--bp); color: var(--bp-ink); }
.map-header {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter); color: #fff;
}
.map-header-actions { display: flex; align-items: center; gap: 1rem; }
.map-header .phone-link { color: #fff; }
.map-header .phone-link svg { color: var(--hivis); }
.map-header .btn-light { background: var(--hivis); color: var(--bp-deep); min-height: 44px; padding: 0.5rem 1.25rem; }
.map-header .btn-light:hover { background: #fff; }

/* Without JS: captions are an ordinary page, the drawing is hidden */
.tour-stage, .tour-track, .tour-rail { display: none; }
.tour-captions { display: grid; gap: 1.25rem; padding: 1rem var(--gutter) 3rem; max-width: 760px; margin-inline: auto; }

/* Tour mode */
html.tour-on .map-header { position: fixed; inset: 0 0 auto 0; padding-top: calc(0.9rem + env(safe-area-inset-top, 0px)); pointer-events: none;
  background: linear-gradient(rgba(12,44,64,0.75), rgba(12,44,64,0)); }
html.tour-on .map-header > * { pointer-events: auto; }
html.tour-on .tour-stage {
  display: block; position: fixed; inset: 0; overflow: hidden; overflow: clip;
  background: radial-gradient(ellipse 80% 70% at 60% 45%, #1d5270, var(--bp) 55%, var(--bp-deep));
}
html.tour-on .tour-stage::after { /* soft vignette so captions always sit on calm ground */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,36,52,0.55), rgba(10,36,52,0) 45%), radial-gradient(ellipse at center, transparent 55%, rgba(6,24,36,0.55));
}
html.tour-on .tour-track { display: block; height: calc((var(--stops) - 1) * 100svh + 100svh); }
html.tour-on .tour-captions { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: block; padding: 0; max-width: none; }
html.tour-on .tour-rail { display: flex; }

.map-world { position: absolute; left: 0; top: 0; width: var(--ww); height: var(--wh); transform-origin: 0 0; backface-visibility: hidden;
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px; }
.map-world.is-moving { will-change: transform; }
.map-world > .sheet, .map-world > .hub, .map-world > .rev-cloud, .map-world > .deco { position: absolute; left: var(--x); top: var(--y); width: var(--w, auto); }

.map-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-links .axis { stroke: rgba(126,207,236,0.09); stroke-width: 1.5; }
.map-links .axis-label { font: 500 18px var(--font-mono); fill: rgba(195,235,247,0.3); }
.map-links .link-line { stroke: rgba(195,235,247,0.4); stroke-width: 2.5; stroke-dasharray: .012 .008; fill: none; transition: stroke .8s ease; }
.map-links .link-dot { fill: var(--hivis); }
.at-overview .map-links .link-line { stroke: var(--hivis); animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -0.04; } }

.deco { color: rgba(195,235,247,0.5); }
.deco svg { width: 100%; height: auto; display: block; }
.crane-jib { transform-box: view-box; transform-origin: 160px 66px; animation: jib 18s ease-in-out infinite; }
.crane-hook { transform-box: view-box; transform-origin: 262px 72px; animation: hook 18s ease-in-out infinite; }
@keyframes jib { 0%, 100% { transform: scaleX(1); } 45%, 55% { transform: scaleX(-1); } }
@keyframes hook { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(40px); } 75% { transform: translateY(-20px); } }
.world-stamp { font-size: 16px; letter-spacing: .12em; border: 1.5px solid rgba(195,235,247,0.35); padding: 0.7rem 1.1rem; }

.rev-cloud { --w: 660px; color: var(--hivis); }
.rev-cloud > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rev-cloud .rev-body { position: relative; padding: 78px 100px 70px; display: grid; gap: 0.4rem; }
.rev-cloud .mono { color: var(--hivis); font-size: 16px; letter-spacing: .14em; }
.rev-cloud .rev-title { font-family: var(--font-display); font-weight: 800; font-size: 38px; color: #fff; line-height: 1.12; }
.rev-tri { position: absolute; right: 30px; top: 6px; width: 44px; height: 40px; display: grid; place-items: center; padding-top: 12px;
  font: 700 15px var(--font-mono); color: var(--bp-deep); background: var(--hivis); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.hub { display: grid; justify-items: center; gap: 22px; }
.hub-b { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.4)); }
.hub-label { font-size: 18px; letter-spacing: .2em; color: var(--bp-soft); }

.sheet {
  background-color: var(--paper); color: var(--ink);
  background-image: linear-gradient(rgba(27,74,102,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,74,102,0.05) 1px, transparent 1px);
  background-size: 20px 20px; border-radius: 4px; padding: 30px; display: grid; gap: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.42), 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity .7s ease, box-shadow .7s ease;
}
.sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(22,48,61,0.45); pointer-events: none; }
.has-focus .sheet:not(.is-focus) { opacity: .38; }
.sheet.is-focus { box-shadow: 0 50px 110px rgba(0,0,0,0.55), 0 0 0 3px rgba(214,240,60,0.9); }
.sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding: 4px 4px 16px; }
.sheet-no { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 600 20px var(--font-mono); }
.sheet-title { font: 800 44px/1.05 var(--font-display); letter-spacing: -0.02em; }
.sheet-tag { font: 600 16px var(--font-mono); letter-spacing: .16em; padding: 7px 12px; border: 2px solid var(--ink); }
.sheet-art { color: var(--bp-2); border: 1px dashed rgba(22,48,61,0.3); border-radius: 2px; padding: 16px; background: rgba(255,255,255,0.65); }
.sheet-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.sheet[data-zone="construction"] .sheet-art { padding: 0; background: #eef4f2; }
.build-label { font: 600 16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.build-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.build-label.is-building::before { background: var(--hivis); box-shadow: 0 0 0 4px rgba(214,240,60,.35); }

/* caption panels: crisp HTML over the drawing */
.cap { color: var(--bp-ink); }
.cap-kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--hivis); margin-bottom: 0.9rem; }
.cap h1, .cap h2 { color: #fff; letter-spacing: -0.025em; line-height: 1.02; }
.cap h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); }
.cap h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.8rem); }
.cap .accent { color: var(--cyan); }
.cap-lede { margin-top: 1rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); line-height: 1.6; color: var(--bp-soft); max-width: 34rem; }
.cap-list { list-style: none; margin-top: 1.25rem; display: grid; gap: 0; border-top: 1px solid rgba(126,207,236,0.2); }
.cap-list li { padding: 0.7rem 0 0.7rem 1.6rem; border-bottom: 1px solid rgba(126,207,236,0.14); position: relative; color: #fff; font-weight: 500; }
.cap-list li::before { content: ""; position: absolute; left: 0.1rem; top: 1.2rem; width: 0.8rem; height: 2px; background: var(--hivis); }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.5rem; }
.cap .btn-primary { background: var(--hivis); color: var(--bp-deep); }
.cap .btn-primary:hover { background: #fff; }
.cap .phone-link { color: #fff; }
.cap .phone-link svg { color: var(--hivis); }
.text-link { color: #fff; font-family: var(--font-display); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(214,240,60,0.6); padding-bottom: 2px; }
.text-link:hover { border-color: var(--hivis); color: var(--hivis); }
.cap-trio { display: grid; gap: 0; margin-top: 1.25rem; border-top: 1px solid rgba(126,207,236,0.2); }
.cap-trio div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(126,207,236,0.14); align-items: baseline; }
.cap-trio dt { font-family: var(--font-display); font-weight: 800; color: #fff; display: flex; align-items: center; gap: 0.6rem; }
.cap-trio dt::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--division); box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.cap-trio dd { margin: 0; color: var(--bp-soft); }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 2.4rem; font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bp-soft); text-decoration: none; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(44px); } }

html:not(.tour-on) .cap { padding: 2rem 0; border-bottom: 1px solid rgba(126,207,236,0.2); }

html.tour-on .cap {
  position: absolute; left: var(--gutter); top: 50%; width: min(470px, calc(100vw - 2 * var(--gutter)));
  padding: 2.2rem 2.2rem 2rem; border-radius: 20px;
  background: rgba(10, 38, 56, 0.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(126,207,236,0.18); box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transform: translate3d(-24px, -50%, 0);
  transition: opacity .55s ease, transform .75s cubic-bezier(.16,1,.3,1), visibility 0s linear .55s;
}
html.tour-on .cap.is-active { opacity: 1; visibility: visible; transform: translate3d(0, -50%, 0); pointer-events: auto; transition: opacity .6s ease .12s, transform .9s cubic-bezier(.16,1,.3,1) .08s, visibility 0s; }
html.tour-on .cap--hero { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(640px, calc(100vw - 2 * var(--gutter))); padding: 0; }
html.tour-on .cap > * { transition: opacity .6s ease, transform .9s cubic-bezier(.16,1,.3,1); }
html.tour-on .cap:not(.is-active) > * { opacity: 0; transform: translateY(14px); }
html.tour-on .cap.is-active > :nth-child(2) { transition-delay: .06s; } html.tour-on .cap.is-active > :nth-child(3) { transition-delay: .12s; }
html.tour-on .cap.is-active > :nth-child(4) { transition-delay: .18s; } html.tour-on .cap.is-active > :nth-child(5) { transition-delay: .24s; }

/* rail */
.tour-rail { position: fixed; z-index: 30; right: var(--gutter); top: 50%; transform: translateY(-50%); flex-direction: row; align-items: center; gap: 1rem; }
.tour-rail ol { list-style: none; display: grid; gap: 0.2rem; margin: 0; padding: 0; }
.tour-rail a { display: flex; align-items: center; justify-content: flex-end; flex-direction: row-reverse; gap: 0.75rem; padding: 0.35rem 0; text-decoration: none; color: var(--bp-soft); font: 500 0.72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.rail-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(195,235,247,0.6); transition: all .4s ease; flex-shrink: 0; }
.rail-label { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.tour-rail:hover .rail-label, .tour-rail a:focus-visible .rail-label, .tour-rail a[aria-current="step"] .rail-label { opacity: 1; transform: none; }
.tour-rail a[aria-current="step"] { color: #fff; }
.tour-rail a[aria-current="step"] .rail-dot { background: var(--hivis); border-color: var(--hivis); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(214,240,60,0.18); }
.tour-progress { display: none; }

@media (max-width: 900px) {
  html.tour-on .tour-stage::after { background: linear-gradient(0deg, rgba(10,36,52,0.9), rgba(10,36,52,0) 55%); }
  html.tour-on .cap {
    left: 0.75rem; right: 0.75rem; top: auto; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); width: auto;
    max-height: 56svh; overflow: auto; padding: 1.4rem 1.3rem 1.3rem; border-radius: 18px; transform: translate3d(0, 20px, 0);
  }
  html.tour-on .cap.is-active { transform: none; }
  html.tour-on .cap--hero { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); padding: 0 0.5rem; max-height: none; }
  .cap h2 { font-size: 1.75rem; } .cap h1 { font-size: 2.35rem; }
  .cap-lede { font-size: 0.98rem; margin-top: 0.6rem; }
  .cap-list { margin-top: 0.8rem; } .cap-list li { padding-block: 0.45rem; font-size: 0.95rem; } .cap-list li::before { top: 0.95rem; }
  .cap-actions { margin-top: 1rem; }
  .cap-trio div { grid-template-columns: 1fr; gap: 0.1rem; padding: 0.55rem 0; }
    .scroll-cue { margin-top: 1.2rem; }
    .tour-rail { top: calc(4.4rem + env(safe-area-inset-top, 0px)); left: 0.75rem; right: 0.75rem; transform: none; }
  .tour-rail ol { display: none; }
  .tour-progress { display: block; flex: 1; height: 3px; background: rgba(195,235,247,0.18); border-radius: 3px; overflow: hidden; }
  .tour-progress span { display: block; height: 100%; background: var(--hivis); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .map-header .phone-link span { display: none; }
  .map-header .phone-link { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(126,207,236,0.35); border-radius: 50%; }
}
@media (max-width: 900px) and (max-height: 700px) { .cap-list li:nth-child(n+4) { display: none; } }

/* ---------- Intro: the big B ---------- */
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background-color: var(--bp);
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(var(--bp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px; background-position: center;
  color: var(--bp-ink); transition: opacity .7s ease;
}
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 1.25rem; }
.intro-b { width: min(46vmin, 300px); transform-origin: center; }
.intro-mark { width: 100%; height: auto; overflow: visible; }
.intro-mark .b-lines path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.intro-mark .b-lines path.guide { stroke-dasharray: .006 .01; stroke-dashoffset: 0; animation: fadein .6s ease forwards; opacity: 0; }
.intro-mark .b-lines circle { opacity: 0; animation: fadein .3s ease .8s forwards; }
.intro-mark .b-piece { opacity: 0; transform-box: view-box; animation: piece .85s cubic-bezier(.2,.9,.25,1.15) forwards; }
.intro-mark .b-top { --from: translate(-90px, -70px) rotate(-8deg); animation-delay: .75s; }
.intro-mark .b-low { --from: translate(110px, 70px) rotate(6deg); animation-delay: .95s; }
.intro-mark .b-dark { --from: translate(-120px, 90px) rotate(-10deg); animation-delay: 1.15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes piece { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
.intro-word { display: flex; gap: 0.4em; font: 800 clamp(1.6rem, 5vw, 2.6rem) var(--font-display); color: #fff; letter-spacing: .1em; }
.intro-word span { opacity: 0; transform: translateY(14px); animation: letter .5s cubic-bezier(.2,.9,.3,1.3) forwards; }
.intro-word span:nth-child(1) { animation-delay: 1.5s; } .intro-word span:nth-child(2) { animation-delay: 1.56s; }
.intro-word span:nth-child(3) { animation-delay: 1.62s; } .intro-word span:nth-child(4) { animation-delay: 1.68s; }
.intro-word span:nth-child(5) { animation-delay: 1.74s; } .intro-word span:nth-child(6) { animation-delay: 1.8s; }
@keyframes letter { to { opacity: 1; transform: none; } }
.intro-skip { position: absolute; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); background: transparent; border: 1px solid rgba(126,207,236,0.4);
  color: var(--bp-ink); border-radius: 999px; padding: 0.55rem 1rem; font: 500 0.8rem var(--font-mono); cursor: pointer; }
.intro-skip:hover { background: var(--bp-ink); color: var(--bp-deep); }
.intro.is-lensing .intro-inner > :not(.intro-b) { opacity: 0; transition: opacity .3s; }
.intro.is-lensing .intro-b { transition: transform .95s cubic-bezier(.65,0,.25,1); }

/* ---------- House build on sheets ---------- */
.house-svg { overflow: visible; }
.house-svg .b { transform-box: view-box; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .crane-jib, .crane-hook { animation: none !important; }
  .is-revealing .tr-in { transform: none !important; }
  .intro-mark *, .intro-word span, }

.art-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.replay { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.75rem; color: var(--ink-soft); cursor: pointer; }
.replay:hover { background: var(--ink); color: var(--paper); }
.hero-art .house-svg { background: #eef4f2; border-radius: 4px; }


[data-division="construction"] { --division: var(--construction); }
[data-division="facilities"] { --division: var(--facilities); }
[data-division="property"] { --division: var(--property); }

/* no scroll snapping: it fought mouse wheels and trackpads (audit 7 Oct) */
.tour-snap { height: 100vh; height: 100svh; }
html.tour-on .tour-track { height: auto; }
html.intro-open, html.intro-open body { overflow: hidden; }

/* ---------- Tour sheets: pinned photographs that open their page ---------- */
a.sheet { text-decoration: none; cursor: pointer; }
.sheet-photo { position: relative; display: block; overflow: hidden; border-radius: 2px; background: #dfe7ea; box-shadow: 0 0 0 1px rgba(22,48,61,0.25); }
.sheet-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; transform: scale(1.001); transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter .6s ease; }
.sheet-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,58,82,0) 55%, rgba(18,58,82,0.28)); mix-blend-mode: multiply; }
.sheet-open { display: inline-flex; align-items: center; justify-self: start; gap: 10px; margin-top: 2px;
  font: 700 20px var(--font-display); color: var(--bp-deep); padding: 12px 20px; border-radius: 999px; background: var(--hivis);
  transition: background-color .3s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.sheet-open svg { width: 22px; height: 22px; transition: transform .3s ease; }
a.sheet:hover .sheet-photo img { transform: scale(1.045); }
a.sheet:hover .sheet-open { background: var(--bp-deep); color: #fff; }
a.sheet:hover .sheet-open svg { transform: translateX(4px); }
a.sheet:hover { box-shadow: 0 50px 110px rgba(0,0,0,0.55), 0 0 0 3px var(--hivis); }
.has-focus a.sheet:not(.is-focus):hover { opacity: .8; }
.tour-stage { cursor: default; }

/* ---------- Scroll cue: big and obvious ---------- */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.25rem;
  padding: 0.85rem 1rem 0.85rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--hivis); background: rgba(214,240,60,0.08);
  color: #fff; text-decoration: none; letter-spacing: 0; text-transform: none;
  box-shadow: 0 0 0 0 rgba(214,240,60,0.45); animation: cue-pulse 2.4s ease-out infinite;
  transition: background-color .3s ease, transform .3s ease;
}
.scroll-cue:hover { background: rgba(214,240,60,0.18); transform: translateY(-2px); }
.cue-mouse { width: 26px; height: 40px; border: 2px solid var(--hivis); border-radius: 14px; position: relative; flex-shrink: 0; }
.cue-mouse span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--hivis); animation: wheel 1.6s cubic-bezier(.6,0,.4,1) infinite; }
.cue-text { display: grid; line-height: 1.2; }
.cue-text strong { font: 800 1.15rem var(--font-display); color: #fff; }
.cue-text small { font: 500 0.72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-soft); margin-top: 2px; }
.cue-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--hivis); color: var(--bp-deep); display: grid; place-items: center; flex-shrink: 0; }
.cue-arrow svg { width: 20px; height: 20px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes cue-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,240,60,0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(214,240,60,0); } }

/* ---------- Tour rail: always-visible stop list ---------- */
.tour-rail {
  flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 1rem 0.9rem 1rem 1.1rem;
  background: rgba(10,38,56,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(126,207,236,0.22); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.rail-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--hivis); }
.tour-rail ol { gap: 0.1rem; position: relative; }
.tour-rail ol::before { content: ""; position: absolute; right: 7px; top: 14px; bottom: 14px; width: 2px; background: rgba(195,235,247,0.18); border-radius: 2px; }
.tour-rail ol::after { content: ""; position: absolute; right: 7px; top: 14px; width: 2px; height: calc((100% - 28px) * var(--p, 0)); background: var(--hivis); border-radius: 2px; transition: height .2s linear; }
.tour-rail a { flex-direction: row; justify-content: flex-start; gap: 0.7rem; padding: 0.45rem 0; font: 700 0.95rem var(--font-display); letter-spacing: 0; text-transform: none; color: var(--bp-soft); transition: color .25s ease; }
.tour-rail a:hover { color: #fff; }
.rail-no { font: 500 0.72rem var(--font-mono); opacity: .6; width: 1.4rem; }
.rail-label { opacity: 1; transform: none; flex: 1; }
.rail-dot { width: 16px; height: 16px; margin-left: 0.8rem; border-width: 2px; background: var(--bp); position: relative; z-index: 1; }
.tour-rail a[aria-current="step"] { color: #fff; }
.tour-rail a[aria-current="step"] .rail-no { color: var(--hivis); opacity: 1; }
.tour-rail a[aria-current="step"] .rail-dot { background: var(--hivis); border-color: var(--hivis); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(214,240,60,0.2); }
.tour-mini { display: none; }

@media (max-width: 900px) {
  .tour-rail { top: calc(4.3rem + env(safe-area-inset-top, 0px)); left: 0.75rem; right: 0.75rem; transform: none; padding: 0.45rem; border-radius: 999px; flex-direction: row; }
  .rail-title, .tour-rail ol { display: none; }
  .tour-mini { display: flex; align-items: center; gap: 0.5rem; width: 100%; }
  .mini-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hivis); color: var(--bp-deep); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
  .mini-btn svg { width: 20px; height: 20px; }
  .mini-btn:disabled { background: rgba(195,235,247,0.15); color: var(--bp-soft); }
  .mini-now { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.6rem; row-gap: 0.3rem; }
  .mini-count { font-size: 0.72rem; color: var(--hivis); }
  .mini-name { font: 800 1rem var(--font-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-now .tour-progress { grid-column: 1 / -1; display: block; height: 3px; background: rgba(195,235,247,0.18); border-radius: 3px; overflow: hidden; }
  .mini-now .tour-progress span { display: block; height: 100%; background: var(--hivis); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .scroll-cue { margin-top: 1.1rem; padding: 0.6rem 0.7rem; gap: 0.7rem; }
  .cue-mouse { display: none; }
  .cue-text strong { font-size: 1.02rem; }
  .cue-arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue, .cue-mouse span, .cue-arrow svg { animation: none !important; } }

@media (min-width: 901px) { .cue-text strong { font-size: 1.3rem; } .scroll-cue { padding: 1rem 1.1rem 1rem 1rem; } .cue-arrow { width: 46px; height: 46px; } }

/* ---------- v3.4: calmer cue, lighter rail ---------- */
.scroll-cue { gap: 0.7rem; padding: 0.55rem 0.6rem 0.55rem 0.8rem; margin-top: 1.8rem; }
.cue-mouse { width: 20px; height: 32px; border-radius: 11px; }
.cue-mouse span { top: 5px; height: 6px; }
.cue-text strong, .scroll-cue .cue-text strong { font-size: 1rem; }
.cue-text small { font-size: 0.66rem; }
.cue-arrow, .scroll-cue .cue-arrow { width: 32px; height: 32px; }
.cue-arrow svg { width: 16px; height: 16px; }
@media (min-width: 901px) { .scroll-cue .cue-text strong { font-size: 1.02rem; } .scroll-cue { padding: 0.55rem 0.6rem 0.55rem 0.8rem; } .scroll-cue .cue-arrow { width: 32px; height: 32px; } }

@media (min-width: 901px) {
  .tour-rail { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
  .tour-rail ol::before, .tour-rail ol::after { right: 13px; }
  .tour-rail a { justify-content: flex-end; gap: 0.6rem; padding: 0.3rem 0.35rem 0.3rem 0.8rem; border-radius: 999px; cursor: pointer;
    transition: background-color .25s ease, color .25s ease; }
  .rail-no { display: none; }
  .rail-label { flex: none; font-size: 0.85rem; opacity: .55; transition: opacity .25s ease, transform .25s ease; }
  .rail-dot { width: 14px; height: 14px; margin-left: 0; margin-right: 6px; }
  .tour-rail a:hover { background: rgba(214,240,60,0.14); color: #fff; }
  .tour-rail a:hover .rail-label { opacity: 1; transform: translateX(-3px); }
  .tour-rail a:hover .rail-dot { border-color: var(--hivis); transform: scale(1.25); }
  .tour-rail a[aria-current="step"] .rail-label { opacity: 1; color: var(--hivis); }
  .tour-rail a:focus-visible { outline: 2px solid var(--hivis); outline-offset: 2px; }
}

/* ==========================================================================
   Taste pass (design-taste-frontend skill, redesign: preserve)
   ========================================================================== */
/* one accent for every primary action: hi-vis */
.btn-primary, [data-division] .btn-primary, .cta-band .btn-light, .callout .btn-light, [data-division] .callout .btn-light { background: var(--hivis); color: var(--bp-deep); }
.btn-primary:hover, [data-division] .btn-primary:hover, .cta-band .btn-light:hover { background: var(--bp-deep); color: #fff; }
.btn:active { transform: translateY(1px) scale(.99); }
/* section headers stack, no split headers */
.section-head--split { grid-template-columns: minmax(0, 1fr) !important; max-width: 46rem; }
.section-head--split .lede { margin-top: 1rem !important; }
/* no enumerated nav labels */
.nav .nav-no, .footer-links .nav-no, .mobile-menu .nav-no { display: none; }
/* services: open two-column list instead of boxed equal cards */
.service-grid { background: none; border: 0; border-radius: 0; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.service { background: none !important; padding: 1.6rem 0; border-top: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
.service .service-icon { grid-row: span 2; }
.service p { max-width: 52ch; }
/* one radius system: pills for actions, 14px for panels, paper stays square-ish */
html.tour-on .cap { border-radius: 14px; }
.hero-art, .sheet-art, .form-card, .callout, .next-division { border-radius: 14px; }
/* shadows tinted to the blueprint, not pure black */
.paper { box-shadow: 0 30px 80px rgba(6,28,42,0.45); }
.sheet { box-shadow: 0 30px 70px rgba(6,28,42,0.5), 0 2px 6px rgba(6,28,42,0.3); }

/* ==========================================================================
   v3.5 Mobile: bottom tour dock, calmer header, captions that never scroll
   ========================================================================== */
@media (max-width: 900px) {
  /* header: solid strip so the drawing never peeks through */
  html.tour-on .map-header {
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 1rem 0.7rem;
    background: linear-gradient(180deg, rgba(10,36,52,0.97) 0%, rgba(10,36,52,0.9) 75%, rgba(10,36,52,0) 100%);
  }
  .map-header .brand-mark, .map-header .brand svg { width: 30px; height: 30px; }
  .map-header .brand-word { font-size: 1rem; }
  .map-header-actions { gap: 0.5rem; }
  .map-header .btn-light { min-height: 44px; padding: 0.45rem 1rem; font-size: 0.95rem; }

  /* the old top pill becomes a dock at the bottom of the screen */
  html.tour-on .tour-rail {
    top: auto; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); left: 0.75rem; right: 0.75rem; transform: none;
    padding: 0.4rem; border-radius: 22px; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,30,44,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(126,207,236,0.22); box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  }
  .tour-mini { display: flex; align-items: center; gap: 0.4rem; width: 100%; order: 2; }
  .mini-btn { width: 52px; height: 52px; border-radius: 16px; border: 0; background: rgba(195,235,247,0.1); color: #fff; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mini-btn.mini-next { background: var(--hivis); color: var(--bp-deep); }
  .mini-btn svg { width: 22px; height: 22px; }
  .mini-btn:disabled { opacity: .35; background: rgba(195,235,247,0.1); color: var(--bp-soft); }
  .mini-btn:active:not(:disabled) { transform: scale(.94); }
  html.tour-at-start .mini-next { animation: cue-pulse 1.8s ease-out infinite; }
  .mini-now {
    flex: 1; min-width: 0; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem; align-content: center; text-align: left;
    padding: 0.35rem 0.6rem; border: 0; border-radius: 14px; background: transparent; color: #fff; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent;
  }
  .mini-now:active { background: rgba(195,235,247,0.08); }
  .mini-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
  .mini-count { font-size: 0.7rem; color: var(--hivis); }
  .mini-all { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-soft); }
  .mini-all svg { width: 12px; height: 12px; transition: transform .25s ease; }
  .rail-open .mini-all svg { transform: rotate(180deg); }
  .mini-name { font: 800 1.05rem/1.15 var(--font-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-now .tour-progress { display: block; height: 3px; margin-top: 0.15rem; background: rgba(195,235,247,0.18); border-radius: 3px; overflow: hidden; flex: none; }
  .mini-now .tour-progress span { display: block; height: 100%; background: var(--hivis); transform-origin: left; transform: scaleX(var(--p, 0)); }

  /* "All stops" list opens upwards out of the dock */
  html.tour-on .tour-rail ol { display: none; }
  html.tour-on .tour-rail.rail-open ol {
    display: grid; order: 1; gap: 0; margin: 0 0 0.4rem; padding: 0.25rem 0;
    border-bottom: 1px solid rgba(126,207,236,0.18); animation: stops-in .28s cubic-bezier(.16,1,.3,1);
  }
  .tour-rail.rail-open ol::before, .tour-rail.rail-open ol::after { display: none; }
  html.tour-on .tour-rail.rail-open a {
    flex-direction: row; justify-content: flex-start; gap: 0.85rem; min-height: 48px; padding: 0 0.75rem; border-radius: 12px;
    font: 700 1.05rem var(--font-display); color: var(--bp-ink);
  }
  .tour-rail.rail-open .rail-no { display: inline; font: 500 0.72rem var(--font-mono); opacity: .6; width: 1.4rem; }
  .tour-rail.rail-open .rail-label { opacity: 1; transform: none; flex: 1; font-size: inherit; }
  .tour-rail.rail-open .rail-dot { width: 12px; height: 12px; margin: 0; }
  .tour-rail.rail-open a[aria-current="step"] { background: rgba(214,240,60,0.12); color: #fff; }
  .tour-rail.rail-open a[aria-current="step"] .rail-no, .tour-rail.rail-open a[aria-current="step"] .rail-label { color: var(--hivis); opacity: 1; }

  /* captions sit just above the dock, sized to fit without scrolling */
  html.tour-on .cap {
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); max-height: none; overflow: visible;
    padding: 1.1rem 1.15rem 1.15rem; left: 0.75rem; right: 0.75rem;
  }
  html.tour-on .cap--hero { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); padding: 0 0.35rem; }
  .cap h2 { font-size: 1.5rem; line-height: 1.08; }
  .cap h1 { font-size: 2.15rem; }
  .cap-kicker { font-size: 0.68rem; margin-bottom: 0.5rem; }
  .cap-lede { font-size: 0.95rem; line-height: 1.5; margin-top: 0.5rem; }
  html.tour-on .cap:not(.cap--hero) .cap-list { display: none; }
  .cap-actions { margin-top: 0.85rem; gap: 0.6rem 1rem; }
  .cap-actions .btn { min-height: 46px; padding: 0.55rem 1.1rem; }
  .cap--hero .cap-actions .phone-link { display: none; }
  .cap-trio { margin-top: 0.7rem; }
  .cap-trio div { grid-template-columns: 7rem 1fr; gap: 0.6rem; padding: 0.45rem 0; align-items: center; }
  .cap-trio dd { font-size: 0.85rem; line-height: 1.35; }
  .cap-trio dt { font-size: 0.95rem; }
  .scroll-cue { display: none; }
  html.tour-on .tour-stage::after { background: linear-gradient(0deg, rgba(10,36,52,0.96) 0%, rgba(10,36,52,0.75) 38%, rgba(10,36,52,0) 62%); }

  /* inner pages: one clear "Menu" button, no cryptic plan icon */
  .site-header .plan-link { display: none; }
  .site-header { background: rgba(12,44,64,0.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { width: auto; height: 44px; padding: 0 0.85rem 0 1rem; gap: 0.5rem; border-radius: 999px; font: 700 0.95rem var(--font-display); }
  .menu-toggle svg { width: 20px; height: 20px; }
  .menu-toggle[aria-expanded="true"] { background: var(--hivis); color: var(--bp-deep); border-color: var(--hivis); }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; background: var(--bp-deep); border-top: 1px solid rgba(126,207,236,0.18); }
  .mobile-menu a:not(.btn):not(.phone-link) { font-size: 1.5rem; min-height: 60px; padding: 0.6rem 0; }
  .mobile-menu-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu-actions .btn { justify-content: center; min-height: 52px; font-size: 1.05rem; border-bottom: 0; }
  .mobile-menu-actions .phone-link { justify-content: center; min-height: 52px; margin: 0; border: 1px solid rgba(126,207,236,0.3); border-radius: 999px; font-size: 1.05rem; }
  html.menu-open { overflow: hidden; }
  html.menu-open body { overflow: hidden; overflow: clip; }

  /* comfortable tap targets everywhere */
  .phone-link { min-height: 44px; }
  .footer-links { gap: 0.1rem; }
  .footer-links a, .footer-links button { min-height: 44px; align-items: center; }
  .replay { min-height: 44px; padding-inline: 1rem; }
}
@media (min-width: 901px) { .mobile-menu-actions { display: none; } .menu-word { display: none; } }
@media (max-width: 380px) {
  .map-header .btn-light { padding-inline: 0.8rem; font-size: 0.88rem; }
  .cap-trio div { grid-template-columns: 1fr; gap: 0; }
}
@keyframes stops-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.tour-at-start .mini-next { animation: none; } }

/* ==========================================================================
   v3.7 Review fixes (agent team, taste pass)
   ========================================================================== */
/* division pages: chip lists and process steps on the grid */
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 500; background: rgba(255,255,255,0.5); }
.steps { padding: 0; margin: 0; }
.feature-list li { align-content: start; }
/* legal pages: kicker keeps its normal look */
.legal-hero p.kicker { margin-top: 0; font-size: 0.78rem; color: var(--teal); max-width: none; }
/* form: visible borders, errors win over focus, message under each field */
.field input, .field select, .field textarea { border-color: #8a9799; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179,38,30,0.14); }
.field-error { margin: 0.1rem 0 0; font-size: 0.88rem; font-weight: 600; color: #b3261e; display: flex; gap: 0.4rem; align-items: baseline; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #b3261e; color: #fff; font-size: 0.7rem; flex-shrink: 0; transform: translateY(2px); }
/* contrast */
.footer-base { color: rgba(195,235,247,0.78); }
.title-block dt { opacity: .78; }
.callout p { color: #fff; }
.cue-text small { color: var(--bp-ink); opacity: .85; }
/* home caption: contact rows are facts, not checkboxes */
.cap-trio div:not([data-division]) dt::before { display: none; }
.cap-trio [data-division="construction"] dt::before { box-shadow: 0 0 0 2px rgba(255,255,255,0.55); }
/* captions stay in the accessibility tree; the tour follows keyboard focus */
html.tour-on .cap { visibility: visible; }
html.tour-on .cap:not(.is-active) { pointer-events: none; }
/* desktop: footer sits above the fixed drawing, readable rail */
html.tour-on body.is-home .site-footer { position: relative; z-index: 40; background: var(--bp-deep); }
@media (min-width: 901px) {
  .tour-rail .rail-label { opacity: .85; }
  .tour-rail a { color: var(--bp-ink); }
}
/* short laptop screens: tighter captions */
@media (min-width: 901px) and (max-height: 780px) {
  html.tour-on .cap:not(.cap--hero) { padding: 1.5rem 1.6rem; top: calc(50% + 28px); }
  html.tour-on .cap:not(.cap--hero) h2 { font-size: 2rem; }
  html.tour-on .cap-lede { margin-top: 0.7rem; font-size: 1rem; }
  html.tour-on .cap-list { margin-top: 0.8rem; }
  html.tour-on .cap-list li { padding-block: 0.45rem; }
  html.tour-on .cap-list li::before { top: 0.95rem; }
  html.tour-on .cap-actions { margin-top: 1rem; }
  html.tour-on .cap-trio div { padding-block: 0.5rem; }
}
/* tap targets */
.map-header .brand, .site-header .brand, .site-footer .brand { min-height: 44px; display: inline-flex; align-items: center; }
.cap .text-link { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(214,240,60,0.6); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cookie-actions .btn { min-height: 44px; }
.cookie-banner p a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.intro-skip { min-height: 44px; min-width: 64px; }
.site-footer .phone-link, .site-footer .footer-phone { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  /* the "All stops" footer links keep their own small style */
  html.tour-on .tour-rail.rail-open .rail-legal a { font: 500 0.78rem var(--font-mono); min-height: 44px; padding: 0; color: var(--bp-soft); }
  html.tour-on .tour-rail.rail-open .rail-legal { flex-wrap: nowrap; justify-content: space-between; }
  .mini-all { font-size: 0.72rem; letter-spacing: .08em; }
  html.tour-on .cap { bottom: calc(5.9rem + env(safe-area-inset-bottom, 0px)); }
  html.tour-on .tour-rail.rail-open ol { max-height: calc(100svh - 11rem); }
  /* contact: the form comes first on phones, details after */
  .contact-grid > .reveal:first-child { display: contents; }
  .contact-grid .contact-details, .contact-grid .note.urgent { order: 3; }
  .contact-grid .form-card { order: 2; }
  .site-footer .shell { padding-inline: var(--gutter); }
}
@media (max-width: 380px) { .cap-trio div { grid-template-columns: 6.2rem 1fr; gap: 0.5rem; } }

/* ==========================================================================
   v4 Phones: the home page is an ordinary page (no camera tour)
   ========================================================================== */
.flat-mark, .flat-photo { display: none; }
html.home-flat body.is-home { background: var(--bp-deep); }
html.home-flat .map-header {
  position: sticky; top: 0; z-index: 60; padding: calc(0.6rem + env(safe-area-inset-top, 0px)) var(--gutter) 0.6rem;
  background: rgba(10,36,52,0.98); border-bottom: 1px solid rgba(126,207,236,0.14);
}
html.home-flat .map-header .phone-link span { display: none; }
html.home-flat .map-header .phone-link { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(126,207,236,0.35); border-radius: 50%; }
html.home-flat .map-header .btn-light { min-height: 44px; padding: 0.45rem 1rem; font-size: 0.95rem; }
html.home-flat .tour-captions { display: block; padding: 0; max-width: 640px; margin-inline: auto; }
html.home-flat .cap { padding: 2.75rem var(--gutter); border: 0; color: var(--bp-ink); }
html.home-flat .cap h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); line-height: 1.08; }
html.home-flat .cap-lede { font-size: 1rem; line-height: 1.6; margin-top: 0.75rem; max-width: 36rem; }
html.home-flat .cap-actions { margin-top: 1.25rem; gap: 0.75rem 1.25rem; }
html.home-flat .cap-actions .btn { min-height: 48px; }

/* hero: the B, one line of context, the promise, one action */
html.home-flat .cap--hero {
  padding-top: 2rem; padding-bottom: 3rem;
  background:
    linear-gradient(rgba(126,207,236,0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(126,207,236,0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse 90% 70% at 70% 20%, #1d5270, var(--bp-deep) 70%);
}
html.home-flat .flat-mark { display: block; width: min(46vw, 210px); margin: 0 0 1.75rem; }
html.home-flat .flat-mark svg { display: block; width: 100%; height: auto; }
html.home-flat .cap--hero h1 { font-size: clamp(2.2rem, 1.6rem + 3.4vw, 3rem); line-height: 1.02; }
html.home-flat .cap--hero .phone-link, html.home-flat .scroll-cue { display: none; }

/* overview introduces the three cards below it */
html.home-flat .cap[data-key="overview"] { padding-bottom: 1.25rem; }
html.home-flat .cap[data-key="overview"] .cap-trio { display: none; }

/* divisions: one tappable card each, photo first */
html.home-flat .cap[data-key="construction"], html.home-flat .cap[data-key="facilities"], html.home-flat .cap[data-key="property"] {
  margin: 0 var(--gutter) 1rem; padding: 0 0 1.4rem; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(126,207,236,0.16);
  border-top: 3px solid var(--division, var(--cyan));
}
html.home-flat .cap[data-key="construction"] { --division: var(--construction); }
html.home-flat .cap[data-key="facilities"] { --division: var(--facilities); }
html.home-flat .cap[data-key="property"] { --division: var(--property); }
html.home-flat .cap[data-key="construction"] > :not(.flat-photo),
html.home-flat .cap[data-key="facilities"] > :not(.flat-photo),
html.home-flat .cap[data-key="property"] > :not(.flat-photo) { margin-inline: 1.25rem; }
html.home-flat .flat-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 1.1rem; background: #0e3247; }
html.home-flat .flat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.home-flat .cap[data-key="construction"] h2, html.home-flat .cap[data-key="facilities"] h2, html.home-flat .cap[data-key="property"] h2 { font-size: 1.5rem; }
html.home-flat .cap .cap-list, html.home-flat .cap .text-link { display: none; }
/* secondary actions are outlined; yellow is kept for "Get in touch" */
html.home-flat .cap:not(.cap--hero):not([data-key="contact"]) .btn-primary {
  background: transparent; color: #fff; border: 1.5px solid rgba(214,240,60,0.7);
}
html.home-flat .cap:not(.cap--hero):not([data-key="contact"]) .btn-primary svg { color: var(--hivis); }

/* guide: full-width photo, then the questions */
html.home-flat .cap[data-key="guide"] { padding-top: 1.75rem; }
html.home-flat .cap[data-key="guide"] .flat-photo { margin: 0 calc(-1 * var(--gutter)) 1.5rem; aspect-ratio: 16 / 10; }
html.home-flat .cap[data-key="guide"] .cap-list { display: grid; gap: 0.6rem; margin-top: 1.1rem; border: 0; }
html.home-flat .cap[data-key="guide"] .cap-list li { padding: 0.85rem 1rem; border: 0; border-left: 3px solid var(--hivis); background: rgba(255,255,255,0.04); border-radius: 0 10px 10px 0; font-size: 0.98rem; }
html.home-flat .cap[data-key="guide"] .cap-list li::before { display: none; }

/* contact: a calm panel, no photo */
html.home-flat .cap[data-key="contact"] { margin: 0.5rem var(--gutter) 2.5rem; padding: 1.75rem 1.4rem; border-radius: 14px; background: #0f3a52; border: 1px solid rgba(126,207,236,0.2); }
html.home-flat .cap[data-key="contact"] .flat-photo { display: none; }
html.home-flat .cap[data-key="contact"] .cap-trio { margin-top: 1rem; }
html.home-flat .cap[data-key="contact"] .cap-trio div { grid-template-columns: 6.5rem 1fr; gap: 0.6rem; padding: 0.6rem 0; }
html.home-flat .cap[data-key="contact"] .cap-actions .phone-link { min-height: 48px; }
html.home-flat body.is-home .site-footer { background: var(--bp-deep); border-top: 1px solid rgba(126,207,236,0.14); }
html.home-flat .cap[data-key="construction"] { border-top-color: #7ecfec; }
html.home-flat .cap[data-key="facilities"] { border-top-color: #4fb3d9; }
html.home-flat .cap[data-key="property"] { border-top-color: #7cc47f; }

/* ==========================================================================
   v4 Phones: speed and taste pass (all pages)
   ========================================================================== */
@media (max-width: 900px) {
  /* the fixed blueprint background repainted on every scroll frame: let it scroll */
  body.is-sheet { background-attachment: scroll; background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px; }
  .paper { box-shadow: 0 10px 30px rgba(6,28,42,0.35); margin-block: 8px; }
  .paper::before { inset: 5px; }
  /* reveals: quick fade only, no movement */
  .js .reveal { transform: none; transition: opacity .35s ease; }
  /* drawing details box is decoration on a phone */
  .page-hero .title-block, .guide-hero .title-block { display: none; }
  /* "next division" panel: the tiny nested drawing is unreadable, drop it */
  .next-division .sheet-art { display: none; }
  /* quality guide: the nine checks as a compact two-column grid */
  .check-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .check-grid li { padding: 0.95rem; gap: 0.3rem; }
  .check-grid h3 { font-size: 1rem; line-height: 1.2; }
  .check-grid p { font-size: 0.86rem; line-height: 1.45; }
  .check-icon { width: 36px; height: 36px; margin-bottom: 0.15rem; }
  .check-icon svg { width: 20px; height: 20px; }
  /* footer: same gutter as the page, comfortable phone link */
  .site-footer .footer-phone { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 360px) { .check-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   v5 Site entrance: slower B, then "Full PPE required" gate
   ========================================================================== */
.intro-b { width: min(36vmin, 250px); }
.intro-inner { gap: 1.1rem; }
.intro-mark .b-lines path { animation-duration: 1.8s; }
.intro-mark .b-lines path.guide { animation: fadein 1s ease .4s forwards; }
.intro-mark .b-lines circle { animation: fadein .5s ease 1.4s forwards; }
.intro-mark .b-piece { animation-duration: 1.1s; }
.intro-mark .b-top { animation-delay: 1.5s; }
.intro-mark .b-low { animation-delay: 1.9s; }
.intro-mark .b-dark { animation-delay: 2.3s; }
.intro-word span:nth-child(1) { animation-delay: 2.9s; } .intro-word span:nth-child(2) { animation-delay: 2.98s; }
.intro-word span:nth-child(3) { animation-delay: 3.06s; } .intro-word span:nth-child(4) { animation-delay: 3.14s; }
.intro-word span:nth-child(5) { animation-delay: 3.22s; } .intro-word span:nth-child(6) { animation-delay: 3.3s; }

.intro-gate { display: grid; justify-items: center; gap: 1.1rem; margin-top: 0.6rem; opacity: 0; transform: translateY(16px); animation: gate-in .8s cubic-bezier(.2,.8,.2,1) 3.9s forwards; }
@keyframes gate-in { to { opacity: 1; transform: none; } }
.intro-enter { min-height: 52px; padding-inline: 1.6rem; font-size: 1.05rem; background: var(--hivis); color: var(--bp-deep); border: 0; cursor: pointer; }
.intro-enter:hover { background: #fff; }
.intro-enter:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.intro.is-lensing .intro-gate { opacity: 0 !important; transition: opacity .3s; animation: none; }
@media (prefers-reduced-motion: reduce) { .intro-gate { animation: none; opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .intro-b { width: min(46vw, 200px); }
}

/* ==========================================================================
   v5 Site boards: from Construction on, the board carries the section
   ========================================================================== */
html.tour-on .cap[data-stop="2"], html.tour-on .cap[data-stop="3"], html.tour-on .cap[data-stop="4"],
html.tour-on .cap[data-stop="5"], html.tour-on .cap[data-stop="6"] { display: none; }

.board { height: 640px; padding: 30px 34px 24px; gap: 20px; grid-template-rows: auto minmax(0, 1fr) auto; position: absolute; }
.board-body { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 34px; min-height: 0; }
.board-photo { height: 100%; min-height: 0; }
.board-photo picture { display: block; height: 100%; }
.board-photo img { height: 100%; aspect-ratio: auto; }
.board-info { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.board-info h2 { font: 800 40px/1.06 var(--font-display); color: var(--bp-deep); letter-spacing: -0.02em; margin: 0; }
.board-lede { margin: 0; font-size: 18px; line-height: 1.5; color: #44565f; }
.board-list { list-style: none; margin: 2px 0 0; padding: 0; border-top: 1px solid rgba(22,48,61,0.18); }
.board-list li { position: relative; padding: 8px 0 8px 24px; font-size: 17px; font-weight: 600; color: var(--bp-deep); border-bottom: 1px solid rgba(22,48,61,0.12); }
.board-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 3px; border-radius: 2px; background: var(--division, var(--teal)); }
.board[data-zone="construction"] { --division: #1b6f93; }
.board[data-zone="facilities"] { --division: #2f7390; }
.board[data-zone="property"] { --division: #3a7142; }
.board-facts { margin: 2px 0 0; border-top: 1px solid rgba(22,48,61,0.18); }
.board-facts div { display: grid; grid-template-columns: 130px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(22,48,61,0.12); font-size: 17px; }
.board-facts dt { font-weight: 800; color: var(--bp-deep); font-family: var(--font-display); }
.board-facts dd { margin: 0; color: #44565f; }
.board-facts a { color: var(--bp-deep); font-weight: 700; text-decoration: none; }
.board-actions { margin-top: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.board-actions .btn { font-size: 18px; min-height: 52px; padding: 12px 24px; background: var(--hivis); color: var(--bp-deep); }
.board-actions .btn svg { width: 20px; height: 20px; }
.board-actions .btn:hover { background: var(--bp-deep); color: #fff; }
.board-link { font: 700 17px var(--font-display); color: var(--bp-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(22,48,61,0.35); }
.board-link:hover { text-decoration-color: var(--bp-deep); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1.5px solid rgba(22,48,61,0.3); }
.board-foot .mono { font-size: 13px; letter-spacing: .14em; color: #5d6f78; }
.board-next {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; border-radius: 999px;
  background: var(--bp-deep); color: #fff; text-decoration: none; font-family: var(--font-display);
  transition: background-color .25s ease, transform .25s ease;
}
.board-next span { font: 500 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bp-soft); }
.board-next strong { font-size: 18px; font-weight: 800; }
.board-next svg { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--hivis); color: var(--bp-deep); }
.board-next:hover { background: #0f3a52; transform: translateY(-2px); }
.board.is-focus .board-next svg { animation: nudge 1.6s ease-in-out infinite; }
.board .sheet-photo:hover img { transform: scale(1.04); }
.board:focus-within { box-shadow: 0 50px 110px rgba(0,0,0,0.55), 0 0 0 3px var(--hivis); }

/* ---------- Background: pale ink only, never looks clickable ---------- */
.deco-layer, .rev-cloud, .hub, .map-links { pointer-events: none; }
.rev-cloud { color: rgba(195,235,247,0.55); }
.rev-cloud .mono { color: var(--bp-soft); }
.rev-tri { background: none; clip-path: none; padding: 0; color: rgba(195,235,247,0.7); width: 44px; height: 40px; right: 34px; top: 4px; }
.rev-tri svg { width: 100%; height: 100%; overflow: visible; }
.rev-tri text { font: 700 15px var(--font-mono); fill: currentColor; }

.deco--road { color: rgba(195,235,247,0.3); }
.deco--road .site-road { width: 100%; height: 60px; display: block; }
.lorry-run { position: absolute; left: 0; top: -138px; width: 360px; color: rgba(195,235,247,0.6); animation: drive 70s linear infinite; }
@keyframes drive { from { transform: translateX(-320px); } to { transform: translateX(3900px); } }
.lorry .wheel { transform-box: view-box; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.barrier .beacon { color: #ffb347; animation: beacon 1.6s steps(1, end) infinite; }
.barrier .beacon-glow { stroke: #ffb347; stroke-width: 2; opacity: 0; animation: beacon-glow 1.6s ease-out infinite; }
@keyframes beacon { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes beacon-glow { 0% { opacity: .6; } 50%, 100% { opacity: 0; } }
.scaffold .hoist { animation: hoist 14s ease-in-out infinite; }
@keyframes hoist { 0%, 100% { transform: translateY(110px); } 45%, 55% { transform: translateY(0); } }
.tripod .sight { transform-box: view-box; animation: sweep 10s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) {
  .lorry-run, .lorry .wheel, .barrier .beacon, .barrier .beacon-glow, .scaffold .hoist, .tripod .sight, .board-next svg { animation: none !important; }
  .lorry-run { transform: translateX(2400px); }
}
.board .sheet-head { padding-bottom: 14px; }
.board .sheet-no { width: 48px; height: 48px; font-size: 17px; }
.board .sheet-title { font-size: 30px; }
.board .sheet-tag { font-size: 14px; }
.deco-layer { position: absolute; inset: 0; }
.deco-layer > .deco { position: absolute; left: var(--x); top: var(--y); width: var(--w, auto); }
/* on a board stop the board is the page: no side vignette */
html.tour-on .tour-stage.at-board::after { opacity: 0; }
html.tour-on .tour-stage::after { transition: opacity .6s ease; }
.board { height: auto; min-height: 640px; }
.board-body { align-items: stretch; }
.board-photo { min-height: 420px; }
.board-actions { margin-top: 8px; }
/* stage comes after the captions in the page (reading order), but stays underneath them */
html.tour-on .tour-stage { z-index: 0; }
html.tour-on .tour-captions { z-index: 20; }
.tour-stage.at-home .board { opacity: .14; }

/* ==========================================================================
   v6 Pre-launch audit fixes (7 Oct)
   ========================================================================== */
/* phones: a call button beside Menu on every inner page */
.header-call { display: none; }
@media (max-width: 900px) {
  .header-call { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; border: 1px solid rgba(126,207,236,0.35); color: var(--hivis); }
  .header-call svg { width: 20px; height: 20px; }
  .site-header .menu-toggle { margin-left: 0.5rem; }
  /* contact: the number and "urgent? call us" come before the form */
  .contact-grid .contact-details, .contact-grid .note.urgent { order: 1; }
  .contact-grid .form-card { order: 2; }
  .contact-grid { row-gap: 0; }
  .contact-grid .contact-details { margin-top: 1.25rem; }
  .contact-grid .note.urgent { margin: 1rem 0 1.75rem; }
}
/* background drawings only move on the overview map, and never while the camera moves */
.tour-stage:not(.at-overview) .deco-layer *,
.map-world.is-moving .deco-layer * { animation-play-state: paused !important; }
/* the stop list's progress line grows with a transform, not a height change */
.tour-rail ol::after { height: calc(100% - 28px); transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform .2s linear; }
/* cookie box: compact on phones, never over half the screen */
@media (max-width: 600px) {
  .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); padding: 0.9rem 1rem; gap: 0.6rem; z-index: 90; }
  .cookie-banner p { font-size: 0.86rem; line-height: 1.45; }
  .cookie-actions { flex-wrap: nowrap; gap: 0.4rem; }
  .cookie-actions .btn { flex: 1; min-height: 44px; padding-inline: 0.4rem; font-size: 0.8rem; justify-content: center; }
}
html.menu-open .cookie-banner { display: none; }
/* teal text on paper: darker so it passes contrast */
.page-hero .kicker, .legal-hero p.kicker, .legal-section a, .contact-details a, main.paper .kicker { color: var(--teal-dark, #0b6377); }
/* inner page headlines: big, but not shouting */
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem); }
.page-hero .contact-grid h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.page-hero .contact-grid .subline { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
/* hero photos on Facilities, Property and the guide */
.hero-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(22,48,61,0.18); background: #dfe7ea; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* form fields: a clear focus outline */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* guide jump links: comfortable to tap */
.jump-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-base { flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-legal { font-size: 0.78rem; opacity: .85; }
/* company details tucked into the plan stamp, bottom right of the map */
.world-stamp .stamp-legal { display: block; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(195,235,247,0.25); font-size: 11px; line-height: 1.5; letter-spacing: .06em; color: rgba(195,235,247,0.55); text-transform: none; }
/* quality guide: collapsible lists on phones only */
.guide-more { display: none; }
@media (max-width: 900px) {
  .is-collapsible:not(.is-open) > .is-extra { display: none; }
  .guide-more {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; margin-top: 1rem; padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
    font: 700 0.95rem var(--font-display); cursor: pointer;
  }
  .guide-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .guide-more[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
}

