/* Lindenmoor Dental (a made-up clinic, redesigned by Undefault).
   Blue round, owner 2026-11-07: the headline is visible technology. Deep blue, a lighter scan
   blue, white and mist, one warm apricot for calls to action; Sora for headlines, Hanken Grotesk
   for everything else. The showpiece is the 3D scan you can turn. */

@font-face {
  font-family: 'Sora';
  src: url('/demos/lindenmoor/after/fonts/sora-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/demos/lindenmoor/after/fonts/hanken-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/demos/lindenmoor/after/fonts/hanken-grotesk-500.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #eef4fa;
  --mist-deep: #dfe9f4;
  --paper: #ffffff;
  --deep: #0f3b7d;
  --deep-soft: #1d4f96;
  --night: #0a2a5c;
  --scan: #7cc3f2;
  --apricot: #ff8f4d;
  --apricot-hover: #ff7a2e;
  --apricot-text: #b5501a;
  --ink: #0b1c33;
  --muted: #4a5a70;
  --line: #c9d6e5;
  --on-deep: #d5e3f3;
  --on-deep-muted: #a9bfdc;
  --serif: 'Sora', 'Avenir Next', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--deep-soft);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--deep);
  color: var(--paper);
  border-radius: 4px;
}
.skip:focus {
  top: 12px;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--apricot);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--apricot-hover);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn.ghost {
  background: transparent;
  color: var(--deep);
  box-shadow: inset 0 0 0 1.5px var(--deep);
}
.btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--apricot);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--apricot-text);
}
.demo-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Header: thin white type on the photograph, solid once scrolled ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--paper);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.top.solid,
.page-book .top {
  background: var(--mist);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.wordmark {
  font: 600 1.55rem/1 var(--serif);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}
.top nav a:not(.btn) {
  text-decoration: none;
  opacity: 0.92;
}
.top nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.top .btn {
  background: var(--apricot);
  color: var(--ink);
}
.top-call {
  display: none;
}

/* ---------- Hero: the treatment room, full bleed, with a solid deep blue slab below ---------- */
.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: max(640px, 100svh);
}
.hero-media {
  position: relative;
  overflow: hidden;
  background: #8a9bb0;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 140px;
  background: linear-gradient(rgb(6 20 44 / 0.5), rgb(6 20 44 / 0));
  pointer-events: none;
}
.hero-panel {
  background: var(--deep);
  color: var(--paper);
  padding: 34px 0 40px;
}
.hero-panel-in {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: end;
}
.hero h1 {
  font: 600 clamp(2.4rem, 4.6vw, 4.4rem) / 1.02 var(--serif);
  letter-spacing: -0.025em;
  color: var(--paper);
  max-width: 17ch;
}
.hero-lede {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--on-deep);
}
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.tech li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgb(124 195 242 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(124 195 242 / 0.4);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
}
.tech li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scan);
}
.book-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.book-box {
  padding: 24px 26px;
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  box-shadow: 0 24px 48px -28px rgb(4 18 44 / 0.7);
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #1f9d6b;
  box-shadow: 0 0 0 4px rgb(31 157 107 / 0.18);
}
.status.closed .dot {
  background: var(--muted);
  box-shadow: none;
}
.next-open {
  margin-top: 6px;
  color: var(--muted);
}
.next-open b {
  color: var(--ink);
  font-weight: 500;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 18px;
}

/* ---------- The scan you can turn: "what you see is what we see" ----------
   Without JS: the poster (front view) with the two findings visible from the front, and every
   finding open in the list. With JS (.live): the turntable sprite, drag or arrow keys to turn,
   the numbered pins follow their teeth, and one finding is open at a time. */
.scan {
  background: var(--mist);
}
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 36px;
  align-items: start;
}
.viewer-stage {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--night);
  box-shadow: 0 30px 60px -36px rgb(10 42 92 / 0.65);
}
.scan-stage {
  position: relative;
  aspect-ratio: 640 / 574;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.scan-stage.live {
  cursor: grab;
}
.scan-stage.live.dragging {
  cursor: grabbing;
}
.scan-stage:focus-visible {
  outline: 3px solid var(--scan);
  outline-offset: -3px;
}
.scan-poster,
.scan-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--apricot);
  color: var(--ink);
  font: 600 0.95rem/1 var(--serif);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px -6px rgb(4 18 44 / 0.8);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease), background-color 0.2s;
}
.pin-crack {
  left: 79.9%;
  top: 30.7%;
}
.pin-gums {
  left: 50%;
  top: 71%;
}
.pin-gums {
  background: var(--scan);
}
.scan-stage:not(.live) .pin-cavity,
.scan-stage:not(.live) .pin-tartar {
  display: none;
}
.pin.away {
  opacity: 0;
  pointer-events: none;
}
.scan-stage.focus .pin:not(.on) {
  opacity: 0.5;
}
.scan-stage.focus .pin.away {
  opacity: 0;
}
.pin.on {
  transform: translate(-50%, -50%) scale(1.18);
  background: var(--paper);
}
.pin.on::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--scan);
  border-radius: 50%;
  animation: halo 1.8s var(--ease) infinite;
}
@keyframes halo {
  from {
    opacity: 1;
    transform: scale(0.7);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
.scan-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgb(124 195 242 / 0.2);
  color: var(--on-deep);
  font-size: 0.9rem;
}
.views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.view {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(124 195 242 / 0.45);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font-size: 0.85rem;
  cursor: pointer;
}
.view:hover {
  border-color: var(--scan);
}
.view[aria-pressed='true'] {
  border-color: var(--scan);
  background: var(--scan);
  color: var(--night);
}

.findings-title {
  font: 600 1.25rem/1.2 var(--serif);
  color: var(--deep);
}
.find-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.find {
  border-bottom: 1px solid var(--line);
}
.find-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 6px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.find-head:hover {
  background: var(--mist-deep);
}
.find-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--ink);
  font: 600 0.9rem/1 var(--serif);
}
.find[data-find='gums'] .find-n {
  background: var(--scan);
}
.find.on .find-n {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--deep);
}
.find-name {
  font-weight: 500;
}
.find-where {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}
.find-price {
  font: 600 1.15rem/1 var(--serif);
  color: var(--deep);
}
.find-price:not(.num) {
  font: 500 0.9rem/1.2 var(--sans);
  color: var(--muted);
}
.find-price.find-ok {
  color: #1a7a52;
}
.find-body {
  padding: 0 6px 18px 50px;
}
.find-body > p {
  color: var(--ink);
  max-width: 48ch;
}
.find-facts {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}
.find-facts div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.94rem;
}
.find-facts dt {
  color: var(--muted);
}
.find-facts dd {
  margin: 0;
  font-weight: 500;
}
.add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--deep);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.add[aria-pressed='true'] {
  background: var(--deep);
  color: var(--paper);
}
.plan {
  margin-top: 20px;
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: var(--deep);
  color: var(--paper);
}
.plan-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.plan-what {
  color: var(--on-deep);
  font-size: 0.95rem;
}
.plan-total {
  font: 600 1.9rem/1 var(--serif);
  letter-spacing: -0.02em;
}
.plan .btn {
  width: 100%;
  margin-top: 14px;
}
.plan-total.bump {
  animation: bump-total 0.45s var(--ease);
}
@keyframes bump-total {
  from {
    color: var(--scan);
    transform: translateY(-3px);
  }
}

/* Phones: a fixed bar with Book and Call once the hero's own buttons have scrolled away. */
.dock {
  display: none;
}

/* ---------- Visits and fees, with the quiet visit finder beside them ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apricot-text);
}
.section h2 {
  margin-top: 10px;
  font: 600 clamp(1.9rem, 3.4vw, 2.9rem) / 1.08 var(--serif);
  letter-spacing: -0.02em;
  color: var(--deep);
}
.section-lede {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
}
.fees-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 40px;
  align-items: start;
}
.fees {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.fees a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.2s;
}
.fees a:hover {
  background: var(--mist-deep);
}
.fee-name {
  font-weight: 500;
}
.fee-note {
  grid-column: 1;
  font-size: 0.95rem;
  color: var(--muted);
}
.fee-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font: 600 1.45rem/1 var(--serif);
  color: var(--deep);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
}
.fees-foot {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.ask {
  position: sticky;
  top: 96px;
  padding: 28px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line);
}
.ask h3 {
  font: 600 1.6rem/1.15 var(--serif);
  color: var(--deep);
}
.ask > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}
.ask-form {
  margin-top: 18px;
}
.ask-form label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}
.ask-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ask-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.ask-row .btn {
  min-height: 48px;
  padding: 0 18px;
}
.tries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.try {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
}
.try:hover {
  border-color: var(--deep);
}
.answer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  min-height: 72px;
}
.answer-idle {
  color: var(--muted);
  font-size: 0.95rem;
}
.answer h4 {
  margin: 4px 0 0;
  font: 600 1.35rem/1.2 var(--serif);
  color: var(--deep);
}
.answer .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  font-size: 0.93rem;
  color: var(--apricot-text);
  font-weight: 500;
}
.answer .why {
  margin-top: 10px;
  font-size: 0.97rem;
}
.answer .btn {
  margin-top: 14px;
}
.answer .care {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.92rem;
}
.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.answer.shown .reveal {
  opacity: 1;
  transform: none;
}
.typing {
  display: flex;
  gap: 5px;
  padding: 8px 0;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--deep);
  animation: blink 1s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- First visit, step by step ----------
   Without JS, or with reduced motion, the four steps are a plain stacked list, each with its own
   picture. With JS (.live): on a wide screen the picture column is sticky and follows the step in
   the middle of the viewport; on a phone the steps are a sideways track you swipe or tap through. */
.visit {
  background: var(--deep);
  color: var(--paper);
}
.visit .eyebrow {
  color: var(--scan);
}
.visit h2 {
  color: var(--paper);
}
.visit .section-lede {
  color: var(--on-deep);
}
.story {
  margin-top: 40px;
}
.stage-col,
.stage {
  display: none;
}
.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgb(213 227 243 / 0.22);
}
.step-photo {
  margin: 0;
}
.step-photo img,
.stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  background: #173f73;
}
.step-n {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--scan);
}
.step h3 {
  margin-top: 8px;
  font: 600 clamp(1.5rem, 2.4vw, 2rem) / 1.12 var(--serif);
}
.step-text > p:not(.step-n) {
  margin-top: 12px;
  color: var(--on-deep);
  max-width: 46ch;
}
.step-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 0;
}
.step-facts div {
  padding-top: 10px;
  border-top: 2px solid var(--scan);
  min-width: 9rem;
}
.step-facts dt {
  font-size: 0.8rem;
  color: var(--on-deep-muted);
}
.step-facts dd {
  margin: 2px 0 0;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Controls (only with JS) */
.story-count {
  font-weight: 500;
  color: var(--scan);
}
.story-dots {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.story-dot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--on-deep-muted);
  text-align: left;
  cursor: pointer;
}
.story-dot .dot-n {
  font: 600 1.05rem/1 var(--serif);
  min-width: 1.2em;
}
.story-dot:hover,
.story-dot[aria-current='step'] {
  color: var(--paper);
}
.story-dot[aria-current='step'] .dot-n {
  color: var(--scan);
}
.story-arrows {
  display: none;
  gap: 8px;
}
.story-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgb(213 227 243 / 0.4);
  border-radius: 50%;
  background: none;
  color: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
}
.story-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Wide screens: the sticky picture follows the step in the middle of the viewport */
@media (min-width: 961px) {
  .story.live {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
  }
  .story.live .stage-col {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .story.live .stage {
    display: grid;
  }
  .story.live .stage-shot {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
  }
  .story.live .stage-shot.on {
    opacity: 1;
  }
  .story.live .story-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    margin-top: 18px;
  }
  .story.live .story-dots {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
  }
  .story.live .story-dot {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 0;
    border-top: 2px solid rgb(213 227 243 / 0.22);
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .story.live .story-dot[aria-current='step'] {
    border-top-color: var(--scan);
  }
  .story.live .step {
    display: flex;
    min-height: 72vh;
    padding: 0;
    border: 0;
  }
  .story.live .step-photo {
    display: none;
  }
  .story.live .step-text {
    opacity: 0.4;
    transition: opacity 0.4s var(--ease);
  }
  .story.live .step.on .step-text {
    opacity: 1;
  }
}

/* Phones and tablets: a sideways track, swipe or tap */
@media (max-width: 960px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .story.live {
    display: flex;
    flex-direction: column;
  }
  .story.live .stage-col {
    display: contents;
  }
  .story.live .story-nav {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
  }
  .story.live .story-dots {
    display: flex;
    gap: 6px;
    margin: 0;
  }
  .story.live .story-dot {
    width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgb(213 227 243 / 0.4);
  }
  .story.live .story-dot .dot-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .story.live .story-dot .dot-n {
    font: 500 0.9rem/1 var(--sans);
    min-width: 0;
  }
  .story.live .story-dot[aria-current='step'] {
    background: var(--scan);
    border-color: var(--scan);
    color: var(--deep);
  }
  .story.live .story-dot[aria-current='step'] .dot-n {
    color: var(--deep);
  }
  .story.live .story-count {
    display: none;
  }
  .story.live .story-arrows {
    display: flex;
  }
  .story.live .story-steps {
    order: 1;
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .story.live .story-steps::-webkit-scrollbar {
    display: none;
  }
  .story.live .step {
    flex: 0 0 88%;
    align-content: start;
    padding: 0;
    border: 0;
    scroll-snap-align: start;
  }
}

/* ---------- People, paying ---------- */
.people-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 40px;
  align-items: start;
}
.tray img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.tray figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.tray {
  margin: 0;
}
.people {
  margin: 0;
  padding: 0;
  list-style: none;
}
.people li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.people li:first-child {
  border-top: 0;
  padding-top: 0;
}
.people h3 {
  font: 600 1.55rem/1.15 var(--serif);
  color: var(--deep);
}
.people .role {
  margin-top: 4px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--apricot-text);
}
.people p:last-child {
  margin-top: 8px;
}
.paying {
  background: var(--paper);
}
.paying-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 36px;
}
.paying h3 {
  font: 500 1.08rem/1.35 var(--sans);
}
.paying-cols p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Find us ---------- */
.find-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 36px;
}
address {
  font-style: normal;
  font-size: 1.2rem;
}
.find-grid p + p,
address + p {
  margin-top: 14px;
}
.hours {
  width: 100%;
  border-collapse: collapse;
}
.hours th,
.hours td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hours tr.now th,
.hours tr.now td {
  font-weight: 500;
  color: var(--deep);
}
.hours tr.now th::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--apricot);
  vertical-align: 2px;
}
.sat-note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.closing {
  background: var(--deep);
  color: var(--paper);
  text-align: center;
}
.closing h2 {
  color: var(--paper);
}
.closing p {
  margin: 14px auto 28px;
  max-width: 46ch;
  color: var(--on-deep);
}

.foot {
  padding: 40px 0 56px;
  font-size: 0.93rem;
  color: var(--muted);
}
.foot-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  align-items: start;
}
.foot-mark {
  font: 600 1.3rem/1 var(--serif);
  color: var(--deep);
}

/* ---------- Booking page ---------- */
.page-book main {
  padding-top: 112px;
}
.book-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 40px;
}
.book-head h1 {
  font: 600 clamp(2.2rem, 4vw, 3.4rem) / 1.04 var(--serif);
  color: var(--deep);
}
.book-head p {
  margin-top: 10px;
  max-width: 60ch;
  color: var(--muted);
}
.trail {
  display: flex;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.trail li {
  flex: 1;
}
.trail button {
  width: 100%;
  padding: 10px 0 0;
  border: 0;
  border-top: 3px solid var(--line);
  background: none;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.trail button:disabled {
  cursor: default;
}
.trail button[data-done] {
  border-top-color: var(--deep);
  color: var(--ink);
}
.trail button[aria-current='step'] {
  border-top-color: var(--apricot);
  color: var(--ink);
  font-weight: 500;
}
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  margin: 32px 0 80px;
  align-items: start;
}
.panel h2 {
  font: 600 1.9rem/1.1 var(--serif);
  color: var(--deep);
}
.panel h2:focus {
  outline: none;
}
.panel-lede {
  margin-top: 8px;
  color: var(--muted);
}
.enter-fwd {
  animation: in-fwd 0.35s var(--ease);
}
.enter-back {
  animation: in-back 0.35s var(--ease);
}
@keyframes in-fwd {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}
@keyframes in-back {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}
.choices {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover {
  border-color: var(--deep);
}
.choice[aria-pressed='true'] {
  border-color: var(--deep);
  box-shadow: inset 0 0 0 1px var(--deep);
  background: #fff;
}
.choice-name {
  font-weight: 500;
}
.choice-desc {
  grid-column: 1;
  font-size: 0.93rem;
  color: var(--muted);
}
.choice-meta {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  text-align: right;
  font-size: 0.93rem;
  color: var(--muted);
}
.choice-meta b {
  display: block;
  font: 600 1.35rem/1.1 var(--serif);
  color: var(--apricot-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.when-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
}
.when-bar label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}
.when-bar select {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-label {
  font-size: 0.93rem;
  color: var(--muted);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}
.day {
  display: grid;
  gap: 2px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
}
.day:disabled {
  opacity: 0.45;
  cursor: default;
  background: transparent;
}
.day[aria-pressed='true'] {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--paper);
}
.day .d-name {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.day .d-date {
  font-weight: 500;
}
.day .d-free {
  font-size: 0.78rem;
  opacity: 0.8;
}
.slot-groups {
  margin-top: 22px;
}
.slot-group + .slot-group {
  margin-top: 16px;
}
.slot-group h3 {
  font: 500 0.88rem/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.slot {
  min-width: 96px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.slot:hover {
  border-color: var(--deep);
}
.slot[aria-pressed='true'] {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}
.slots-empty {
  color: var(--muted);
}
.swap {
  animation: in-fwd 0.3s var(--ease);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 22px;
}
.field.wide {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.field textarea {
  min-height: 90px;
  padding: 12px 14px;
}
.field input[aria-invalid='true'] {
  border-color: #b42318;
}
.hint {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
}
.err {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: #b42318;
}
.form-err {
  margin-top: 12px;
  color: #b42318;
  font-weight: 500;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 26px;
}
.summary {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line);
}
.summary h2 {
  font: 600 1.4rem/1.2 var(--serif);
  color: var(--deep);
}
.sum-list {
  margin: 14px 0 0;
}
.sum-list div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.sum-list dt {
  font-size: 0.88rem;
  color: var(--muted);
}
.sum-list dd {
  margin: 0;
  font-weight: 500;
}
.sum-list dd.empty {
  font-weight: 400;
  color: var(--muted);
}
.bump {
  animation: bump 0.45s var(--ease);
}
@keyframes bump {
  from {
    background: rgb(124 195 242 / 0.3);
  }
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.sum-total strong {
  font: 600 1.8rem/1 var(--serif);
  color: var(--apricot-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.sum-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
.done-panel .done-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--deep);
}
.done-panel p + p {
  margin-top: 12px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .hero-panel-in,
  .viewer,
  .fees-grid,
  .people-grid,
  .find-grid,
  .book-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ask,
  .summary,
  .viewer-stage {
    position: static;
  }
  .paying-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .book-grid .summary {
    order: -1;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
  .top-in {
    min-height: 58px;
  }
  .top nav a:not(.btn) {
    display: none;
  }
  .top nav {
    gap: 14px;
  }
  .top nav a.top-call {
    display: inline;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .hero {
    min-height: 0;
    grid-template-rows: auto auto;
  }
  .hero-media {
    height: 46svh;
    min-height: 300px;
  }
  .hero-media img {
    object-position: 50% 60%;
  }
  .hero-panel {
    padding: 22px 0 28px;
  }
  .hero-panel-in {
    gap: 18px;
  }
  .hero h1 {
    font-size: 2.15rem;
  }
  .hero-lede {
    display: none;
  }
  .tech {
    gap: 6px;
    margin-top: 14px;
  }
  .tech li {
    min-height: 30px;
    padding: 0 10px 0 8px;
    font-size: 0.82rem;
  }
  .book-box {
    padding: 0;
    background: none;
    color: var(--paper);
    box-shadow: none;
  }
  .book-box .next-open,
  .book-box .book-note {
    color: var(--on-deep);
  }
  .book-box .next-open b,
  .book-box .text-link {
    color: var(--paper);
  }
  .book-note {
    display: none;
  }
  .find-body {
    padding-left: 6px;
  }
  .pin {
    width: 30px;
    height: 30px;
  }
  .book-actions {
    margin-top: 14px;
  }
  .book-actions .btn {
    width: 100%;
  }
  .dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--mist);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease);
  }
  .dock.on {
    transform: none;
  }
  .dock .btn {
    min-height: 48px;
  }
  .fees a {
    padding: 16px 2px;
  }
  .fee-price {
    font-size: 1.3rem;
  }
  .ask {
    padding: 22px 18px;
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot {
    padding-bottom: 96px;
  }
  .page-book main {
    padding-top: 84px;
  }
  .trail button {
    font-size: 0.78rem;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .days {
    gap: 4px;
  }
  .day {
    padding: 8px 2px;
  }
  .day .d-free {
    display: none;
  }
  .summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 16px;
    padding: 14px 18px;
  }
  .summary h2,
  .summary .sum-note,
  .sum-total span {
    display: none;
  }
  .sum-total strong {
    font-size: 1.5rem;
  }
  .sum-list {
    display: none;
  }
  .sum-total {
    border-top: 0;
    padding-top: 0;
  }
  .summary .sum-line {
    display: block;
    margin: 0;
  }
}
.sum-line {
  display: none;
  margin-top: 6px;
  font-size: 0.93rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
