@charset "UTF-8";
/* ============================================================
   FIX MY TEETH — HOME, REVISED SECTIONS

   Loaded after home.css and overrides it where the composition
   changed. Kept separate so the original decisions stay legible
   next to the revision rather than being silently overwritten.

   01  Hero — full-bleed
   02  Three Pillars as spotlight cards
   03  The mouth-body band
   04  What We Won't Do — centred
   05  The clinic tour
   06  Dental tourism band
   ============================================================ */

/* ============================================================
   01  HERO — FULL-BLEED

   The photography is the hero. The headline sits on it rather than
   beside it, which is the whole change: the old right-hand panel
   made the clinic a thumbnail next to the words.
   ============================================================ */

.hero-full {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78vh, 46rem);
  min-height: clamp(30rem, 78svh, 46rem);
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

/* Taller than the section it sits in, so the parallax can shift it
   without ever exposing an edge. */
.hero-full .hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  will-change: transform;
}

.hero-full .hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-full .hero-slide.is-active {
  opacity: 1;
}

/* On a phone the scrim is doing a different job.

   The desktop gradient is weighted to the left because the headline sits in a
   left column against photography. A phone has no left column - the text is
   stacked at the bottom over the film - so that same gradient just paints the
   top of the frame nearly opaque and hides the clinic.

   Vertical instead: near-clear at the top so the rooms read, deepening only
   where the type actually lands. Measured on the live frames at 5.4:1 for the
   lede, which clears AA. */
@media (max-width: 47.99rem) {
  .hero-scrim {
    background: linear-gradient(
      to top,
      rgba(26, 18, 11, 0.88) 0%,
      rgba(26, 18, 11, 0.78) 30%,
      rgba(26, 18, 11, 0.34) 62%,
      rgba(26, 18, 11, 0.12) 100%
    );
  }
}

/* The hero film, phone only.

   Desktop never shows it and never downloads it - the script withholds the
   source above the breakpoint. Below it, the film replaces the photography
   rather than sitting on top of it, so only one thing is painting. */
.hero-video {
  display: none;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 47.99rem) {
  .hero-video {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* One or the other, never both. */
  .hero-full .hero-bg {
    display: none;
  }
}

.hero-full .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The scrim is weighted to the side the text occupies rather than
   dimming the whole frame — a flat overlay would kill the
   photograph to protect the type. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(26, 18, 11, 0.94) 0%,
      rgba(26, 18, 11, 0.86) 28%,
      rgba(26, 18, 11, 0.55) 55%,
      rgba(26, 18, 11, 0.28) 78%,
      rgba(26, 18, 11, 0.35) 100%
    ),
    /* A second, vertical pass so the bottom edge carries the text
       even on a pale photograph. */
    linear-gradient(
      to top,
      rgba(26, 18, 11, 0.55),
      transparent 42%
    );
}

@media (max-width: 62rem) {
  .hero-scrim {
    background: linear-gradient(
      to top,
      rgba(26, 18, 11, 0.95) 12%,
      rgba(26, 18, 11, 0.82) 45%,
      rgba(26, 18, 11, 0.62) 100%
    );
  }
}

.hero-full .hero-inner {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-full .hero-copy {
  max-width: 44ch;
}

.hero-full .hero-copy h1 {
  max-width: 16ch;
  color: var(--parchment);
}

.hero-full .hero-sub {
  color: var(--sand);
  max-width: 44ch;
}

.hero-full .hero-hours {
  color: var(--sand);
}

.hero-full .hero-hours svg {
  color: var(--gold);
}

/* On a photograph the guilloche is a highlight, not an engraving. */
.hero-full .guilloche--hero {
  z-index: 1;
  opacity: 0.22;
  left: -18rem;
}

.hero-full .guilloche circle {
  stroke: var(--parchment);
}

@media (max-width: 62rem) {
  .hero-full .guilloche--hero {
    opacity: 0.1;
  }
}

/* ============================================================
   02  THREE PILLARS AS SPOTLIGHT CARDS

   The trust bar's treatment, carrying content that earns it. The
   glow mechanism is inherited from .trust-bar / [data-glow]; the
   transform ban applies here exactly as it did there.
   ============================================================ */

.pillars-band .section-head {
  border-top-color: var(--on-ink-rule);
  margin-bottom: var(--sp-6);
}

.pillar-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar-card {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border: 1px solid var(--on-ink-rule);
  border-radius: var(--r-card);
  background-color: rgba(253, 250, 243, 0.03);
  overflow: hidden;
}

.pillar-card .pillar-no {
  margin-bottom: 0;
  color: var(--on-ink-gold);
}

.pillar-card .pillar-name {
  margin-bottom: 0;
  color: var(--on-ink-text);
}

.pillar-card .pillar-body {
  color: var(--on-ink-soft);
}

/* The glow, on the same mechanism as the old trust bar. */
@media (hover: hover) and (pointer: fine) {
  .pillar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    background-image: radial-gradient(
      26rem 26rem at var(--x, 50%) var(--y, 50%),
      rgba(200, 145, 22, 0.2),
      transparent 62%
    );
    background-attachment: fixed;
  }

  .pillar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    padding: 1px;
    background-image: radial-gradient(
      20rem 20rem at var(--x, 50%) var(--y, 50%),
      rgba(200, 145, 22, 0.8),
      transparent 60%
    );
    background-attachment: fixed;
    -webkit-mask: linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .pillars-band:hover .pillar-card::before,
  .pillars-band:hover .pillar-card::after {
    opacity: 1;
  }

  .pillar-card > * {
    position: relative;
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-card::before,
  .pillar-card::after {
    transition: none;
  }
}

/* ============================================================
   03  THE MOUTH-BODY BAND
   ============================================================ */

.mouth-body {
  padding-bottom: 0;
}

.mouth-body-head {
  max-width: 44ch;
}

.mouth-body-head .display {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

/* This band sits on Cream, not Ink.
 *
 * It was Ink, and the page then ran dark for five sections straight — hero,
 * pillars, mouth-body, founder, research — which inverts the whole system:
 * light with dark accents becomes dark with light gaps. The inversions are
 * meant to be three punctuation marks. This one steps back to Cream so the
 * top of the page breathes.
 *
 * Consequence for colour: Gold #C89116 measures 2.34:1 on Cream and fails.
 * Every gold-toned mark in this section is Gold Deep, at 4.60:1. */
.mouth-body-head .display em {
  font-style: italic;
  color: var(--gold-deep);
}

.mouth-body .section-mark {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  color: var(--text-gold);
}

.mouth-body-sub {
  margin-top: var(--sp-4);
  font-family: var(--display);
  font-style: italic;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 400;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--text-gold);
}

.mouth-body-copy {
  max-width: 60ch;
  margin-top: var(--sp-6);
}

.mouth-body-copy p {
  color: var(--text-soft);
}

@media (min-width: 62rem) {
  .mouth-body .frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .mouth-body-copy {
    margin-top: 0;
    padding-top: var(--sp-5);
  }
}

.mouth-body-scroller {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 0;
}

/* ============================================================
   04  WHAT WE WON'T DO — CENTRED
   ============================================================ */

.wont-band .wont-do {
  max-width: 64ch;
  margin-inline: auto;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--gold);
  text-align: center;
}

.wont-band .wont-do h2 {
  margin-bottom: var(--sp-4);
}

.wont-band .wont-do p {
  margin-inline: auto;
  max-width: 58ch;
}

/* ============================================================
   05  THE CLINIC TOUR
   ============================================================ */

.tour-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .tour-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.tour-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--rule);
  /* The brand's double rule — this is a framed object, like the
     hero panel used to be. */
  outline: 1px solid var(--rule-soft);
  outline-offset: 5px;
  background: var(--panel-deep);
}

.tour-stage .hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.tour-stage .hero-slide.is-active {
  opacity: 1;
}

.tour-stage img,
.tour-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .tour-stage .hero-slide {
    transition: none;
  }
}

.tour-copy h2 {
  margin-bottom: var(--sp-4);
  max-width: 16ch;
}

.tour-copy p {
  max-width: 46ch;
  color: var(--text-soft);
}

/* ============================================================
   06  DENTAL TOURISM BAND

   Centred and full-width, because it is the one section addressed
   to a different reader — and a band is how a page changes who it
   is talking to.
   ============================================================ */

.tourism-band .tourism-inner {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.tourism-band .section-mark {
  display: inline-block;
  margin-bottom: var(--sp-4);
  padding-top: 0;
  border-top: 0;
  font-family: var(--caps);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-gold);
}

.tourism-band h2 {
  margin-bottom: var(--sp-4);
}

.tourism-band .lede {
  margin-inline: auto;
}

.tourism-band .btn-quiet {
  margin-top: var(--sp-5);
}
