/* Alder & Rowe Dental — one motif: the arched doorway of a Park Slope brownstone.
   Full arch (semicircle over a rectangle) masks every picture; the shallow arch (fully rounded top,
   square foot) is every tab and button; a small arch is the bullet. */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;
  --paper: #ffffff;
  --paper-ink: #0f0f0f;
  --paper-muted: #575757;
  --stone: #e9e9e9;
  --lime-deep: #c3e57f;

  --font: "Bricolage Grotesque", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.1vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4.5rem);
  --step-display: clamp(3.4rem, 0.6rem + 7.6vw, 8.6rem);

  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);

  --arch: 999px 999px 0 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
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; font-optical-sizing: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-paper :focus-visible, .on-lime :focus-visible { outline-color: var(--paper-ink); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.on-paper { background: var(--paper); color: var(--paper-ink); }
.on-lime { background: var(--accent); color: var(--accent-ink); }

/* Pictures share one treatment: black and white, a touch of contrast. */
.photo { filter: grayscale(1) contrast(1.06); object-fit: cover; width: 100%; height: 100%; }
.arch { border-radius: var(--arch); overflow: hidden; }

/* Buttons: the shallow arch, one fill. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.6rem; border-radius: 1.6rem 1.6rem 0 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--paper); color: var(--paper-ink); }
  .button--ink:hover { background: #2b2b2b; color: var(--accent); }
}
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- hero: the doors on the stoop ---------- */
.hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px var(--margin) 0; font-size: var(--step-small); }
.topbar__phone { justify-self: start; text-decoration: none; }
.topbar__book { justify-self: end; text-decoration: none; font-weight: 600; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; fill: var(--accent); }
.hero__title { margin-top: clamp(56px, 8vh, 96px); text-align: center; font-size: var(--step-display); white-space: nowrap; letter-spacing: -0.045em; line-height: 0.9; }
.hero__lede { margin: 28px auto 0; max-width: 46ch; text-align: center; padding-inline: var(--margin); }
.hero__lede strong { font-weight: 600; }

.doors { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; }
.door { position: absolute; left: 7%; width: 86%; height: 100%; top: calc(var(--n) * 62px); background: var(--c); color: var(--ci, var(--paper-ink)); }
.door__tab { position: absolute; bottom: 100%; left: var(--x); display: flex; align-items: center; justify-content: center; height: 44px; width: clamp(150px, 15vw, 220px); border-radius: 22px 22px 0 0; background: var(--c); color: inherit; text-decoration: none; font-size: var(--step-body); font-weight: 500; transition: transform var(--t-ui) var(--ease-out); }
.door__tab:hover, .door__tab:focus-visible { transform: translateY(-6px); }
.door--front { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-content: start; gap: 24px 32px; padding: 32px; }
.door--front__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.door__pic { height: clamp(150px, 26vh, 280px); overflow: hidden; }
.door--front p { max-width: 40ch; font-weight: 500; }

/* ---------- intro ---------- */
.intro { align-items: center; row-gap: 56px; }
.intro__text { grid-column: 1 / span 8; }
.intro__text h2 { margin-bottom: 40px; }
.statement { max-width: 36ch; }

.thumb { display: inline-block; width: 1.05em; height: 0.85em; margin-inline: 0.12em; vertical-align: -0.1em; border-radius: var(--arch); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.intro__film { grid-column: 9 / span 4; }
.intro__film .arch { aspect-ratio: 3 / 4; background: var(--surface); }
.intro__film video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
figcaption { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.on-paper figcaption { color: var(--paper-muted); }
.on-paper .panel figcaption { color: var(--muted); }

/* ---------- treatments: the menu ---------- */
.menu__head { row-gap: 24px; align-items: end; }
.menu__head h2 { grid-column: 1 / span 6; }
.menu__head p { grid-column: 7 / span 5; }
.menu__pic { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 16 / 5; overflow: hidden; }
.menu__group { margin-top: clamp(64px, 7vw, 96px); }
.menu__cat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.menu__cat h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1; }
.menu__count { color: var(--paper-muted); }
.menu__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 36px; }
.item { display: grid; grid-template-columns: 22px 1fr; column-gap: 18px; }
.item::before { content: ""; width: 14px; height: 19px; margin-top: 0.3em; border-radius: var(--arch); background: currentColor; }
.item__row { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.item__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.item p { grid-column: 2; margin-top: 4px; color: var(--paper-muted); max-width: 44ch; }

/* ---------- whitening: the shade guide ---------- */
.shade { min-height: 88svh; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: stretch; padding-block: clamp(48px, 6vw, 88px); }
.guide { align-self: center; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; background: var(--bg); color: var(--ink); padding: clamp(20px, 3vw, 44px); display: grid; grid-template-rows: auto 1fr auto; gap: 20px; }
.guide__legend { font-weight: 500; }
.guide__tabs { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: 1fr 1fr; gap: clamp(8px, 1.2vw, 14px); }
.tab { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 8px; border-radius: var(--arch); background: var(--tooth); color: #3a3226; font-size: var(--step-small); font-weight: 600; transition: transform var(--t-ui) var(--ease-out); }
.tab:hover { transform: translateY(-4px); }
.tab[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 4px; }
.tab.is-goal { outline: 3px dashed var(--ink); outline-offset: 4px; }
.guide__key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); color: var(--muted); }
.guide__key span::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 8px; border-radius: var(--arch); vertical-align: -1px; }
.guide__key .k-now::before { background: var(--accent); }
.guide__key .k-goal::before { background: var(--ink); }

.shade__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(8px, 2vw, 32px) 0; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mode { min-height: 44px; padding: 0 1.1rem; border-radius: 22px 22px 0 0; background: var(--lime-deep); font-size: var(--step-body); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.mode[aria-selected="true"] { background: var(--accent-ink); color: var(--accent); }
.shade__copy h2 { margin-bottom: 40px; }
.shade__result { font-weight: 500; }
.shade__facts { margin-top: 16px; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { display: flex; align-items: center; min-height: 72px; padding: 0 22px; text-decoration: none; font-weight: 600; font-size: var(--step-body); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--accent-ink); color: var(--accent); }
.cell--tone { background: var(--lime-deep); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .cell--ink:hover { background: #2b2b2b; } .cell--tone:hover { background: #b0d465; } }

/* ---------- the first hour: accordion ---------- */
.hour__head { row-gap: 24px; align-items: end; }
.hour__head h2 { grid-column: 1 / span 5; }
.hour__head p { grid-column: 7 / span 5; }
.stages { display: flex; height: 540px; margin-top: 64px; }
.stage { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--c); color: var(--ci); transition: flex-grow 450ms var(--ease-in-out); }
.stage.is-open { flex-grow: 6.5; }
.stage__btn { position: absolute; inset: 0; width: 100%; text-align: left; z-index: 2; }
.stage__name { position: absolute; left: 22px; bottom: 22px; font-size: var(--step-body); font-weight: 600; white-space: nowrap; transform: rotate(-90deg); transform-origin: left bottom; translate: 1.25em 0; transition: opacity var(--t-ui) ease; }
.stage.is-open .stage__name { opacity: 0; }
.stage__body { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; opacity: 0; visibility: hidden; transition: opacity 300ms ease; }
.stage.is-open .stage__body { opacity: 1; visibility: visible; transition-delay: 220ms; }
.stage__body h3 { font-size: var(--step-head); }
.stage__text { display: flex; flex-direction: column; justify-content: space-between; min-width: 22ch; }
.stage__text p { max-width: 36ch; }
.stage__body .arch { height: 100%; }

/* ---------- the dentists: inset panel ---------- */
.panel-wrap { padding: 20px; }
.panel { position: relative; min-height: 110svh; background: var(--bg); color: var(--ink); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.panel__left { padding: 56px; }
.panel__left h2 { color: var(--accent); }
.panel__portrait { position: absolute; left: 56px; bottom: -8%; width: min(38vw, 620px); aspect-ratio: 3 / 4; }
.panel__portrait figcaption { position: absolute; left: calc(100% + 24px); bottom: 14%; width: 22ch; margin: 0; }
.panel__right { grid-column: 2; padding: 56px 56px 56px 13%; display: flex; flex-direction: column; gap: 64px; }
.doc h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 16px; }
.doc p { max-width: 38ch; }

/* ---------- membership: plans that step up ---------- */
.plans { align-items: end; row-gap: 8px; }
.plans__intro { grid-column: 1 / span 8; grid-row: 1; align-self: start; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 24px; }
.plans__intro h2 { grid-column: 1 / -1; }
.plan { grid-row: 1; display: flex; flex-direction: column; background: var(--c); color: var(--ci, var(--paper-ink)); }
.plan:nth-of-type(1) { grid-column: 1 / span 4; height: 380px; }
.plan:nth-of-type(2) { grid-column: 5 / span 4; height: 540px; }
.plan:nth-of-type(3) { grid-column: 9 / span 4; height: 780px; }
.plan__top { padding: 28px; flex: 1; }
.plan__name { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.03em; }
.plan__price { display: block; margin-top: 6px; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan__price small { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; }
.plan ul { margin-top: 24px; display: grid; gap: 6px; padding: 0; list-style: none; }
.plan li::before { content: ""; display: inline-block; width: 10px; height: 13px; margin-right: 12px; border-radius: var(--arch); background: currentColor; vertical-align: -1px; }
.plan__cta { display: flex; align-items: center; min-height: 64px; padding: 0 28px; background: var(--cs); color: inherit; font-weight: 600; text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .plan__cta:hover { background: var(--ch, var(--cs)); } }

/* ---------- questions: index cards ---------- */
.faq h2 { grid-column: 3 / span 8; margin-bottom: 72px; }
.cards { grid-column: 3 / span 8; padding-top: 44px; }
.card { position: relative; background: var(--c); color: var(--ci, var(--paper-ink)); padding-bottom: 60px; z-index: var(--z); }
.card + .card { margin-top: 0; }
.card__tab { position: absolute; bottom: 100%; left: calc(var(--n) * 150px); display: flex; align-items: center; justify-content: center; width: 200px; height: 44px; border-radius: 22px 22px 0 0; background: var(--c); font-size: var(--step-small); font-weight: 500; }
.card__q { display: block; width: 100%; text-align: left; padding: 22px 28px 0; min-height: 64px; font-size: var(--step-body); font-weight: 500; }
.card__q:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.card__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.card__a > div { overflow: hidden; }
.card__a p { padding: 14px 28px 4px; max-width: 54ch; }
.card.is-open .card__a { grid-template-rows: 1fr; }

/* ---------- getting here: index with preview ---------- */
.here__head { row-gap: 24px; align-items: end; }
.here__head h2 { grid-column: 1 / span 6; }
.here__head p { grid-column: 7 / span 5; }
.index { position: relative; margin-top: 64px; }
.index__list { max-width: 100%; }
.index__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--gutter); padding-block: 0.22em; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-decoration: none; transition: opacity var(--t-hover) ease, color var(--t-hover) ease; }
.index__note { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.index__thumb { order: -1; flex-basis: 100%; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 0.3rem; }
.index__frame { display: none; }
@media (hover: hover) and (pointer: fine) {
  .index__list { max-width: 66%; }
  .index__thumb { display: none; }
  .index__row { flex-wrap: nowrap; }
  .index__note { white-space: nowrap; }
  .index__list:has(.index__row:hover, .index__row:focus-visible) .index__row:not(:hover, :focus-visible) { opacity: 0.35; }
  .index__row:hover, .index__row:focus-visible { color: var(--accent); }
  .index__frame { display: block; position: absolute; top: 0; right: 0; width: 28%; aspect-ratio: 3 / 4; z-index: 1; pointer-events: none; border-radius: var(--arch); overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 320ms var(--ease-out), transform 360ms var(--ease-out); }
  .index__frame.is-open { clip-path: inset(0); }
  .index__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
}

/* ---------- booking: the coupon ---------- */
.coupon-row { padding-top: clamp(80px, 9vw, 120px); }
.coupon { grid-column: 2 / span 10; position: relative; display: grid; grid-template-columns: 46fr 54fr; background: var(--accent); color: var(--accent-ink); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 46%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--bg); }
.coupon::before { top: -14px; }
.coupon::after { bottom: -14px; }
.coupon__left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; }
.coupon__left h2 { font-size: var(--step-head); }
.coupon__left p + p { margin-top: 0.6em; }
.coupon__form { display: grid; gap: 10px; align-content: center; padding: 48px; border-left: 5px dotted var(--bg); }
.coupon__form label { font-size: var(--step-small); font-weight: 600; }
.field { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 0; background: var(--lime-deep); color: var(--accent-ink); font-size: var(--step-body); }
.field::placeholder { color: #3d4a26; }
select.field { appearance: none; padding-right: 40px; background-image: none; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 13px; margin-top: -6px; border-radius: var(--arch); background: var(--accent-ink); pointer-events: none; }
.submit { min-height: 56px; margin-top: 6px; background: var(--accent-ink); color: var(--accent); font-weight: 600; font-size: var(--step-body); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: #2b2b2b; } }
.form-note { margin-top: 6px; font-size: var(--step-small); }

/* ---------- footer: the door, built large ---------- */
.foot { padding-top: calc(var(--section) / 2); padding-bottom: 32px; }
.foot__mark { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); height: 34svh; min-height: 220px; }
.foot__mark svg { height: 100%; width: auto; flex: none; fill: var(--accent); }
.foot__name { font-size: clamp(3.4rem, 11.4vw, 13rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.8; white-space: nowrap; }
.foot__cols { margin-top: 56px; row-gap: 32px; }
.foot__links { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px var(--gutter); font-size: var(--step-small); align-content: start; }
.foot__links a { text-decoration: none; }
.foot__contact { grid-column: 9 / span 4; display: grid; gap: 4px; font-size: var(--step-small); align-content: start; }
.foot__contact a { text-decoration: none; }
.credits { margin-top: 48px; color: var(--muted); max-width: 62ch; }
.credits a { text-decoration: underline; text-underline-offset: 0.15em; }
.foot__last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: var(--step-small); color: var(--muted); }
.foot__last .button { min-height: 44px; padding: 0 1.1rem; border-radius: 22px 22px 0 0; font-size: var(--step-small); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .intro__text { grid-column: 1 / span 7; }
  .intro__film { grid-column: 8 / span 5; }
  .shade { grid-template-columns: 1fr; }
  .guide { max-width: 560px; }
  .stage__body { grid-template-columns: 1fr; }
  .stage__body .arch { display: none; }
  .panel { grid-template-columns: 1fr; min-height: 0; }
  .panel__right { grid-column: 1; padding: 0 56px 56px; }
  .panel__portrait { position: relative; left: auto; bottom: auto; width: min(70%, 460px); margin: 24px 56px -12%; }
  .panel__portrait figcaption { position: static; width: auto; }
  .panel__left { padding-bottom: 0; }
  .plans__intro { grid-column: 1 / -1; grid-template-columns: 1fr; margin-bottom: 48px; }
  .plans__intro, .plan { grid-row: auto; }
  .plan:nth-of-type(1), .plan:nth-of-type(2), .plan:nth-of-type(3) { grid-column: span 4; }
  .faq h2, .cards { grid-column: 1 / -1; }
  .index__row { flex-wrap: wrap; }
  .index__note { flex-basis: 100%; }
  .index__list { max-width: 70%; }
  .card__tab { width: 160px; left: calc(var(--n) * 96px); }
  .coupon { grid-column: 1 / -1; }
  .foot__name { font-size: 10vw; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar__phone { display: none; }
  .topbar .wordmark { justify-self: start; }
  .hero { min-height: 640px; }
  .hero__title { margin-top: 72px; font-size: 15vw; white-space: normal; line-height: 0.88; padding-inline: var(--margin); }
  .hero__lede { margin-top: 20px; }
  .doors { top: 58%; }
  .door { left: 0; width: 100%; top: calc(var(--n) * 46px); }
  .door__tab { height: 34px; width: auto; padding: 0 16px; font-size: var(--step-small); border-radius: 17px 17px 0 0; left: var(--xm); }
  .door--front { grid-template-columns: 1fr; padding: 20px var(--margin); }
  .door__pic { display: none; }
  .door--front .button { width: 100%; }

  .intro-section { padding-top: 112px; }
  .intro__text, .intro__film { grid-column: 1 / -1; }

  .menu__head h2, .menu__head p, .hour__head h2, .hour__head p, .here__head h2, .here__head p { grid-column: 1 / -1; }
  .menu__list { grid-template-columns: 1fr; }
  .index__row { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 16px; font-size: var(--step-lead); }
  .index__row > span:first-child { flex: 1; }
  .index__thumb { order: -1; flex: none; flex-basis: 64px; width: 64px; height: 84px; aspect-ratio: auto; margin: 0; border-radius: var(--arch); }
  .index__note { display: none; }

  .guide__tabs { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }

  .stages { flex-direction: column; height: auto; margin-top: 40px; }
  .stage { flex: none; min-height: 64px; }
  .stage__btn { position: relative; inset: auto; display: block; min-height: 64px; }
  .stage__name { position: static; display: block; transform: none; translate: none; padding: 20px; font-size: var(--step-body); }
  .stage.is-open .stage__name { opacity: 1; }
  .stage__body { position: static; display: none; padding: 0 20px 24px; opacity: 1; visibility: visible; }
  .stage.is-open .stage__body { display: block; }
  .stage__body h3 { display: none; }
  .stage__text { min-width: 0; gap: 16px; }
  .stage__text p { font-size: var(--step-body); }

  .panel-wrap { padding: 10px; }
  .panel { display: flex; flex-direction: column; }
  .panel__left { display: contents; }
  .panel__left h2 { order: 1; padding: 28px 20px 0; }
  .panel__right { order: 2; padding: 32px 20px 40px; gap: 40px; }
  .panel__portrait { order: 3; width: 86%; margin: 0 auto -22%; }
  .panel__portrait figcaption { display: none; }
  .plans { row-gap: 40px; }
  .plan:nth-of-type(1), .plan:nth-of-type(2), .plan:nth-of-type(3) { grid-column: 1 / -1; height: auto; }
  .plan__top { padding-bottom: 32px; }
  .card__tab { width: 120px; height: 36px; left: calc(var(--n) * 40px); }
  .card { padding-bottom: 52px; }
  .card__q { padding: 18px 20px 0; }
  .card__a p { padding: 12px 20px 4px; }

  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { top: auto; bottom: auto; left: auto; margin: 0; }
  .coupon::before { left: -14px; top: var(--perf, 50%); margin-top: -14px; }
  .coupon::after { right: -14px; top: var(--perf, 50%); margin-top: -14px; }
  .coupon__left { padding: 32px 20px; }
  .coupon__form { border-left: 0; border-top: 5px dotted var(--bg); padding: 32px 20px; }

  .foot__mark { flex-direction: column; align-items: flex-start; height: auto; min-height: 0; gap: 20px; }
  .foot__mark svg { height: 120px; }
  .foot__name { white-space: normal; }
  .menu__pic { aspect-ratio: 4 / 3; }
  .foot__links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .foot__contact { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
/* Entrances run from tablet width up; on a phone everything is simply there. */
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-drift] { transform: scale(1.12); transition: transform 1800ms var(--ease-soft); }
  .js [data-drift].is-in { transform: none; }
}
/* The hero's opening runs everywhere: keyframes always finish. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .js .door { transform: translateY(40%); animation: door-up 1100ms var(--ease-out) forwards; animation-delay: calc(var(--n) * 80ms + 250ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes door-up { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .stage, .card__a, .index__frame { transition: none; }
}
