/* ==========================================================================
   Beyond 32 Dental — shared design system for inner pages
   Every token below is lifted from the homepage Figma file (node 4379:179).
   ========================================================================== */

:root {
  /* Colour — homepage values */
  --ink: #14403e;          /* headings, primary text, dark sections */
  --teal: #3d7774;         /* secondary text, nav links, lead copy */
  --cream: #fff7f2;        /* default page surface */
  --cream-2: #fff7f1;
  --mint: #d8eeed;         /* alternating section surface */
  --mint-2: #bfe0df;       /* card fill on mint */
  --mint-line: #b8e8e6;    /* card border on mint */
  --deep-line: #1c5250;    /* rules on the dark footer */
  --foot-text: #cce0de;
  --hairline: #e5e0da;
  --white: #ffffff;
  --grey: #686868;         /* stat strip numerals */
  --gold-ink: #785600;
  --gold-line: #9d781b;
  --gold: linear-gradient(107deg, #bcab80 0%, #decba1 35.7%, #f0dbb0 55.4%, #a39266 95%);
  --brand: #f5412c;        /* Figma "Branding/Color" — reserved for safety signals */
  --star: #f4a24b;

  /* Type */
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Natural Comforts", "Instrument Serif", Georgia, serif;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 60px;
  --pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 120px);
  --section: clamp(80px, 8vw, 120px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh, 80px) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--teal);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--mint-2) var(--cream); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--mint-2); border-radius: 99px; border: 3px solid var(--cream); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* --------------------------------------------------------------------------
   Typography — Host Grotesk with a Natural Comforts italic accent phrase
   -------------------------------------------------------------------------- */
.it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.07em;           /* Instrument Serif fallback runs small next to Host Grotesk */
}
.h1 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.h4 { font-size: clamp(20px, 1.75vw, 25px); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--teal); text-wrap: pretty; }
.subtitle { font-size: 17px; font-weight: 700; color: var(--teal); line-height: 1.6; }
.body { color: var(--teal); text-wrap: pretty; }
.body-ink { color: var(--ink); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; }
.measure { max-width: 34em; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 3.5vw, 48px); flex-wrap: wrap; }
.section-head .lead { margin-top: 12px; max-width: 32em; }

/* --------------------------------------------------------------------------
   Buttons — pills, exactly as homepage
   -------------------------------------------------------------------------- */
.btn {
  --_bg: var(--ink); --_fg: #fff; --_bd: rgba(255,255,255,.4);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  min-height: 47px;
  border-radius: 99px;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(20, 64, 62, .45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--gold { --_bg: var(--gold); --_fg: var(--gold-ink); --_bd: var(--gold-line); background-image: var(--gold); }
.btn--gold::after {             /* the brushed-brass sheen travels on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease-out);
}
.btn--gold:hover::after { transform: translateX(110%); }
.btn--ink { --_bg: var(--ink); }
.btn--ink:hover { --_bg: #1b5451; }
.btn--teal { --_bg: var(--teal); }
.btn--outline { --_bg: rgba(255,255,255,.08); --_fg: var(--ink); --_bd: var(--ink); }
.btn--outline:hover { --_bg: var(--ink); --_fg: #fff; }
.btn--phone { --_bg: rgba(0,0,0,.05); --_fg: var(--ink); --_bd: rgba(20,64,62,.4); }
.btn--phone:hover { --_bg: rgba(20,64,62,.08); }
.btn--ghost { --_bg: rgba(255,255,255,.08); --_fg: #fff; --_bd: rgba(255,255,255,.4); }
.btn--ghost:hover { --_bg: rgba(255,255,255,.16); }
.btn--glass { --_bg: rgba(0,0,0,.2); --_fg: #fff; --_bd: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--lg { min-height: 60px; padding: 16px 30px; font-size: 19px; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); text-decoration: none; }
.text-link span { transition: transform .35s var(--ease-out); }
.text-link:hover { color: var(--ink); }
.text-link:hover span { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Header — structure after TLC Dentist, finish after Avira:
   full-width sticky cream bar, quiet links grouped right, compact pills,
   rounded mega-panel with described categories.
   -------------------------------------------------------------------------- */
:root { --hh: 80px; }
@media (max-width: 1080px) { :root { --hh: 68px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .4s var(--ease-out);
}
/* Blur lives on a pseudo-layer: backdrop-filter on the header itself would trap the fixed mobile sheet inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 247, 242, .94);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
.site-header[data-scrolled] { border-color: var(--hairline); box-shadow: 0 12px 30px -24px rgba(20, 64, 62, .5); }
.nav {
  width: min(1320px, 100% - 2 * clamp(16px, 3.4vw, 48px)); margin-inline: auto;
  height: var(--hh);
  display: flex; align-items: center; gap: 32px;
}
.nav__logo { flex: none; display: block; margin-right: auto; }
.nav__logo img { width: 150px; height: auto; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 99px;
  font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; background: none; border: 0;
  transition: background .25s, color .25s;
}
.nav__link:hover, .nav__item[data-open] > .nav__link { background: rgba(20, 64, 62, .06); }
.nav__link[aria-current="page"], .nav__link[data-current] { font-weight: 600; }
.nav__link svg { width: 12px; height: 12px; opacity: .7; transition: transform .35s var(--ease-out); }
.nav__item[data-open] > .nav__link svg { transform: rotate(180deg); }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-line); }

.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__actions .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.nav__actions .btn svg { width: 16px; height: 16px; }

/* ---- Panels ---- */
.panel-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  background: var(--cream); border: 1px solid var(--hairline); border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(20, 64, 62, .55), 0 2px 6px rgba(20, 64, 62, .05);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .22s, transform .4s var(--ease-out), visibility .22s;
}
.panel-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav__item[data-open] > .panel-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.panel-menu h2 { font-size: 13px; font-weight: 600; color: var(--teal); margin: 0 0 10px 12px; letter-spacing: .01em; }

.mega { width: min(880px, calc(100vw - 48px)); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mega__cats { padding: 10px 4px 4px; display: flex; flex-direction: column; }
.cat {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: background .2s;
}
.cat:hover, .cat[data-active] { background: var(--white); }
.cat__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; color: var(--ink); }
.cat__icon svg { width: 22px; height: 22px; }
.cat b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.cat span { display: block; font-size: 14px; line-height: 1.35; color: var(--teal); margin-top: 2px; }
.mega__all { margin: auto 12px 6px; padding-top: 14px; font-size: 15px; font-weight: 600; }

.mega__side { background: var(--white); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; min-height: 100%; }
.mega__img { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: var(--mint); }
.mega__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.mega__list { display: none; margin-top: 8px; }
.mega__list[data-active] { display: block; animation: listIn .35s var(--ease-out); }
@keyframes listIn { from { opacity: 0; transform: translateY(4px); } }
.mega__list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink); text-decoration: none; transition: padding .3s var(--ease-out), color .2s; }
.mega__list a:last-child { border-bottom: 0; }
.mega__list a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease-out); color: var(--teal); }
.mega__list a:hover { padding-left: 12px; }
.mega__list a:hover::after { opacity: 1; transform: none; }

.mega__help { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 12px 6px; border-top: 1px solid var(--hairline); }
.mega__help p { font-size: 14px; font-weight: 600; color: var(--teal); margin-right: 4px; }
.mega__help a { font-size: 14px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(20, 64, 62, .18); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s; }
.mega__help a:hover { background: var(--white); border-color: var(--ink); }
.mega__help a.is-urgent { display: inline-flex; align-items: center; gap: 8px; border-color: transparent; background: #fde9e5; font-weight: 600; }
.mega__help a.is-urgent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.mega__help a.is-urgent:hover { background: #fbdcd6; }

.mini { width: 340px; padding: 10px; }
.mini a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mini a:hover, .mini a[aria-current="page"] { background: var(--white); }
.mini b { display: block; font-size: 16px; font-weight: 600; }
.mini span { display: block; font-size: 14px; color: var(--teal); margin-top: 2px; }

/* ---- Mobile ---- */
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20, 64, 62, .25); background: transparent; align-items: center; justify-content: center; color: var(--ink); }
.nav__burger svg { width: 20px; height: 20px; }
.nav__call-icon { display: none; }

.sheet {
  position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0; z-index: 49;
  background: var(--cream); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px clamp(16px, 4vw, 32px) 120px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .4s var(--ease-out), visibility .25s;
}
.site-header[data-menu-open] .sheet { opacity: 1; visibility: visible; transform: none; }
.sheet details, .sheet > a { border-bottom: 1px solid var(--hairline); }
.sheet summary, .sheet > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; font-size: 22px; font-weight: 500; color: var(--ink); text-decoration: none; list-style: none; cursor: pointer;
}
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.sheet details[open] summary svg { transform: rotate(180deg); }
.sheet > a[aria-current="page"] { color: var(--teal); }
.sheet__group { padding: 0 0 18px; display: grid; gap: 4px; }
.sheet__group a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 8px 4px; text-decoration: none; color: var(--ink); }
.sheet__group a .cat__icon { width: 40px; height: 40px; }
.sheet__group b { font-size: 16px; font-weight: 600; display: block; }
.sheet__group span { font-size: 14px; color: var(--teal); display: block; }
.sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 4px; }
.sheet__chips a { display: inline-block; font-size: 14px; padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(20, 64, 62, .18); text-decoration: none; color: var(--ink); }
.sheet__chips a.is-urgent { background: #fde9e5; border-color: transparent; font-weight: 600; }
.sheet__cta { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px clamp(16px, 4vw, 32px) calc(12px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--hairline); }
.sheet__cta .btn { min-height: 50px; }
body[data-menu-open] { overflow: hidden; }

@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav__link { padding: 0 10px; font-size: 15px; }
  .nav__actions .btn--ink .label { display: none; }
}
@media (max-width: 1080px) {
  .nav__links, .nav__actions .btn--ink { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__logo img { width: 132px; }
}
@media (max-width: 520px) {
  .nav__actions .btn--gold { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .nav__call-icon { display: inline-flex; }
  .nav__logo img { width: 118px; }
}


/* --------------------------------------------------------------------------
   Sections & surfaces
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.bg-cream { background: var(--cream); }
.bg-mint { background: var(--mint); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: #fff; }

.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
}
.card--mint { background: var(--mint); border: 1px solid var(--mint-line); }
.card--mint2 { background: var(--mint-2); border-radius: var(--r-sm); padding: 28px; }
.card--cream { background: var(--cream); }

.media { border-radius: var(--r); overflow: hidden; background: var(--mint); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Inner hero — shared shell, each page composes its own content
   -------------------------------------------------------------------------- */
.ihero {
  position: relative;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
  background: linear-gradient(188deg, var(--mint) 0%, #e9f5f3 45%, var(--cream) 100%);
  overflow: hidden;
}
.ihero .subtitle { margin-bottom: 10px; }
.ihero .lead { margin-top: 22px; max-width: 30em; color: var(--ink); }
.ihero .btn-row { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Stats strip — tooth-outline numerals (homepage Frame 5)
   -------------------------------------------------------------------------- */
.stats { display: flex; justify-content: center; gap: clamp(24px, 4.5vw, 64px); flex-wrap: wrap; padding-block: 26px; }
.stat { display: flex; align-items: center; gap: 10px; color: var(--grey); }
.stat__tooth { position: relative; width: 60px; height: 62px; flex: none; display: grid; place-items: center; }
.stat__tooth img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stat__num { position: relative; font-size: 22px; font-weight: 700; letter-spacing: -0.05em; display: inline-flex; align-items: center; gap: 2px; }
.stat__num svg { width: 13px; height: 13px; fill: var(--star); }
.stat__label { font-size: 16px; line-height: 1.15; max-width: 9em; }
@media (max-width: 720px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; justify-items: start; }
  .stat__tooth { width: 48px; height: 50px; }
  .stat__num { font-size: 18px; }
  .stat__label { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Suburb marquee (homepage mint strip)
   -------------------------------------------------------------------------- */
.marquee { background: var(--mint); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; font-size: 17px; white-space: nowrap; }
.marquee__track span[aria-hidden] { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------------------------
   FAQ accordion (homepage white panel)
   -------------------------------------------------------------------------- */
.faq-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px);
  background: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4.6vw, 66px);
}
.faq-panel .lead { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child summary { padding-top: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; font-weight: 500; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 14px; height: 14px; flex: none; transition: transform .35s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 40px 22px 0; color: var(--teal); }
.faq details > div p + p { margin-top: 10px; }
@media (max-width: 860px) { .faq-panel { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer — the homepage's dark rounded "Page" block
   -------------------------------------------------------------------------- */
.footer-cta { position: relative; margin-top: -60px; background: var(--ink); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-top: clamp(64px, 6.6vw, 96px); padding-bottom: clamp(48px, 6.6vw, 96px); }
.footer-cta__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-cta__top .h2 { max-width: 12em; color: #fff; }
.footer-cta__grid { display: grid; grid-template-columns: minmax(0, 802fr) minmax(0, 386fr); gap: 12px; }
.footer-map { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; min-height: 420px; }
.footer-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.footer-map__pin span { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 99px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); white-space: nowrap; }
.footer-map__pin i { width: 2px; height: 16px; background: var(--ink); }
.footer-side { display: flex; flex-direction: column; gap: 12px; }
.rating-chip { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 24px; border-radius: var(--r-sm); background: rgba(216,238,237,.12); color: #fff; }
.rating-chip img { width: 36px; height: 37px; }
.rating-chip b { font-size: 16px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 3px; }
.rating-chip b svg { width: 13px; height: 13px; fill: var(--star); }
.rating-chip .sep { width: 1px; height: 25px; background: rgba(255,255,255,.1); }
.rating-chip small { font-size: 14px; line-height: 1; text-transform: capitalize; }
.info-card { flex: 1; background: var(--mint); color: var(--ink); border-radius: var(--r); padding: 24px 25px; }
.info-card__img { height: 184px; border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.info-card__img img { width: 100%; height: 100%; object-fit: cover; }
.info-card h3 { font-size: 25px; font-weight: 500; }
.info-card address { font-style: normal; color: var(--teal); margin-top: 8px; max-width: 14em; }
.info-card hr { border: 0; border-top: 1px solid rgba(20,64,62,.18); margin: 20px 0; }
.hours { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; color: var(--teal); }
.hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today { color: var(--ink); font-weight: 700; }

.trust-bar { background: var(--ink); color: #fff; padding: 12px 0; }
.trust-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.trust-item img { flex: none; object-fit: contain; }
.trust-item p { font-size: 14px; line-height: 1.1; text-transform: capitalize; max-width: 11em; }
.trust-item b { display: block; margin-top: 6px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.trust-bar .vsep { width: 1px; height: 24px; background: rgba(255,255,255,.1); }

.site-footer { background: var(--ink); color: #fff; }
.site-footer__rule { height: 1px; background: var(--deep-line); }
.site-footer__main { display: grid; grid-template-columns: 240px 1fr auto; gap: clamp(32px, 9vw, 128px); padding-block: 40px; align-items: start; }
.site-footer__logo { width: 236px; filter: brightness(0) invert(1); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 32px; height: 32px; border-radius: 8px; background: var(--deep-line); display: grid; place-items: center; transition: background .25s; }
.socials a:hover { background: #26706d; }
.socials img { width: 12px; height: 12px; }
.site-footer__tag { font-size: 25px; line-height: 1.05; letter-spacing: -0.5px; }
.site-footer__info { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__info li { display: flex; align-items: center; gap: 10px; }
.site-footer__info img { width: 20px; height: 20px; }
.site-footer__info a { text-decoration: none; }
.site-footer__info a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; color: var(--foot-text); font-size: 14px; }
.site-footer__bottom nav { display: flex; gap: 20px; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.aiims { display: flex; flex-direction: column; gap: 4px; font-size: 8px; font-weight: 700; }
.aiims img { width: 65px; }

@media (max-width: 980px) {
  .footer-cta__grid { grid-template-columns: 1fr; }
  .footer-map { min-height: 300px; }
  .site-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .trust-bar__inner { justify-content: flex-start; }
  .trust-bar .vsep { display: none; }
}
@media (max-width: 640px) {
  .footer-cta { border-radius: 32px 32px 0 0; margin-top: -32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .trust-item { padding: 8px 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Mobile call bar (shown on small screens; always on the emergency page)
   -------------------------------------------------------------------------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; border-radius: 99px;
    background: rgba(255,247,242,.92); backdrop-filter: blur(10px);
    border: 1px solid var(--hairline);
    box-shadow: 0 16px 40px -16px rgba(20,64,62,.5);
    transform: translateY(140%); transition: transform .5s var(--ease-out);
  }
  .callbar[data-show] { transform: none; }
  .callbar .btn { min-height: 48px; padding: 10px 14px; font-size: 16px; }
  body.has-callbar { padding-bottom: 84px; }
}

/* --------------------------------------------------------------------------
   Reveal — used once per page for the authored moment only
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

body[data-menu-open] .callbar { display: none; }
.footer-cta__p { margin-top: 16px; max-width: 34em; color: var(--foot-text); font-size: 17px; }
.mega__list a[aria-current="page"] { font-weight: 600; }
.sheet__cat { padding: 10px 4px 12px; }
.sheet__cat + .sheet__cat { border-top: 1px solid var(--hairline); }
.sheet__cat-head { display: flex; align-items: center; gap: 12px; }
.sheet__cat-head b { font-size: 16px; font-weight: 600; color: var(--ink); }
.sheet__subs { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0 0 52px; }
.sheet__subs a { display: inline !important; padding: 2px 0 !important; font-size: 15px; color: var(--teal) !important; text-decoration: underline; text-decoration-color: rgba(61,119,116,.3); text-underline-offset: 3px; }
.sheet__group a.sheet__cat-head { display: flex; grid-template-columns: none; padding: 0; }

/* Silver pill (homepage "Get Directions" treatment) */
.btn--silver { --_fg: #fff7f2; --_bd: #666; background-image: linear-gradient(102deg, #cacaca 2%, #949090 13%, #717171 24%, #606060 30%, #7c7d80 67%, #9e9e9e 81%, #717171 89%, #a3a3a3 94%, #fff 100%); }
.site-footer__areas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 18px; font-size: 14px; color: var(--foot-text); }
.site-footer__areas span { margin-right: 4px; }
.site-footer__areas a { color: #fff; text-decoration: none; }
.site-footer__areas a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom nav { flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 640px) { .site-footer__bottom nav { gap: 10px 18px; } }

/* Image placeholder: deliberately obvious, marks where a real image or illustration is still to come */
.img-ph {
  display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; aspect-ratio: var(--ph-ratio, 4 / 3);
  padding: 24px; border-radius: var(--r); text-align: center;
  border: 2px dashed rgba(20, 64, 62, .35);
  background: repeating-linear-gradient(135deg, rgba(20,64,62,.045) 0 14px, rgba(20,64,62,0) 14px 28px), #f4f1ec;
  color: var(--teal);
}
.img-ph > svg { width: 44px !important; height: 44px !important; max-width: none; flex: none; opacity: .7; filter: none !important; animation: none !important; }
.img-ph b { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.img-ph span { font-size: 14px; line-height: 1.45; max-width: 30em; }
.img-ph code { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(20,64,62,.08); color: var(--ink); }
.img-ph--dark { border-color: rgba(255,255,255,.4); background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,0) 14px 28px), rgba(255,255,255,.04); color: var(--foot-text); }
.img-ph--dark b, .img-ph--dark code { color: #fff; }
.img-ph--dark code { background: rgba(255,255,255,.12); }

/* --------------------------------------------------------------------------
   Motion layer — pinned horizontal rails, scroll progress, staggered reveals
   Everything here is progressive: no JS or reduced motion = the static page.
   -------------------------------------------------------------------------- */

/* Reading progress: a hairline of gold along the bottom of the sticky header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #bcab80, #decba1 40%, #a39266); opacity: .9; }

/* Pinned rails: the section holds still while its cards travel sideways */
.pin { position: relative; }
.pin__stage { position: sticky; top: var(--pin-top, 80px); }
.pin__stage .rail { scroll-snap-type: none; scroll-behavior: auto; }

/* Rail cards ease in as they travel into view */
.pin .rail > * { transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  /* Auto reveal: headings, leads and card groups across every page */
  .js .rvl { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }
  .js .rvl.is-in { opacity: 1; transform: none; }
  .js .rv-img { clip-path: inset(8% 6% 8% 6% round var(--r)); transition: clip-path 1.1s var(--ease-out) var(--d, 0ms); }
  .js .rv-img.is-in { clip-path: inset(0 0 0 0 round 0); }
}

/* Card and photo hover polish (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .why-card, .ba-card, .rv, .fv__step, .nerv__cards > div, .lp-team article, .member, .case, .tip, .np > a { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
  .why-card:hover, .ba-card:hover, .lp-team article:hover, .member:hover, .np > a:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20, 64, 62, .55); }
  .why-card--photo img, .ba-card img, .fv__img img, .photo img { transition: transform 1.2s var(--ease-out); }
  .why-card--photo:hover img, .ba-card:hover img:not([style*="transform"]), .fv__img:hover img, .photo:hover img { transform: scale(1.04); }
}

/* Focus rings that match the brand */
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Smooth anchor targets don't hide under the sticky header */
:target { scroll-margin-top: calc(var(--hh, 80px) + 16px); }
.img-ph--sm { padding: 12px; gap: 6px; }
.img-ph--sm > svg { width: 28px !important; height: 28px !important; }
svg[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Monzo-inspired layer: centred, airy section heads; big rounded photo cards
   with a small white "app card" floating on the photo; scroll-led steps;
   a dark rounded closing banner. Brand colours and type unchanged.
   -------------------------------------------------------------------------- */
.mz-section { padding-block: var(--section); }
.mz-head { text-align: center; max-width: 760px; margin-inline: auto; }
.mz-head .h2 { letter-spacing: -0.035em; }
.mz-head .lead { margin: 14px auto 0; max-width: 30em; color: var(--teal); }
.mz-head .btn-row { justify-content: center; margin-top: 30px; }
.mz-head { margin-bottom: clamp(44px, 5vw, 68px); }

.mz-rail { gap: 24px; align-items: flex-start; }
.mz-card { width: min(400px, 82vw); color: var(--ink); }
.mz-card__media { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--mint); isolation: isolate; }
.mz-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mz-card h3 { margin-top: 24px; font-size: clamp(22px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mz-card > p { margin-top: 8px; color: var(--teal); line-height: 1.5; max-width: 26em; }
.mz-card > .btn { margin-top: 18px; }
@media (hover: hover) and (pointer: fine) { .mz-card:hover .mz-card__media > img { transform: scale(1.04); } }

/* The floating white card on the photo */
.mz-chip { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: grid; gap: 2px; min-width: 190px; max-width: calc(100% - 40px); padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(20, 64, 62, .45); color: var(--ink); }
.mz-chip small { font-size: 13px; color: var(--teal); }
.mz-chip b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.mz-chip__tag { justify-self: start; margin-top: 6px; padding: 3px 10px; border-radius: var(--pill); background: var(--mint); font-size: 12px; font-weight: 600; color: var(--ink); }
.mz-chip--row { display: flex; align-items: center; gap: 12px; }
.mz-chip--row span { display: grid; }
.mz-chip--row b { font-size: 20px; }
.mz-chip--list ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.mz-chip--list li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.mz-chip--list li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.mz-chip .status { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--teal); }
.mz-chip .status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa6aa; }
.mz-chip .status[data-state="open"] i { background: #2f9e6a; box-shadow: 0 0 0 4px rgba(47, 158, 106, .18); }

/* Scroll-led steps: list on the left, one sticky photo on the right */
.mz-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mz-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mz-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; padding: 26px 28px; border-radius: 22px; transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mz-step__n { grid-row: span 2; display: grid; align-content: start; color: var(--teal); }
.mz-step__n small { font-size: 14px; font-weight: 600; }
.mz-step__n b { font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.mz-step h3 { font-size: clamp(21px, 1.8vw, 25px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); align-self: end; }
.mz-step p { color: var(--teal); line-height: 1.55; }
.js .mz-steps[data-live] .mz-step { opacity: .5; }
.js .mz-steps[data-live] .mz-step.is-active { opacity: 1; background: var(--white); box-shadow: 0 20px 44px -30px rgba(20, 64, 62, .5); }
.js .mz-steps[data-live] .mz-step.is-active .mz-step__n { color: var(--ink); }
.mz-steps__media { position: sticky; top: calc(var(--hh, 80px) + 32px); margin: 0; aspect-ratio: 5 / 6; border-radius: 32px; overflow: hidden; background: var(--mint-2); }
.mz-steps__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-steps__media .mz-chip { left: 24px; right: 24px; bottom: 24px; min-width: 0; max-width: none; text-align: center; justify-items: center; }
@media (max-width: 900px) {
  .mz-steps { grid-template-columns: minmax(0, 1fr); }
  .mz-steps__media { position: relative; top: 0; aspect-ratio: 4 / 3; order: -1; }
  .js .mz-steps[data-live] .mz-step { opacity: 1; }
  .mz-step { padding: 20px 4px; grid-template-columns: 56px minmax(0, 1fr); }
  .mz-step__n b { font-size: 44px; }
}

/* Dark rounded closing banner */
.mz-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 44px); border-radius: clamp(28px, 4vw, 56px); background: var(--ink); color: #fff; }
.mz-banner__media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: clamp(20px, 2.5vw, 32px); overflow: hidden; background: #1b5451; }
.mz-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-banner .h2 { color: #fff; letter-spacing: -0.035em; }
.mz-banner p { margin-top: 14px; color: var(--foot-text); max-width: 30em; }
.mz-banner .btn-row { margin-top: 28px; }
@media (max-width: 860px) { .mz-banner { grid-template-columns: minmax(0, 1fr); } }
/* Rail cards: landscape photos so the whole section fits a laptop screen while pinned */
.mz-rail .mz-card { width: min(380px, 82vw); }
.mz-rail .mz-card__media { aspect-ratio: 5 / 4; }
.mz-head + .mz-rail, .mz-head + .pin__track { margin-top: clamp(36px, 4vw, 52px); }
.mz-chip--top { top: 20px; bottom: auto; }
.mz-banner--light { background: var(--mint); color: var(--ink); }
.mz-banner--light .h2 { color: var(--ink); }
.mz-banner--light p { color: var(--teal); }
.mz-banner--light .mz-banner__media { background: var(--mint-2); }
/* The homepage keeps its original rhythm; the airier spacing is for inner pages */
body[data-page="home"] { --section: clamp(72px, 6.7vw, 96px); }
/* Two- or three-up photo cards in a grid (inner pages) */
.mz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.mz-grid .mz-card { width: auto; }
.mz-grid .mz-card__media { aspect-ratio: 4 / 3; }
.mz-card h3 a { color: inherit; text-decoration: none; }
.mz-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mz-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 15px; }
.mz-card dt { color: var(--teal); }
.mz-card dd { margin: 0; font-weight: 600; }
.mz-card > .gist { color: var(--ink); }

/* --------------------------------------------------------------------------
   Feature band: full-bleed brand colour, short numbered promise on the left,
   a real photo with floating cards and a stack of result photos on the right.
   -------------------------------------------------------------------------- */
.btn--light { --_bg: #fff; --_fg: var(--ink); --_bd: #fff; }
.btn--light:hover { --_bg: var(--cream); }
.feat { background: var(--ink); color: #fff; padding-block: clamp(80px, 9vw, 140px); overflow: hidden; }
.feat__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feat .h2 { color: #fff; letter-spacing: -0.035em; }
.feat__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: f; }
.feat__list li { counter-increment: f; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: #fff; }
.feat__list li::before { content: counter(f); display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.feat .btn-row { margin-top: 36px; }
.feat__small { margin-top: 22px; max-width: 38em; font-size: 13px; line-height: 1.5; color: var(--foot-text); opacity: .85; }

.feat__art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 116px; align-items: center; gap: 16px; min-height: 560px; }
.feat__phone { grid-column: 2; margin: 0; position: relative; aspect-ratio: 9 / 16; max-height: 560px; border-radius: 40px; overflow: hidden; border: 8px solid #1d4f4c; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.feat__phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__stack { grid-column: 3; display: grid; gap: 12px; }
.feat__stack figure { margin: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #1d4f4c; }
.feat__stack img { width: 100%; height: 100%; object-fit: cover; }
.feat__stack figure:last-child { opacity: .55; }

/* The stain checker floats over the left edge of the photo */
.feat__checker { grid-column: 1 / 3; grid-row: 1; align-self: center; z-index: 1; width: min(300px, 100%); padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.feat__checker-h { font-size: 13px; font-weight: 600; color: var(--teal); }
.feat__rows { display: grid; gap: 4px; margin-top: 10px; }
.feat__rows button { font: inherit; font-size: 14px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.feat__rows button:hover { background: var(--cream); }
.feat__rows button[aria-checked="true"] { background: var(--mint); font-weight: 600; }
.feat__verdict { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.feat__tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--pill); background: var(--mint); font-size: 12px; font-weight: 700; }
.feat__tag i { width: 8px; height: 8px; border-radius: 50%; }
.feat__verdict p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--teal); }
.feat__verdict.is-swapping { animation: featIn .45s var(--ease-out); }
@keyframes featIn { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1080px) {
  .feat__grid { grid-template-columns: minmax(0, 1fr); }
  .feat__art { min-height: 0; }
}
@media (max-width: 640px) {
  .feat__art { grid-template-columns: minmax(0, 1fr) 84px; }
  .feat__phone { grid-column: 1; max-height: 420px; border-radius: 30px; border-width: 6px; }
  .feat__stack { grid-column: 2; }
  .feat__checker { grid-column: 1 / -1; grid-row: auto; width: 100%; }
}
.feat__art { grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr) 116px; }
.feat__phone, .feat__stack { grid-row: 1; }
.feat__checker { justify-self: start; }
@media (max-width: 640px) {
  .feat__art { grid-template-columns: minmax(0, 1fr) 84px; }
  .feat__phone, .feat__stack { grid-row: 2; }
  .feat__checker { grid-row: 1; }
}
.feat__art { grid-template-columns: minmax(120px, 1fr) auto 116px; gap: 20px; }
.feat__phone { height: min(540px, 62vh); width: auto; max-height: none; }
@media (max-width: 640px) {
  .feat__art { grid-template-columns: minmax(0, 1fr) 84px; }
  .feat__phone { height: auto; width: 100%; max-height: 440px; }
}

/* --------------------------------------------------------------------------
   Mega menus (Services + About): wider, centred on the page, pills on one line
   -------------------------------------------------------------------------- */
.nav__item:has(> .mega) { position: static; }
.nav { position: relative; }
.mega { width: min(1060px, calc(100vw - 48px)); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.mega__img { height: auto; aspect-ratio: 429 / 166; }
.mega__help { flex-wrap: nowrap; white-space: nowrap; }
.mega__help a { flex: none; }
@media (max-width: 1140px) { .mega__help { flex-wrap: wrap; white-space: normal; } }
/* Icons sit dead centre in their tiles */
.cat__icon svg { display: block; margin: auto; }
.cat__icon { align-self: center; }
/* ".cat span" (the description text) also matched the icon tile; restore its centring */
.cat .cat__icon { display: grid; place-items: center; margin-top: 0; }
.sheet .cat__icon { display: grid; place-items: center; margin: 0; padding: 0; flex: none; }
.sheet .cat__icon svg { display: block; }

/* --------------------------------------------------------------------------
   Photo hero (Figma "section" frames): full-bleed photo, ink gradient from the
   left and the bottom, headline + two buttons, a hairline and three stats.
   -------------------------------------------------------------------------- */
.phero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); min-height: min(824px, calc(100svh - var(--hh, 80px))); display: flex; flex-direction: column; justify-content: flex-end; }
.phero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 35%); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20, 64, 62, .97) 0%, rgba(20, 64, 62, .9) 30%, rgba(20, 64, 62, .45) 58%, rgba(20, 64, 62, 0) 86%),
  linear-gradient(0deg, rgba(20, 64, 62, .9) 0%, rgba(20, 64, 62, .55) 26%, rgba(20, 64, 62, 0) 52%); }
.phero__inner { padding-top: clamp(88px, 12vh, 160px); }
.phero .crumbs { margin-bottom: 22px; }
.phero .crumbs, .phero .crumbs a { color: rgba(255, 255, 255, .78); }
.phero h1 { max-width: 9.5em; font-size: clamp(40px, 4.1vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; color: #fff; }
.phero h1 .it { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.phero__lede { margin-top: 26px; max-width: 30em; font-size: clamp(16px, 1.2vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .92); }
.phero .btn-row { margin-top: 30px; }
.phero .btn--ghost { --_bd: rgba(255, 255, 255, .45); }
.phero__stats { list-style: none; margin: clamp(56px, 7vh, 88px) 0 0; padding: clamp(28px, 4vh, 44px) 0 clamp(36px, 5vh, 56px); border-top: 1px solid rgba(255, 255, 255, .55); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.phero__stats b { display: block; font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.phero__stats span { display: block; margin-top: 8px; font-size: clamp(15px, 1.2vw, 18px); color: rgba(255, 255, 255, .9); }
@media (max-width: 760px) {
  .phero { min-height: 0; }
  .phero__img { object-position: var(--pos-m, 72% 30%); }
  .phero::before { background: linear-gradient(180deg, rgba(20, 64, 62, .55) 0%, rgba(20, 64, 62, .82) 45%, rgba(20, 64, 62, .97) 75%); }
  .phero__inner { padding-top: 220px; }
  .phero__stats { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .phero__img { height: 380px; bottom: auto; }
  .phero::before { background: linear-gradient(180deg, rgba(20, 64, 62, 0) 0, rgba(20, 64, 62, .15) 180px, rgba(20, 64, 62, .95) 360px, var(--ink) 380px); }
  .phero__inner { padding-top: 300px; }
}
.gen-img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r); background: var(--mint); }
/* Mega menu keeps one height: every list shares the same grid cell, so the
   panel is always as tall as the longest list and nothing shifts on hover */
.mega__side { display: grid; grid-template-rows: auto 1fr; align-content: start; }
.mega__list { display: block; grid-area: 2 / 1; visibility: hidden; }
/* Only inside an open menu, so a closed menu's links never catch the pointer */
.nav__item[data-open] .mega__list[data-active] { visibility: visible; }
.nav__item:not([data-open]) > .panel-menu { pointer-events: none; }
.ldiag { display: block; width: 100%; height: auto; border-radius: var(--r); background: #D8EEED; }

/* 3D render diagrams with pinned labels; on phones the labels become a list */
.rdiag { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #a9c3b5; }
.rdiag img { display: block; width: 100%; height: auto; }
.rdiag__ov { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--sans); }
.rdiag figcaption { display: none; }
@media (max-width: 640px) {
  .rdiag .rdiag__ov { display: none !important; }
  .rdiag figcaption { display: block; padding: 12px 14px 14px; background: var(--white); }
  .rdiag figcaption ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--teal); }
  .rdiag figcaption b { color: var(--ink); font-weight: 600; }
}
.rdiag--step { background: transparent; }
