/* Wrenhaven demo. Motif: the arch (the dental arch, a doorway). It masks every photograph,
   shapes the buttons and returns as the small mark. Palette: sky and sand, black ink, sun yellow for actions. */
:root {
  --bg: #ffffff;
  --sky: #cbe4f2;
  --sky-2: #bcdcee;
  --sand: #f1e3b5;
  --sun: #ffc013;
  --ink: #0e1a22;
  --muted: #3f5966;
  --line: #d9e3e8;
  --ok: #1b6b4a;
  --err: #a3261b;
  /* first-visit stages, dark to light */
  --st1: #0f3a52; --st2: #255f7d; --st3: #5b97b7; --st4: #9cc8df; --st5: #cbe4f2;

  --font: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  --step-hero: clamp(2.75rem, 1.2rem + 5.2vw, 5.75rem);

  --margin: clamp(16px, 3vw, 48px);
  --radius: 20px;
  --gap-section: clamp(120px, 12vw, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The motif */
.arch { border-radius: 9999px 9999px 0 0; object-fit: cover; }
.logo-arch { display: inline-block; width: 0.9em; height: 1.05em; border-radius: 9999px 9999px 0 0; background: var(--sun); vertical-align: -0.12em; }

/* Buttons: one shape, the pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; min-height: 56px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-sun:hover { background: #ffcd3f; }
  .btn-ink:hover { background: #24333d; }
  a:hover { text-decoration-thickness: 2px; }
}

/* Demo strip and header */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--margin); background: var(--ink); color: #e8eef1; font-size: var(--step-small);
}
.demo-bar a { color: #fff; font-weight: 500; }
.lang { display: flex; gap: 2px; flex: none; }
.lang button { background: transparent; border: 0; border-radius: 999px; min-width: 44px; min-height: 36px; cursor: pointer; color: #e8eef1; font-weight: 600; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--margin); background: var(--bg);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 24px; font-size: var(--step-small); font-weight: 500; }
.top nav a, .top-phone { text-decoration: none; padding: 12px 0; }
.top-phone { font-size: var(--step-small); font-variant-numeric: tabular-nums; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px) var(--margin) 0; min-height: calc(100svh - 120px); overflow: hidden;
}
.hero-text { align-self: center; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.5rem, 0.9rem + 4.3vw, 4.75rem); max-width: 15ch; }
.lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.next { margin-top: 40px; }
.next-h { font-weight: 600; }
.next-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 56px; }
.slot {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 20px;
  border: 0; border-radius: 999px; background: var(--sky); color: var(--ink); cursor: pointer; text-decoration: none;
  line-height: 1.2; text-align: left; font-variant-numeric: tabular-nums;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.slot small { font-size: var(--step-small); color: var(--muted); }
.slot b { font-weight: 600; }
.slot:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .slot:hover { background: var(--sky-2); } }
.more { display: inline-block; margin-top: 14px; font-weight: 500; padding: 6px 0; }
.assure { margin-top: 36px; color: var(--muted); font-size: var(--step-small); }

.hero-art { position: relative; align-self: end; display: grid; justify-items: center; }
.arch-field {
  position: absolute; left: 8%; right: -30%; bottom: 0; height: 92%;
  background: var(--sky); border-radius: 9999px 9999px 0 0;
}
.hero-photo { position: relative; width: min(100%, 520px); aspect-ratio: 3 / 4; height: auto; margin-bottom: 0; }

/* Services: two-column menu, arch photo bullets */
.services { padding: var(--gap-section) var(--margin) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head h2, .book h2, .first h2, .faq h2 { font-size: var(--step-head); }
.count { color: var(--muted); }
.menu { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; }
.menu li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.menu img { width: 72px; height: 88px; }
.item-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item-top span { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu li p + p { margin-top: 6px; color: var(--muted); max-width: 42ch; }
.menu .book-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ink); padding: 4px 0; }

/* Booking on the sky field */
.book { margin-top: var(--gap-section); background: var(--sky); padding: clamp(64px, 8vw, 112px) var(--margin); }
.book-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.book-intro { grid-column: 1 / -1; margin-bottom: 48px; display: grid; grid-template-columns: 1.15fr 0.85fr; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
.book-intro p { max-width: 40ch; }
.book-form { display: grid; gap: 36px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
select, input {
  width: 100%; min-height: 54px; padding: 0 18px; font-size: max(16px, 1rem);
  background: #fff; border: 2px solid transparent; border-radius: 14px;
  transition: border-color 160ms ease;
}
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; cursor: pointer; padding-right: 48px; }
select:focus, input:focus { outline: none; border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--err); }
.details { display: grid; gap: 14px; }
.details label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day, .time {
  border: 0; background: #fff; cursor: pointer; touch-action: manipulation; color: var(--ink);
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.day { min-height: 72px; border-radius: 9999px 9999px 14px 14px; display: grid; place-content: center; text-align: center; line-height: 1.15; padding-top: 6px; }
.day b { display: block; font-size: 1.35em; font-weight: 600; }
.day small { font-size: var(--step-small); }
.times-group + .times-group { margin-top: 16px; }
.times-group p { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.time { min-height: 48px; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 500; }
.day:active, .time:active { transform: scale(0.97); }
.day[aria-checked="true"], .time[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .day:not([aria-checked="true"]):hover, .time:not([aria-checked="true"]):hover { background: #f1f8fc; } }
.hint { color: var(--muted); font-size: var(--step-small); margin-top: 10px; }

/* The appointment slip: a white card whose foot is a row of small arches */
.slip-col { position: sticky; top: 104px; }
.slip {
  background: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 28px 28px 44px; display: grid; gap: 18px;
  font-variant-numeric: tabular-nums;
  -webkit-mask: radial-gradient(circle 11px at 50% 100%, transparent 10.5px, #000 11px) bottom / 28px 100% repeat-x; /* taste-skill-ignore: arch cut-outs, not a visible gradient */
          mask: radial-gradient(circle 11px at 50% 100%, transparent 10.5px, #000 11px) bottom / 28px 100% repeat-x; /* taste-skill-ignore: arch cut-outs, not a visible gradient */
}
.slip-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step-lead); }
.slip dl { margin: 0; display: grid; gap: 12px; }
.slip dl div { display: flex; align-items: baseline; gap: 8px; }
.slip dl div::before { content: ''; order: 2; flex: 1; align-self: center; border-bottom: 3px dotted var(--line); /* taste-skill-ignore: dot leaders of the printed slip */ }
.slip dd { margin: 0; order: 3; text-align: right; font-weight: 600; }
.slip dd.filled { animation: ink 260ms var(--ease-out); }
@keyframes ink { from { opacity: 0; transform: translateY(6px); } }
.slip-result { background: var(--sky); padding: 12px 16px; border-radius: 12px; font-weight: 600; transition: background-color 200ms ease, color 200ms ease; }
.slip-result.ok { background: var(--ok); color: #fff; animation: stamp 260ms var(--ease-out); }
@keyframes stamp { from { opacity: 0; transform: scale(0.96); } }
.form-error { color: var(--err); font-weight: 600; }
.confirmed { display: grid; gap: 12px; }
.done-h { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.confirmed .btn { justify-self: start; }

/* First visit: horizontal accordion of tinted stages */
.first { padding: var(--gap-section) var(--margin) 0; }
.first-intro { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: end; }
.first-intro p { grid-column: 3; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.stages { display: flex; margin-top: 56px; height: 520px; border-radius: var(--radius); overflow: hidden; }
.stage { flex: 1 1 0; min-width: 0; position: relative; transition: flex-grow 450ms var(--ease-in-out); }
.stage[open] { flex-grow: 5.5; }
.stage:nth-child(1) { background: var(--st1); color: #fff; }
.stage:nth-child(2) { background: var(--st2); color: #fff; }
.stage:nth-child(3) { background: var(--st3); color: var(--ink); }
.stage:nth-child(4) { background: var(--st4); color: var(--ink); }
.stage:nth-child(5) { background: var(--st5); color: var(--ink); }
.stage summary { list-style: none; cursor: pointer; height: 100%; padding: 24px; display: flex; align-items: flex-end; font-weight: 600; font-size: var(--step-body); }
.stage summary::-webkit-details-marker { display: none; }
.stage:not([open]) summary span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.stage[open] summary { position: absolute; inset: 0 auto auto 0; height: auto; padding: 32px; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; cursor: default; }
.stage-body { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; align-items: end; }
.stage-body p { max-width: 34ch; line-height: 1.45; }
.stage-body img { height: 100%; max-height: 456px; width: 100%; align-self: end; }
.stage[open] .stage-body { animation: stage-in 380ms var(--ease-out) 120ms both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) and (pointer: fine) { .stage:not([open]) summary:hover span { text-decoration: underline; text-underline-offset: 0.2em; } }

/* FAQ: filled tiles, sticky heading */
.faq { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
.faq-side { position: sticky; top: 104px; display: grid; gap: 32px; }
.faq-side img { width: min(100%, 360px); aspect-ratio: 4 / 5; height: auto; object-position: 40% 50%; }
.tiles { display: grid; gap: 8px; }
.tiles details { background: #f2f6f8; border-radius: var(--radius); transition: background-color 200ms ease; }
.tiles details[open] { background: var(--sun); }
.tiles summary { list-style: none; cursor: pointer; min-height: 72px; padding: 20px 64px 20px 24px; position: relative; font-size: var(--step-body); font-weight: 500; display: flex; align-items: center; }
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary::before, .tiles summary::after { content: ''; position: absolute; right: 26px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease-out); }
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] summary::after { transform: rotate(0deg); }
.tiles details p { padding: 0 24px 24px; max-width: 56ch; }
.tiles details[open] p { animation: ink 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tiles details:not([open]):hover { background: #e6eef2; } }

/* Visit: the coupon */
.visit { padding: var(--gap-section) var(--margin); display: grid; grid-template-columns: 4fr 8fr; gap: 8px; align-items: stretch; }
.visit-photo { width: 100%; height: 100%; min-height: 420px; }
.coupon {
  --notch: 16px; position: relative; display: grid; grid-template-columns: 46fr 54fr;
  background: var(--sun); border-radius: var(--radius);
  -webkit-mask: radial-gradient(circle var(--notch) at 46% 0, transparent 98%, #000) , radial-gradient(circle var(--notch) at 46% 100%, transparent 98%, #000); /* taste-skill-ignore: notches, not a visible gradient */
  -webkit-mask-composite: source-in; mask-composite: intersect;
          mask: radial-gradient(circle var(--notch) at 46% 0, transparent 98%, #000) , radial-gradient(circle var(--notch) at 46% 100%, transparent 98%, #000); /* taste-skill-ignore: notches, not a visible gradient */
}
.coupon-left { padding: 48px; display: grid; gap: 20px; align-content: start; border-right: 5px dotted var(--bg); /* taste-skill-ignore: the coupon's perforation */ }
.coupon-left h2 { font-size: var(--step-head); }
.coupon address { font-style: normal; }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; max-width: 320px; }
.hours th { text-align: left; font-weight: 400; padding: 3px 24px 3px 0; }
.hours td { text-align: right; font-weight: 600; }
.contact-lines a { font-weight: 600; display: inline-block; padding: 6px 0; }
.coupon-right { padding: 48px; display: grid; gap: 10px; align-content: start; }
.coupon-h { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.coupon-right > p:nth-child(2) { margin-bottom: 14px; max-width: 40ch; }
.coupon-right input { background: #ffe08a; }
.coupon-right input::placeholder { color: #5b4a12; }
.coupon-right .btn { margin-top: 6px; }
.cb-msg { font-weight: 600; min-height: 1.5em; }

/* Footer: a row of tiles */
.foot { padding: 0 12px 12px; display: grid; gap: 8px; font-size: var(--step-small); }
.foot-row { display: grid; grid-template-columns: 4fr 3fr 2fr 3fr; gap: 8px; }
.foot-row-2 { grid-template-columns: 7fr 5fr; }
.tile { background: #f2f6f8; border-radius: var(--radius); padding: 24px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile-sky { background: var(--sky); }
.tile-sand { background: var(--sand); }
.tile-ink { background: var(--ink); color: #e8eef1; }
.tile-statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; color: var(--ink); }
.tile-small { color: var(--muted); }
nav.tile { justify-content: flex-start; gap: 2px; }
nav.tile a { font-size: 1.05rem; font-weight: 500; text-decoration: none; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { nav.tile a:hover { text-decoration: underline; } }
.tile-big { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.tile a:not(.tile-big):not(.sig-mark) { padding: 6px 0; display: inline-block; }
.signature { min-height: 160px; justify-content: flex-start; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
.signature a { color: #fff; }
.sig-mark { display: inline-flex; align-items: center; justify-content: center; width: 172px; min-height: 56px; border-radius: 999px; background: var(--sun); color: var(--ink) !important; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.credits { color: var(--muted); display: block; min-height: 160px; }
.credits a { display: inline !important; padding: 0 !important; }
.signature p a { display: inline-block; padding: 8px 0; }
.credits a { color: var(--ink); }

/* Mobile booking bar */
.mobile-bar {
  position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: transform 300ms var(--ease-drawer), opacity 200ms ease;
}
@starting-style { .mobile-bar { transform: translateY(120%); opacity: 0; } }

/* Chat assistant (an interface fragment: data-ui) */
.chat-launch {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
}
.chat-launch:active { transform: scale(0.97); }
.chat-launch[aria-expanded="true"], .chat-launch.tucked { opacity: 0; pointer-events: none; transform: scale(0.95); }
.chat {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 32px));
  display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 64px rgba(14, 26, 34, 0.28); /* taste-skill-ignore: floating dialog */
  transform-origin: bottom right;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
@starting-style { .chat { opacity: 0; transform: scale(0.96) translateY(8px); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; background: var(--sky); }
.chat-head h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.chat-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; font-size: 1rem; line-height: 1.45; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; animation: ink 220ms var(--ease-out); }
.msg.bot { background: #f2f6f8; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.chip { border: 0; background: var(--sky); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--sky-2); } }
.chat-input { display: flex; gap: 6px; padding: 10px; background: #f7fafb; }
.chat-input input { min-height: 48px; background: #f2f6f8; border-radius: 999px; }
.chat-input .btn { min-height: 48px; padding: 0 18px; }

/* Entrances: content is visible without script; only .js pages hide and reveal, once. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > * { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .reveal.in > * { opacity: 1; transform: none; }
  .js .reveal.in > :nth-child(2) { transition-delay: 60ms; }
  .js .reveal.in > :nth-child(3) { transition-delay: 120ms; }
  .js .reveal.in > :nth-child(n+4) { transition-delay: 180ms; }
  .hero-text > *, .hero-photo { animation: rise 500ms var(--ease-out) both; }
  .hero-text > :nth-child(2) { animation-delay: 50ms; }
  .hero-text > :nth-child(3) { animation-delay: 100ms; }
  .hero-text > :nth-child(4) { animation-delay: 150ms; }
  .hero-photo { animation-delay: 80ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  .slot.new { animation: rise 320ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-property: opacity, background-color, color !important; }
}

/* Tablet */
@media (max-width: 1100px) {
  .top nav { display: none; }
  .menu { column-gap: 40px; }
  .book-inner, .book-intro { grid-template-columns: 1fr 1fr; }
}

/* Narrow screens: the hero stacks */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: none; }
  .hero-art { height: 58svh; overflow: hidden; }
  .hero-photo { width: min(70%, 460px); height: 100%; aspect-ratio: auto; }
}

/* Phone: its own composition */
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .demo-bar p { font-size: 0.8125rem; line-height: 1.35; }
  .top { padding: 10px 16px; gap: 12px; }
  .top-phone { display: none; }
  .top .btn { min-height: 44px; padding: 0 18px; }
  .hero { grid-template-columns: 1fr; padding: 20px 16px 0; min-height: 0; gap: 0; }
  .hero-text { padding-bottom: 28px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.75rem); max-width: none; }
  .lead { margin-top: 16px; font-size: 1.125rem; }
  .next { margin-top: 24px; }
  .next-slots { display: grid; grid-template-columns: 1fr 1fr; }
  .slot { padding: 6px 16px; }
  .assure { margin-top: 24px; }
  .hero-art { height: 52svh; overflow: hidden; }
  .arch-field { left: 10%; right: -20%; height: 88%; }
  .hero-photo { width: 78%; height: 100%; aspect-ratio: auto; }

  .services { padding-left: 16px; padding-right: 16px; }
  .menu { grid-template-columns: 1fr; row-gap: 28px; margin-top: 32px; }
  .menu li { grid-template-columns: 56px 1fr; gap: 16px; }
  .menu img { width: 56px; height: 68px; }

  .book { padding: 64px 16px 96px; }
  .book-inner, .book-intro { grid-template-columns: 1fr; }
  .book-intro { margin-bottom: 32px; }
  .book-intro p { margin-top: 12px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .slip-col { position: static; margin-top: 36px; }
  .slip { padding: 24px 20px 40px; }

  .first { padding-left: 16px; padding-right: 16px; }
  .first-intro { grid-template-columns: 1fr; gap: 12px; }
  .first-intro p { grid-column: 1; font-size: 1.125rem; }
  .stages { flex-direction: column; height: auto; margin-top: 32px; }
  .stage summary, .stage[open] summary { position: static; height: auto; min-height: 64px; padding: 18px 20px; font-size: 1.125rem; align-items: center; }
  .stage:not([open]) summary span { writing-mode: horizontal-tb; transform: none; }
  .stage[open] summary { font-size: 1.5rem; padding-bottom: 8px; }
  .stage-body { position: static; grid-template-columns: 1fr; gap: 20px; padding: 0 20px 20px; }
  .stage-body img { height: 220px; }

  .faq { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; gap: 24px; }
  .faq-side { position: static; }
  .faq-side img { display: none; }
  .tiles summary { min-height: 64px; font-size: 1.0625rem; padding: 16px 56px 16px 20px; }
  .tiles details p { padding: 0 20px 20px; }

  .visit { padding: var(--gap-section) 12px; grid-template-columns: 1fr; }
  .visit-photo { min-height: 0; height: 300px; }
  .coupon { grid-template-columns: 1fr; --notch: 14px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 52%, transparent 98%, #000), radial-gradient(circle var(--notch) at 100% 52%, transparent 98%, #000); /* taste-skill-ignore: notches */
            mask: radial-gradient(circle var(--notch) at 0 52%, transparent 98%, #000), radial-gradient(circle var(--notch) at 100% 52%, transparent 98%, #000); /* taste-skill-ignore: notches */
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .coupon-left { padding: 32px 24px; border-right: 0; border-bottom: 5px dotted var(--bg); /* taste-skill-ignore: perforation */ }
  .coupon-right { padding: 32px 24px; }

  .foot { padding: 0 8px 8px; }
  .foot-row, .foot-row-2 { grid-template-columns: 1fr 1fr; }
  .tile-sky, .signature, .credits, .foot-row > .tile:last-child { grid-column: 1 / -1; }
  .tile-big { font-size: 1.25rem; white-space: nowrap; }
  .signature { flex-direction: column; align-items: flex-start; }
  .tile { min-height: 0; padding: 20px; }
  .credits { padding-bottom: 88px; }

  .chat { left: 0; right: 0; bottom: 0; width: auto; height: 100svh; height: 100dvh; border-radius: 0; transform-origin: bottom center; }
}
