/* ============================================================
   Star Dental Lab shared stylesheet
   Used by: index.html, about.html, products.html, forms.html,
            form-restorative.html, form-chrome.html
   ============================================================ */

:root {
  --red: #F00000;
  --red-dark: #C20000;
  --ink: #1C1F24;
  --slate: #3E434B;
  --muted: #6B7280;
  --hair: #E4E6E9;
  --paper: #FFFFFF;
  --paper-2: #F6F7F8;
  --footer: #2B2F36;
  --black: #0B0C0E;

  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 104px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  background: var(--paper); color: var(--slate);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; font-weight: 600; }
.sec-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: .01em; text-align: center;
}
.lede { text-align: center; max-width: 860px; margin: 1.6rem auto 0; color: var(--slate); }
.lede p + p { margin-top: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--head); font-weight: 600; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 1em 2em; border: 2px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .18s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); transform: translateY(-2px); }
.btn-outline { border-color: var(--red); color: #fff; background: transparent; }
.btn-outline:hover { background: var(--red); }

section { position: relative; }
/* sections holding the bleeding star watermark must clip it */
#welcome, #tech { overflow: hidden; }
.pad-y { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ---------- background star watermark (brand mark, tinted per section) ---------- */
.mark-bg { position: absolute; z-index: 0; pointer-events: none; line-height: 0; }
.mark-bg svg { display: block; width: 100%; height: auto; }
.mark-bg.tl { top: -70px; left: -170px; width: min(46vw, 620px); color: var(--red); opacity: .05; }
.mark-bg.br { bottom: -90px; right: -180px; width: min(44vw, 580px); color: var(--red); opacity: .05;
              transform: scaleX(-1); }
.mark-bg.band-mark { top: 50%; left: 50%; width: min(70vw, 900px);
                     transform: translate(-50%, -50%); color: #fff; opacity: .04; }
@media (max-width: 760px) { .mark-bg.tl, .mark-bg.br { display: none; } }

/* ================= NAV ================= */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
header.solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--hair), 0 6px 24px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 76px; width: auto; display: block; color: #fff; transition: color .3s ease; }
header.solid .brand-logo { color: var(--ink); }
@media (max-width: 600px) { .brand-logo { height: 54px; } }

.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a {
  font-family: var(--head); font-size: .86rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.92);
  transition: color .28s ease; white-space: nowrap; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { transform: scaleX(1); }
header.solid .nav-links a { color: var(--slate); }
header.solid .nav-links a:hover,
header.solid .nav-links a.active { color: var(--red); }

.nav-portal {
  font-family: var(--head); font-size: .82rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #fff; border: 2px solid var(--red);
  padding: .9em 1.5em; white-space: nowrap; transition: background .22s ease, color .22s ease;
}
.nav-portal:hover { background: var(--red); color: #fff; }
header.solid .nav-portal { color: var(--ink); }
header.solid .nav-portal:hover { color: #fff; }

.burger { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; cursor: pointer; }
.burger i { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: transform .3s ease, opacity .2s ease; }
header.solid .burger i { background: var(--ink); }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 20px; } .burger i:nth-child(3) { top: 26px; }
body.nav-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger i:nth-child(2) { opacity: 0; }
body.nav-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hair);
    padding: .5rem var(--pad) 1.25rem; transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { color: var(--slate) !important; padding: .95rem 0; border-bottom: 1px solid var(--hair); font-size: .88rem; }
  .nav-links a.active { color: var(--red) !important; }
  .nav-links a::after { display: none; }
  .burger { display: block; }
  .nav-portal { display: none; }
}

/* ================= HERO VIDEO (home) ================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 540px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; background: var(--black);
}
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 72% 62%, rgba(227,30,36,.28), transparent 62%),
    radial-gradient(70% 60% at 28% 35%, rgba(120,140,180,.20), transparent 60%),
    linear-gradient(160deg, #14171C 0%, #0B0C0E 55%, #17191E 100%);
}
.hero-fallback::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 15%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 50% 50%, #000 15%, transparent 78%);
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(11,12,14,.72) 0%, rgba(11,12,14,.38) 32%, rgba(11,12,14,.55) 72%, rgba(11,12,14,.88) 100%);
}
.hero-inner { position: relative; z-index: 3; padding: var(--nav-h) var(--pad) 0; max-width: 1000px; }
.hero .kicker {
  font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero h1 {
  color: #fff; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5.6vw, 4.1rem); line-height: 1.06; letter-spacing: .005em;
  margin-top: 1.3rem; text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero h1 span { color: var(--red); }
.hero p.sub {
  color: rgba(255,255,255,.86); max-width: 700px; margin: 1.5rem auto 0;
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.3rem; }

.vid-toggle {
  position: absolute; z-index: 4; bottom: 1.75rem; right: var(--pad);
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease, border-color .2s ease;
}
.vid-toggle:hover { background: var(--red); border-color: var(--red); }
.vid-toggle svg { width: 15px; height: 15px; }
.scroll-cue {
  position: absolute; z-index: 4; bottom: 1.9rem; left: 50%; transform: translateX(-50%);
  font-family: var(--head); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--red), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .35; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ================= PAGE HERO (sub-pages) ================= */
.page-hero {
  position: relative; overflow: hidden; background: var(--black);
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) var(--pad) clamp(2.5rem, 7vw, 5rem);
  text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 120% at 78% 20%, rgba(227,30,36,.26), transparent 60%),
    radial-gradient(70% 120% at 20% 90%, rgba(120,140,180,.16), transparent 60%),
    linear-gradient(160deg, #14171C 0%, #0B0C0E 60%, #17191E 100%);
}
.page-hero .mark-bg.br { opacity: .06; }
.page-hero-inner { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; }
.page-hero .kicker {
  font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.page-hero h1 {
  color: #fff; font-weight: 700; text-transform: uppercase; margin-top: 1rem;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: .005em;
}
.page-hero h1 span { color: var(--red); }
.page-hero p {
  color: rgba(255,255,255,.82); max-width: 680px; margin: 1.3rem auto 0;
  font-size: clamp(.98rem, 1.4vw, 1.1rem);
}

/* ---------- breadcrumb ---------- */
.crumb { font-family: var(--head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--red); }
.crumb .sep { margin: 0 .5em; color: var(--hair); }

/* ================= WELCOME + CARDS ================= */
#welcome { background: var(--paper); }
#welcome .wrap { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.card-label {
  font-family: var(--head); font-size: 1.02rem; font-weight: 600; color: var(--red);
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1rem;
}
.card { display: block; transition: transform .25s ease; }
.card:hover { transform: translateY(-5px); }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0F1114;
  display: grid; place-items: center;
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 40%, rgba(227,30,36,.16), transparent 65%);
}
.card-media .ph {
  position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.42);
  font-family: var(--head); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
}
.card-media .ph svg { width: 40px; height: 40px; margin: 0 auto .8rem; opacity: .55; }
.card-cap {
  background: var(--footer); color: #fff; text-align: center;
  font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 1.15em 1rem; transition: background .25s ease;
}
.card:hover .card-cap { background: var(--red); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ================= STATEMENT BAND ================= */
.band {
  position: relative; min-height: 340px; display: grid; place-items: center;
  text-align: center; padding: clamp(3.5rem, 9vw, 6rem) var(--pad); overflow: hidden;
  background: linear-gradient(140deg, #16181D, #0B0C0E 60%, #1A1D22);
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 30% 50%, rgba(227,30,36,.20), transparent 60%),
              radial-gradient(50% 70% at 80% 40%, rgba(255,255,255,.05), transparent 60%);
}
.band-inner { position: relative; z-index: 1; max-width: 1000px; }
.band h2 {
  color: #fff; font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.35rem, 3.6vw, 2.6rem); line-height: 1.25; letter-spacing: .01em;
}
.band h2 b { font-weight: 700; color: var(--red); }
.band p { color: rgba(255,255,255,.72); margin-top: 1.2rem; font-size: 1rem; }

/* ================= TECHNOLOGY ================= */
#tech { background: var(--paper-2); }
#tech .wrap { position: relative; z-index: 1; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.2rem; }
.tech h3 {
  color: var(--red); font-size: 1.02rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: .5rem; line-height: 1.35;
}
.tech .device {
  font-family: var(--head); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.tech p { font-size: .96rem; }
.tech p + p { margin-top: .9rem; }
.tech p b { color: var(--ink); font-weight: 600; }
.tech-cta { text-align: center; margin-top: 3.2rem; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr; gap: 2.6rem; } }

/* ================= SCANNERS ================= */
#scanners { background: var(--paper); scroll-margin-top: calc(var(--nav-h) - clamp(3.5rem, 8vw, 6.5rem) + 1rem); }
.portal-note a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.portal-note a:hover { color: var(--red-dark); }
.scan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.scan {
  border: 1px solid var(--hair); padding: 2.2rem 1.25rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: var(--paper); font: inherit; color: inherit; cursor: pointer; width: 100%; min-height: 130px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.scan-hint { font-family: var(--head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .25s ease; }
.scan:hover .scan-hint { color: var(--red); }

/* scanner send-instructions popup */
.scan-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.scan-modal.open { display: block; }
.scan-modal-backdrop { position: absolute; inset: 0; background: rgba(11,12,14,.6); }
.scan-modal-card {
  position: relative; z-index: 1; width: calc(100% - 2rem); max-width: 520px;
  margin: 12vh auto 0; background: var(--paper); padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); max-height: 76vh; overflow-y: auto;
}
.scan-modal-logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 1.1rem; }
.scan-modal-title { color: var(--red); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1rem; }
.scan-modal-body { color: var(--slate); font-size: .96rem; line-height: 1.65; }
.scan-modal-body p { margin-bottom: .8rem; }
.scan-modal-body ol { margin: 0 0 .8rem 1.15rem; }
.scan-modal-body li { margin-bottom: .55rem; }
.scan-modal-body a { color: var(--red); }
.scan-modal-close {
  position: absolute; top: .5rem; right: .7rem; background: none; border: 0;
  font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; transition: color .2s ease;
}
.scan-modal-close:hover { color: var(--red); }
body.modal-open { overflow: hidden; }
.scan:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.07); }
.scan svg { width: 46px; height: 46px; color: var(--ink); transition: color .25s ease; }
.scan-logo-wrap { height: 62px; display: flex; align-items: flex-end; justify-content: center; }
.scan-logo { width: auto; max-width: 100%; object-fit: contain; }
/* per-logo optical sizing (stacked logos need more height to match single-line ones) */
.scan[data-scanner="itero"]  .scan-logo { height: 42px; }
.scan[data-scanner="sirona"] .scan-logo { height: 44px; }
.scan[data-scanner="3shape"] .scan-logo { height: 40px; }
.scan[data-scanner="medit"]  .scan-logo { height: 58px; }
.scan:hover svg { color: var(--red); }
.scan .n { font-family: var(--head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.scan .a { font-family: var(--head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pickup { text-align: center; margin-top: 3rem; }
.pickup .k { font-family: var(--head); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.pickup a.num {
  display: inline-flex; align-items: center; gap: .5em; margin-top: .7rem;
  font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.3rem); transition: color .2s ease;
}
.pickup a.num:hover { color: var(--red); }
.pickup a.num svg { width: .8em; height: .8em; color: var(--red); }
@media (max-width: 900px) { .scan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .scan-grid { grid-template-columns: 1fr; } }

/* ================= PRODUCTS (products.html) ================= */
#products { background: var(--paper); }
.prod-list { margin-top: 3.5rem; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.prod {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.prod:nth-child(even) .prod-media { order: 2; }
.prod-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0F1114;
  display: grid; place-items: center; border: 1px solid var(--hair);
}
.prod-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 40%, rgba(227,30,36,.16), transparent 65%);
}
.prod-media .ph {
  position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.42);
  font-family: var(--head); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
}
.prod-media .ph svg { width: 44px; height: 44px; margin: 0 auto .8rem; opacity: .55; }
.prod-body .device {
  font-family: var(--head); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .7rem;
}
.prod-body h3 {
  color: var(--red); font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em; margin-bottom: 1rem;
}
.prod-body p { font-size: .98rem; }
.prod-body p + p { margin-top: .9rem; }
.prod-body p b { color: var(--ink); font-weight: 600; }
.prod-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.prod-tags li {
  font-family: var(--head); font-size: .66rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--hair); padding: .5em .9em;
}
.prod-body .btn { margin-top: 1.6rem; }
@media (max-width: 820px) {
  .prod { grid-template-columns: 1fr; gap: 1.6rem; }
  .prod:nth-child(even) .prod-media { order: 0; }
}

/* ================= ABOUT (about.html) ================= */
#about-intro { background: var(--paper); }
.about-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; margin-top: 1rem;
}
.about-lead .about-copy p + p { margin-top: 1.1rem; }
.about-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0F1114;
  display: grid; place-items: center; border: 1px solid var(--hair);
}
.about-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 40%, rgba(227,30,36,.16), transparent 65%);
}
.about-media .ph {
  position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.42);
  font-family: var(--head); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
}
.about-media .ph svg { width: 44px; height: 44px; margin: 0 auto .8rem; opacity: .55; }
@media (max-width: 820px) { .about-lead { grid-template-columns: 1fr; gap: 1.8rem; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3.5rem; }
.value {
  border: 1px solid var(--hair); padding: 2.2rem 1.75rem; background: var(--paper);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.value:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.07); }
.value svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 1.1rem; }
.value h3 { color: var(--ink); font-size: 1.08rem; font-weight: 600; margin-bottom: .6rem; }
.value p { font-size: .94rem; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; text-align: center; }
.stat .num { font-family: var(--head); font-weight: 700; color: var(--red); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.stat .lbl { font-family: var(--head); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 2rem; } }

/* ================= FORMS (forms.html) ================= */
#forms-page { background: var(--paper); }
.form-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3.5rem; }
.form-group { border: 1px solid var(--hair); padding: clamp(1.75rem, 3.5vw, 2.5rem); background: var(--paper); }
.form-group h3 {
  color: var(--red); font-size: 1.1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: .5rem;
}
.form-group > p { font-size: .95rem; margin-bottom: 1.5rem; }
.dl-list { list-style: none; }
.dl-list li { border-top: 1px solid var(--hair); }
.dl-list li:first-child { border-top: 0; }
.dl-list a, .dl-list span.soon {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 0;
  font-family: var(--head); font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: color .2s ease;
}
.dl-list a:hover { color: var(--red); }
.dl-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); }
.dl-list .meta { margin-left: auto; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dl-list span.soon { color: var(--muted); cursor: default; }
.dl-list span.soon svg { color: var(--muted); }
@media (max-width: 820px) { .form-groups { grid-template-columns: 1fr; } }

/* ---------- form picker cards (link to fillable Rx pages) ---------- */
.form-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.form-card {
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--hair); background: var(--paper); padding: 2rem 1.75rem;
  min-height: 15.5rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.form-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.07); }
.form-card > svg {
  display: block; flex: 0 0 auto; width: 40px; height: 40px;
  color: var(--red); margin: 0 0 1.1rem;
  stroke-linecap: round; stroke-linejoin: round;
}
.form-card .fc-title { font-family: var(--head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.form-card .fc-desc { font-size: .92rem; color: var(--slate); margin-top: .4rem; }
.form-card .fc-go {
  margin-top: auto; padding-top: 1.3rem; font-family: var(--head); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: .4em; transition: gap .2s ease;
}
.form-card:hover .fc-go { gap: .7em; }
@media (max-width: 820px) { .form-cards { grid-template-columns: 1fr; } }
.form-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 760px) {
  :root { --nav-h: 76px; }
}

@media (max-width: 560px) {
  #forms-page.pad-y { padding-block: 2.65rem; }
  #forms-page .lede { margin-top: 1rem; font-size: .94rem; line-height: 1.55; }
  .form-cards { gap: .75rem; margin-top: 1.75rem; }
  .form-card {
    display: grid; grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-rows: auto auto auto; align-items: start;
    gap: .25rem .85rem; min-height: 0; padding: 1rem;
  }
  .form-card > svg {
    grid-column: 1; grid-row: 1 / span 3; align-self: start;
    width: 36px; height: 36px; margin: 0;
  }
  .form-card .fc-title { grid-column: 2; font-size: 1.05rem; line-height: 1.3; }
  .form-card .fc-desc { grid-column: 2; margin-top: 0; font-size: .89rem; line-height: 1.45; }
  .form-card .fc-go { grid-column: 2; margin-top: .2rem; padding-top: .1rem; font-size: .7rem; }
  .portal-cta { margin-top: 2rem; padding: 1.6rem 1.1rem; }
  .portal-cta svg { width: 36px; height: 36px; margin-bottom: .75rem; }
  .portal-cta h3 { font-size: 1.1rem; }
  .portal-cta p { font-size: .9rem; margin-bottom: 1.1rem; }
  .portal-cta .hero-actions { flex-direction: column; align-items: stretch; gap: .7rem; }
  .portal-cta .hero-actions .btn { width: 100%; max-width: 280px; margin-inline: auto; }
  .form-card:hover { transform: none; box-shadow: none; }
  .form-card:hover .fc-go { gap: .4em; }
}

/* ---------- portal / upload callout ---------- */
.portal-cta {
  margin-top: 3.5rem; border: 1px solid var(--hair); background: var(--paper-2);
  padding: clamp(2rem, 5vw, 3rem); text-align: center;
}
.portal-cta svg { width: 42px; height: 42px; color: var(--red); margin: 0 auto 1.1rem; }
.portal-cta h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: .6rem; }
.portal-cta p { max-width: 560px; margin: 0 auto 1.6rem; font-size: .96rem; }

/* ================= CTA STRIP ================= */
.cta-strip { background: var(--red); text-align: center; padding: clamp(2.75rem, 6vw, 4rem) var(--pad); }
.cta-strip h2 { color: #fff; text-transform: uppercase; font-size: clamp(1.35rem, 3.2vw, 2.1rem); font-weight: 700; }
.cta-strip p { color: rgba(255,255,255,.9); margin-top: .8rem; }
.cta-strip .btn { background: #fff; color: var(--red); margin-top: 1.8rem; }
.cta-strip .btn:hover { background: var(--ink); color: #fff; }

/* ================= FOOTER ================= */
footer { background: var(--footer); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.25fr; gap: 2.5rem; }
.foot h5 {
  font-family: var(--head); color: rgba(255,255,255,.92); font-size: .92rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.35rem;
}
.foot a, .foot span.li { display: block; color: rgba(255,255,255,.66); font-size: .93rem; margin-bottom: .75rem; transition: color .28s ease; }
.foot a { position: relative; width: fit-content; }
.foot a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
.foot a:hover::after { transform: scaleX(1); }
.foot a:hover { color: var(--red); }
.foot-brand .mark { margin-bottom: 1.3rem; }
.foot-logo { height: 84px; width: auto; display: block; color: #fff; }
.foot-brand p { font-size: .9rem; color: rgba(255,255,255,.55); max-width: 260px; }
.contact-li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .93rem; color: rgba(255,255,255,.66); }
.contact-li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .35rem; color: var(--red); }
.contact-li a:hover { color: var(--red); }
.foot-rule { height: 1px; background: rgba(255,255,255,.12); margin: 1.6rem 0 1.2rem; max-width: 240px; }
.foot-bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.45);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ============================================================
   RX FORM PAGES (form-fixed / form-removable / form-allonx)
   On-screen replica of the paper Rx -> Save as PDF -> Email
   ============================================================ */
.rx-page { padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 2.5rem)); padding-bottom: clamp(3rem, 7vw, 5rem); background: var(--paper-2); }
.rx-wrap { max-width: 860px; margin-inline: auto; padding-inline: var(--pad); }

/* intro + steps (screen only) */
.rx-intro { margin-bottom: 1.6rem; }
.rx-intro .crumb { margin-bottom: 1rem; }
.rx-intro h1 { color: var(--ink); font-size: clamp(1.5rem, 4vw, 2.2rem); text-transform: uppercase; }
.rx-intro .sub { color: var(--slate); margin-top: .5rem; max-width: 640px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: .6rem; flex: 1 1 200px; border: 1px solid var(--hair); background: var(--paper); padding: .8rem 1rem; font-family: var(--head); font-size: .82rem; font-weight: 500; color: var(--slate); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; background: var(--red); color: #fff; font-family: var(--head); font-weight: 700; font-size: .8rem; border-radius: 50%; }

/* the sheet = the printable Rx document */
.sheet { background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 18px 44px rgba(0,0,0,.06); padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.6rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 2.8rem); color: var(--ink); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 1.1rem; margin-bottom: 1.5rem; }
.sheet-head .logo svg { height: 82px; width: auto; color: var(--ink); display: block; }
.sheet-title { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--ink); text-align: right; line-height: 1.1; }
.sheet-title small { display: block; font-size: .58em; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: .3rem; }

/* fill-in-the-blank rows */
.frow { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: 1rem; align-items: baseline; }
.fl { display: flex; align-items: baseline; gap: .5rem; flex: 1 1 auto; min-width: 190px; }
.fl.tight { flex: 0 1 auto; min-width: 0; }
.fl > .k { font-family: var(--body); font-size: .92rem; color: var(--ink); white-space: nowrap; }
.fl > input { flex: 1 1 60px; min-width: 40px; border: 0; border-bottom: 1px solid #9aa0a6; background: transparent; font-family: var(--body); font-size: .95rem; color: var(--ink); padding: .15rem .2rem; }
.fl > input:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
/* date row: keep Today's Date / Due Date / Time on one line */
.frow.dates { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: .4rem 1.4rem; }
.frow.dates .fl { min-width: 0; }
.frow.dates .fl > input { min-width: 0; }
@media (max-width: 520px) { .frow.dates { grid-template-columns: 1fr; } }

.rule { border: 0; border-top: 1px solid var(--hair); margin: 1.3rem 0; }

/* inline check groups */
.check-line { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.3rem; margin-bottom: 1rem; }
.k-label { font-family: var(--body); font-size: .92rem; color: var(--ink); white-space: nowrap; }
.check { display: flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--ink); }
.check input { width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; }
/* all checkboxes render as circles (matching the radio selectors) */
.check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 16px; height: 16px; border: 1.6px solid #9aa0a6; border-radius: 50%;
  background: #fff; position: relative; cursor: pointer; flex-shrink: 0;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.check input[type="checkbox"]:checked { border-color: var(--red); }
.check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.other-fill { flex: 1 1 120px; min-width: 100px; border: 0; border-bottom: 1px solid #9aa0a6; background: transparent; font-family: var(--body); font-size: .95rem; color: var(--ink); padding: .1rem .2rem; }

/* appointment-support rows (Restorative Support form) */
.sup-intro { text-align: center; font-family: var(--head); font-weight: 600; color: var(--ink); margin: 1.4rem 0 .4rem; }
.sup-group { margin-top: 1.3rem; }
.sup-head { font-family: var(--head); font-weight: 700; font-size: .8rem; color: var(--red); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .7rem; display: flex; align-items: center; gap: .6rem; }
.sup-head::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.sup-row { display: grid; grid-template-columns: 190px 165px 1fr; align-items: center; gap: .3rem 1rem; padding: .2rem 0; }
.sup-row .arches { display: flex; gap: 1.1rem; }
@media (max-width: 640px) {
  .sup-row { grid-template-columns: 1fr 1fr; gap: .2rem .8rem; padding: .4rem 0; }
  .sup-row .fl { grid-column: 1 / -1; }
}

/* remarks area */
.remarks-label { font-family: var(--body); font-size: .92rem; color: var(--ink); margin-bottom: .55rem; display: block; }
.remarks {
  width: 100%; min-height: 12rem; border: 1px solid var(--hair);
  background-color: #fff;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent calc(1.7rem - 1px), var(--hair) calc(1.7rem - 1px), var(--hair) 1.7rem);
  background-attachment: local;
  border-radius: 0; padding: .4rem .7rem;
  font-family: var(--body); font-size: .95rem; color: var(--ink);
  line-height: 1.7rem; resize: vertical;
}
.remarks:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(240,0,0,.1); }

.sheet-legal { font-size: .74rem; line-height: 1.5; color: var(--muted); margin-top: 1.4rem; }
.sheet-foot { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--hair); font-family: var(--head); font-size: .72rem; letter-spacing: .02em; color: var(--slate); }
.sheet-foot > div { display:block; padding:.18rem 0; text-align:center; }


.rx-actions { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 1.6rem; text-align: center; }
.rx-actions .note { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 680px) { .rx-actions .note { white-space: normal; } }

@media (max-width: 640px) {
  .sheet-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .sheet-title { text-align: left; }
  .fl { min-width: 150px; }
}

/* ---------- PRINT: the sheet becomes the PDF ---------- */
@media print {
  @page { margin: 1.2cm; }
  header#hdr, footer, .rx-intro, .steps, .rx-actions, .no-print, .scroll-cue, .vid-toggle, .mark-bg { display: none !important; }
  html, body { background: #fff !important; }
  body { font-size: 12px; color: #000; }
  .rx-page { padding: 0 !important; background: #fff !important; }
  .rx-wrap { max-width: none; padding: 0; }
  .sheet { border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; min-height: 24.7cm; }
  .sheet-head { border-bottom: 2px solid #000; }
  .sheet-head .logo svg { height: 72px; color: #000; }
  .sheet-title { color: #000; }
  .fl > input, .other-fill { border-bottom: 1px solid #000; color: #000; }
  .remarks {
    border: 1px solid #999; color: #000; min-height: 4.5rem;
    background-color: #fff !important;
    background-image: repeating-linear-gradient(to bottom, transparent, transparent calc(1.7rem - 1px), #cfcfcf calc(1.7rem - 1px), #cfcfcf 1.7rem) !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    height: auto !important; flex: 1 1 auto;
  }
  .check input { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rule { border-top: 1px solid #bbb; }
  .frow, .check-line { break-inside: avoid; }
  .sheet-legal { color: #333; }
  a[href]::after { content: ""; }

  /* --- compaction: keep every form on a single page --- */
  .sheet { min-height: 24cm; }
  .sheet-head { padding-bottom: .5rem; margin-bottom: .6rem; }
  .frow { margin-bottom: .5rem; }
  .check-line { margin-bottom: .5rem; }
  .rule { margin: .65rem 0; }
  .sup-intro { margin: .55rem 0 .3rem; }
  .sup-group { margin-top: .55rem; }
  .sup-head { margin-bottom: .4rem; }
  .sup-row { padding: .1rem 0; }
  .sheet-legal { margin-top: .6rem; }
  .sheet-foot { margin-top: .55rem; padding-top: .45rem; }
}
/* Real laboratory and restoration photography. */
.card-media, .prod-media, .about-media { display:block; aspect-ratio:auto; background:transparent; border:0; }
.card-media > img, .prod-media > img, .about-media > img { display:block; width:100%; height:auto; min-width:0; }
.card-media::after, .prod-media::after, .about-media::after { display:none; }
.case-gallery { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; min-width:0; }
.case-gallery-intro { grid-column:1 / -1; max-width:720px; }
.case-gallery-intro h4 { font-family:var(--head); font-size:1.15rem; margin-bottom:.65rem; }
.case-photo { margin:0; min-width:0; background:var(--paper-2); border:0; }
.case-photo img { display:block; width:100%; height:auto; }
.case-photo figcaption { padding:.8rem 1rem; font-size:.85rem; color:var(--slate); }
@media (max-width:560px) { .case-gallery { grid-template-columns:minmax(0,1fr); } }

.prod .case-gallery { order:3; }

.crown-photos { display:grid; gap:1rem; min-width:0; order:2; }
.prod.prod-text-only { grid-template-columns:minmax(0,1fr); }
.prod-text-only .prod-body { max-width:760px; }
@media (max-width:820px) { .crown-photos { order:0; } }

.restorative-photos { display:grid; gap:1rem; min-width:0; }

#guided-smile { scroll-margin-top:120px; }

/* Keep horizontal navigation on desktop and tablet widths. */
@media (min-width:761px) and (max-width:1200px) {
  header .nav { gap:.65rem; padding-inline:1rem; }
  .brand-logo { height:58px; }
  .nav-links { gap:.7rem; }
  .nav-links a { font-size:.72rem; letter-spacing:.02em; }
  .nav-portal { font-size:.7rem; padding:.8em .9em; letter-spacing:.02em; }
}
@media (min-width:761px) and (max-width:950px) {
  header { --nav-h:126px; }
  header .nav { flex-wrap:wrap; align-content:center; row-gap:.5rem; }
  .brand-logo { height:50px; }
  .nav-links { order:3; width:100%; justify-content:space-between; gap:.5rem; padding-bottom:.4rem; }
  .nav-links a { font-size:.73rem; }
}

/* Prescription forms: balanced phone layout and comfortable touch targets. */
@media (max-width: 640px) {
  .rx-wrap { padding-inline: 1rem; }
  .sheet { padding: 1rem .9rem 1.2rem; }
  .sheet-head { align-items: flex-start; gap: .65rem; margin-bottom: 1rem; }
  .sheet-head .logo svg { height: 58px; }
  .sheet-title { font-size: 1.25rem; text-align: left; }
  .frow { gap: .65rem; margin-bottom: .8rem; }
  .frow > .fl, .frow > .fl.tight { flex: 1 1 100%; min-width: 0; }
  .fl { width: 100%; min-width: 0; }
  .fl > .k { font-size: .84rem; }
  .fl > input { min-width: 0; width: 100%; font-size: 16px; min-height: 2.25rem; }
  .frow.dates { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .check-line { align-items: flex-start; gap: .65rem .9rem; margin-bottom: .85rem; }
  .check { min-height: 2.25rem; align-items: center; }
  .check input { width: 20px; height: 20px; }
  .check input[type="checkbox"] { width: 20px; height: 20px; }
  .other-fill { min-width: 0; flex: 1 1 100%; font-size: 16px; min-height: 2.25rem; }
  .remarks { min-height: 10rem; font-size: 16px; }
  .sheet-legal { font-size: .7rem; }
  .sheet-foot { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .sup-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: .35rem .5rem; }
  .sup-row > * { min-width: 0; }
  .sup-row .arches { flex-wrap: wrap; gap: .2rem .55rem; }
  .sup-row .arches .check { font-size: .8rem; }
  .sup-row .fl { grid-column: 1 / -1; }
  .sup-head { line-height: 1.35; }
}

/* Keep yes/no questions aligned and enclosed case items in a tidy grid. */
.answer-line { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; column-gap:1.25rem; }
.enclosed-case { margin:1rem 0; }
.enclosed-case > .k-label { display:block; margin-bottom:.65rem; }
.enclosed-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem .8rem; align-items:center; }
.enclosed-options .check { min-width:0; }
.enclosed-options .other-fill { grid-column:1 / -1; width:100%; }
@media (max-width:640px) {
  .answer-line { grid-template-columns:auto auto; justify-content:start; column-gap:1.25rem; row-gap:.25rem; }
  .answer-line > .k-label { grid-column:1 / -1; white-space:normal; line-height:1.35; }
  .enclosed-case { margin:.65rem 0 1rem; }
  .enclosed-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem .6rem; }
  .enclosed-options .check { font-size:.86rem; }
  .enclosed-options .other-fill { grid-column:1 / -1; }
}

/* Keep each mobile yes/no pair tight and align both questions consistently. */
.answer-line { display:flex; flex-wrap:wrap; align-items:center; column-gap:1rem; row-gap:.25rem; }
.answer-options { display:flex; align-items:center; gap:.65rem; }
@media (max-width:640px) {
  .answer-line { display:flex; flex-direction:column; align-items:flex-start; gap:.25rem; }
  .answer-line > .k-label { width:100%; }
  .answer-options { gap:.75rem; }
}

/* Align the second All-on-X demographics choice beneath the arch selector. */
@media (max-width:640px) {
  .allonx-align-pair, .rx-sex-align-pair { display:grid; grid-template-columns:6.25rem max-content; column-gap:0; }
}

/* Keep All-on-X appointment options grouped beneath their heading. */
.appointment-steps { margin-bottom:1rem; }
.appointment-steps > .k-label { display:block; margin-bottom:.45rem; }
.appointment-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.25rem 1.25rem; max-width:32rem; }
.appointment-choices .check { min-width:0; }

/* Accommodate Gallery while preserving the horizontal desktop header. */
@media (min-width:1340px) {
  header { --nav-h:104px; }
  header .nav { max-width:1310px; flex-wrap:nowrap; justify-content:flex-start; gap:0; }
  .brand { width:auto; flex:0 0 auto; position:relative; left:-20px; }
  .nav-links { flex:0 1 auto; justify-content:flex-end; gap:calc(.5rem + 10px); margin-left:auto; }
  .nav-links a { font-size:1rem; letter-spacing:.03em; }
  .nav > div:last-child { flex:0 0 auto; }
  .nav-portal { margin-left:.85rem; padding:.85em 1.2em; border-radius:4px; position:relative; left:20px; }
  .nav-links, .nav > div:last-child { transform:translateY(10px); }
}
@media (min-width:761px) and (max-width:1339px) {
  header { --nav-h:126px; }
  header .nav { flex-wrap:wrap; align-content:center; row-gap:.5rem; }
  .brand-logo { height:50px; }
  .nav-links { order:3; width:100%; justify-content:space-between; gap:clamp(.4rem,.8vw,.8rem); padding-bottom:.4rem; }
  .nav-links a { font-size:.95rem; letter-spacing:.02em; }
}

/* A quiet brand signature, separate from the main service headline. */
.hero { flex-direction: column; height: auto; min-height: max(100svh, 640px); }
.hero-inner { margin-block: auto; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3rem; }
.hero-slogan { position: relative; z-index: 3; align-self: flex-end; margin: 0 calc(var(--pad) + 62px) 2rem var(--pad); padding-right: 1rem; border-right: 2px solid var(--red); color: rgba(255,255,255,.8); text-align: right; font-family: var(--head); font-size: .78rem; font-weight: 500; line-height: 1.65; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 700px) {
  .hero-inner { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2.5rem; }
  .hero-slogan { font-size: .65rem; letter-spacing: .07em; }
}

/* Keep the portal outlined at rest and use the same hover cue as navigation links. */
.nav-portal:hover, header.solid .nav-portal:hover { background: transparent; color: var(--red); }
.nav-portal { position: relative; }
.nav-portal::after { content: ""; position: absolute; left: 1.5em; right: 1.5em; bottom: .48em; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .34s cubic-bezier(.22,.61,.36,1); }
.nav-portal:hover::after { transform: scaleX(1); }
@media (min-width: 1200px) {
  .band-inner { max-width: none; width: 100%; }
  .band h2 { font-size: clamp(1.35rem, 2.25vw, 2.15rem); white-space: nowrap; }
}
.portal-cta .hero-actions { justify-content: center; }

/* Send Us a Case: white copy on brand red, white scanner cards. */
#scanners { background: var(--red); color: #fff; }
#scanners .sec-title, #scanners .lede, #scanners .pickup .k, #scanners .pickup a.num,
#scanners .pickup a.num svg, #scanners .portal-note a { color: #fff; }
#scanners .portal-note a:hover, #scanners .pickup a.num:hover { color: #fff; opacity: .75; }
#scanners .scan { background: #fff; color: var(--ink); border-color: #fff; }
#scanners .scan-hint { color: var(--slate); }
#scanners .scan:hover { border-color: var(--ink); }

/* Office Portal fills from left to right only on hover or keyboard focus. */
.nav-portal {
  isolation: isolate; overflow: hidden; border-radius: 8px;
  color: #fff; background: transparent;
  transition: color .3s ease;
}
.nav-portal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
}
.nav-portal::after { display: none; }
.nav-portal:hover::before, .nav-portal:focus-visible::before { transform: scaleX(1); }
.nav-portal:hover, .nav-portal:focus-visible,
header.solid .nav-portal:hover, header.solid .nav-portal:focus-visible { color: #fff; }
@media (prefers-reduced-motion: reduce) { .nav-portal::before { transition: none; } }
@media (min-width: 701px) { .hero h1 span { white-space: nowrap; } }
@media (min-width: 701px) {
  .hero h1 span { display: inline-block; font-size: .72em; letter-spacing: .015em; }
}
@media (max-width: 700px) {
  .hero h1 span { font-size: .78em; }
}
