/* eightM prototype: mobile-first. Breakpoints: 48em (768), 64em (1024), 90em (1440). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #FFFFFF;
  --yellow: #FFD300;

  /* Greys derived from black/white opacity only */
  --ink-muted: rgba(0, 0, 0, 0.72);
  --rule: rgba(0, 0, 0, 0.16);
  --rule-on-dark: rgba(255, 255, 255, 0.24);
  --paper-muted: rgba(255, 255, 255, 0.76);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 70ch;
  --wrap: 75rem;
  --gutter: 1.25rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --header-h: 4rem;
  --cta-bar-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  /* room for sticky mobile CTA bar */
  padding-bottom: calc(var(--cta-bar-h) + env(safe-area-inset-bottom));
}
body.no-cta-bar { padding-bottom: 0; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0 0 var(--space-2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.375rem, 8vw + 0.5rem, 5.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw + 0.75rem, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
h4 { margin: 0 0 0.4rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

p, ul, ol { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--yellow); }
.on-dark a:hover { text-decoration-color: var(--yellow); }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}
.on-dark :focus-visible, .cta-bar :focus-visible { outline-color: var(--yellow); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--yellow); color: var(--black);
  padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: 0;
  cursor: pointer;
}
.btn--primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn--primary:hover { background: var(--black); color: var(--yellow); border-color: var(--black); text-decoration: none; }
.on-dark .btn--primary:hover, .cta-bar .btn--primary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); text-decoration: none; }
.on-dark .btn--ghost { color: var(--white); border-color: var(--white); }
.on-dark .btn--ghost:hover { background: var(--white); color: var(--black); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--yellow); text-decoration-thickness: 3px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 1.375rem; letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark span { box-shadow: inset 0 -0.28em 0 var(--yellow); }
.wordmark:hover { text-decoration: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0 0.75rem;
  background: none; border: 1px solid var(--black); border-radius: 0;
  font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--black);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.js .site-nav[data-open="false"] { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: var(--space-1) var(--gutter) var(--space-3); max-width: none; }
.site-nav li + li { margin-top: 0; border-top: 1px solid var(--rule); }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
.site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 0.75rem; }
.site-nav .nav-cta { border-top: 0; padding-top: var(--space-2); }
.site-nav .nav-cta .btn { width: 100%; }
/* No-JS: hide toggle, nav flows inline below header */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { position: static; }
html:not(.js) .site-header__inner { flex-wrap: wrap; }

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav[data-open="false"] {
    display: block; position: static; border: 0; background: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-3); padding: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a:not(.btn) { font-size: 0.9375rem; min-height: 44px; min-width: 44px; justify-content: center; }
  .site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
  .site-nav a[aria-current="page"]:not(.btn) {
    box-shadow: none; padding-left: 0;
    text-decoration: underline; text-decoration-color: var(--black); text-decoration-thickness: 2px;
  }
  .site-nav .nav-cta { padding-top: 0; margin-left: var(--space-1); }
  .site-nav .nav-cta .btn { width: auto; min-height: 44px; padding: 0.5rem 1.125rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-5); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.section--dark { background: var(--black); color: var(--white); border-top: 0; }
.section--dark p, .section--dark li { color: var(--paper-muted); }
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
@media (min-width: 48em) { .section { padding-block: var(--space-6); } }

.eyebrow {
  display: inline-block; margin: 0 0 var(--space-2);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.5rem; height: 3px;
  background: var(--yellow); vertical-align: middle; margin-right: 0.6rem;
}
.lead { font-size: clamp(1.1875rem, 1vw + 1rem, 1.5rem); line-height: 1.45; color: var(--ink-muted); max-width: 40ch; }
.section--dark .lead { color: var(--paper-muted); }
.muted { color: var(--ink-muted); }

.section-head { margin-bottom: var(--space-4); max-width: 48rem; }
.section-head p { color: var(--ink-muted); }
.section--dark .section-head p { color: var(--paper-muted); }

.section-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.section--dark .section-cta { border-color: var(--rule-on-dark); }
.section-cta p { margin: 0; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) var(--space-5); }
.hero h1 { max-width: 15ch; margin-bottom: var(--space-3); }
.hero h1 .hl { box-shadow: inset 0 -0.18em 0 var(--yellow); }
.hero .lead { margin-bottom: var(--space-4); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.hero--page h1 { max-width: 20ch; font-size: clamp(2.25rem, 6vw + 0.5rem, 4.25rem); }
@media (min-width: 48em) { .hero { padding-block: var(--space-6); } }

/* ---------- Proof strip ---------- */
.proof { background: var(--black); color: var(--white); }
.proof__list {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; grid-template-columns: 1fr 1fr;
}
.proof__list li {
  margin: 0; padding: var(--space-3) var(--space-2) var(--space-3) 0;
  border-top: 1px solid var(--rule-on-dark);
}
.proof__list li:nth-child(-n+2) { border-top: 0; }
.proof__figure { display: block; white-space: nowrap; font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--yellow); }
.proof__label { display: block; margin-top: 0.4rem; font-size: 0.9375rem; color: var(--paper-muted); line-height: 1.4; }
@media (min-width: 64em) {
  .proof__list { grid-template-columns: repeat(4, 1fr); }
  .proof__list li { border-top: 0; padding: var(--space-4) var(--space-3) var(--space-4) 0; }
  .proof__list li + li { border-left: 1px solid var(--rule-on-dark); padding-left: var(--space-3); }
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 0; }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--black);
}
.section--dark .card { border-color: var(--rule-on-dark); }
@media (min-width: 48em) {
  .grid--2 .card, .grid--3 .card { padding-right: var(--space-4); }
}
.card h3 { margin-top: 0.25rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__index { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.service {
  display: block; padding: var(--space-4) 0;
  border-top: 2px solid var(--black);
  text-decoration: none;
}
.service h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); letter-spacing: -0.025em; }
.service p { color: var(--ink-muted); }
.service .text-link { margin-top: var(--space-1); }
@media (min-width: 48em) { .service { padding-right: var(--space-5); } }

.route { display: block; text-decoration: none; padding: var(--space-3) 0; border-top: 1px solid var(--rule-on-dark); }
.route:hover { text-decoration: none; }
.route:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.route__who { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.5rem; }
.route h3 { color: var(--white); }
.route p { margin-bottom: 0.5rem; }
.route__go { font-weight: 700; color: var(--white); }
@media (min-width: 48em) { .route { padding-right: var(--space-4); } }

/* ---------- Portrait ---------- */
.portrait { display: block; margin-top: var(--space-3); max-width: 30rem; }
.portrait img { width: 100%; height: auto; border-bottom: 6px solid var(--yellow); }
.split--center { align-items: center; }
.split--center > .portrait { margin-top: 0; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .split--center { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}
.ticks--lg li { font-size: 1.125rem; }
.ticks--lg li + li { margin-top: 0.6em; }
.portrait--panel { max-width: 22rem; }
.portrait--panel img { border-bottom: 0; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: var(--space-1) 0 0 -10px;
  color: var(--black);
}
.social-link:hover { background: var(--yellow); }

/* ---------- CEO letter ---------- */
.letter { margin: var(--space-4) 0 0; padding: var(--space-1) 0 var(--space-1) var(--space-3); border-left: 6px solid var(--yellow); }
.letter h3 { margin-bottom: var(--space-2); }
.letter blockquote { margin: 0; }
.letter blockquote p { font-size: 1.125rem; line-height: 1.65; }
.letter figcaption { margin-top: var(--space-2); font-weight: 700; }

/* ---------- Deal tombstones ---------- */
.tombstones {
  list-style: none; padding: 0; margin: 0; max-width: none;
  display: grid; gap: var(--space-3);
}
@media (min-width: 48em) {
  .tombstones { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .tombstone { padding-inline: var(--space-2); }
}
@media (min-width: 64em) {
  .tombstones { gap: var(--space-3); }
  .tombstone { padding-inline: var(--space-3); }
}
.tombstones > li + li { margin-top: 0; }
.tombstone {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 25rem;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--black); color: var(--white);
  border-top: 6px solid var(--yellow);
  text-align: center;
}
/* classic tombstone inner frame */
.tombstone::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid var(--rule-on-dark);
}
.tombstone p { max-width: none; }
.tombstone__type {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow);
}
.tombstone__title {
  max-width: 14ch; margin: 0 auto var(--space-3);
  font-size: clamp(1.5rem, 1vw + 1.1rem, 1.875rem); line-height: 1.15; color: var(--white);
}
.tombstone__meta { margin: 0 0 var(--space-3); }
.tombstone__meta div + div { margin-top: 0.85rem; }
.tombstone__meta dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); }
.tombstone__meta dd { margin: 0.15rem 0 0; color: var(--white); }
.tombstone__foot {
  width: 100%; margin-top: auto; padding-top: var(--space-2);
  border-top: 1px solid var(--rule-on-dark);
}
.tombstone__size { margin: 0 0 var(--space-1); font-size: 0.8125rem; color: var(--paper-muted); }
.tombstone__mark { margin: 0; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.04em; }
.tombstone__mark span { box-shadow: inset 0 -0.28em 0 var(--yellow); }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.75rem; height: 3px; background: var(--black);
}
.section--dark .ticks li::before { background: var(--yellow); }

/* ---------- Process flow diagram ----------
   Numbered square nodes joined by a connector. Vertical on mobile, horizontal (.flow--h, set --n) from 64em.
   The last node is yellow: the outcome. */
.flow {
  --node: 3rem; --gap: var(--space-3);
  list-style: none; padding: 0; margin: var(--space-3) 0 0; max-width: none;
  counter-reset: flow;
}
.flow > li {
  counter-increment: flow;
  position: relative;
  display: grid; grid-template-columns: var(--node) 1fr; gap: 0 var(--space-2);
  margin: 0; padding-bottom: var(--space-3);
}
.flow > li:last-child { padding-bottom: 0; }
.flow > li::before {
  content: counter(flow, decimal-leading-zero);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: var(--node); height: var(--node);
  background: var(--black); color: var(--yellow);
  border: 2px solid var(--black);
  font-weight: 800; font-size: 1rem;
}
.flow > li::after {
  content: ""; position: absolute;
  left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0; width: 2px;
  background: var(--black);
}
.flow > li:last-child::after { display: none; }
.flow > li:last-child::before { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.flow h4 { margin: 0.7rem 0 0.35rem; }
.flow p { margin: 0; color: var(--ink-muted); }

.section--dark .flow > li::before { background: var(--black); color: var(--white); border-color: var(--white); }
.section--dark .flow > li:last-child::before { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.section--dark .flow > li::after { background: rgba(255, 255, 255, 0.5); }
.section--dark .flow p { color: var(--paper-muted); }

@media (min-width: 64em) {
  .flow--h { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0 var(--gap); }
  .flow--h > li { grid-template-columns: 1fr; align-content: start; padding-bottom: 0; }
  /* horizontal connector with arrowhead */
  .flow--h > li::after {
    left: calc(var(--node) + 8px); right: calc(var(--gap) * -1 + 8px);
    top: calc(var(--node) / 2 - 6px); bottom: auto; width: auto; height: 12px;
    background:
      linear-gradient(var(--black), var(--black)) left center / calc(100% - 8px) 2px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12'%3E%3Cpath d='M0 0l8 6-8 6z'/%3E%3C/svg%3E") right center / 8px 12px no-repeat;
  }
  .section--dark .flow--h > li::after {
    background:
      linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) left center / calc(100% - 8px) 2px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12'%3E%3Cpath d='M0 0l8 6-8 6z' fill='%23ffffff' fill-opacity='.5'/%3E%3C/svg%3E") right center / 8px 12px no-repeat;
  }
  .flow--h h4 { margin-top: var(--space-2); }
}

/* ---------- Timeline (Gantt) ----------
   Phases sit on an 8-week axis via --start / --span. Mobile: label row + track with the filled segment. */
.timeline { margin-top: var(--space-2); }
.timeline__axis { display: none; }
.timeline__phases { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--space-4); }
.timeline__phases > li + li { margin-top: 0; }
.phase {
  --a: calc((var(--start) - 1) / 8 * 100%);
  --b: calc((var(--start) - 1 + var(--span)) / 8 * 100%);
}
.phase__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-2); margin-bottom: var(--space-2); }
.phase__name { order: -1; margin: 0; font-size: 1.375rem; }
.phase__weeks { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.phase__bar::after {
  content: ""; flex-basis: 100%; height: 12px; margin-top: 0.6rem;
  background: linear-gradient(to right, var(--rule) var(--a), var(--black) var(--a), var(--black) var(--b), var(--rule) var(--b));
}
.phase .ticks { margin: 0; }

@media (min-width: 64em) {
  .timeline__axis, .timeline__phases { grid-template-columns: repeat(8, 1fr); gap: 0 4px; }
  .timeline__axis { display: grid; margin-bottom: var(--space-1); }
  .timeline__axis span {
    padding: 0.25rem 0 0.4rem 0.5rem; border-left: 1px solid var(--black);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-muted);
  }
  .phase { grid-column: var(--start) / span var(--span); }
  .phase__bar { padding: 0.9rem 1rem; background: var(--black); margin-bottom: var(--space-3); }
  .phase__bar::after { display: none; }
  .phase__name { color: var(--white); }
  .phase__weeks { color: var(--yellow); }
  .phase--final .phase__bar { background: var(--yellow); }
  .phase--final .phase__name, .phase--final .phase__weeks { color: var(--black); }
  .phase .ticks { padding-right: var(--space-2); }
}

.facts { margin: 0; max-width: none; }
.facts div { display: grid; gap: 0.25rem; padding: var(--space-2) 0; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-muted); }
@media (min-width: 48em) { .facts div { grid-template-columns: 14rem 1fr; gap: var(--space-3); } }

.split { display: grid; gap: var(--space-4); }
@media (min-width: 64em) { .split { grid-template-columns: 5fr 7fr; gap: var(--space-5); } }

/* ---------- Placeholders ---------- */
.todo {
  display: inline; padding: 0.05em 0.35em;
  background: var(--yellow); color: var(--black);
  font-size: 0.875em; font-weight: 700;
  border: 1px dashed var(--black);
}
.todo-block {
  padding: var(--space-3); border: 2px dashed var(--black); background: var(--white); color: var(--black);
  max-width: var(--measure);
}
.todo-block p { color: var(--black) !important; }

/* ---------- Booking ---------- */
.booking { border: 2px solid var(--black); }
.booking__intro { padding: var(--space-3); }
.booking__intro p:last-child { margin-bottom: 0; }
/* Cross-origin frame cannot auto-size; heights fit the Bookings date + time + details steps */
.booking__frame { width: 100%; height: 1500px; border: 0; display: block; border-top: 1px solid var(--black); background: var(--white); }
@media (min-width: 64em) { .booking__frame { height: 1150px; } }
.booking__fallback { padding: var(--space-3); border-top: 1px solid var(--black); }
.booking__fallback p { margin: 0; }
.booking__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Prose (legal pages, insights) ---------- */
.prose h2 { font-size: 1.5rem; margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose h4 { margin-top: var(--space-3); }
.prose > * { max-width: var(--measure); }
.prose li > p { margin-bottom: 0.35rem; }
.prose blockquote { margin: var(--space-3) 0; padding: 0.25rem 0 0.25rem var(--space-3); border-left: 6px solid var(--yellow); font-size: 1.125rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-4) 0; }
.table-scroll { overflow-x: auto; margin: var(--space-3) 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.prose th { background: var(--black); color: var(--white); font-weight: 700; border-bottom: 0; }

/* ---------- Insights: listing ---------- */
.insight-filter { margin-bottom: var(--space-4); }
.insight-filter ul { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; max-width: none; }
.insight-filter li + li { margin-top: 0; }
.insight-filter a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--black); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.insight-filter a:hover { background: var(--yellow); border-color: var(--yellow); }
.insight-filter a[aria-current="page"] { background: var(--black); color: var(--white); }

.insight-list { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 0 var(--space-4); }
.insight-list > li + li { margin-top: 0; }
@media (min-width: 48em) { .insight-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .insight-list { grid-template-columns: repeat(3, 1fr); } }
.insight-card a {
  display: flex; flex-direction: column; height: 100%;
  padding: var(--space-3) 0 var(--space-4);
  border-top: 2px solid var(--black); text-decoration: none;
}
.insight-card a:hover .insight-card__title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.insight-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.insight-card__title { margin: 0.5rem 0 0.75rem; font-size: 1.375rem; line-height: 1.2; }
.insight-card__excerpt { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: 1rem; }
.insight-card__meta { margin-top: auto; font-size: 0.875rem; color: var(--ink-muted); }
.insight-card--featured { grid-column: 1 / -1; margin-bottom: var(--space-3); }
.insight-card--featured a { padding: var(--space-4) var(--space-3); background: var(--black); color: var(--white); border-top: 6px solid var(--yellow); }
.insight-card--featured .insight-card__cat { color: var(--yellow); }
.insight-card--featured .insight-card__title { font-size: clamp(1.75rem, 3vw + 0.75rem, 2.75rem); max-width: 24ch; color: var(--white); }
.insight-card--featured .insight-card__excerpt, .insight-card--featured .insight-card__meta { color: var(--paper-muted); max-width: 60ch; }
@media (min-width: 48em) { .insight-card--featured a { padding: var(--space-5) var(--space-4); } }

/* ---------- Insights: post ---------- */
.post__head { padding-top: var(--space-5); padding-bottom: var(--space-3); }
.post__head .eyebrow a { text-decoration: none; }
.post__head h1 { max-width: 22ch; font-size: clamp(2rem, 4.5vw + 0.75rem, 3.5rem); margin-bottom: var(--space-2); }
.post__meta { color: var(--ink-muted); font-size: 0.9375rem; padding-bottom: var(--space-3); border-bottom: 6px solid var(--yellow); max-width: none; }
.post__body { padding-top: var(--space-3); padding-bottom: var(--space-4); font-size: 1.125rem; line-height: 1.7; }
.post__foot { display: grid; gap: var(--space-3); padding-bottom: var(--space-5); }
@media (min-width: 64em) { .post__foot { grid-template-columns: 1fr 1fr; align-items: stretch; max-width: calc(var(--measure) * 1.5); } }
.author-box { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3); border: 1px solid var(--black); }
.author-box img { width: 88px; height: 88px; flex: none; }
.author-box p { margin: 0; font-size: 0.9375rem; }
.author-box__name { font-weight: 700; font-size: 1.0625rem !important; margin-bottom: 0.25rem !important; }
.service-box { padding: var(--space-3); background: var(--black); color: var(--white); }
.service-box .eyebrow { color: var(--white); }
.service-box__title { font-size: 1.375rem; margin-bottom: 0.5rem; }
.service-box__title a { color: var(--white); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.service-box p { color: var(--paper-muted); font-size: 0.9375rem; }
.service-box :focus-visible { outline-color: var(--yellow); }

/* ---------- Final CTA band ---------- */
.cta-band { background: var(--black); color: var(--white); padding-block: var(--space-5); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--paper-muted); }
@media (min-width: 48em) { .cta-band { padding-block: var(--space-6); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); border-top: 1px solid var(--rule-on-dark); padding-block: var(--space-4) var(--space-3); font-size: 0.9375rem; }
.site-footer p { color: var(--paper-muted); }
.site-footer__grid { display: grid; gap: var(--space-3); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer address { font-style: normal; color: var(--paper-muted); }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark span { box-shadow: inset 0 -0.28em 0 var(--yellow); color: var(--white); }
.site-footer__support {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--rule-on-dark);
}
.site-footer__support p { margin: 0; color: var(--white); font-weight: 600; max-width: 32ch; }
.support-logos { display: flex; align-items: center; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.support-logos li + li { margin-top: 0; }
.support-logos a { display: block; padding: 4px; }
.support-logos img { height: 64px; width: auto; }
.site-footer__legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule-on-dark); font-size: 0.8125rem; }
.site-footer__legal p { max-width: 90ch; }

/* ---------- Sticky mobile CTA bar ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--black);
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
}
.cta-bar .btn { width: 100%; }
@media (min-width: 64em) {
  .cta-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.section--dark .card__index { color: var(--yellow); }


/* =====================================================================
   WordPress block markup (theme): maps core blocks to the prototype design
   ===================================================================== */

/* Accessibility helper WordPress uses */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* Paragraph / list block styles (editor "Styles" panel) */
.is-style-eyebrow {
  display: inline-block; margin: 0 0 var(--space-2);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.is-style-eyebrow::before {
  content: ""; display: inline-block; width: 1.5rem; height: 3px;
  background: var(--yellow); vertical-align: middle; margin-right: 0.6rem;
}
.is-style-eyebrow a { text-decoration: none; }
.is-style-lead { font-size: clamp(1.1875rem, 1vw + 1rem, 1.5rem); line-height: 1.45; color: var(--ink-muted); max-width: 44ch; }
.section--dark .is-style-lead, .on-dark .is-style-lead { color: var(--paper-muted); }
.is-style-muted { color: var(--ink-muted); }
.section--dark .is-style-muted { color: var(--paper-muted); }
.is-style-text-link a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--yellow); text-decoration-thickness: 3px;
}
.is-style-text-link a:hover { text-decoration-color: currentColor; }
.is-style-text-link a::after { content: "→" / ""; margin-left: 0.35em; }
.is-style-ticks { list-style: none; padding: 0; }
.is-style-ticks li { position: relative; padding-left: 1.5rem; }
.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.75rem; height: 3px; background: var(--black); }
.section--dark .is-style-ticks li::before { background: var(--yellow); }
.ticks--lg li { font-size: 1.125rem; }

/* Spacing helpers */
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.pt-0 { padding-top: 0 !important; }

/* Hero: H1 highlight = italic text in the editor */
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.18em 0 var(--yellow); }
.hero .is-style-lead { margin-bottom: var(--space-4); }
.hero__actions p { margin: 0; }
.hero__jump { margin-top: var(--space-3); }

/* Buttons block = .btn */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wp-block-buttons .wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 0;
  background: var(--yellow); color: var(--black); border: 2px solid var(--yellow);
}
.wp-block-button .wp-block-button__link:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }
.on-dark .wp-block-button .wp-block-button__link:hover, .section--dark .wp-block-button .wp-block-button__link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--black); border-color: var(--black); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--black); color: var(--white); }
.wp-block-button.has-arrow .wp-block-button__link::after { content: "→" / ""; transition: transform 0.15s ease; }
.wp-block-button.has-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.section-cta .wp-block-buttons, .cta-band .wp-block-buttons { margin: 0; }

/* Proof strip: <strong> is the figure */
.proof__list li { color: var(--paper-muted); font-size: 0.9375rem; line-height: 1.4; }
.proof__list li strong {
  display: block; margin-bottom: 0.4rem; white-space: nowrap;
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--yellow);
}

/* Service and audience cards (div-based) */
.service { padding: var(--space-4) 0; border-top: 2px solid var(--black); }
@media (min-width: 48em) { .service { padding-right: var(--space-5); } }
.route { padding: var(--space-3) 0; border-top: 1px solid var(--rule-on-dark); }
@media (min-width: 48em) { .route { padding-right: var(--space-4); } }
.route__who { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow) !important; }
.route__go { margin: 0; }
.route__go a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.route__go a::after { content: "→" / ""; margin-left: 0.35em; }
.card__index { margin: 0; }
.card .wp-block-heading { margin-top: 0.25rem; }

/* Facts: "<strong>Label</strong> value" paragraphs */
.facts > p { margin: 0; max-width: none; padding: var(--space-2) 0; border-top: 1px solid var(--rule); color: var(--ink-muted); }
.facts > p strong { display: block; color: var(--black); margin-bottom: 0.25rem; }
@media (min-width: 48em) {
  .facts > p { position: relative; padding-left: calc(14rem + var(--space-3)); }
  .facts > p strong { position: absolute; left: 0; top: var(--space-2); width: 14rem; margin: 0; }
}

/* Process flow: ordered list, "<strong>Title</strong> description" items */
.flow > li { display: block; min-height: var(--node); padding-left: calc(var(--node) + var(--space-2)); color: var(--ink-muted); }
.flow > li::before { position: absolute; left: 0; top: 0; }
.flow > li strong { display: block; margin: 0.7rem 0 0.35rem; color: var(--black); font-size: 1.125rem; line-height: 1.3; }
.section--dark .flow > li { color: var(--paper-muted); }
.section--dark .flow > li strong { color: var(--white); }
.flow--4 { --n: 4; } .flow--5 { --n: 5; }
@media (min-width: 64em) {
  .flow--h > li { padding-left: 0; padding-top: var(--node); }
  .flow--h > li strong { margin-top: var(--space-2); }
}

/* Timeline phases by class */
.phase--w1-2 { --start: 1; --span: 2; }
.phase--w3-6 { --start: 3; --span: 4; }
.phase--w7-8 { --start: 7; --span: 2; }
.phase__bar > * { margin: 0; }
.phase__weeks { margin: 0 !important; }

/* Tombstones */
.tombstone__type, .tombstone__title { position: relative; z-index: 1; }
.tombstone__field { margin: 0 0 0.85rem; color: var(--white); }
.tombstone__field strong { display: block; margin-bottom: 0.15rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); }
.tombstone__foot > p { margin: 0; }
.tombstone__mark { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.04em; margin-top: var(--space-1) !important; }
.tombstone__mark { display: inline-block; box-shadow: inset 0 -0.28em 0 var(--yellow); line-height: 1.1; }

/* CEO letter (quote block) */
.letter-title { margin-top: var(--space-4); }
.wp-block-quote.letter { margin: var(--space-2) 0 0; padding: var(--space-1) 0 var(--space-1) var(--space-3); border-left: 6px solid var(--yellow); }
.wp-block-quote.letter p { font-size: 1.125rem; line-height: 1.65; }
.wp-block-quote.letter cite { display: block; margin-top: var(--space-2); font-style: normal; font-weight: 700; }

/* Images */
.wp-block-image { margin: 0; }
.wp-block-image.portrait { margin-top: var(--space-3); max-width: 30rem; }
.wp-block-image.portrait img { width: 100%; height: auto; border-bottom: 6px solid var(--yellow); }
.wp-block-image.portrait--panel { max-width: 22rem; }
.wp-block-image.portrait--panel img { border-bottom: 0; }
.split--center > .wp-block-image.portrait { margin-top: 0; }

/* Booking box title */
.booking__title { font-size: 1.5rem; }

/* Navigation: WordPress current-item classes */
.site-nav .current-menu-item > a:not(.btn), .site-nav .current_page_parent > a:not(.btn) { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 0.75rem; }
@media (min-width: 64em) {
  .site-nav .current-menu-item > a:not(.btn), .site-nav .current_page_parent > a:not(.btn) {
    box-shadow: none; padding-left: 0; text-decoration: underline; text-decoration-color: var(--black); text-decoration-thickness: 2px;
  }
}
.site-nav li.nav-cta { border-top: 0; }

/* Footer extras */
.link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-button:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.site-footer nav ul + ul { margin-top: 0; }

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

/* Consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 2px solid var(--black); }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-block: var(--space-2); }
.consent__text { margin: 0; font-size: 0.9375rem; flex: 1 1 28rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.has-consent-banner .cta-bar { display: none; }

/* Classic (migrated) post content */
.post__body .table-scroll table { margin: 0; }
.post__body img { height: auto; }

.service-box__title a { display: inline-flex; align-items: center; min-height: 44px; }

/* =====================================================================
   Homepage hero background video (inc/hero-video.php), 768 px and wider
   Measured worst case (brightest foam): headline >= 6.2:1, lead >= 7.1:1, link >= 9.9:1, yellow headline (large) >= 4.3:1
   ===================================================================== */
.hero__media, .hero__toggle { display: none; }
@media (min-width: 48em) {
  .hero--video {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; min-height: min(40rem, 75vh);
    background: var(--black); color: var(--white);
  }
  .hero--video > .wrap { position: relative; z-index: 2; }
  .hero__media { display: block; position: absolute; inset: 0; z-index: 0; background: var(--black); }
  .hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
  .hero--video .is-style-eyebrow, .hero--video h1 { color: var(--white); }
  .hero--video h1 em { color: var(--yellow); box-shadow: none; }
  .hero--video .is-style-lead { color: rgba(255, 255, 255, 0.88); }
  .hero--video .is-style-text-link a { color: var(--white); }
  .hero--video .wp-block-button .wp-block-button__link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
  .hero--video :focus-visible { outline-color: var(--yellow); }
  .hero__toggle {
    position: absolute; z-index: 3; right: var(--gutter); bottom: var(--space-3);
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.7); color: var(--white); cursor: pointer;
  }
  .hero__toggle[hidden] { display: none; }
  .hero__toggle:hover { background: var(--black); border-color: var(--yellow); }
  .hero__toggle-icon { position: relative; width: 14px; height: 16px; }
  .hero__toggle-icon::before, .hero__toggle-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 16px; background: currentColor; }
  .hero__toggle-icon::before { left: 1px; }
  .hero__toggle-icon::after { right: 1px; }
  .hero__toggle.is-paused .hero__toggle-icon::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
  .hero__toggle.is-paused .hero__toggle-icon::after { display: none; }
}
@media (min-width: 64em) {
  .hero__media::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.55) 100%); }
  .hero__toggle { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}
@media (min-width: 48em) {
  /* Poster shows first (CSS background of the media layer); the video fades in once it actually plays */
  .hero__video { opacity: 0; transition: opacity 0.8s ease; }
  .hero__video.is-playing { opacity: 1; }
  .hero__media { background-size: cover; background-position: center; }
}
@media (prefers-reduced-motion: reduce) { .hero__video { transition: none; } }