/* 45 Red Letter: Bayline Dental (sample)
   Recreation of the look of honest-frame-221420.framer.app ("Dental Health"): our own code, CC0 photos.
   White pages, rounded 16px cards set 20px (12px on phones) from the screen edge with 8px gutters, black, signal-red and
   ice-blue blocks, and huge extra-bold type with tight tracking (Public Sans 800 standing in for Open Sauce One).
   Re-skin: change the shared token layer below. Breakpoints 760 / 1080 (ncs-desktop). No JavaScript: a :target menu,
   scroll-snap rails and one CSS scroll-driven rise on cards. */
:root {
  /* Shared token layer (library-wide names) */
  --c-bg: #ffffff;                 /* page */
  --c-surface: #f2f2f0;            /* light cards (form, service cards) */
  --c-ink: #000000;                /* text and the black blocks */
  --c-muted: #595959;              /* body copy on white and light cards: 7:1 / 6.3:1 */
  --c-line: #e4e4e7;               /* dividers (decorative) */
  --c-line-strong: #858585;        /* field borders: 3.7:1 on white */
  --c-accent: #e42519;             /* signal red: 4.6:1 with white text, so small white labels pass on it */
  --c-on-accent: #ffffff;
  --c-accent-2: #0d7a3e;           /* status only (the "request sent" check) */
  --f-display: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: var(--f-body);         /* none: numbers use tabular figures */
  --r-sm: 12px;                    /* small boxes, label bars */
  --r-lg: 16px;                    /* every card (as measured) */
  --r-pill: 999px;                 /* buttons, the Services pill, fields */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 88px;

  /* Theme names mapped to the shared layer */
  --paper: var(--c-bg);
  --soft: #fafaf9;                 /* the original's off-white cards */
  --grey: #e4e4e7;                 /* the consultation card */
  --card: var(--c-surface);
  --ink: var(--c-ink);
  --red: var(--c-accent);
  --red-t: #c41f12;                /* red text on white or light cards (5.3:1) */
  --red-on-ink: #f0473b;           /* red text on black (5.7:1) */
  --ice: #d8eff7;                  /* the rating / hours card */
  --ink-2: #141414;                /* boxes inside black cards */
  --dim: rgb(255 255 255 / .74);   /* body copy on black */
  --dim-2: rgb(255 255 255 / .62); /* labels on black */
  --pad: 12px;                     /* page edge to card edge */
  --gap: 8px;                      /* between cards */
  --cpad: 20px;                    /* inside cards */
  --bar-h: 64px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --ncs-on-style: none;            /* the bundler's current-page underline is replaced by a red dot */
  --t-hero: clamp(56px, 7.8vw, 112px);
  --t-giant: clamp(34px, 6.7vw, 96px);
  --t-h1x: clamp(40px, 6.2vw, 96px);
  --t-h2: clamp(32px, 4.6vw, 68px);
  --t-h3: clamp(24px, 2.3vw, 36px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--bar-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.42 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
small { font-size: inherit; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.d-only { display: none; }

a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.card-red :focus-visible, .card-red:focus-visible, .f-red :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.demo { background: var(--ink); color: #c9c9c9; font-size: 13px; line-height: 1.4; text-align: center; padding: 9px 16px; }

/* ---------- Type ---------- */
.lbl { font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.lbl-dim { color: var(--dim-2); }
.lbl-mute { color: var(--c-muted); }
.lbl-red { color: var(--red-t); }
.card-ink .lbl-red, .em .lbl-red, .red-t { color: var(--red-on-ink); }
.giant { font-size: var(--t-giant); line-height: .9; letter-spacing: -.055em; }
.h1x { font-size: var(--t-h1x); line-height: .9; letter-spacing: -.055em; }
.h2 { font-size: var(--t-h2); line-height: .94; letter-spacing: -.05em; }
.h3 { font-size: var(--t-h3); line-height: 1.04; letter-spacing: -.035em; }
.h4 { font-size: 22px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.dim { color: var(--dim); }
.mute { color: var(--c-muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font: 800 17px/1 var(--f-display); letter-spacing: -.02em; cursor: pointer; white-space: nowrap; transition: transform 120ms cubic-bezier(.23, 1, .32, 1), background-color 200ms; }
.btn .i { width: 18px; height: 18px; stroke-width: 2.25; transition: translate 250ms var(--e-out); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wide { width: 100%; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .i { translate: 3px 0; }
  .btn-ink:hover { background: #262626; }
  .btn-white:hover { background: #ececec; }
}

/* ---------- Header bar (white, sticky; the original's is fixed) ---------- */
.bar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 10px; height: var(--bar-h); padding: 0 16px; background: #fff; }
.logo { display: grid; justify-items: start; gap: 3px; margin-right: auto; padding: 4px 0; min-height: 44px; align-content: center; }
.logo-w { font: 800 22px/.8 var(--f-display); letter-spacing: -.065em; text-transform: uppercase; }
.logo-t { font: 600 12px/1 var(--f-body); letter-spacing: -.01em; }
.site-nav { display: none; }
.bar-call { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.bar-call .i { width: 16px; height: 16px; }
.burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: var(--r-pill); }
.burger .i { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Phone menu: full-screen :target overlay, above everything (the original's panel opened behind the hero) ---------- */
.menu { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); background: #fff;
  overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity 180ms var(--e-out), visibility 0s linear 180ms; }
.menu:target { visibility: visible; opacity: 1; transition: opacity 220ms var(--e-out); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); flex: none; }
.menu-list { display: grid; margin-top: 18px; }
.menu-list a { display: flex; align-items: center; min-height: 52px; font: 800 40px/1.05 var(--f-display); letter-spacing: -.045em; }
.menu-list li { transition: translate 360ms var(--e-out); translate: 0 12px; }
.menu:target .menu-list li { translate: 0 0; }
.menu-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.menu-urgent { display: flex; align-items: center; min-height: 44px; color: var(--red-t); font-weight: 700; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .menu-list a:hover { color: #6b6b6b; } }

/* ---------- Sections and cards ---------- */
main { display: grid; }
.sec { padding: calc(var(--gap) / 2) var(--pad); }
.sec + .sec { margin-top: 0; }
.card { border-radius: var(--r-lg); padding: var(--cpad); }
.card-ink { background: var(--ink); color: #fff; }
.card-red { background: var(--red); color: var(--c-on-accent); }
.card-ice { background: var(--ice); }
.card-paper { background: var(--card); }
.labelbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; margin-bottom: var(--gap); border-radius: var(--r-sm);
  background: var(--card); font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.labelbar span:last-child { color: var(--c-muted); text-align: right; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { position: relative; scroll-snap-align: start; min-width: 0; }
.rail:focus-visible { outline-offset: -3px; }

/* ---------- Hero ---------- */
.hero { padding: 6px var(--pad) calc(var(--gap) / 2); }
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #f1f1ef; height: clamp(500px, calc(100svh - var(--bar-h) - 64px), 560px);
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 20px 20px; isolation: isolate; animation: hero-in 700ms var(--e-out) both; }
.hero-img { position: absolute; inset: 17% 0 auto; z-index: -2; width: 100%; height: 50%; object-fit: cover; object-position: 96% 18%; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #f1f1ef 0, #f1f1ef 17%, rgb(241 241 239 / 0) 27%, rgb(244 244 242 / 0) 55%, #f4f4f2 67%); }
.hero-lede { max-width: 230px; font-size: 16px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.hero-foot { display: grid; gap: 18px; }
.hero h1 { display: grid; gap: 12px; }
.hero-pre { font: 700 13px/1.25 var(--f-body); letter-spacing: 0; }
.hero-big { display: block; font-size: var(--t-hero); line-height: .8; letter-spacing: -.06em; padding-bottom: .06em; max-width: 6ch; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero-note { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.hero-note .star { width: 15px; height: 15px; color: var(--red-t); }
@keyframes hero-in { from { transform: translateY(14px) scale(.985); } }

/* ---------- Home bento ---------- */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); grid-template-areas: "a a" "b c" "f f"; }
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; }
.bento-grid > .t-d, .bento-grid > .t-e { display: none; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--cpad); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tile-photo { padding: 0; isolation: isolate; color: #fff; }
.tile-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.t-a { min-height: 250px; justify-content: flex-end; }
.t-a > img { object-position: 50% 30%; }
.t-a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / .78) 78%); }
.tile-over { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 16px; padding: var(--cpad); }
.tile-over p { max-width: 300px; font-size: 15px; line-height: 1.3; font-weight: 700; }
.t-b { background: var(--ink); color: #fff; min-height: 168px; }
.t-c { background: var(--red); color: #fff; min-height: 168px; justify-content: flex-end; }
.t-b .giant, .t-c .giant { font-size: 30px; line-height: .92; letter-spacing: -.05em; }
.t-c .lbl { order: 2; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: -10px; font: 800 20px/1 var(--f-display); letter-spacing: -.03em; }
.tile-link .i { width: 18px; height: 18px; stroke-width: 2.25; }
.tile-end { display: grid; gap: 8px; }
.t-f { background: var(--grey); flex-direction: column; align-items: flex-start; }
.t-f .lbl { margin-bottom: 8px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.duo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.mini-row { position: absolute; left: 20px; bottom: 20px; right: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.mini { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 196px; padding: 20px; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  font: 800 24px/1.06 var(--f-display); letter-spacing: -.035em; transition: background-color 200ms; }
.mini .i { width: 44px; height: 44px; padding: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; stroke-width: 2; }
.mini-ink { background: var(--ink); color: #fff; }

/* ---------- Reviews ---------- */
.rv-head { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.rv-say, .rv-score { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 0; }
.rv-say .h2 { font-size: 34px; line-height: .92; }
.rv-say .dim { font-size: 14px; }
.score { font: 800 68px/.8 var(--f-display); letter-spacing: -.08em; }
.stars { display: flex; gap: 2px; color: var(--red-t); }
.stars .i { width: 16px; height: 16px; }
.rv-card { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: var(--cpad); border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px #ededeb; }
.stars-sm { color: var(--red-t); font-size: 13px; letter-spacing: .1em; }
.rv-card blockquote { font: 800 21px/1.08 var(--f-display); letter-spacing: -.035em; }
.rv-by { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 13px; }
.rv-by span { color: var(--c-muted); font-weight: 600; text-align: right; }
.sample { font-size: 12px; color: var(--c-muted); font-weight: 600; }

/* ---------- Services ---------- */
.ix { display: grid; gap: var(--gap); }
.ix-say { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.ix-count { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 18px; }
.count { font: 800 80px/.78 var(--f-display); letter-spacing: -.075em; }
.ix-count .lbl { margin-bottom: 8px; }
.ix-p { font-size: 15px; line-height: 1.3; font-weight: 700; }
.feat { display: grid; margin-top: var(--gap); border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; }
.feat > img { display: none; width: 100%; height: 100%; object-fit: cover; }
.feat-body { display: flex; flex-direction: column; gap: 14px; padding: var(--cpad); }
.feat-top { display: flex; justify-content: space-between; gap: 12px; }
.feat-body .h2 { font-size: 38px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 6px; }
.facts div { display: grid; gap: 14px; align-content: space-between; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink-2); }
.facts dt { color: var(--dim-2); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.facts dd { font-size: 15px; font-weight: 700; line-height: 1.25; }
.svc-list { margin-top: var(--gap); }
.svc { display: flex; flex-direction: column; gap: 10px; padding: var(--cpad); border-radius: var(--r-lg); background: var(--card); }
.svc-n { font: 800 56px/.8 var(--f-display); letter-spacing: -.07em; color: var(--red); margin-bottom: 18px; }
.svc .mute { font-size: 15px; line-height: 1.35; }
.svc-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #d4d4d8; font-size: 15px; font-weight: 800; }

/* ---------- Insurance & pricing ---------- */
.ins-grid { display: grid; gap: var(--gap); }
.ins-plans { display: grid; gap: 16px; }
.ins-plans .h2 { font-size: 34px; }
.ticks { display: grid; }
.ticks li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgb(0 0 0 / .14); font-weight: 700; font-size: 16px; line-height: 1.25; }
.ticks .i { color: var(--red-t); stroke-width: 2.5; }
.ins-member { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; }
.ins-member .lbl { grid-column: 1 / -1; }
.member { display: flex; align-items: baseline; gap: 2px; font: 800 72px/.8 var(--f-display); letter-spacing: -.07em; }
.member small { font-size: 18px; letter-spacing: -.02em; }
.ins-member-p { font-size: 15px; line-height: 1.3; font-weight: 700; }
.ins-prices { display: grid; gap: 12px; }
.ins-prices h3 { font-family: var(--f-body); }
.prices { display: grid; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .16); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.prices dt small { display: block; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-top: 2px; }
.prices dd { white-space: nowrap; }

/* ---------- First visit ---------- */
.first-h { font-size: 34px; margin: 6px 4px 14px; }
.steps { display: grid; gap: var(--gap); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 16px var(--cpad); border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px #ededeb; }
.step-n { font: 800 48px/.8 var(--f-display); letter-spacing: -.07em; color: var(--red); }
.step .h4 { margin-bottom: 6px; }
.step .mute, .step p { font-size: 15px; line-height: 1.35; }
.step-red { background: var(--red); color: #fff; box-shadow: none; }
.step-red .step-n { color: #fff; }

/* ---------- Smile gallery ---------- */
.gal-head { display: grid; gap: 12px; margin: 6px 4px 16px; }
.gal-head .h1x { font-size: 40px; }
.gal-head p { font-size: 15px; }
.case { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 28%; }
.case img.face-low { object-position: 50% 64%; }
.case-b { display: grid; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.case-meta { display: flex; gap: 16px; margin-top: 6px; padding-top: 10px; border-top: 1px solid #d4d4d8; font-size: 14px; font-weight: 800; }

/* ---------- Team ---------- */
.ab { display: grid; gap: var(--gap); }
.ab-say { display: flex; flex-direction: column; gap: 16px; }
.ab-say .h2 { font-size: 32px; }
.ab-say .dim { font-size: 15px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.stat { display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 14px; min-height: 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px #ededeb; }
.stat dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.stat dd { font: 800 44px/.8 var(--f-display); letter-spacing: -.07em; }
.stat-red { background: var(--red); color: #fff; box-shadow: none; }
.stat-ice { background: var(--ice); box-shadow: none; }
.team-list { margin-top: var(--gap); }
.doc { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px #ededeb; }
.doc-mono { display: grid; place-items: end start; aspect-ratio: 1; padding: 8px 10px; border-radius: var(--r-sm); background: var(--red); color: #fff; font: 800 32px/.8 var(--f-display); letter-spacing: -.06em; }
.doc-ink { background: var(--ink); }
.doc-ice { background: var(--ice); color: var(--ink); }
.doc .lbl { margin: 6px 0 8px; }
.doc .mute { font-size: 15px; line-height: 1.35; }

/* ---------- Contact ---------- */
.ct-top, .ct-main, .ct-side { display: grid; gap: var(--gap); }
.ct-main { margin-top: var(--gap); }
.ct-say { display: flex; flex-direction: column; gap: 16px; }
.ct-say .h1x { font-size: 38px; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; }
.ct-where { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 16px; transition: background-color 200ms; }
.ct-where > .lbl:first-child, .ct-dir { grid-column: 1 / -1; }
.state { font: 800 64px/.78 var(--f-display); letter-spacing: -.08em; }
.ct-addr { font: 800 20px/1.1 var(--f-display); letter-spacing: -.03em; }
.ct-dir { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.ct-dir .i { width: 16px; height: 16px; stroke-width: 2.25; }
.book { display: grid; gap: 16px; }
.book .h3 { margin-top: -6px; }
.f-grid { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #3d3d3d; }
.f label small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--c-muted); }
.f input, .f select { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); background: #fff; font-size: 16px; font-weight: 600; appearance: none; }
.f input::placeholder { color: #6e6e6e; }
.f input:focus-visible, .f select:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.sel { position: relative; display: block; }
.sel .i { position: absolute; right: 16px; top: 50%; translate: 0 -50%; pointer-events: none; }
.f-end { display: grid; gap: 10px; justify-items: start; }
.sent { display: none; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: #fff; font-size: 15px; line-height: 1.35; box-shadow: inset 0 0 0 1px #d4d4d8; }
.sent .i { color: var(--c-accent-2); stroke-width: 2.5; margin-top: 1px; }
.sent:target { display: flex; }
.ct-hours { display: grid; gap: 14px; }
.hours { display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(0 0 0 / .14); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.ct-call { display: grid; gap: 10px; }
.ct-big { display: inline-flex; align-items: center; min-height: 44px; font: 800 30px/1 var(--f-display); letter-spacing: -.04em; }
.ct-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ct-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Emergency ---------- */
.em { display: grid; gap: 20px; justify-items: start; }
.em > div { display: grid; gap: 12px; }
.em .h1x { font-size: 44px; }
.em .dim { font-size: 15px; max-width: 520px; }

/* ---------- Footer: black slab with rounded top, CTA card + red 01 card, three cards, the phone number in big type ---------- */
.foot { margin-top: 16px; background: var(--ink); color: #fff; border-radius: 12px 12px 0 0; padding: 28px 16px calc(20px + env(safe-area-inset-bottom)); }
.foot-in { max-width: 1152px; margin-inline: auto; }
.f-cta { display: grid; gap: 12px; }
.f-say { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px #262626; }
.f-say .h1x { font-size: 44px; }
.f-say-end { display: grid; gap: 18px; justify-items: start; }
.f-say-end .dim { font-size: 15px; max-width: 440px; }
.f-red { display: none; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--red); }
.f-red .count { margin-top: 18px; }
.f-red-h { font: 800 26px/1 var(--f-display); letter-spacing: -.04em; }
.f-red-p { font-size: 14px; line-height: 1.35; font-weight: 600; margin-top: -8px; }
.f-cols { display: grid; gap: 10px; margin-top: 12px; }
.f-col:not(.f-pages) { display: none; }
.f-col { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: 14px; background: rgb(255 255 255 / .05); }
.f-name { font: 800 26px/1 var(--f-display); letter-spacing: -.04em; }
.f-addr { display: inline-block; min-height: 44px; }
.f-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.f-links a { display: inline-flex; align-items: center; min-height: 44px; font: 800 18px/1.1 var(--f-display); letter-spacing: -.02em; }
.f-phone { display: block; width: fit-content; padding-block: 4px; margin-top: 36px; font: 800 clamp(44px, 10.4vw, 150px)/.86 var(--f-display); letter-spacing: -.065em; white-space: nowrap; }
.f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #262626; font-size: 13px; color: var(--dim); }
@media (hover: hover) and (pointer: fine) {
  .f-links a:hover, .f-addr:hover { color: #bdbdbd; }
  .f-phone:hover { color: var(--red-on-ink); }
  .ct-where:hover { background: #cf2015; }
  .mini:hover { background: #f0f0f0; } .mini-ink:hover { background: #1f1f1f; }
}

/* ---------- One motion moment: cards rise into place as they scroll in (transform only, CSS scroll timeline) ---------- */
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  @supports (animation-timeline: view()) {
    .tile, .rv-card, .svc, .case, .doc, .step, .stat, .ins-grid > .card, .feat { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes rise { from { translate: 0 48px; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-card, .menu, .menu-list li, .btn, .btn .i { animation: none !important; transition: none !important; }
}

/* phones: the shortest copy only (length budget: 10 screens) */
@media (max-width: 759px) {
  .gal-head p, .ab-say .dim, .f-say-end .dim, .rv-say .dim { display: none; }
}

/* ================= Tablet (760+) ================= */
@media (min-width: 760px) {
  :root { --pad: 20px; --cpad: 28px; --bar-h: 72px; }
  .bar { padding: 0 24px; }
  .logo-w { font-size: 24px; }
  .hero-card { height: clamp(560px, calc(100svh - var(--bar-h) - 60px), 820px); padding: 36px 40px 36px 48px; }
  .hero-card::before { content: none; }
  .hero-img { inset: 0; height: 100%; object-position: 100% 30%; }
  .hero-lede { max-width: 300px; font-size: 17px; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
  .hero-act { flex-direction: column; align-items: flex-end; }
    .t-b .giant, .t-c .giant { font-size: 44px; }
  .rv-say .h2, .ins-plans .h2, .first-h, .ab-say .h2 { font-size: var(--t-h2); }
  .gal-head .h1x, .ct-say .h1x, .em .h1x, .f-say .h1x { font-size: var(--t-h1x); }
  .ix { grid-template-columns: 1.65fr 1fr; }
  .ix-count { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
  .count { font-size: 132px; }
  .feat { grid-template-columns: 1.1fr 1fr; min-height: 520px; }
  .feat > img { display: block; }
  .feat-body .h2 { font-size: 52px; }
  .feat-body > .dim { max-width: 400px; }
  .facts { margin-top: auto; }
  .rail { grid-auto-columns: 44%; }
  .ins-grid { grid-template-columns: 1.2fr 1fr; grid-template-areas: "p m" "p x"; }
  .ins-plans { grid-area: p; align-content: space-between; padding: 36px; }
  .ins-member { grid-area: m; } .ins-prices { grid-area: x; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; min-height: 300px; align-content: space-between; padding: 28px; }
  .step-n { font-size: 132px; }
  .gal-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .ab { grid-template-columns: 1.25fr 1fr; }
  .ab-say { justify-content: space-between; padding: 36px; }
  .stat { min-height: 200px; padding: 24px; }
  .stat dd { font-size: 96px; }
  .doc { grid-template-columns: 1fr; padding: 24px; }
  .doc-mono { aspect-ratio: auto; height: 180px; padding: 16px 20px; font-size: 96px; }
  .ct-top { grid-template-columns: 1.6fr 1fr; }
  .ct-say { min-height: 440px; justify-content: space-between; padding: 36px; }
  .ct-where { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 32px; }
  .state { font-size: 164px; margin-top: auto; }
  .ct-addr { font-size: 28px; margin-top: 18px; }
  .ct-main { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .book { padding: 32px; }
  .f-grid { max-width: 560px; }
  .ct-side { height: 100%; grid-template-rows: auto 1fr; }
  .ct-hours, .ct-call { padding: 28px; }
  .ct-call { align-content: end; }
  .em { grid-template-columns: 1fr auto; align-items: end; padding: 40px 48px; }
  .foot { border-radius: 16px 16px 0 0; padding: 88px 24px 22px; margin-top: 20px; }
  .f-cta { grid-template-columns: 1fr 330px; }
  .f-say { padding: 34px; min-height: 430px; justify-content: space-between; }
  .f-say-end { grid-template-columns: 1fr auto; align-items: end; }
  .f-red { display: flex; padding: 32px; justify-content: space-between; }
  .f-col:not(.f-pages) { display: grid; }
  .f-red .count { font-size: 132px; margin-top: 0; }
  .f-red-h { font-size: 30px; }
  .f-cols { grid-template-columns: repeat(3, 1fr); margin-top: 72px; gap: 12px; }
  .f-col { min-height: 250px; padding: 24px; }
  .f-links { display: grid; gap: 0; }
  .f-links a { min-height: 36px; }
  .f-phone { margin-top: 72px; }
}

/* ================= Desktop (1080+): the link row, the full bento ================= */
@media (min-width: 1080px) {
  .d-only { display: inline; } .m-only { display: none; }
  .burger, .menu { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; transition: color 200ms var(--e-out); }
  .site-nav a.pg::before { content: ""; width: calc(var(--on, 0) * 7px); height: 7px; margin-right: calc(var(--on, 0) * 7px); border-radius: 50%; background: var(--red); }
  .site-nav .nav-pill { min-height: 38px; margin-right: 8px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); }
  .bar-call { margin-left: 12px; }
  @media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: #6b6b6b; } }

  .hero-card { padding: 44px 44px 40px 48px; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 520px auto auto auto; grid-template-areas: "a b" "c e" "d e" "f e"; }
  .bento-grid > .t-d { display: grid; height: 250px; }
  .bento-grid > .t-e { display: flex; min-height: 760px; }
  .t-a { min-height: 0; }
  .tile-over { padding: 28px; }
  .tile-over .btn { min-height: 50px; font-size: 20px; padding: 0 26px; }
  .t-b { background: #fff; color: var(--ink); padding: 0 32px 40px; }
  .tile-link { font-size: 30px; margin-top: 0; padding-top: 24px; letter-spacing: -.04em; }
  .tile-link .i { width: 24px; height: 24px; }
  .t-c { background: var(--soft); color: var(--ink); min-height: 360px; justify-content: space-between; }
  .t-c .lbl { order: 2; }
  .t-b .giant, .t-c .giant { font-size: var(--t-giant); }
  .t-f { min-height: 260px; flex-direction: row; align-items: flex-end; }
  .t-f .h3 { max-width: 320px; }
  .t-f .btn { min-height: 50px; font-size: 20px; padding: 0 26px; }
  .rv-head { grid-template-columns: 1fr 340px; }
  .rv-say, .rv-score { min-height: 420px; padding: 32px; }
  .score { font-size: 116px; }
  .rv-card blockquote { font-size: 24px; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
  .rv-list { grid-template-columns: repeat(4, 1fr); }
  .rv-card { min-height: 320px; padding: 24px; }
  .ix-say, .ix-count { min-height: 560px; padding: 44px; }
  .ix-say .h1x { font-size: 112px; line-height: .79; letter-spacing: -.06em; }
  .feat { min-height: 660px; grid-template-columns: 1fr 460px; }
  .feat-body { padding: 36px; }
  .feat-body .h2 { font-size: 60px; }
  .svc-list { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; min-height: 380px; padding: 28px; }
  .svc:nth-child(n+4) { grid-column: span 3; }
  .svc-n { font-size: 96px; margin-bottom: auto; }
  .ins-plans { min-height: 640px; padding: 44px; }
  .ins-member, .ins-prices { padding: 32px; }
  .member { font-size: 116px; }
  .ins-member-p { font-size: 17px; max-width: 320px; }
  .gal-list { grid-template-columns: repeat(4, 1fr); }
  .gal-head { margin: 28px 8px 28px; }
  .gal-head p { max-width: 440px; justify-self: end; }
  .first-h { margin: 28px 8px 24px; }
  .team-list { grid-template-columns: repeat(3, 1fr); }
  .ab-say { min-height: 480px; padding: 44px; }
  .ct-say .h1x { font-size: 112px; line-height: .79; letter-spacing: -.06em; }
  .ct-say { min-height: 560px; padding: 44px; }
  .em { margin: 32px 100px 0; padding: 44px 56px; }
  .em .h1x { font-size: 96px; }
}
