/* ==========================================================================
   MAXILLA — Core stylesheet
   1. Reset & base          6. Buttons & links
   2. Layout primitives     7. Cards & components
   3. Typography            8. Sections
   4. Preloader & cursor    9. Forms
   5. Navigation           10. Footer & utilities
   ========================================================================== */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--teal-600) var(--mist);
  /* clip (not hidden) so decorative overhang never creates a sideways scroll
     without turning the root into a scroll container */
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--teal-500); color: #04121C; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--teal-600), var(--navy));
  border-radius: 99px;
  border: 2px solid var(--mist);
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: var(--z-loader);
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- 2. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1560px; }
.container--narrow { max-width: 940px; }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--flush-b { padding-bottom: 0; }
.section--dark {
  background: var(--grad-deep);
  color: var(--text-invert);
}
.section--alt { background: var(--bg-alt); }
.section--mist { background: linear-gradient(180deg, var(--white) 0%, var(--teal-50) 55%, var(--white) 100%); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--sp-4); }
.flow > * + * { margin-top: var(--sp-5); }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  color: var(--navy);
  text-wrap: balance;
}
/* Every dark-ground context inverts its headings. Keep this list in sync with
   any new full-bleed dark section, or its headings will render navy-on-navy. */
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5,
.hero h1, .hero h2, .hero h3,
.phero h1, .phero h2, .phero h3,
.band h1, .band h2, .band h3,
.flowsec h1, .flowsec h2, .flowsec h3, .flowsec h4,
.book h1, .book h2, .book h3,
.duo__panel h3, .tech__cell h4,
.footer h1, .footer h2, .footer h3 { color: var(--white); }

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 800; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { text-wrap: pretty; }
.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: var(--maxw-text);
  line-height: 1.72;
}
.section--dark .lead { color: var(--text-invert-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand-r);
}
.section--dark .eyebrow { color: var(--teal-300); }
.eyebrow--aesth { color: var(--champagne-700); }
.eyebrow--aesth::before { background: var(--grad-aesth); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* keeps descenders from clipping */
  padding-bottom: .06em;
}
.section--dark .grad-text, .grad-text--inv {
  background: var(--grad-text-inv);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
.italic { font-style: italic; }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 1rem + 3vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head .lead { margin-top: var(--sp-4); }

/* ---------- 4. PRELOADER & CURSOR ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--grad-deep);
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: grid; place-items: center; gap: 1.6rem; }
.loader__mark { width: clamp(88px, 16vw, 132px); filter: drop-shadow(0 12px 34px rgba(34,181,201,.45)); }
.loader__mark path, .loader__mark polygon { }
.loader__bar {
  width: min(240px, 54vw); height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.loader__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
  transition: width .3s var(--ease-out);
}
.loader__pct {
  font-family: var(--font-display); font-size: var(--fs-xs);
  letter-spacing: var(--track-wide); color: var(--teal-300);
  font-variant-numeric: tabular-nums;
}

.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  pointer-events: none; border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(122, 221, 232, .9);
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              background-color .3s var(--ease-out), opacity .3s;
}
.cursor-dot { width: 5px; height: 5px; background: var(--teal-300); }
.cursor.is-hover { width: 62px; height: 62px; background: rgba(34,181,201,.18); border-color: transparent; }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- 5. NAVIGATION ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              height var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.nav.is-stuck::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-102%); }

/* Over the dark hero the bar is transparent, so its contents invert.
   Once it sticks, the glass panel appears and everything returns to ink. */
.nav:not(.is-stuck) .brand__name { color: #fff; }
.nav:not(.is-stuck) .brand__sub  { color: var(--teal-300); }
.nav:not(.is-stuck) .nav__link   { color: rgba(234, 246, 249, .78); }
.nav:not(.is-stuck) .nav__link:hover,
.nav:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }
.nav:not(.is-stuck) .nav__phone  { color: #fff; }
.nav:not(.is-stuck) .nav__phone svg { color: var(--teal-300); }
.nav:not(.is-stuck) .burger { border-color: rgba(122,221,232,.3); background: rgba(122,221,232,.09); }
.nav:not(.is-stuck) .burger span { background: #fff; }

.nav__row {
  width: 100%; max-width: 1560px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: var(--sp-5);
}

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { height: clamp(36px, 4vw, 46px); width: auto; transition: transform var(--t-med) var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(.95rem, .8rem + .5vw, 1.16rem);
  letter-spacing: -.02em; color: var(--navy);
  transition: color var(--t-med);
}
.brand__sub {
  font-size: .58rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--teal-700); font-weight: 700; margin-top: .28rem;
}
@media (max-width: 480px) { .brand__text { display: none; } }

.nav__links { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.6rem); margin-inline: auto; }
@media (max-width: 1080px) { .nav__links { display: none; } }

.nav__link {
  position: relative; font-size: var(--fs-sm); font-weight: 600;
  color: var(--slate-700); padding: .55rem .25rem; white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .2rem;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad-brand-r);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy);
  white-space: nowrap;
}
.nav__phone svg { width: 17px; height: 17px; color: var(--teal-600); }
@media (max-width: 720px) { .nav__phone span { display: none; } }
/* On small phones the bar can only hold brand + call + burger. Booking stays
   reachable via the drawer and the floating action buttons. */
@media (max-width: 560px) { .nav__actions > .btn { display: none; } }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: fixed; inset-inline: 0; top: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  padding: clamp(1.4rem, 2.5vw, 2.6rem) 0 clamp(1.6rem, 3vw, 2.8rem);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility var(--t-med);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem 1.4rem; }
@media (max-width: 1200px) { .mega__grid { grid-template-columns: repeat(3, 1fr); } }
.mega__item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .7rem .8rem; border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.mega__item:hover { background: var(--teal-50); transform: translateX(4px); }
.mega__ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.mega__ico svg { width: 21px; height: 21px; }
.mega__item:hover .mega__ico { background: var(--grad-brand); color: #fff; border-color: transparent; }
.mega__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.3; }
.mega__d { display: block; font-size: .78rem; color: var(--text-muted); line-height: 1.45; margin-top: .12rem; }
.mega__foot {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}

/* Burger + drawer */
.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,.7);
  position: relative; flex-shrink: 0;
}
@media (max-width: 1080px) { .burger { display: block; } }
.burger span {
  position: absolute; left: 50%; width: 19px; height: 1.8px; border-radius: 2px;
  background: var(--navy); transform: translateX(-50%);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateX(-50%) translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateX(-50%) translateY(-5.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--grad-deep);
  padding: calc(var(--nav-h) + 1.6rem) var(--gutter) 2rem;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 46px) 40px);
  transition: clip-path .74s var(--ease-inout);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; }
.drawer__links { display: grid; gap: .1rem; margin-bottom: 2rem; }
.drawer__link {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 2.3rem);
  color: var(--white); padding: .5rem 0;
  border-bottom: 1px solid rgba(122,221,232,.13);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(22px);
}
.drawer.is-open .drawer__link { animation: drawerIn .6s var(--ease-out) forwards; }
.drawer__link span { font-size: .7rem; color: var(--teal-400); font-family: var(--font-body); letter-spacing: .1em; }
.drawer__meta { color: var(--text-invert-muted); font-size: var(--fs-sm); display: grid; gap: .8rem; }
.drawer__meta a { color: var(--teal-300); font-weight: 600; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: .95rem 1.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: -.005em; border-radius: var(--r-pill);
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out), color var(--t-med);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--t-med) var(--ease-out); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.985); }
.btn:hover svg { transform: translateX(4px); }

/* While the pointer is over a magnetic button its transform is rewritten every
   frame, so the .45s spring would lag behind the cursor and wobble. Track
   quickly on the way in; keep the spring for the release. */
[data-magnetic].is-pulling { transition: transform .1s linear, box-shadow var(--t-med) var(--ease-out); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-teal); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-brand-r); opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 24px 54px -16px rgba(20,151,178,.66); }

.btn--ghost {
  color: var(--navy);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-700); box-shadow: var(--sh-md); }
.section--dark .btn--ghost, .hero .btn--ghost, .band .btn--ghost,
.phero .btn--ghost, .book .btn--ghost, .btn--ghost-inv {
  color: var(--white); border-color: rgba(122,221,232,.34); background: rgba(122,221,232,.08);
}
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .band .btn--ghost:hover,
.phero .btn--ghost:hover, .book .btn--ghost:hover, .btn--ghost-inv:hover {
  background: rgba(122,221,232,.18); border-color: var(--teal-400); color: #fff;
}

.btn--gold { background: var(--grad-aesth); color: #3B2411; box-shadow: 0 18px 44px -14px rgba(169,118,74,.5); }
.btn--lg { padding: 1.15rem 2.15rem; font-size: var(--fs-base); }
.btn--sm { padding: .7rem 1.25rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* Text link with animated arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--teal-700);
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink svg { width: 15px; height: 15px; transition: transform var(--t-med) var(--ease-out); }
.tlink:hover svg { transform: translateX(5px); }
.section--dark .tlink { color: var(--teal-300); }

/* ---------- 7. CARDS & COMPONENTS ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .9rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  background: var(--teal-50); color: var(--teal-800);
  border: 1px solid var(--teal-100);
}
.pill--dark { background: rgba(122,221,232,.1); color: var(--teal-200); border-color: rgba(122,221,232,.2); }
.pill--gold { background: var(--champagne-100); color: var(--champagne-700); border-color: var(--champagne-200); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(34,181,201,.2); }
.pill__dot--live { animation: pulseDot 2s var(--ease-inout) infinite; }

/* Media frame with lazy fade + placeholder tint */
.media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--mist);
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.media img.is-loaded { opacity: 1; transform: none; }
.media--ratio-1  { aspect-ratio: 1; }
.media--ratio-43 { aspect-ratio: 4/3; }
.media--ratio-34 { aspect-ratio: 3/4; }
.media--ratio-169{ aspect-ratio: 16/9; }
.media--ratio-tall { aspect-ratio: 5/7; }

.media__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,18,28,.86) 0%, rgba(4,18,28,.34) 42%, transparent 74%);
  opacity: .9;
}
.media__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 100%, rgba(34,181,201,.28), transparent 62%);
  mix-blend-mode: screen; opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}

/* Service card */
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 2.4vw, 2.15rem);
  min-height: clamp(260px, 26vw, 330px);
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.svc__bg {
  position: absolute; inset: 0; z-index: -2;
  opacity: 0; transform: scale(1.12);
  transition: opacity var(--t-slow) var(--ease-out), transform 1.4s var(--ease-out);
}
.svc__bg img { width: 100%; height: 100%; object-fit: cover; }
.svc__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(4,18,28,.92) 0%, rgba(8,71,94,.82) 55%, rgba(20,151,178,.7) 100%);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--sh-xl); border-color: transparent; }
.svc:hover .svc__bg { opacity: 1; transform: none; }
.svc:hover .svc__t, .svc:hover .svc__d, .svc:hover .svc__more { color: #fff; }
.svc:hover .svc__d { color: rgba(234,246,249,.8); }
.svc:hover .svc__ico { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.svc:hover .svc__num { color: rgba(255,255,255,.22); }

.svc__ico {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center;
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-700);
  margin-bottom: auto;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-spring);
}
.svc:hover .svc__ico { transform: rotate(-7deg) scale(1.08); }
.svc__ico svg { width: 30px; height: 30px; }
.svc__num {
  position: absolute; top: clamp(1.3rem, 2.2vw, 1.9rem); right: clamp(1.3rem, 2.2vw, 1.9rem);
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem;
  color: var(--mist); line-height: 1; transition: color var(--t-med);
}
.svc__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--navy); margin-top: 1.5rem; transition: color var(--t-med); }
.svc__d { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-top: .55rem; line-height: 1.6; transition: color var(--t-med); }
.svc__more {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-700); transition: color var(--t-med);
}
.svc__more svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.svc:hover .svc__more svg { transform: translateX(5px); }
.svc--gold .svc__ico { background: var(--champagne-100); border-color: var(--champagne-200); color: var(--champagne-700); }
.svc--gold .svc__more { color: var(--champagne-700); }
.svc--gold .svc__bg::after { background: linear-gradient(155deg, rgba(43,25,10,.92) 0%, rgba(169,118,74,.8) 60%, rgba(216,168,124,.7) 100%); }

/* Stat card */
.stats {
  position: relative; z-index: var(--z-raise);
  /* Solid, not glass. This card straddles the dark hero and the white section
     below it, and a backdrop-filter is not clipped to the border radius — the
     blurred hero leaked out as grey squares at all four corners. */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1.2rem, 2.6vw, 2.6rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; } }
.stat { display: flex; align-items: center; gap: 1rem; padding-inline: clamp(.4rem, 1.4vw, 1.3rem); position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
  background: linear-gradient(var(--border), transparent);
}
@media (max-width: 820px) { .stat:nth-child(odd)::before { display: none; } }
.stat__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-brand); color: #fff; box-shadow: var(--sh-teal);
}
.stat__ico svg { width: 24px; height: 24px; }
.stat__v { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat__l { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: .3rem; font-weight: 500; }

/* Feature / step card */
.step {
  position: relative; padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--r-lg);
  background: rgba(122,221,232,.05);
  border: 1px solid var(--border-dark);
  transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out);
}
.step:hover { background: rgba(122,221,232,.1); border-color: rgba(122,221,232,.32); transform: translateY(-5px); }
.step__n {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xs);
  letter-spacing: .18em; color: var(--teal-400);
}
.step__ico { width: 54px; height: 54px; color: var(--teal-300); margin: 1.1rem 0; }
.step__ico svg { width: 100%; height: 100%; }
.step h3 { font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); color: var(--text-invert-muted); margin-top: .5rem; }

/* Quote / testimonial */
.quote {
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.3vw, 2.1rem);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
  width: clamp(280px, 30vw, 400px); flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.quote__stars { display: flex; gap: .18rem; color: var(--champagne-500); }
.quote__stars svg { width: 16px; height: 16px; }
.quote__body { font-size: var(--fs-sm); color: var(--slate-700); line-height: 1.72; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .4rem; border-top: 1px solid var(--border); }
.quote__av {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 3px rgba(34,181,201,.14);
}
.quote__n { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); }
.quote__m { display: block; font-size: .75rem; color: var(--text-muted); }

/* Accordion */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: clamp(1.1rem, 1.8vw, 1.6rem) 0; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--navy);
  transition: color var(--t-fast);
}
.acc__btn:hover { color: var(--teal-700); }
.acc__sign { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-spring); }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--teal-700);
  transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med);
}
.acc__sign::before { width: 12px; height: 1.6px; }
.acc__sign::after  { width: 1.6px; height: 12px; }
.acc__item.is-open .acc__sign { background: var(--grad-brand); border-color: transparent; transform: rotate(180deg); }
.acc__item.is-open .acc__sign::before, .acc__item.is-open .acc__sign::after { background: #fff; }
.acc__item.is-open .acc__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__panel { overflow: hidden; height: 0; transition: height var(--t-med) var(--ease-out); }
.acc__inner { padding-bottom: 1.5rem; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.75; max-width: 62ch; }

/* Before/After comparison slider */
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: ew-resize; user-select: none;
  box-shadow: var(--sh-lg); background: var(--mist);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: rgba(255,255,255,.95); transform: translateX(-50%);
  box-shadow: 0 0 22px rgba(4,18,28,.4);
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.96); box-shadow: var(--sh-md);
  display: grid; place-items: center; color: var(--navy);
}
.ba__knob svg { width: 22px; height: 22px; }
.ba__tag {
  position: absolute; bottom: 1rem; padding: .34rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(4,18,28,.6); color: #fff; backdrop-filter: blur(8px);
}
.ba__tag--l { left: 1rem; } .ba__tag--r { right: 1rem; }

/* Marquee */
.marquee { position: relative; overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee--fade::before, .marquee--fade::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(50px, 10vw, 160px); z-index: 2; pointer-events: none;
}
.marquee--fade::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee--fade::after  { right: 0; background: linear-gradient(-90deg, var(--bg-alt), transparent); }

.cred {
  display: inline-flex; align-items: center; gap: .9rem;
  padding-inline: clamp(1.2rem, 2.4vw, 2.4rem);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.9rem, .7rem + .8vw, 1.5rem);
  letter-spacing: -.015em; color: var(--navy); white-space: nowrap;
}
.cred__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); flex-shrink: 0; }
.cred--muted { color: var(--slate-400); }

/* ---------- 8. SECTIONS ---------- */

/* HERO */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 5rem));
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
  overflow: hidden; isolation: isolate;
  background: var(--grad-deep); color: var(--text-invert);
}
.hero__bg { position: absolute; inset: -10% 0 0; z-index: -3; }
.hero__bg img { width: 100%; height: 118%; object-fit: cover; opacity: .3; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 18% 22%, rgba(8,71,94,.72), transparent 62%),
    radial-gradient(70% 60% at 82% 78%, rgba(34,181,201,.3), transparent 60%),
    linear-gradient(175deg, rgba(4,18,28,.92) 0%, rgba(4,18,28,.72) 45%, rgba(4,18,28,.95) 100%);
}
.hero__mesh {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background:
    radial-gradient(38% 40% at 12% 18%, rgba(34,181,201,.42), transparent 70%),
    radial-gradient(32% 36% at 88% 30%, rgba(13,46,76,.85), transparent 72%),
    radial-gradient(46% 44% at 62% 86%, rgba(122,221,232,.24), transparent 72%);
  filter: blur(28px);
  animation: meshDrift 26s var(--ease-inout) infinite alternate;
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .3;
  background-image:
    linear-gradient(rgba(122,221,232,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,221,232,.09) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 72%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center; width: 100%;
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__title { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -.045em; line-height: .98; color: var(--white); }
.hero__title .split-line { display: block; overflow: hidden; }
.hero__title .split-line > span { display: block; padding-bottom: .08em; }
.hero__lead { margin-top: clamp(1rem, 1.6vw, 1.5rem); font-size: var(--fs-md); color: var(--text-invert-muted); max-width: 54ch; }
.hero__cta { margin-top: clamp(1.4rem, 2.3vw, 2rem); display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__badges { margin-top: clamp(1.2rem, 2vw, 1.7rem); display: flex; flex-wrap: wrap; gap: .6rem; }

/* 3D tooth stage */
.hero__stage { position: relative; aspect-ratio: 1; max-height: 66svh; margin-inline: auto; width: 100%; }
@media (max-width: 980px) { .hero__stage { max-height: 44svh; order: -1; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__ring {
  position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid rgba(122,221,232,.16);
  animation: spinSlow 34s linear infinite;
}
.stage__ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-400); box-shadow: 0 0 18px 4px rgba(69,201,217,.7); transform: translateX(-50%);
}
.stage__ring--2 { inset: 20%; animation-duration: 22s; animation-direction: reverse; border-style: dashed; border-color: rgba(122,221,232,.1); }
.stage__glow {
  position: absolute; inset: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(34,181,201,.4), transparent 66%);
  filter: blur(38px); animation: breathe 7s var(--ease-inout) infinite;
}
/* Fallback shown when WebGL is unavailable or three.js fails to load */
.hero__fallback {
  position: absolute; inset: 0; display: none; place-items: center; padding: 12%;
}
.hero__stage.no-webgl .hero__fallback { display: grid; }
.hero__stage.no-webgl .hero__canvas { display: none; }
.hero__fallback img {
  width: 100%; height: auto;
  filter: drop-shadow(0 26px 60px rgba(34,181,201,.45));
  animation: floatY 7s var(--ease-inout) infinite;
}

/* Floating hero chips */
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .95rem; border-radius: var(--r-pill);
  background: rgba(7,30,46,.62); border: 1px solid rgba(122,221,232,.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-md); white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; color: var(--teal-300); }
.chip__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: #fff; }
.chip__s { display: block; font-size: .68rem; color: var(--text-invert-muted); }
.chip--1 { top: 12%; left: -4%; }
.chip--2 { bottom: 22%; right: -2%; }
.chip--3 { top: 46%; right: 2%; }
@media (max-width: 980px) { .chip--3 { display: none; } .chip--1 { left: 0; } .chip--2 { right: 0; } }
@media (max-width: 560px) { .chip { display: none; } }

.scroll-cue {
  position: absolute; bottom: clamp(1.4rem, 3vw, 2.4rem); left: 50%; transform: translateX(-50%);
  z-index: 4; display: grid; justify-items: center; gap: .6rem;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-invert-muted);
}
.scroll-cue__rail { width: 1px; height: 46px; background: rgba(122,221,232,.2); position: relative; overflow: hidden; }
.scroll-cue__rail::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--teal-400); animation: railRun 2.1s var(--ease-inout) infinite;
}

/* Split "two worlds" */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo__panel {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  min-height: clamp(400px, 52vw, 620px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 3rem);
  isolation: isolate; color: #fff;
}
.duo__panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.3s var(--ease-out);
}
.duo__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: opacity var(--t-slow) var(--ease-out);
}
.duo__panel--surgical::after { background: linear-gradient(160deg, rgba(4,18,28,.5) 0%, rgba(8,71,94,.76) 55%, rgba(4,18,28,.94) 100%); }
.duo__panel--aesthetic::after { background: linear-gradient(160deg, rgba(43,25,10,.42) 0%, rgba(120,80,48,.7) 55%, rgba(30,18,8,.92) 100%); }
.duo__panel:hover img { transform: scale(1.11); }
.duo__badge {
  position: absolute; top: clamp(1.4rem, 2.4vw, 2.2rem); left: clamp(1.6rem, 3vw, 3rem);
  z-index: 2;
}
.duo__ico { width: 62px; height: 62px; margin-bottom: 1.2rem; color: #fff; opacity: .95; }
.duo__ico svg { width: 100%; height: 100%; }
.duo__panel h3 { font-size: var(--fs-xl); color: #fff; }
.duo__panel p { color: rgba(255,255,255,.78); font-size: var(--fs-sm); margin-top: .8rem; max-width: 42ch; }
.duo__list { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.duo__list span {
  font-size: var(--fs-xs); font-weight: 600; padding: .34rem .8rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.duo__panel .btn { margin-top: 1.8rem; align-self: flex-start; }

/* Parallax band */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(440px, 62vw, 720px);
  display: grid; place-items: center; text-align: center;
  color: #fff; padding-block: var(--section-y);
}
.band__bg { position: absolute; inset: -14% 0; z-index: -2; will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,18,28,.9) 0%, rgba(8,71,94,.78) 50%, rgba(4,18,28,.94) 100%);
}
.band__q { font-size: var(--fs-2xl); max-width: 20ch; margin-inline: auto; line-height: 1.14; }
.band__scan {
  position: absolute; inset-inline: 0; height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(69,201,217,.16), transparent);
  animation: scanSweep 6s var(--ease-inout) infinite;
}

/* Pinned horizontal workflow */
.flowsec { position: relative; background: var(--grad-deep); color: var(--text-invert); overflow: hidden; }
.flow-track { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); will-change: transform; padding-inline: var(--gutter); }
.flow-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  background: rgba(122,221,232,.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 2.4vw, 2.3rem);
  min-height: clamp(330px, 34vw, 420px);
  display: flex; flex-direction: column;
  transition: background-color var(--t-med), border-color var(--t-med);
}
.flow-card:hover { background: rgba(122,221,232,.1); border-color: rgba(122,221,232,.3); }
.flow-card__n {
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1;
  background: var(--grad-text-inv); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flow-card__ico { width: 62px; height: 62px; color: var(--teal-300); margin: 1.4rem 0 auto; }
.flow-card__ico svg { width: 100%; height: 100%; }
.flow-card h3 { font-size: var(--fs-md); margin-top: 1.4rem; }
.flow-card p { font-size: var(--fs-sm); color: var(--text-invert-muted); margin-top: .6rem; }
.flow-intro { flex: 0 0 clamp(300px, 34vw, 480px); }
.flow-progress { height: 2px; background: rgba(122,221,232,.14); border-radius: 2px; overflow: hidden; margin-top: 2.4rem; }
.flow-progress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal-600), var(--teal-300)); border-radius: 2px; }

/* Doctor / about */
.doc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.doc__frame { position: relative; }
.doc__photo {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  aspect-ratio: 4/5; background: var(--grad-deep);
  display: grid; place-items: center;
  /* Tight and low-spread. The old --sh-xl threw a wide 90px halo that read as
     a dirty grey smudge around the corners against the white page, and the
     offset outline that used to sit behind it added to the muddle. */
  box-shadow: 0 22px 48px -22px rgba(8, 40, 66, .34);
}
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Marks the stand-in portrait so it can't quietly ship as the real thing.
   Delete this rule and the matching <span> once the real photo is in. */
.doc__ph-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  padding: .34rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: rgba(4, 18, 28, .62); color: var(--teal-200);
  border: 1px solid rgba(122, 221, 232, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.doc__ph { display: grid; place-items: center; gap: 1rem; text-align: center; padding: 2rem; }
.doc__ph img { width: clamp(90px, 16vw, 140px); height: auto; opacity: .9; }
.doc__ph p { font-size: var(--fs-xs); color: var(--text-invert-muted); letter-spacing: .1em; text-transform: uppercase; max-width: 26ch; line-height: 1.7; }
.doc__plate {
  /* Sits fully inside the frame so all four corners stay visible — it used to
     overhang the right edge, which cut the corner off. Solid rather than glass:
     a backdrop-filter is not clipped to the radius and leaks at the corners. */
  position: absolute;
  right: clamp(.9rem, 2vw, 1.5rem);
  bottom: clamp(.9rem, 2vw, 1.5rem);
  left: clamp(.9rem, 2vw, 1.5rem);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 12px 30px -12px rgba(8, 40, 66, .3);
  padding: .9rem 1.2rem; display: grid; gap: .15rem;
}
.doc__plate strong { font-family: var(--font-display); font-size: var(--fs-base); color: var(--navy); letter-spacing: -.02em; }
.doc__plate span { font-size: var(--fs-xs); color: var(--teal-700); font-weight: 600; }
.creds { display: grid; gap: .1rem; margin-top: 2rem; }
.cred-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .95rem 0; border-bottom: 1px solid var(--border);
}
.cred-row__ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.cred-row__ico svg { width: 18px; height: 18px; }
.cred-row__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--navy); }
.cred-row__d { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: .12rem; }

/* Gallery masonry */
.masonry { columns: 3; column-gap: clamp(.7rem, 1.4vw, 1.2rem); }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 520px) { .masonry { columns: 1; } }
.masonry .media { break-inside: avoid; margin-bottom: clamp(.7rem, 1.4vw, 1.2rem); }
.masonry .media:hover .media__glow { opacity: 1; }
.masonry .media img { transition: transform 1.1s var(--ease-out), opacity .8s var(--ease-out); }
.masonry .media:hover img.is-loaded { transform: scale(1.06); }

/* Tech strip */
/* Fixed column count so the eight cells always fill complete rows — auto-fit
   left a block of empty cells showing the grid's own background. */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1000px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .tech { grid-template-columns: 1fr; } }
.tech__cell { background: rgba(4,18,28,.55); padding: clamp(1.3rem, 2.2vw, 2rem); transition: background-color var(--t-med); }
.tech__cell:hover { background: rgba(122,221,232,.09); }
.tech__cell svg { width: 34px; height: 34px; color: var(--teal-300); }
.tech__cell h4 { font-size: var(--fs-sm); margin-top: 1rem; color: #fff; }
.tech__cell p { font-size: var(--fs-xs); color: var(--text-invert-muted); margin-top: .35rem; line-height: 1.6; }

/* ---------- 9. FORMS ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; display: grid; gap: .45rem; }
.field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--white); color: var(--text); font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B8494' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 17px;
  padding-right: 2.6rem; cursor: pointer;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(34,181,201,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field--dark label { color: var(--teal-300); }
.field--dark input, .field--dark select, .field--dark textarea {
  background: rgba(122,221,232,.06); border-color: rgba(122,221,232,.2); color: #fff;
  /* makes the native date picker + its icon render for a dark ground */
  color-scheme: dark;
}
.field--dark input::placeholder, .field--dark textarea::placeholder { color: rgba(234,246,249,.42); }
.field--dark select { color: #fff; }
.field--dark select option { background: var(--ink-2); color: #fff; }
.field__err { font-size: var(--fs-xs); color: #E4634F; display: none; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #E4634F; }
.field.has-err .field__err { display: block; }

.form__note { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.section--dark .form__note { color: var(--text-invert-muted); }
.form__ok {
  display: none; align-items: center; gap: .7rem;
  padding: .9rem 1.1rem; border-radius: var(--r-md);
  background: rgba(34,181,201,.12); border: 1px solid rgba(34,181,201,.32);
  color: var(--teal-800); font-size: var(--fs-sm); font-weight: 600;
}
.section--dark .form__ok { color: var(--teal-200); }
.form__ok.is-shown { display: flex; }
.form__ok svg { width: 19px; height: 19px; flex-shrink: 0; }

/* Booking CTA panel */
.book {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  background: var(--grad-deep); color: var(--text-invert);
  padding: clamp(1.8rem, 4vw, 3.6rem);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 4vw, 4rem); align-items: center;
  box-shadow: var(--sh-xl);
}
@media (max-width: 920px) { .book { grid-template-columns: 1fr; } }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 88% 12%, rgba(34,181,201,.3), transparent 66%),
              radial-gradient(50% 50% at 4% 92%, rgba(122,221,232,.16), transparent 68%);
}
.book > * { position: relative; z-index: 1; }
.book__panel {
  background: rgba(4,18,28,.42); border: 1px solid var(--border-dark);
  border-radius: var(--r-xl); padding: clamp(1.3rem, 2.4vw, 2rem);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.book__ways { display: grid; gap: .7rem; margin-top: 1.8rem; }
.book__way {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--border-dark); background: rgba(122,221,232,.05);
  transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out);
}
.book__way:hover { background: rgba(122,221,232,.11); border-color: rgba(122,221,232,.3); transform: translateX(5px); }
.book__way svg { width: 20px; height: 20px; color: var(--teal-300); flex-shrink: 0; }
.book__way b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: #fff; font-weight: 700; }
.book__way > span { display: block; }
.book__way span span { display: block; font-size: var(--fs-xs); color: var(--text-invert-muted); }

/* ---------- 10. FOOTER ---------- */
.footer { background: var(--ink); color: var(--text-invert); padding-top: var(--section-y); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,221,232,.4), transparent);
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: clamp(1.6rem, 3vw, 3rem); }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 54px; width: auto; }
.footer h4 { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-300); font-weight: 700; margin-bottom: 1.1rem; }
.footer__list { display: grid; gap: .7rem; }
.footer__list a, .footer__list li { font-size: var(--fs-sm); color: var(--text-invert-muted); transition: color var(--t-fast); }
.footer__list a:hover { color: var(--teal-300); }
.contact-row { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-invert-muted); }
.contact-row svg { width: 17px; height: 17px; color: var(--teal-400); flex-shrink: 0; margin-top: .22rem; }
.contact-row a:hover { color: var(--teal-300); }
.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-dark); color: var(--teal-200);
  transition: background-color var(--t-med), transform var(--t-med) var(--ease-spring), border-color var(--t-med), color var(--t-med);
}
.socials a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-4px); border-color: transparent; }
.socials svg { width: 18px; height: 18px; }
.footer__map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-dark); aspect-ratio: 16/7; margin-top: clamp(2.4rem, 4vw, 3.6rem); background: var(--ink-2); }
.footer__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.86) hue-rotate(165deg); }
.footer__bot {
  margin-top: clamp(2rem, 3.4vw, 3rem); padding-block: 1.6rem;
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: var(--text-invert-muted);
}
.footer__bot a:hover { color: var(--teal-300); }

/* Hours table */
.hours { display: grid; gap: .55rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); color: var(--text-invert-muted); }
.hours__row b { color: var(--text-invert); font-weight: 600; }
.hours__row--closed b { color: var(--slate-400); }

/* Page hero (inner pages) */
.phero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 7vw, 7rem));
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  background: var(--grad-deep); color: var(--text-invert);
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 20% 20%, rgba(8,71,94,.6), transparent 65%),
              linear-gradient(180deg, rgba(4,18,28,.86), rgba(4,18,28,.94));
}
.crumbs { display: flex; gap: .55rem; align-items: center; font-size: var(--fs-xs); color: var(--text-invert-muted); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--teal-300); }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; }
.pull-up { margin-top: clamp(-6.5rem, -7vw, -4.5rem); }
.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;
}
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.divider-wave { display: block; width: 100%; height: auto; }

/* WhatsApp / call floating actions */
.fab-stack {
  position: fixed; right: clamp(.9rem, 2vw, 1.6rem); bottom: clamp(.9rem, 2vw, 1.6rem);
  z-index: 90; display: grid; gap: .7rem;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--sh-lg);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med);
}
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: linear-gradient(140deg, #34D97A, #1FA855); }
.fab--call { background: var(--grad-brand); }
.fab::after {
  content: attr(data-label);
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .4rem .7rem; border-radius: var(--r-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast);
}
.fab { position: relative; }
.fab:hover::after { opacity: 1; transform: translateY(-50%); }
@media (max-width: 560px) { .fab { width: 48px; height: 48px; } .fab svg { width: 23px; height: 23px; } .fab::after { display: none; } }

/* ==========================================================================
   11. INNER PAGE COMPONENTS
   ========================================================================== */

/* Anchor targets must clear the fixed nav */
:target { scroll-margin-top: calc(var(--nav-h) + 24px); }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* --- Category chip nav (services index) --- */
.chipnav { display: flex; flex-wrap: wrap; gap: .55rem; }
.chipnav__i {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.05rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--white);
  font-size: var(--fs-sm); font-weight: 600; color: var(--slate-700);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med),
              border-color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.chipnav__i svg { color: var(--teal-600); transition: color var(--t-med); }
.chipnav__i:hover {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  transform: translateY(-3px); box-shadow: var(--sh-teal);
}
.chipnav__i:hover svg { color: #fff; }

/* --- Expanded service block --- */
.svcx-list { display: grid; gap: clamp(3.5rem, 7vw, 7.5rem); }
.svcx {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center;
}
.svcx--flip .svcx__media { order: 2; }
@media (max-width: 880px) {
  .svcx { grid-template-columns: 1fr; gap: 1.8rem; }
  .svcx--flip .svcx__media { order: 0; }
}
.svcx__media .media { box-shadow: var(--sh-lg); }
.svcx__media .media img { transition: transform 1.2s var(--ease-out), opacity .8s var(--ease-out); }
.svcx:hover .svcx__media .media img.is-loaded { transform: scale(1.045); }
.svcx:hover .media__glow { opacity: 1; }

.svcx__ico {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-700);
  margin-bottom: 1.4rem;
  transition: transform var(--t-med) var(--ease-spring);
}
.svcx:hover .svcx__ico { transform: rotate(-7deg) scale(1.06); }
.svcx__body h2 { font-size: var(--fs-xl); }
.svcx--gold .svcx__ico { background: var(--champagne-100); border-color: var(--champagne-200); color: var(--champagne-700); }

.ticks { display: grid; gap: .7rem; }
.ticks li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--slate-700); line-height: 1.6;
}
.ticks svg { color: var(--teal-600); flex-shrink: 0; margin-top: .3rem; }
.svcx--gold .ticks svg { color: var(--champagne-700); }
.section--dark .ticks li { color: var(--text-invert-muted); }

/* --- Principle card --- */
.pcard {
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--teal-200); }
.pcard__ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--sh-teal); margin-bottom: 1.2rem;
}
.pcard h3 { font-size: var(--fs-md); }
.pcard p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .5rem; line-height: 1.65; }

/* --- Media caption --- */
.media__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.4rem 1.1rem .95rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(4,18,28,.86), transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.media:hover .media__cap { opacity: 1; transform: none; }

/* --- Light variants used on the contact page --- */
.book__way--light {
  border-color: var(--border); background: var(--white); box-shadow: var(--sh-xs);
}
.book__way--light:hover { background: var(--teal-50); border-color: var(--teal-200); }
.book__way--light svg { color: var(--teal-600); }
.book__way--light b { color: var(--navy); }
.book__way--light span span { color: var(--text-muted); }

.hours--light .hours__row { color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: .55rem; }
.hours--light .hours__row b { color: var(--navy); }

/* --- Full-bleed map --- */
.mapwrap {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  height: clamp(320px, 46vw, 560px);
  border-top: 1px solid var(--border);
  background: var(--mist);
}
.mapwrap iframe { width: 100%; height: 100%; border: 0; }

/* --- Page hero heading sizing --- */
.phero h1 { font-size: var(--fs-3xl); }
.phero .lead { max-width: 60ch; }
