/* ==========================================================================
   Reef Dental Centre: homepage
   Brand rules this file is built on (Brand Guidelines: Website Edition v1.6):
   - Palette values are exact. Nothing darker or more saturated than Reef Teal, no dark mode.
   - All text is Driftwood Grey, or Soft White on a Driftwood Grey fill. Teal never carries text.
   - Montserrat only, self-hosted. Headings Light (300), never Light below 18px.
   - Lines, never dots: no dotted or dashed strokes, no dot patterns, anywhere.
   - Motion is slow and eased (roughly 400 to 800ms), nothing springy.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette: exact values from the brand guide */
  --reef-teal: #49a5a0;
  --lagoon-mint: #52bdb7;
  --pale-aqua: #b0dad8;
  --foam-aqua: #c0e4e0;
  --driftwood-grey: #68605d;
  --soft-white: #f8f8f8;
  --shell-beige: #fff9f0;
  --beige-coral-tint: #f5efe7;
  --soft-grey: #d0d0d0;

  /* roles */
  --ink: var(--driftwood-grey);
  --ink-rgb: 104 96 93;
  --paper-rgb: 248 248 248;
  --surface: var(--soft-white);
  --surface-warm: var(--shell-beige);
  --surface-wash: color-mix(in srgb, var(--foam-aqua) 42%, var(--soft-white)); /* a lighter foam wash: ink text stays above 5:1 */
  --on-ink: var(--soft-white);
  --accent: var(--reef-teal);
  --hairline: rgb(var(--ink-rgb) / 0.2);
  --hairline-on-ink: rgb(var(--paper-rgb) / 0.3);

  /* type */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.125rem, 3.25vw + 0.3rem, 3.25rem);
  --fs-h2: clamp(1.875rem, 2.4vw + 0.6rem, 3rem);
  --fs-h3: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-statement: clamp(1.25rem, 1vw + 1rem, 1.625rem);
  --fs-lead: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-eyebrow: 0.8125rem;
  --fs-legal: 0.875rem;
  --tracking-heading: 0.012em;

  /* layout */
  --container: 1320px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(72px, 8vw, 128px);
  --section-gap: clamp(40px, 5vw, 72px);
  --logo-w: 184px;              /* header lockup width; the guide's floor is 160px */
  --header-top: 142px;
  --header-nav: 52px;
  --header-h: calc(var(--header-top) + var(--header-nav) + 1px);

  /* shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* motion: one calm scale */
  --ease: cubic-bezier(0.45, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 0.8, 0.3, 1);
  --t-quick: 0.4s;
  --t: 0.6s;
  --t-slow: 0.8s;
  --rise: 26px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }
::selection { background: var(--foam-aqua); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 14px 22px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-pill); text-decoration: none; font-weight: 500; transition: top var(--t-quick) var(--ease); }
.skip-link:focus { top: 16px; outline-offset: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); overflow-x: clip; } /* clip, not hidden: decorative marks bleed off the edge without making the page scroll sideways */
.section > .container { position: relative; z-index: 1; }

/* line icons: one stroke weight, round ends */
.icon, .btn__icon svg, .round-btn svg, .link-arrow svg, .chev, .arrow, .svc-item__arrow, .usp-card__icon {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-weight: 300; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: 1.16; }
.h-line { display: block; text-wrap: balance; } /* one sentence per line; each balances on its own when it has to wrap */
.h2 { font-size: var(--fs-h2); line-height: 1.18; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
.h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 400; letter-spacing: 0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.prose { display: grid; gap: 1.1em; max-width: 62ch; }
.prose p, .section-head__aside p { text-wrap: pretty; }

/* Eyebrow: a small label, not a heading. Written in sentence case in the HTML, so removing
   text-transform here returns every eyebrow to sentence case in one place. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-eyebrow); line-height: 1.4; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 30px; height: 10px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 6c3.500-6 6.500-6 9.500 0s6 6 9.500 0 5.500-5 9-2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 6c3.500-6 6.500-6 9.500 0s6 6 9.500 0 5.500-5 9-2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow--on-ink::before { background: var(--on-ink); }

.tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border: 1px solid currentColor; border-radius: var(--r-pill); font-size: 0.75rem; line-height: 1.5; font-weight: 500; letter-spacing: 0.04em; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-ink); --icon-bg: var(--soft-white); --icon-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 28px 6px 6px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--ink); border-radius: var(--r-pill);
  font-size: 1rem; line-height: 1.2; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.btn__icon {
  position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden;
  background: var(--icon-bg); color: var(--icon-fg); border-radius: 50%;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn__icon svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.btn__icon svg:last-child { transform: translateX(-190%); }
.btn--secondary { --btn-bg: var(--soft-white); --btn-fg: var(--ink); --icon-bg: var(--ink); --icon-fg: var(--soft-white); }
.btn--sm { min-height: 48px; padding: 5px 22px 5px 5px; gap: 12px; }
.btn--sm .btn__icon { width: 36px; height: 36px; }
.btn--plain { padding-inline: 28px; }
.btn--block { width: 100%; justify-content: center; padding-right: 34px; }
@media (hover: hover) {
  .btn:hover .btn__icon svg:first-child { transform: translateX(190%); }
  .btn:hover .btn__icon svg:last-child { transform: none; }
  .btn:hover .btn__icon { background: var(--accent); color: var(--soft-white); }
  .btn:hover { box-shadow: 0 0 0 4px rgb(73 165 160 / 0.28); }
}
.btn:focus-visible { outline-offset: 4px; border-radius: var(--r-pill); }
.btn:focus-visible .btn__icon { background: var(--accent); color: var(--soft-white); }

.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 50%;
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease);
}
.round-btn svg { width: 20px; height: 20px; transition: transform var(--t-quick) var(--ease); }
.round-btn[data-prev] svg, .round-btn[data-marquee-prev] svg { rotate: 180deg; }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn:focus-visible { border-radius: 50%; }
.round-btn--on-ink { color: var(--on-ink); border-color: var(--on-ink); }
.round-btn--on-ink:focus-visible, .pill-btn--on-ink:focus-visible { outline-color: var(--on-ink); }
@media (hover: hover) {
  .round-btn:not(:disabled):hover { background: var(--ink); color: var(--on-ink); }
  .round-btn--on-ink:not(:disabled):hover { background: var(--on-ink); color: var(--ink); }
  .round-btn:not(:disabled):hover svg { transform: translateX(3px); }
}
.carousel-nav { display: flex; gap: 12px; }

.pill-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; background: transparent; border: 1px solid currentColor; border-radius: var(--r-pill); font-size: 1rem; font-weight: 500; transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }
.pill-btn--on-ink { color: var(--on-ink); }
.pill-btn .icon--play, .pill-btn[aria-pressed="true"] .icon--pause { display: none; }
.pill-btn[aria-pressed="true"] .icon--play { display: block; }
@media (hover: hover) { .pill-btn--on-ink:hover { background: var(--on-ink); color: var(--ink); } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }

/* rating: stars are decoration, the words carry the meaning */
.rating { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1rem; font-weight: 500; }
.rating__stars { display: inline-flex; gap: 3px; }
.rating__stars svg { width: 18px; height: 18px; fill: var(--accent); }
.rating--lg .rating__stars svg { width: 22px; height: 22px; }

/* ==========================================================================
   PANEL 01: header. Row 1 is 1fr | logo | 1fr so the logo sits on the true centre
   whatever the phone or button width. Row 2 is the nav, centred, under a hairline.
   Three states, set by main.js:
   - at the top: fully transparent over the hero film, white type (the film is shaded behind it, see .hero__shade)
   - is-compact, still over the film: a translucent Driftwood glass, so copy scrolling underneath never collides with the nav
   - is-solid, past the hero (or with the mobile menu open): Soft White with Driftwood type
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-ink);
  transition: transform 0.55s var(--ease), color var(--t-quick) var(--ease);
}
.site-header::before, .site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--t) var(--ease); }
/* 0.92 Driftwood keeps Soft White text at 4.8:1 even if the film behind it were pure white */
.site-header::before { background: rgb(var(--ink-rgb) / 0.92); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }
.site-header::after { background: var(--soft-white); border-bottom: 1px solid var(--hairline); }
.site-header.is-compact::before { opacity: 1; }
.site-header.is-solid, .menu-open .site-header { color: var(--ink); }
.site-header.is-solid::before, .menu-open .site-header::before { opacity: 0; }
.site-header.is-solid::after, .menu-open .site-header::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header :focus-visible { outline-color: currentColor; }
/* without JS the header cannot change state, so it stays at the top of the page over the film instead of following the scroll */
html:not(.js) .site-header { position: absolute; }

.hdr__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; height: var(--header-top); transition: height var(--t) var(--ease); }
.hdr__left { justify-self: start; display: flex; align-items: center; gap: 16px; min-width: 0; }
.hdr__right { justify-self: end; display: flex; align-items: center; min-width: 0; }

/* The lockup is never shown under 160px wide (brand rule). The compact header swaps to the coral-tooth alone.
   Over the film the header uses its own copy of the lockup: identical, except the words "Dental Centre" are white.
   The original lockup takes over whenever the header is on Soft White at full height (the mobile menu, open at the top). */
.hdr__logo { position: relative; display: block; width: var(--logo-w); height: calc(var(--logo-w) * 0.64); transition: height var(--t) var(--ease); }
.hdr__logo img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; transition: opacity var(--t-quick) var(--ease), scale var(--t) var(--ease); }
.hdr__logo-full { width: var(--logo-w); height: auto; }
.hdr__logo-full--light, .menu-open .hdr__logo-full--film { opacity: 0; }
.menu-open .hdr__logo-full--light { opacity: 1; }
.hdr__logo-mark { width: auto; height: 48px; opacity: 0; scale: 0.8; }
.is-compact .hdr__top { height: 70px; }
.is-compact .hdr__logo { height: 48px; }
.is-compact .hdr__logo-full, .menu-open .is-compact .hdr__logo-full { opacity: 0; scale: 0.6; }
.is-compact .hdr__logo-mark { opacity: 1; scale: 1; }
.hdr__logo:focus-visible { outline-offset: 6px; }

.hdr__phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.is-solid .hdr__phone .icon { color: var(--accent); } /* white with the rest of the header while over the film */
.hdr__phone-lbl { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.hdr__phone-num { position: relative; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.02em; }
.hdr__phone-num::after, .call-line__num::after, .footer__contact a::after, .footer__col a::after, .footer__legal a::after, .footer__credit a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease);
}
.lbl-short { display: none; }
/* over the film the button keeps its Driftwood fill; a light hairline holds its edge, as on the hero button */
.site-header:not(.is-solid) .hdr__cta { border-color: rgb(var(--paper-rgb) / 0.5); }
.menu-open .site-header .hdr__cta { border-color: var(--ink); }

.hdr__nav { display: flex; justify-content: center; height: var(--header-nav); border-top: 1px solid rgb(var(--paper-rgb) / 0.28); transition: height var(--t) var(--ease), border-color var(--t-quick) var(--ease); }
.is-solid .hdr__nav { border-top-color: var(--hairline); }
.is-compact .hdr__nav { height: 46px; }
.nav { display: flex; align-items: center; height: 100%; gap: clamp(22px, 2.6vw, 46px); }
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  background: none; border: 0; font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__item.is-open > .nav__link::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__link .chev { width: 16px; height: 16px; transition: rotate var(--t-quick) var(--ease); }
.nav__item.is-open .chev { rotate: 180deg; }

.dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 2; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  padding: 14px; background: var(--soft-white); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: 0 30px 60px -32px rgb(var(--ink-rgb) / 0.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity var(--t-quick) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown--mega { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 8px; }
.dropdown--mega a { white-space: nowrap; }
.dropdown__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 14px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.dropdown__head span { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 1rem; line-height: 1.35; text-decoration: none; transition: background-color var(--t-quick) var(--ease); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface-wash); }
.dropdown__head a { padding: 6px 0; font-weight: 500; gap: 8px; }
.dropdown__head a:hover, .dropdown__head a:focus-visible { background: none; }
.dropdown .arrow { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.dropdown__head a:hover .arrow { transform: translateX(4px); }

.hdr__toggle { display: none; position: relative; width: 48px; height: 48px; margin-left: -12px; padding: 0; background: none; border: 0; }
.hdr__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--t-quick) var(--ease), opacity 0.2s; }
.hdr__toggle span:nth-child(1) { top: 17px; }
.hdr__toggle span:nth-child(2) { top: 23.5px; }
.hdr__toggle span:nth-child(3) { top: 30px; }
.menu-open .hdr__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .hdr__toggle span:nth-child(2) { opacity: 0; }
.menu-open .hdr__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-top) + 16px) var(--gutter) 40px;
  background: var(--soft-white); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-quick) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mm__list > li { border-bottom: 1px solid var(--hairline); }
.mm__link, .mm__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 18px 0; background: none; border: 0; font-size: 1.375rem; font-weight: 300; letter-spacing: var(--tracking-heading); text-align: left; text-decoration: none; }
.mm__toggle .chev { width: 20px; height: 20px; transition: rotate var(--t-quick) var(--ease); }
.mm__toggle[aria-expanded="true"] .chev { rotate: 180deg; }
.mm__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.mm__sub > ul { overflow: hidden; }
.mm__toggle[aria-expanded="true"] + .mm__sub { grid-template-rows: 1fr; }
.mm__sub a { display: block; padding: 10px 0 10px 18px; border-left: 1.5px solid var(--pale-aqua); text-decoration: none; }
.mm__sub li:last-child a { margin-bottom: 18px; }
.mm__foot { display: grid; gap: 16px; margin-top: 32px; }
.mm__foot .btn { width: 100%; justify-content: center; padding-right: 34px; }
.mm__phone { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.mm__phone .icon { color: var(--accent); }

/* ==========================================================================
   PANEL 02: hero. Oravo's composition (copy low on the left, a glass card low on the right) over a
   full-width film with white type, as the design lead asked on 4 Dec 2026. Besides the promise band this is the only
   place type is light. The shade is Driftwood Grey, the guide's one approved ground for Soft White text.
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden;
  min-height: clamp(620px, 100svh, 1000px); /* a full screen: the film runs behind the transparent header */
  background: var(--driftwood-grey); color: var(--on-ink);
  --hero-shade-far: color-mix(in srgb, var(--driftwood-grey) 26%, #fff); /* the light end of the shade: a quarter-strength tone */
}
/* The film covers the whole hero, edge to edge. It is enlarged a touch from its top left corner, which moves the
   patient right (clear of the heading) and down (out from under the header). */
.hero__media { position: absolute; inset: 0; z-index: -2; transform: scale(1.16); transform-origin: 0% 0%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* The shade is multiplied over the film, so its detail and movement stay. Where the shade is full Driftwood Grey the
   brightest pixel in the film lands exactly on Driftwood Grey, which gives Soft White text 5.78:1 or better whatever
   the frame. It is full strength under all of the copy (which ends by 49% of the width) and across the header, then
   thins out so the patient is clear. The two gradients combine with "darken", so where they overlap the shade is never doubled. */
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background:
    linear-gradient(180deg, var(--driftwood-grey) 0, var(--driftwood-grey) var(--header-h), #fff calc(var(--header-h) + 110px)),
    linear-gradient(90deg, var(--driftwood-grey) 0%, var(--driftwood-grey) 49.5%, var(--hero-shade-far) 63%, var(--hero-shade-far) 100%);
  background-blend-mode: darken;
}
.hero .eyebrow::before { background: var(--on-ink); }
.hero__copy :focus-visible { outline-color: var(--on-ink); }
/* the top padding is the header's height, so the copy can never slide up underneath it */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; padding-block: calc(var(--header-h) + 28px) clamp(48px, 9vh, 104px); }
/* The copy never runs past 49% of the hero, so it stays on the strong part of the shade. */
.hero__copy { display: grid; justify-items: start; gap: 22px; max-width: calc(49vw - max(var(--gutter), (100vw - var(--container)) / 2)); }
.hero__copy .display { margin-top: -4px; }
.hero__lead { max-width: 50ch; }
/* Glass card. The film stays visible through it: softened and dimmed by the backdrop filter, under a light Driftwood tint,
   with a low-opacity white edge and no shadow. The numbers are set for the worst case: with a pure white frame behind it,
   Soft White text on the card is still 4.7:1. Browsers without backdrop-filter get a near-solid Driftwood card instead. */
.hero__card {
  display: grid; min-width: 304px; padding: 6px 28px; color: var(--on-ink);
  background: rgb(var(--ink-rgb) / 0.55);
  -webkit-backdrop-filter: blur(16px) brightness(0.5) saturate(1.15); backdrop-filter: blur(16px) brightness(0.5) saturate(1.15);
  border: 1px solid rgb(var(--paper-rgb) / 0.28); border-radius: var(--r-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__card { background: rgb(var(--ink-rgb) / 0.94); }
}
.hero__card :focus-visible { outline-color: var(--on-ink); }
.hero__card-row { display: flex; align-items: flex-start; gap: 16px; padding-block: 20px; font-size: 1rem; line-height: 1.5; color: inherit; text-decoration: none; }
.hero__card-row + .hero__card-row { border-top: 1px solid rgb(var(--paper-rgb) / 0.2); }
.hero__card-row .icon { margin-top: 3px; transition: translate var(--t) var(--ease); }
.hero__card-row strong { display: block; width: fit-content; font-weight: 500; letter-spacing: 0.01em; }
/* the address opens in Maps: its first line takes the site's teal underline on hover and keyboard focus */
.hero__card-link strong { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size var(--t) var(--ease); }
.hero__card-link:focus-visible strong { background-size: 100% 1.5px; }
@media (hover: hover) {
  .hero__card-link:hover strong { background-size: 100% 1.5px; }
  .hero__card-link:hover .icon { translate: 0 -2px; }
}
.hero__pause {
  position: absolute; top: calc(var(--header-h) + 16px); right: max(20px, var(--gutter)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  background: rgb(var(--paper-rgb) / 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ink); border-radius: var(--r-pill); color: var(--ink); font-size: 1rem; font-weight: 500;
}
/* Not shown in the hero (removed from view at the design lead's request, 4 Dec 2026). It stays in the page as a keyboard and
   screen-reader control so the film can still be paused (WCAG 2.2.2): it appears only while it has keyboard focus. */
.hero__pause { opacity: 0; pointer-events: none; transition: opacity var(--t-quick) var(--ease); }
.hero__pause:focus-visible { opacity: 1; pointer-events: auto; }
.hero__pause .icon--play, .hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }
html:not(.motion) .hero__pause { display: none; }

/* ==========================================================================
   Shared: section heads, media frames, the flowing line
   ========================================================================== */
.section-head { display: grid; gap: 20px; justify-items: start; margin-bottom: var(--section-gap); }
.section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
.section-head--split > div:first-child { display: grid; gap: 20px; justify-items: start; }
.section-head--split .h2 { max-width: 16ch; }
.section-head__aside { display: grid; gap: 24px; justify-items: start; max-width: 46ch; }
.section-head--end .news__tools { justify-self: end; }
.section-head--centre { justify-items: center; text-align: center; }
.section-head--centre .h2 { max-width: 20ch; }

.media { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.media__inner { width: 100%; height: 100%; background: var(--surface-wash); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; }

/* The line: the brand's own device. One continuous stroke per section, drawn by the reader's scroll
   (main.js). Solid always: stroke-dasharray is used only as a single dash the length of the path. */
/* Each section's SVG is a window onto one shared curve (see main.js), so it clips to the section's own box. */
.flow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.flow path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }

/* Coral-tooth tint: the supplied mark as a flat silhouette, through its own alpha. */
.about__mark, .why__mark, .footer__mark, .services__watermark, .news__watermark {
  position: absolute; aspect-ratio: 1675 / 2411; pointer-events: none;
  -webkit-mask: url("../brand/reef-mark-mask.webp") center / contain no-repeat; mask: url("../brand/reef-mark-mask.webp") center / contain no-repeat;
}

/* ==========================================================================
   PANEL 03: about
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 8vw, 128px); align-items: center; }
.about__media { position: relative; }
.about__mark { left: -17%; top: -11%; width: 52%; background: var(--pale-aqua); opacity: 0.5; }
.about__media .media--portrait { position: relative; }
.media--detail { position: absolute; right: -11%; bottom: -8%; width: 38%; aspect-ratio: 1; border: 8px solid var(--soft-white); border-radius: var(--r-md); rotate: -4deg; box-shadow: 0 30px 50px -30px rgb(var(--ink-rgb) / 0.6); }
.about__copy { display: grid; gap: 24px; justify-items: start; }
.about__copy .h2 { max-width: 15ch; }
.statement { font-size: var(--fs-statement); line-height: 1.5; font-weight: 300; letter-spacing: 0.005em; max-width: 30em; text-wrap: pretty; }
.about__actions { margin-top: 8px; }

/* ==========================================================================
   PANEL 04: services. Desktop is an image-led explorer: all 13 names in one list, one large
   frame that follows hover and keyboard focus. Under 1024px the same markup becomes swipeable cards.
   ========================================================================== */
/* clip, not hidden, for the same reason as the news section: the watermark bleeds off the edge, and "hidden" would
   make the section a scroll container that the bleed could nudge sideways. */
.services { background: var(--surface-warm); overflow: clip; }
.services__watermark { right: -6%; top: -4%; width: min(44vw, 620px); background: var(--beige-coral-tint); }
.svc { --svc-list: 43%; --svc-gap: clamp(40px, 6vw, 96px); position: relative; }
.svc__list { width: var(--svc-list); border-top: 1px solid var(--hairline); }
.svc-item__link { position: relative; display: grid; grid-template-columns: 2.4ch minmax(0, 1fr) auto; align-items: center; column-gap: 20px; padding: 16px 4px 16px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.svc-item__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.svc-item.is-active .svc-item__link::after { transform: scaleX(1); }
.svc-item__num { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; }
.svc-item__name { font-size: clamp(1.1875rem, 0.6vw + 0.9rem, 1.4375rem); line-height: 1.3; font-weight: 300; letter-spacing: var(--tracking-heading); transition: translate var(--t) var(--ease), font-weight var(--t) var(--ease); }
.svc-item__arrow { width: 22px; height: 22px; opacity: 0; translate: -10px 0; transition: opacity var(--t-quick) var(--ease), translate var(--t) var(--ease); }
.svc-item.is-active .svc-item__name { translate: 8px 0; font-weight: 400; }
.svc-item.is-active .svc-item__arrow { opacity: 1; translate: 0 0; }
.svc-item__panel { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--svc-list) + var(--svc-gap)); opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
.svc-item.is-active .svc-item__panel { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.svc-item__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-wash); }
.svc-item__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; transition: scale 1.6s var(--ease-out); }
.svc-item.is-active .svc-item__media img { scale: 1; }
.svc-item__desc { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 20px 24px; background: rgb(var(--paper-rgb) / 0.93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--r-md); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.svc__nav { display: none; }

/* ==========================================================================
   PANEL 05: the three words. The one place white type is used: Soft White on a Driftwood Grey
   wash over the photograph (the only approved light-on-dark pairing in the guide).
   ========================================================================== */
.usp { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: var(--driftwood-grey); color: var(--on-ink); }
.usp__bg { position: absolute; inset: 0; z-index: -1; }
.usp__photo { position: absolute; inset: -12% 0; }
.usp__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Two layers: a multiply so the brightest sky lands on Driftwood Grey (5.78:1 under Soft White text),
   then a flat Driftwood layer that lifts the shadows so nothing reads as near-black. */
.usp__wash { position: absolute; inset: 0; background: var(--driftwood-grey); mix-blend-mode: multiply; }
.usp__bg::after { content: ""; position: absolute; inset: 0; background: var(--driftwood-grey); opacity: 0.5; } /* a sibling of the wash, so it is not multiplied with it */
.usp__head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: var(--section-gap); }
.usp__intro { max-width: 54ch; text-wrap: pretty; }

.marquee { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; width: max-content; will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.marquee__group { display: flex; gap: 20px; padding-right: 20px; }
.usp-card { display: grid; align-content: start; gap: 14px; width: clamp(280px, 24vw, 360px); min-height: 250px; padding: 32px 30px 34px; background: rgb(var(--paper-rgb) / 0.08); border: 1px solid var(--hairline-on-ink); border-radius: var(--r-md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.usp-card__icon { width: 44px; height: 44px; margin-bottom: 14px; stroke-width: 1.4; transition: translate var(--t) var(--ease); }
.usp-card__title { font-size: 1.4375rem; line-height: 1.3; font-weight: 300; letter-spacing: var(--tracking-heading); }
.usp-card p { font-size: 1rem; line-height: 1.6; }
@media (hover: hover) {
  .usp-card:hover { background: rgb(var(--paper-rgb) / 0.11); border-color: rgb(var(--paper-rgb) / 0.6); }
  .usp-card:hover .usp-card__icon { translate: 0 -4px; }
}
/* The two arrows sit as one centred group under the cards. */
.usp__controls { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 48px; }
/* The pause control is not shown (design lead's decision, 4 Dec 2026). It stays for keyboard and screen-reader users, as the accessible way
   to stop the strip: it appears on keyboard focus at the left of the row, out of the flow, so the arrows never move. */
.usp__controls .pill-btn { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }
.usp__controls .pill-btn:focus-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   PANEL 06: why choose us (the about composition, mirrored)
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(48px, 8vw, 128px); align-items: center; }
.why__copy { display: grid; gap: 24px; justify-items: start; }
.why__copy .h2 { max-width: 13ch; }
.why__list { width: 100%; max-width: 38rem; border-top: 1px solid var(--hairline); }
.why__list li { display: grid; grid-template-columns: 2.6ch minmax(0, 1fr); column-gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.why__num { padding-top: 4px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; }
.why__list p { margin-top: 4px; font-size: 1rem; }
.why__actions { margin-top: 8px; }
.why__media { position: relative; }
.why__mark { right: -16%; bottom: -10%; width: 54%; background: var(--pale-aqua); opacity: 0.5; }
.why__media .media { position: relative; }

/* ==========================================================================
   PANEL 07: testimonials. One at a time; every quote shares one grid cell, so the tallest
   sets the height and nothing below moves when they change.
   ========================================================================== */
.testi { background: var(--surface-wash); }
.testi__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 8vw, 128px); align-items: center; }
.testi__body { display: grid; gap: 24px; justify-items: start; }
.testi__stage { display: grid; width: 100%; max-width: 40rem; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.testi__item { grid-area: 1 / 1; display: grid; align-content: start; gap: 24px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease), visibility 0s linear var(--t); }
.testi__item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.25s, 0.25s, 0s; }
.testi__item p { font-size: clamp(1.1875rem, 0.7vw + 1rem, 1.5rem); line-height: 1.55; font-weight: 400; text-wrap: pretty; }
.testi__item footer { display: grid; gap: 2px; font-size: 1rem; }
.testi__item cite { font-style: normal; font-weight: 600; }
.testi__nav { display: flex; align-items: center; gap: 24px; }
.testi__count { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.testi__count i { width: 36px; height: 1px; background: var(--ink); }

/* ==========================================================================
   PANEL 08: FAQ. The coral-tooth marks each question: tonal when closed, in colour when open.
   ========================================================================== */
/* Pure white at the design lead's request (4 December 2026). It is not a brand-guide colour (the guide's white is Soft White, #F8F8F8). */
.faq { --hairline: rgb(var(--ink-rgb) / 0.26); background: #fff; } /* dividers a shade firmer so they hold on white */
.faq__wrap { max-width: calc(960px + 2 * var(--gutter)); }
.faq__list { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); transition: background-color var(--t) var(--ease); }
.faq__q { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; column-gap: 22px; width: 100%; padding: 24px 12px; background: none; border: 0; text-align: left; }
.faq__q:focus-visible { outline-offset: -2px; border-radius: var(--r-sm); }
.faq__mark { width: 30px; height: auto; filter: grayscale(1); opacity: 0.62; transition: filter var(--t) var(--ease), opacity var(--t) var(--ease), scale var(--t) var(--ease); }
.faq__text { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.4; font-weight: 400; transition: translate var(--t) var(--ease); }
.faq__toggle { position: relative; width: 24px; height: 24px; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; border-radius: 2px; transition: rotate var(--t) var(--ease); }
.faq__toggle::after { rotate: 90deg; }
.faq__item.is-open .faq__toggle::after { rotate: 0deg; }
.faq__item.is-open .faq__mark { filter: none; opacity: 1; scale: 1.08; }
.faq__item.is-open { background: var(--surface-warm); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--t-slow); }
.faq__item.is-open .faq__a-inner { visibility: visible; transition-delay: 0s; }
.faq__a p { max-width: 68ch; padding: 0 60px 30px 64px; text-wrap: pretty; }
@media (hover: hover) {
  .faq__q:hover .faq__mark { filter: none; opacity: 1; }
  .faq__q:hover .faq__text { translate: 6px 0; }
}

/* ==========================================================================
   PANEL 09: news
   ========================================================================== */
/* clip, not hidden: "hidden" would make the section itself a scroll container, and the watermark hanging below it
   gave that container something to scroll, which could shift the cards and cut them off. */
.news { background: var(--surface-warm); overflow: clip; }
.news__watermark { left: -8%; bottom: -18%; width: min(40vw, 560px); background: var(--beige-coral-tint); }
.news__tools { display: flex; align-items: center; gap: 20px; }
/* --news-per-view is the number of whole cards on screen: 3 on desktop, 2 on tablet, 1 on phones. Never a part card. */
.news__viewport { --news-gap: clamp(20px, 2.2vw, 32px); --news-per-view: 3; --news-ring: 10px; }
/* The track scrolls sideways only. Nothing inside it is ever offset vertically (cards fade in; the rise is on
   .news__viewport), so its height is exactly its content's and there is nothing to scroll up or down.
   The padding with its matching negative margin leaves room for focus rings without moving the cards. */
.news__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--news-per-view) - 1) * var(--news-gap)) / var(--news-per-view));
  column-gap: var(--news-gap); row-gap: 14px;
  padding: var(--news-ring); margin: calc(-1 * var(--news-ring)); scroll-padding-inline: var(--news-ring);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.news__track::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; min-width: 0; }
.news-card__link { display: grid; grid-template-rows: auto auto auto 1fr auto; row-gap: 14px; height: 100%; text-decoration: none; }
/* With subgrid every card shares the same five rows (image, meta, title, excerpt, link), so a title that wraps
   never pushes one card's excerpt or "Read more" out of line with its neighbours. */
@supports (grid-template-rows: subgrid) {
  .news__track { grid-template-rows: repeat(5, auto); }
  .news-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
  .news-card__link { grid-row: 1 / -1; grid-template-rows: subgrid; height: auto; }
}
.news-card__link:focus-visible { outline-offset: 6px; border-radius: var(--r-md); }
.news-card__media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; border-radius: var(--r-md); background: var(--surface-wash); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 1rem; font-weight: 500; }
.news-card__meta span::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--ink); }
.news-card__meta time { font-weight: 400; white-space: nowrap; }
.news-card__meta span { white-space: nowrap; }
.news-card__title { font-size: var(--fs-h3); line-height: 1.25; font-weight: 300; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.news-card__title span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size var(--t-slow) var(--ease); }
.news-card__excerpt { font-size: 1rem; text-wrap: pretty; }
.news-card .link-arrow { margin-top: 4px; }
@media (hover: hover) {
  .news-card__link:hover .news-card__media img { scale: 1.05; }
  .news-card__link:hover .news-card__title span { background-size: 100% 1.5px; }
  .news-card__link:hover .link-arrow svg { transform: translateX(6px); }
}
.news-card__link:focus-visible .news-card__title span { background-size: 100% 1.5px; }

/* ==========================================================================
   PANEL 10: final call to action (the JB Trickey composition: copy left, form card right,
   over a full-width photograph). The photograph is left clear; a Shell Beige haze sits behind the copy
   only, so the copy stays Driftwood Grey and readable.
   ========================================================================== */
.cta { --cta-haze: 255 249 240; position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: var(--surface-warm); }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
/* 5% spare above and below is the most the parallax can uncover while that edge is on screen; any more only crops the beach */
.cta__photo { position: absolute; inset: -5% 0; }
.cta__photo picture { display: contents; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; } /* favours the side with more open water */
/* the copy column never drops under 340px (the phone line needs it), so on small laptops the form gives way instead;
   align-items centres the copy block on the form */
.cta__grid { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 620px); column-gap: clamp(48px, 7vw, 120px); align-items: center; }
.cta__copy { position: relative; display: grid; gap: 24px; justify-items: start; }
/* The overlay. An oval haze behind the copy: full strength across the whole copy block (the oval's flat centre
   passes through all four corners of the block), then easing to nothing, so the top, the bottom and the form's
   side of the photograph stay clear. It is anchored to the copy block, not the section, so it follows the
   text at every width. 0.8 is the lightest that keeps Driftwood text at 4.5:1 over the darkest sand in this
   photograph (measured; at 0.5 it would fall to about 3:1). */
.cta__copy::before {
  content: ""; position: absolute; z-index: -1; inset: -60% -97% -60% -125%; pointer-events: none;
  background: radial-gradient(closest-side,
    rgb(var(--cta-haze) / 0.8) 0, rgb(var(--cta-haze) / 0.8) 62%, rgb(var(--cta-haze) / 0.62) 71%,
    rgb(var(--cta-haze) / 0.36) 81%, rgb(var(--cta-haze) / 0.13) 91%, rgb(var(--cta-haze) / 0) 100%);
}
.cta__title { max-width: 14ch; }
.cta__copy .lead { max-width: 44ch; }
.cta__call { width: min(100%, 26rem); margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--hairline); } /* the phone line closes the block */
.call-line { display: inline-flex; align-items: center; gap: 12px; padding-block: 6px; text-decoration: none; white-space: nowrap; }
.call-line .icon { color: var(--accent); }
.call-line__label { font-size: 1rem; font-weight: 500; }
.call-line__num { position: relative; font-size: var(--fs-h3); line-height: 1.2; font-weight: 300; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

.enq { display: grid; gap: 20px; padding: clamp(26px, 3.2vw, 46px); background: var(--soft-white); border-radius: var(--r-lg); box-shadow: 0 40px 80px -48px rgb(var(--ink-rgb) / 0.6); }
.enq__head { display: grid; gap: 6px; }
.enq__note, .field__hint { font-size: 1rem; line-height: 1.5; }
.enq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label { font-size: 1rem; line-height: 1.3; font-weight: 500; }
.field input, .field select, .field textarea, .newsletter input {
  width: 100%; height: 54px; padding: 0 16px; background: var(--soft-white); border: 1px solid var(--ink); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.5; -webkit-appearance: none; appearance: none;
  transition: box-shadow var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease);
}
.field textarea { height: auto; min-height: 118px; padding: 14px 16px; resize: vertical; }
.select { position: relative; }
.select select { padding-right: 48px; cursor: pointer; text-overflow: ellipsis; }
.select .chev { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; }
.field input:hover, .field select:hover, .field textarea:hover, .newsletter input:hover { box-shadow: 0 0 0 3px rgb(73 165 160 / 0.22); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .newsletter input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-sm); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-warm); }
.field__error, .enq__status, .newsletter__status { font-size: 1rem; line-height: 1.45; font-weight: 500; }
.field__error { display: flex; align-items: flex-start; gap: 8px; }
.field__error:empty, .enq__status:empty, .newsletter__status:empty { display: none; }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; background: var(--ink); color: var(--on-ink); border-radius: 50%; font-size: 0.8125rem; font-weight: 600; line-height: 1; }
.enq__foot { display: grid; gap: 14px; margin-top: 4px; }

/* ==========================================================================
   PANEL 11: footer. Light, like the rest of the page; only the slim legal bar is a Driftwood fill.
   ========================================================================== */
.footer { --footer-gap: clamp(28px, 2.4vw, 40px); position: relative; overflow: hidden; background: var(--surface-wash); }
.footer > .container { position: relative; z-index: 1; padding-top: clamp(64px, 6vw, 96px); padding-bottom: clamp(44px, 4vw, 64px); }
/* starts at the content's right edge, so it sits in the margin and never behind the links or copy */
.footer__mark { left: calc(50% + min(var(--container), 100vw - 2 * var(--gutter)) / 2 - 12px); bottom: -14%; width: 420px; background: var(--pale-aqua); opacity: 0.34; }
/* The top section is one grid: logo and contact details, the three link lists, then the newsletter.
   Each column is at least as wide as its longest line (so nothing wraps) and shares any spare width in the
   proportions below; the gaps between columns are all equal. Every column starts on the same line, and the
   four headings (Practice, Services, Locations, News from the practice) are one style on one baseline. */
.footer__main {
  display: grid; align-items: start; column-gap: var(--footer-gap);
  grid-template-columns: minmax(max-content, 4.4fr) minmax(max-content, 1.3fr) minmax(max-content, 2.4fr) minmax(max-content, 1.7fr) minmax(0, 3.4fr);
  padding-bottom: clamp(48px, 4.6vw, 72px); border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}
.footer__brand { display: grid; gap: 30px; justify-items: start; }
/* the logo starts a few pixels below the row line so its top meets the cap height of the headings beside it */
.footer__logo { display: block; width: 190px; margin-top: 3px; }
.footer__logo img { width: 100%; height: auto; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer__contact .icon { margin-top: 2px; color: var(--accent); }
.footer__contact a, .footer__col a, .footer__legal a, .footer__credit a { position: relative; text-decoration: none; }
.footer__contact address, .footer__col a { white-space: nowrap; } /* one line each; the columns are sized to fit them */

.footer__title { margin-bottom: 20px; font-size: var(--fs-eyebrow); line-height: 1.4; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__title a { position: relative; text-decoration: none; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li { line-height: 1.4; }

/* Newsletter: the field and its button are one pill, as wide as the column, so both edges sit on the grid. */
.newsletter { display: grid; gap: 0; }
.newsletter p { line-height: 1.6; text-wrap: pretty; }
.newsletter__row { position: relative; margin-top: 20px; }
.newsletter input { width: 100%; height: 56px; padding: 0 120px 0 20px; border-radius: var(--r-pill); }
.newsletter input:focus-visible { border-radius: var(--r-pill); }
.newsletter input::placeholder { color: var(--ink); opacity: 1; }
.newsletter .btn { position: absolute; top: 5px; right: 5px; min-height: 46px; padding-inline: 18px; }
.newsletter__status { margin-top: 12px; }

.footer__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--footer-gap); align-items: center; padding-top: clamp(36px, 3.6vw, 52px); font-size: 1rem; line-height: 1.65; }
.footer__seo { max-width: 74ch; }

/* Google rating. DEMONSTRATION figures: see the comment in index.html. The Google mark and the gold stars are Google's own
   colours, the one place the page steps outside the practice's palette. */
.grating { justify-self: end; display: flex; align-items: center; gap: 16px; } /* flush with the right content margin */
.grating__logo { flex: none; width: 38px; height: 38px; }
.grating__body { display: grid; gap: 2px; line-height: 1.45; }
.grating__score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.grating__stars { display: inline-flex; gap: 2px; }
.grating__stars svg { width: 18px; height: 18px; fill: #fbbc04; }

.footer__bar { position: relative; z-index: 1; background: var(--driftwood-grey); color: var(--on-ink); font-size: var(--fs-legal); }
.footer__bar-inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; min-height: 64px; padding-block: 14px; }
.footer__bar :focus-visible { outline-color: var(--on-ink); }
.footer__legal { display: flex; gap: 28px; margin-right: auto; }
.footer__credit a { display: inline-flex; align-items: center; gap: 10px; }
.footer__credit img { width: 13px; height: 16px; }
.footer__bar a::after { background: var(--on-ink); bottom: -2px; height: 1px; }
@media (hover: hover) {
  .hdr__phone:hover .hdr__phone-num::after, .call-line:hover .call-line__num::after, .footer__contact a:hover::after, .footer__col a:hover::after, .footer__legal a:hover::after, .footer__credit a:hover::after, .footer__title a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.footer__col a[aria-current]::after { transform: scaleX(1); }

/* prototype notice for pages that are in the sitemap but not built yet */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; max-width: calc(100vw - 40px); padding: 14px 24px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-pill); font-size: 1rem; line-height: 1.4; box-shadow: 0 20px 40px -20px rgb(var(--ink-rgb) / 0.8); translate: -50% 20px; opacity: 0; transition: opacity var(--t-quick) var(--ease), translate var(--t) var(--ease); }
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ==========================================================================
   Motion. Hidden start states exist only under html.motion (set in <head> when the visitor has
   not asked for reduced motion), so without JS, or with reduced motion, everything is simply there.
   ========================================================================== */
.motion [data-rv]:not([data-rv="img"]):not([data-rv="card"]) { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--t-slow) var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.motion [data-rv].is-in:not([data-rv="img"]):not([data-rv="card"]) { opacity: 1; transform: none; }
.motion [data-rv="card"] { opacity: 0; transform: translateY(36px); transition: opacity var(--t-slow) var(--ease) 0.1s, transform 1.1s var(--ease) 0.1s; }
.motion [data-rv="card"].is-in { opacity: 1; transform: none; }
/* news cards only fade: a vertical offset inside the sideways scroller would give it something to scroll */
.motion .news__track > .news-card[data-rv]:not(.is-in) { transform: none; }

/* image reveal: the frame is observed, the inner layer is unmasked (a fully clipped element never reports as visible) */
.motion [data-rv="img"] .media__inner { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.motion [data-rv="img"] img { scale: 1.12; transition: scale 1.8s var(--ease-out) var(--d, 0s); }
.motion [data-rv="img"].is-in .media__inner { clip-path: inset(0 0 0 0); }
.motion [data-rv="img"].is-in img { scale: 1; }

/* headings: words rise out of a mask, one line after another */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split .wi { display: inline-block; }
.motion [data-split]:not(.split) { opacity: 0; } /* until main.js has wrapped the words */
.motion .split .wi { transform: translateY(112%); transition: transform 0.95s var(--ease) calc(var(--d, 0s) + var(--line, 0) * 0.11s); }
.motion .split.is-in .wi { transform: none; }

/* the about statement fills in word by word with the scroll */
.motion [data-fill] .fw { opacity: 0.24; transition: opacity var(--t) var(--ease); }
.motion [data-fill] .fw.is-lit { opacity: 1; }

.motion [data-hero-in]:not(.split) { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease) calc(0.15s + var(--d, 0s)), transform 1s var(--ease) calc(0.15s + var(--d, 0s)); }
.motion .is-ready [data-hero-in]:not(.split) { opacity: 1; transform: none; }
.motion .hero__video { scale: 1.06; transition: scale 2.4s var(--ease-out); }
.motion .is-ready .hero__video { scale: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
}

/* Footer below 1440px. The same five blocks, re-seated on the grid as the width drops; nothing wraps or overlaps. */
@media (max-width: 1439px) {
  /* laptops: five columns no longer fit on one line, so the logo, contact details and three link lists share
     the row with equal gaps, and the newsletter becomes a band beneath them (heading and copy on the left,
     the field on the right), both edges on the content margins */
  .footer__main { grid-template-columns: minmax(0, max-content) max-content max-content max-content; justify-content: space-between; }
  .newsletter {
    grid-column: 1 / -1; width: 0; min-width: 100%; /* zero intrinsic width, so its long copy cannot stretch the columns above */
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: var(--footer-gap); align-items: center;
    margin-top: clamp(40px, 4vw, 56px); padding-top: clamp(32px, 3.2vw, 44px); border-top: 1px solid var(--hairline);
  }
  .newsletter .footer__title, .newsletter p { grid-column: 1; }
  .newsletter p { max-width: 52ch; }
  .newsletter__row { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .newsletter__status { grid-column: 2; }
}
@media (max-width: 1099px) {
  /* tablets: logo and contact details top left with the newsletter beside them; the three link lists sit
     underneath on the same column lines, so Locations starts on the newsletter's left edge */
  .footer { --footer-gap: clamp(32px, 5vw, 56px); }
  .footer__main { grid-template-columns: max-content max-content minmax(0, 1fr); grid-template-areas: "brand brand news" "prac serv loc"; justify-content: normal; row-gap: 48px; }
  .footer__brand { grid-area: brand; }
  .footer__col--practice { grid-area: prac; }
  .footer__col--services { grid-area: serv; }
  .footer__col--locations { grid-area: loc; }
  .newsletter { grid-area: news; width: auto; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 0; padding-top: 0; border-top: 0; }
  .newsletter .footer__title, .newsletter p, .newsletter__row, .newsletter__status { grid-column: 1; grid-row: auto; }
  .newsletter__row { max-width: 440px; margin-top: 20px; }
  /* Locations runs to two columns when its column is wide enough for both, one when it is not */
  .footer__col--locations ul { display: block; columns: 2 150px; column-gap: 32px; }
  .footer__col--locations li { margin-bottom: 10px; break-inside: avoid; }
}
@media (max-width: 767px) {
  /* small tablets: the newsletter no longer fits beside the contact details, so it follows the link lists */
  .footer__main { grid-template-areas: "brand brand brand" "prac serv loc" "news news news"; }
  .newsletter { max-width: 480px; }
}

/* between the stacked hero and wide laptops, a slightly smaller heading keeps each sentence on one line */
@media (min-width: 901px) and (max-width: 1100px) {
  :root { --fs-display: 2.25rem; }
}

@media (max-width: 1023px) {
  :root { --logo-w: 168px; --header-top: 122px; --header-nav: 0px; --header-h: var(--header-top); }
  .hdr__nav, .hdr__phone { display: none; }
  .hdr__toggle { display: block; }
  .is-compact .hdr__top { height: 64px; }
  .is-compact .hdr__logo { height: 44px; }
  .hdr__logo-mark { height: 44px; }
  .menu-open .site-header.is-hidden { transform: none; }

  /* services become swipeable cards */
  /* Same rules as the news carousel: whole cards only (--svc-per-view: 2 on tablets, 1 on phones), sideways scroll only,
     and padding with a matching negative margin so the focus ring is never clipped. */
  .svc { --svc-per-view: 2; --svc-card-gap: 16px; --svc-ring: 10px; }
  .svc__list {
    display: flex; gap: var(--svc-card-gap); width: auto; border-top: 0;
    padding: var(--svc-ring); margin: calc(-1 * var(--svc-ring)); scroll-padding-inline: var(--svc-ring);
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .svc__list::-webkit-scrollbar { display: none; }
  .svc-item { flex: 0 0 calc((100% - (var(--svc-per-view) - 1) * var(--svc-card-gap)) / var(--svc-per-view)); display: flex; flex-direction: column; overflow: hidden; background: var(--soft-white); border-radius: var(--r-md); scroll-snap-align: start; }
  /* the card clips its own contents, so the keyboard focus ring is drawn on the card, not on the link inside it */
  .svc-item:has(.svc-item__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
  .svc-item__link:focus-visible { outline: none; }
  /* every card shows its photo and description here; only the desktop explorer hides the inactive panels */
  .svc-item__panel { display: contents; visibility: visible; }
  .svc-item__media { position: relative; inset: auto; order: -1; aspect-ratio: 4 / 3; border-radius: 0; }
  .svc-item__media img, .svc-item.is-active .svc-item__media img { scale: 1; }
  .svc-item__link { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 22px 0; border-bottom: 0; }
  .svc-item__link::after, .svc-item__num { display: none; }
  .svc-item__name, .svc-item.is-active .svc-item__name { translate: none; font-weight: 300; font-size: 1.375rem; }
  .svc-item__arrow { opacity: 1; translate: none; }
  .svc-item__desc { position: static; padding: 10px 22px 26px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
  .svc__nav { display: flex; margin-top: 28px; }

  .news__viewport { --news-per-view: 2; }
  .cta__grid { grid-template-columns: 1fr; row-gap: 48px; }
  /* stacked: the copy block is as wide as the page but its text stops about 560px in, so the oval is sized
     in pixels around the text, not the block. On phones it is far wider than the screen and reads as a soft
     band behind the copy; on tablets its right side eases away where the text ends. It falls off faster
     here to keep the strips above and below the copy clear, and is a touch stronger (0.84) because the open
     water at the top of the photograph can sit behind the first lines. */
  .cta__photo img { object-position: 50% 50%; } /* the upright crop is already composed */
  .cta__copy::before {
    inset: -37% auto -37% -723px; width: 1806px;
    background: radial-gradient(closest-side,
      rgb(var(--cta-haze) / 0.84) 0, rgb(var(--cta-haze) / 0.84) 62%, rgb(var(--cta-haze) / 0.56) 68%,
      rgb(var(--cta-haze) / 0.22) 74%, rgb(var(--cta-haze) / 0) 80%);
  }
  .enq { max-width: 680px; }
  .footer__meta { grid-template-columns: 1fr; row-gap: 28px; }
  .grating { justify-self: start; } /* stacked under the blurb here, so it follows the left edge */
}

@media (max-width: 900px) {
  /* Stacked sizes: the film still covers the whole hero. --hero-clear is film left open above the copy for the
     patient's face. The whole film gets the light tone, and a second multiplied layer tied to the copy block
     (not to the hero's height) deepens to full Driftwood Grey just before the copy starts. */
  .hero { --hero-clear: clamp(190px, 28svh, 250px); min-height: clamp(640px, 100svh, 960px); }
  .hero__shade { background: linear-gradient(180deg, var(--driftwood-grey) 0, var(--driftwood-grey) var(--header-h), var(--hero-shade-far) calc(var(--header-h) + 70px)); }
  .hero__inner { position: relative; }
  .hero__inner::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
    background: linear-gradient(180deg, #fff calc(var(--header-h) + 60px), var(--driftwood-grey) calc(var(--header-h) + var(--hero-clear) - 16px)); mix-blend-mode: multiply;
  }
  /* stacked: the film sits above the copy and fades into the page */
  .hero__media { transform: none; }
  .hero__video { object-position: 60% 30%; }
  .hero__inner { grid-template-columns: 1fr; row-gap: 26px; padding-block: calc(var(--header-h) + var(--hero-clear)) 36px; }
  .hero__copy { max-width: 40rem; }
  .hero__card { grid-template-columns: 1fr 1fr; column-gap: 28px; min-width: 0; }
  .hero__card-row + .hero__card-row { border-top: 0; }
  .hero__pause { top: calc(var(--header-h) + 12px); right: 16px; }

  .section-head--split { grid-template-columns: 1fr; row-gap: 24px; }
  .h-break { display: block; }
  .section-head--end .news__tools { justify-self: start; }
  .about__grid, .why__grid, .testi__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .about__media, .why__media, .testi__media { width: 100%; max-width: 560px; }
  .about__media { margin-bottom: 24px; }
  .media--detail { right: -4%; }
  .why__media { order: -1; }
  .flow { display: none; }
}

@media (max-width: 640px) {
  :root { --fs-body: 1rem; --r-lg: 22px; --r-md: 18px; }
  .svc { --svc-per-view: 1; }
  .hdr__top { column-gap: 12px; }
  .hdr__cta { padding: 5px 18px 5px 5px; }
  .hdr__cta .lbl-full { display: none; }
  .hdr__cta .lbl-short { display: inline; }
  .about__actions .btn, .why__actions .btn { width: 100%; }
  .hero__card { grid-template-columns: 1fr; padding: 2px 22px; }
  .hero__card-row { padding-block: 16px; }
  .hero__card-row + .hero__card-row { border-top: 1px solid rgb(var(--paper-rgb) / 0.2); }
  /* phones: the hero is taller than the film is wide, so the film is enlarged from its lower edge.
     That lifts the patient's face into the open area above the copy and crops the ceiling instead. */
  .hero__media { transform: scale(1.08); transform-origin: 60% 100%; }
  .hero__copy { gap: 18px; }
  .usp-card { width: 78vw; min-height: 0; }
  .usp__controls { margin-top: 36px; }
  .faq__q { grid-template-columns: 26px minmax(0, 1fr) 22px; column-gap: 14px; padding: 20px 6px; }
  .faq__mark { width: 26px; }
  .faq__a p { padding: 0 6px 24px 46px; }
  .news__viewport { --news-per-view: 1; }
  .news__tools { width: 100%; justify-content: space-between; }
  .enq__row { grid-template-columns: 1fr; }
  /* phones: one column. Practice and Locations fold into two short columns; Services stays a single list. */
  .footer__main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "prac" "serv" "loc" "news"; row-gap: 40px; }
  .footer__contact address, .footer__col a { white-space: normal; } /* only the narrowest phones need the wrap */
  .footer__col--practice ul, .footer__col--locations ul { display: block; columns: 2; column-gap: 28px; }
  .footer__col--practice li, .footer__col--locations li { margin-bottom: 10px; break-inside: avoid; }
  .newsletter { max-width: none; }
  .newsletter__row { max-width: none; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { margin-right: 0; }
  .testi__item p { font-size: 1.125rem; }
}

/* small phones: a slightly smaller heading and tighter spacing keep the booking button on the first screen */
@media (max-width: 380px) {
  :root { --fs-display: 1.875rem; }
  .hero { --hero-clear: clamp(180px, 26svh, 250px); }
  .hero__copy { gap: 15px; }
}

/* short laptop screens: keep the whole hero (heading, copy, button, rating) on the first screen */
@media (min-width: 1024px) and (max-height: 800px) {
  :root { --fs-display: clamp(2rem, 2.9vw + 0.2rem, 2.875rem); }
  .hero { min-height: max(600px, 100svh); }
  .hero__inner { padding-block: calc(var(--header-h) + 16px) 44px; }
  .hero__copy { gap: 16px; }
  .hero__card { padding: 2px 24px; }
  .hero__card-row { padding-block: 16px; }
}
@media (min-width: 1024px) and (max-height: 660px) {
  :root { --logo-w: 164px; --header-top: 120px; --header-nav: 46px; }
  .hero__lead { font-size: 1.0625rem; }
}

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