/* ==========================================================================
   Direction 01 — Precision
   A single-page, dark, scroll-led site with restrained image motion.
   ========================================================================== */

.precision {
  background: var(--navy-900);
  color: white;
  --gold-text: var(--gold);
}

/* Scroll progress ---------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

/* Header ------------------------------------------------------------------- */

.p-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}

.p-header[data-stuck] {
  background: rgb(3 13 26 / 82%);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--on-dark-faint);
}

.p-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  width: min(100% - var(--gutter) * 2, 1440px);
  height: 96px;
  margin-inline: auto;
  transition: height .4s var(--ease);
}

.p-header[data-stuck] .p-header-inner { height: 72px; }

.p-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 40px); font-size: 14px; }

.p-nav a {
  position: relative;
  padding: 8px 0;
  color: rgb(255 255 255 / 76%);
  transition: color .25s var(--ease);
}

.p-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}

.p-nav a:hover, .p-nav a[aria-current="true"] { color: white; }
.p-nav a:hover::after, .p-nav a[aria-current="true"]::after { right: 0; }

.p-actions { display: flex; align-items: center; gap: 20px; }
.p-phone { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 76%); }
.p-phone:hover { color: var(--gold); }

.p-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  background: none;
  cursor: pointer;
}

.p-toggle span { display: block; width: 18px; height: 1.5px; margin: 2.5px 0; background: currentColor; transition: transform .3s var(--ease); }
.p-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.p-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.p-mobile {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 var(--gutter);
  background: var(--navy-900);
}

.p-mobile a { padding: 16px 0; border-bottom: 1px solid var(--on-dark-faint); font-family: var(--serif); font-size: 34px; }
.p-mobile .button { margin-top: 28px; }

/* Hero --------------------------------------------------------------------- */

.p-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: -96px;
  padding-top: 96px;
}

.p-hero-media {
  position: absolute;
  inset: -10% 0 0;
  height: 120%;
  background: url("../assets/dental-treatment.jpg") center 44% / cover no-repeat;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(var(--zoom, 1));
  will-change: transform;
}

.p-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgb(3 13 26 / 96%) 0%, rgb(3 13 26 / 80%) 38%, rgb(3 13 26 / 24%) 72%, rgb(3 13 26 / 6%) 100%),
    linear-gradient(0deg, rgb(3 13 26 / 96%) 0%, rgb(3 13 26 / 40%) 26%, rgb(3 13 26 / 0%) 52%);
}

.p-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, 1440px);
  margin-inline: auto;
  opacity: var(--fade, 1);
  transform: translate3d(0, calc(var(--rise, 0) * -1px), 0);
}

.p-hero h1 {
  max-width: 13ch;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}

.p-hero-support { max-width: 46ch; margin: 26px 0 0; color: rgb(255 255 255 / 80%); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.p-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.p-scroll-cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; }

@keyframes cue { 0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Marquee ------------------------------------------------------------------ */

.p-marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--on-dark-faint);
  background: var(--navy);
}

.p-marquee ul {
  display: flex;
  gap: 56px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 42s linear infinite;
}

.p-marquee li {
  display: flex;
  align-items: center;
  gap: 56px;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.p-marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.p-marquee:hover ul { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Pinned capability stack -------------------------------------------------- */

.p-stack { position: relative; padding: clamp(72px, 8vw, 112px) 0; background: var(--navy-900); }

.p-stack-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.p-stack-intro { position: sticky; top: 140px; }
.p-stack-intro h2 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.025em; }
.p-stack-intro > p { max-width: 40ch; margin: 22px 0 32px; color: var(--on-dark); }
.p-stack-photo { width: 100%; margin-top: 34px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--on-dark-faint); }

.p-cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.p-card {
  position: relative;
  padding: 30px 32px;
  border: 1px solid var(--on-dark-faint);
  /* The composited result of a 4% white wash over --navy-900, stated directly.
     Measured contrast on this: 18:1 for the heading, 8.3:1 for the body copy.
     (accesslint reports 1:1 here — a false positive; verified in-browser.) */
  background: #0d1723;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.p-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgb(201 154 75 / 14%), transparent 45%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.p-card:hover { border-color: rgb(201 154 75 / 45%); transform: translateY(-3px); }
.p-card:hover::before { opacity: 1; }

.p-card > * { position: relative; }
.p-card-index { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.p-card h3 { margin: 14px 0 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.12; }
.p-card p { margin: 10px 0 0; max-width: 52ch; color: rgb(255 255 255 / 66%); font-size: 15px; }

/* Brand mark --------------------------------------------------------------- */

.p-explode { position: relative; background: var(--navy-900); }

.p-explode-pin {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(16px, 2vh, 24px);
  padding: clamp(82px, 10vh, 104px) var(--gutter) clamp(32px, 5vh, 48px);
  overflow: hidden;
}

.p-explode-copy { width: min(100%, 620px); text-align: center; }
.p-explode-copy h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; }
.p-explode-copy p { margin: 16px auto 0; max-width: 46ch; color: var(--on-dark); font-size: 16px; }

.p-explode-stage {
  position: relative;
  align-self: center;
  width: min(70vw, 46vh, 460px);
  aspect-ratio: 605.7 / 575;
  margin: 0;
}

.p-logo-normal {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Parallax reveal bands ---------------------------------------------------- */

.p-band { position: relative; height: 92vh; min-height: 540px; overflow: hidden; display: grid; align-items: center; }

.p-band-media {
  position: absolute;
  inset: -14% 0;
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.p-band-1 .p-band-media { background-image: url("../assets/showroom-classic.jpg"); }
.p-band-2 .p-band-media { background-image: url("../assets/showroom-event.jpg"); }

.p-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(3 13 26 / 92%) 0%, rgb(3 13 26 / 62%) 45%, rgb(3 13 26 / 12%) 100%);
}

.p-band-inner { position: relative; z-index: 1; width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.p-band h2 { max-width: 15ch; margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; }
.p-band p { max-width: 44ch; margin: 22px 0 32px; color: var(--on-dark); font-size: 1.05rem; }

/* Counters ----------------------------------------------------------------- */

.p-figures { padding: clamp(52px, 5vw, 72px) 0; background: var(--navy); }
.p-figures ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-inline: auto; padding: 0; list-style: none; }
.p-figures li { padding: 0 clamp(20px, 2vw, 28px); border-left: 1px solid var(--on-dark-faint); }
.p-figures li:first-child { padding-left: 0; border-left: 0; }
.p-figures b { display: block; font-family: var(--serif); font-size: clamp(3rem, 4.2vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.p-figures b i { font-style: normal; color: var(--gold); }
.p-figures span { display: block; max-width: 25ch; margin-top: 12px; color: rgb(255 255 255 / 74%); font-size: 15px; line-height: 1.45; }

/* Timeline ----------------------------------------------------------------- */

.p-visit { padding: clamp(68px, 8vw, 108px) 0; background: var(--navy-900); }
.p-section-head { max-width: 620px; margin-bottom: clamp(44px, 5vw, 70px); }
.p-section-head h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.025em; }
.p-section-head p { margin: 18px 0 0; color: var(--on-dark); font-size: 1.05rem; }

.p-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.p-steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: var(--on-dark-faint); }

.p-steps li { position: relative; padding: 0 0 44px 46px; }
.p-steps li:last-child { padding-bottom: 0; }
.p-steps li::before { content: ""; position: absolute; top: 7px; left: 0; width: 15px; height: 15px; border: 1px solid var(--gold); border-radius: 50%; background: var(--navy-900); }
.p-steps li::after { content: ""; position: absolute; top: 11px; left: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease); }
.p-steps li.is-visible::after { transform: scale(1); }
.p-steps b { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.p-steps h3 { margin: 12px 0 0; font-family: var(--serif); font-size: 1.7rem; }
.p-steps p { margin: 10px 0 0; max-width: 58ch; color: rgb(255 255 255 / 66%); font-size: 15px; }

/* Contact ------------------------------------------------------------------ */

.p-contact { padding: clamp(68px, 8vw, 108px) 0; background: var(--navy); }

.p-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.p-contact address { margin: 30px 0 0; font-family: var(--serif); font-size: 1.6rem; font-style: normal; line-height: 1.4; }
.p-contact-links { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 24px 0 0; }
.p-contact-links a { padding-bottom: 3px; border-bottom: 1px solid var(--on-dark-faint); font-weight: 600; }
.p-contact-links a:hover { color: var(--gold); border-color: var(--gold); }

.p-hours { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--on-dark-faint); background: rgb(255 255 255 / 3%); }
.p-hours h3 { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.p-hours dl { margin: 22px 0 28px; }
.p-hours dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--on-dark-faint); font-size: 15px; }
.p-hours dl > div:last-child { border-bottom: 1px solid var(--on-dark-faint); }
.p-hours dt { color: rgb(255 255 255 / 62%); }
.p-hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-hours .button { width: 100%; }

/* Footer ------------------------------------------------------------------- */

.p-footer { padding: clamp(56px, 7vw, 88px) 0 26px; background: var(--navy-900); border-top: 1px solid var(--on-dark-faint); }

.p-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--on-dark-faint);
}

.p-footer-grid h2 { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.p-footer-grid nav, .p-footer-col { display: grid; align-content: start; gap: 12px; font-size: 14px; }
.p-footer-grid a { color: rgb(255 255 255 / 70%); }
.p-footer-grid a:hover { color: white; }
.p-footer-brand p { margin: 18px 0 0; color: rgb(255 255 255 / 52%); font-size: 14px; }
.p-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }
.p-footer-base p { margin: 0; color: rgb(255 255 255 / 56%); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1080px) {
  .p-stack-grid { grid-template-columns: 1fr; }
  .p-stack-intro { position: static; }
  .p-contact-grid { grid-template-columns: 1fr; }
  .p-figures ul { grid-template-columns: 1fr 1fr; gap: 40px 1px; }
  .p-figures li:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-footer-grid { grid-template-columns: 1fr 1fr; }
  .p-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .p-nav, .p-actions { display: none; }
  .p-header-inner { grid-template-columns: 1fr auto; height: 76px; }
  .p-hero { margin-top: -76px; padding-top: 76px; }
  .p-toggle { display: grid; }
  .p-explode-stage { width: min(84vw, 46vh, 430px); }
}

@media (max-width: 640px) {
  .p-figures ul { grid-template-columns: 1fr; }
  .p-figures li, .p-figures li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--on-dark-faint); }
  .p-figures li:first-child { padding-top: 0; border-top: 0; }
  .p-figures li:last-child { padding-bottom: 0; }
  .p-footer-grid { grid-template-columns: 1fr; }
  .p-band { height: auto; min-height: 0; padding: 90px 0; }
  .p-hero h1 { font-size: clamp(2.8rem, 12vw, 3.6rem); }
}
