@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin-opsz-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; visibility: hidden; }
.booking-closed { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--muted); }
.booking-status { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--raspberry); background: var(--paper); color: var(--ink); }
.open-chip-status { cursor: default; min-width: 190px; }
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Nails by Bracha — fifth mockup.
   Palette refined from Bracha's "About me" carousel: golden apricot → coral → blush,
   deep raspberry for actions, near-black plum for text. */
:root {
  --apricot: #ffc180;
  --coral: #ffa58a;
  --blush: #fbd2da;
  --blush-soft: #fdeceb;
  --raspberry: #a3124c;
  --raspberry-deep: #6f0b33;
  --ink: #2b1419;
  --muted: #6b4f55;
  --paper: #fffaf6;
  --surface: #ffffff;
  --line: #ecd2ca;
  --line-strong: #c99a9a;
  --ok: #1f6b4a;
  --ok-bg: #e4f3ea;
  --wait: #7a4a00;
  --wait-bg: #fff0d2;
  --off: #5c5356;
  --off-bg: #efe9e8;
  --aura: linear-gradient(168deg, var(--apricot) 0%, var(--coral) 46%, var(--blush) 100%);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.022em; color: var(--raspberry-deep); }
h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; }
h3 { font: 600 17px/1.3 var(--sans); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--raspberry-deep); outline-offset: 3px; border-radius: 4px; }
[tabindex='-1']:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1240px, 100% - 2 * clamp(20px, 5vw, 72px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--raspberry-deep); color: #fff; }
.skip-link:focus { top: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(111, 11, 51, .28); color: var(--raspberry-deep); font: 600 12px/1.4 var(--sans); letter-spacing: .02em; vertical-align: middle; }
.svg-defs { position: absolute; }
.preview-status { margin-top: 10px; }
.photo-transition-source, .photo-transition-target { view-transition-name: photo; }
.legal-main { padding-block: clamp(60px,8vw,110px); }
.legal-copy { max-width: 780px; padding-block: 18px 56px; }
.legal-copy h1 { font-size: clamp(44px,5vw,70px); line-height: 1.04; margin-bottom: 28px; }
.legal-copy h2 { font-size: clamp(26px,2.8vw,36px); margin: 42px 0 14px; }
.legal-copy p { margin: 0 0 18px; }
.legal-copy strong { color: var(--raspberry-deep); }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.legal-links a { color: var(--raspberry-deep); text-underline-offset: 4px; }

/* ── mockup notice and header ── */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(255, 250, 246, .96); border-bottom: 1px solid var(--line); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 400 clamp(25px, 2.4vw, 31px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a:not(.btn) { padding: 12px 2px; font-size: 16px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s ease; }
.site-nav a:not(.btn):hover { background-size: 100% 1.5px; }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent; font-weight: 600; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 1.5px solid transparent; border-radius: 99px; font: 600 16px/1.2 var(--sans); text-decoration: none; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-primary { background: var(--raspberry); color: #fff; }
.btn-primary:hover { background: var(--raspberry-deep); }
.btn-quiet { border-color: var(--raspberry-deep); color: var(--raspberry-deep); background: transparent; }
.btn-quiet:hover { background: rgba(255, 255, 255, .55); }
.btn-plain { min-height: 44px; padding: 8px 14px; border-color: var(--line-strong); background: var(--surface); color: var(--ink); font-size: 15px; }
.btn-plain:hover { border-color: var(--raspberry); color: var(--raspberry-deep); }
.btn-danger { border-color: #b3261e; color: #8c1d18; background: var(--surface); }
.btn-danger:hover { background: #fdecea; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--raspberry); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--raspberry-deep); }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: 24px; line-height: 1; }
.icon-btn:hover { border-color: var(--raspberry); }

/* ── hero ── */
.hero { position: relative; isolation: isolate; background: var(--aura); min-height: calc(100svh - var(--header-h) - 36px); display: grid; align-items: center; padding: clamp(36px, 5vh, 64px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.kicker { margin-bottom: 18px; color: var(--raspberry-deep); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.hero h1 { font-size: clamp(42px, 5.1vw, 74px); line-height: 1.02; max-width: 12.5em; text-wrap: balance; }
.lede { max-width: 33em; margin-top: 22px; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.next-open { margin-top: clamp(28px, 4.5vh, 44px); padding-top: 20px; border-top: 1px solid rgba(111, 11, 51, .3); max-width: 560px; }
.next-open-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--raspberry-deep); }
.next-open-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.open-chip { min-height: 48px; padding: 8px 16px; border: 1px solid rgba(111, 11, 51, .35); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .78); text-align: left; font-size: 15px; line-height: 1.25; transition: background-color .18s ease, transform .18s ease; }
.open-chip strong { display: block; font-weight: 600; }
.open-chip:hover { background: #fff; transform: translateY(-2px); }

.hero-photos { position: relative; display: grid; grid-template-columns: 1.32fr 1fr; grid-template-rows: auto auto; gap: 16px; max-width: 560px; justify-self: end; width: 100%; }
.photo { position: relative; padding: 0; border: 6px solid #fff8f3; border-radius: var(--radius); background: #f4d6cd; overflow: hidden; box-shadow: 0 18px 40px rgba(111, 11, 51, .16); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.photo:hover img { transform: scale(1.03); }
.photo-a { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.photo-a img { object-position: 50% 30%; }
.photo-b { aspect-ratio: 1 / 1; margin-top: 34px; }
.photo-b img { object-position: 50% 38%; }
.photo-c { aspect-ratio: 1 / 1; }
.photo-c img { object-position: 50% 32%; }
.star { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(111, 11, 51, .22)); }
.star-1 { width: 74px; top: -26px; right: 8%; transform: rotate(12deg); }
.star-2 { width: 46px; bottom: -14px; left: -18px; transform: rotate(-18deg); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-photos .photo { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .photo-a { animation-delay: .1s; }
  .photo-b { animation-delay: .2s; }
  .photo-c { animation-delay: .3s; }
}

/* ── sections ── */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 46em; margin-bottom: clamp(26px, 3vw, 40px); }
.section-head p { margin-top: 12px; color: var(--muted); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.menu { position: relative; z-index: 1; margin-top: -30px; border-radius: 30px 30px 0 0; background: var(--paper); }
.hero { padding-bottom: calc(clamp(36px, 5vh, 64px) + 30px); }
.hero-next, .polish { display: none; }
.tab-ink { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--raspberry); transition: translate .22s ease-out, width .22s ease-out; }
.book { background: var(--blush-soft); border-block: 1px solid var(--line); }
.work { background: var(--paper); }

/* ── menu ── */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.menu-card { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.menu-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.menu-card h3 { font: 400 clamp(27px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -.02em; }
.price { font: 400 clamp(27px, 2.4vw, 34px)/1.1 var(--serif); color: var(--raspberry); white-space: nowrap; }
.menu-card p { margin-top: 8px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { padding: 5px 12px; border-radius: 99px; background: var(--blush-soft); font-size: 15px; font-weight: 500; }
.menu-card .text-link { margin-top: 10px; }
.addons { margin-top: 20px; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.addons-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 6px; }
.addons-head h3 { font: 400 26px/1.15 var(--serif); letter-spacing: -.02em; }
.addons-head p { color: var(--muted); font-size: 15px; }
.addon-table { width: 100%; border-collapse: collapse; }
.addon-table th, .addon-table td { padding: 14px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.addon-table tr:first-child th, .addon-table tr:first-child td { border-top: 0; }
.addon-table th { font-weight: 600; width: 46%; padding-right: 16px; }
.addon-table th small { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; font-weight: 400; }
.addon-table td.num { white-space: nowrap; text-align: right; font-weight: 600; color: var(--raspberry-deep); }
.addon-table td.time { color: var(--muted); white-space: nowrap; }
.note { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--coral); background: #fff4ee; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; color: var(--ink); }
.note strong { color: var(--raspberry-deep); }

/* ── booking ── */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.steps { display: grid; gap: 18px; min-width: 0; }
.step { min-width: 0; margin: 0; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step > legend, .step-title { float: left; width: 100%; padding: 0; margin-bottom: 16px; font: 600 19px/1.3 var(--sans); display: flex; align-items: center; gap: 12px; }
.step > legend + *, .step-title + * { clear: both; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--raspberry-deep); color: #fff; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); font-size: 15px; }
.hint { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cards-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-radio { position: relative; display: block; }
.card-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.card-face { display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s ease, background-color .15s ease; }
.card-face strong { font-weight: 600; }
.card-face span { font-size: 15px; color: var(--muted); }
.card-face .card-price { color: var(--raspberry-deep); font-weight: 600; }
.card-radio:hover .card-face { border-color: var(--raspberry); }
.card-radio input:checked + .card-face { border-color: var(--raspberry-deep); background: #fff1f0; box-shadow: inset 0 0 0 1.5px var(--raspberry-deep); }
.card-radio input:checked + .card-face strong::after { content: ' ✓'; color: var(--raspberry); }
.card-radio input:focus-visible + .card-face { outline: 3px solid var(--raspberry-deep); outline-offset: 3px; }
.subhead { margin: 20px 0 10px; font: 600 16px/1.3 var(--sans); }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--raspberry); flex: none; }
.check-row span small { display: block; color: var(--muted); font-size: 15px; }
.check-row:has(input:checked) { border-color: var(--raspberry-deep); background: #fff1f0; }

/* availability board (shared by booking and reschedule) */
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.board-bar p { font-size: 15px; color: var(--muted); }
.board-pager { display: flex; gap: 8px; }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffbf8; }
.day[hidden] { display: none; }
.day-name { text-align: center; font-size: 15px; line-height: 1.25; margin-bottom: 2px; }
.day-name strong { display: block; font-weight: 600; }
.day-name span { color: var(--muted); font-size: 14px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot-face, .slot-taken, .slot-off { display: grid; place-items: center; align-content: center; width: 100%; min-height: 54px; padding: 5px 2px; border-radius: 8px; text-align: center; font-size: 15px; line-height: 1.2; }
.slot-face { border: 1.5px solid var(--raspberry); background: var(--surface); color: var(--raspberry-deep); font-weight: 600; transition: background-color .15s ease; }
.slot:hover .slot-face { background: #fff1f0; }
.slot input:checked + .slot-face { background: var(--raspberry); color: #fff; border-color: var(--raspberry); }
.slot input:focus-visible + .slot-face { outline: 3px solid var(--raspberry-deep); outline-offset: 2px; }
.slot-taken { border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); }
.slot-taken s { text-decoration-thickness: 1px; }
.slot-taken small { display: block; margin-top: 1px; color: var(--raspberry); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#moveBoard .slot-taken small { color: var(--muted); font-weight: 400; text-decoration: none; }
button.slot-taken:hover { border-color: var(--raspberry); background: var(--surface); }
button.slot-taken:focus-visible { outline: 3px solid var(--raspberry-deep); outline-offset: 2px; }
.slot-off { border: 1px solid transparent; background: var(--off-bg); color: var(--off); font-size: 14px; }
.day-off { flex: 1; display: grid; place-items: center; min-height: 174px; border-radius: 8px; background: var(--off-bg); color: var(--off); font-size: 14px; text-align: center; padding: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.legend .l-open { border: 1.5px solid var(--raspberry); background: #fff; }
.legend .l-taken { border: 1px dashed var(--line-strong); }
.legend .l-off { background: var(--off-bg); }

/* fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=number], .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--raspberry-deep); outline-offset: 1px; border-color: var(--raspberry-deep); }
.field [aria-invalid=true] { border-color: #b3261e; background: #fff7f6; }
.error { color: #8c1d18; font-size: 15px; font-weight: 600; }
.error:empty { display: none; }
.radio-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radio-inline label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; font-size: 16px; }
.radio-inline input { width: 20px; height: 20px; accent-color: var(--raspberry); }

/* summary */
.summary { position: sticky; top: calc(var(--header-h) + 18px); padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 34px rgba(111, 11, 51, .08); }
.summary h3 { font: 400 26px/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.sum-list { margin: 0; display: grid; gap: 10px; }
.sum-list div { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; text-align: right; font-weight: 500; }
.sum-total { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-total span { font-weight: 600; }
.sum-total strong { font: 400 30px/1 var(--serif); color: var(--raspberry); white-space: nowrap; }
.sum-fine { margin-top: 10px; font-size: 15px; color: var(--muted); }
.summary .btn { margin-top: 18px; }
.form-status { margin-top: 10px; font-size: 15px; font-weight: 600; color: #8c1d18; }
.form-status:empty { display: none; }

/* ── gallery ── */
.owner-gallery-list { display: grid; gap: 18px; }
.owner-gallery-item { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.owner-gallery-item > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.owner-gallery-item form { min-width: 0; }
.owner-gallery-item .studio-actions { flex-wrap: wrap; }
@media (max-width: 600px) { .owner-gallery-item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } .owner-gallery-item .studio-fields { grid-template-columns: 1fr; } .owner-gallery-item .studio-actions .btn { min-height: 44px; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gallery-empty { margin: 20px 0; color: var(--muted); }
.shot { margin: 0; min-width: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #f0d6cf; aspect-ratio: 4 / 5; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shot button:hover img { transform: scale(1.03); }
.shot figcaption { padding: 10px 2px 0; font-size: 16px; font-weight: 500; }
.viewer { width: min(860px, calc(100vw - 24px)); height: min(800px, calc(100dvh - 24px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: hidden; }
.viewer::backdrop, .sheet::backdrop { background: rgba(43, 20, 25, .82); }
.viewer-frame { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.viewer-image { display: grid; place-items: center; min-height: 0; padding: 16px; background: #f4ddd7; }
.viewer-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 18px; }
.viewer-bar h2 { font-size: 24px; }
.viewer-bar p { font-size: 14px; color: var(--muted); }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-actions .text-link { margin-right: 8px; font-size: 15px; }

/* ── sheet dialog (notify signup, email previews) ── */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: auto; }
.sheet-wide { width: min(700px, calc(100vw - 24px)); }
.sheet-in { position: relative; padding: clamp(20px, 3vw, 30px); }
.sheet-x { position: absolute; top: 12px; right: 12px; }
.sheet-in > .kicker { padding-right: 52px; }
.sheet-in h2 { font-size: 30px; margin-bottom: 8px; }
.sheet-in > p { color: var(--muted); margin-bottom: 16px; }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.sheet .field + .field, .sheet fieldset { margin-top: 14px; }
.sheet fieldset { border: 0; padding: 0; }
.sheet legend { padding: 0; font-size: 15px; font-weight: 600; }

/* ── status pills and banners ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-pending { background: var(--wait-bg); color: var(--wait); }
.pill-confirmed { background: var(--ok-bg); color: var(--ok); }
.pill-cancelled, .pill-declined, .pill-off { background: var(--off-bg); color: var(--off); }
.pill-matched { background: var(--blush); color: var(--raspberry-deep); }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); border: 1px solid; }
.banner h2, .banner h3 { font: 600 19px/1.3 var(--sans); letter-spacing: 0; color: inherit; }
.banner p { margin-top: 4px; font-size: 16px; }
.banner-pending { background: var(--wait-bg); border-color: #e6c27a; color: #4d2f00; }
.banner-confirmed { background: var(--ok-bg); border-color: #9fd0b5; color: #134a32; }
.banner-off { background: var(--off-bg); border-color: #cfc4c2; color: #3c3436; }
.banner-demo { background: #fff; border-color: var(--line-strong); border-style: dashed; color: var(--ink); }

/* ── manage view ── */
.page { padding: clamp(32px, 5vw, 64px) 0 clamp(60px, 8vw, 96px); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
.page-head p { margin-top: 10px; color: var(--muted); }
.crumb { display: inline-flex; margin-bottom: 14px; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.manage-grid.manage-closed { grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; gap: 18px; min-width: 0; }
.panel { padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.panel > h2, .panel > h3 { font: 600 19px/1.3 var(--sans); letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.track li { position: relative; padding-top: 12px; border-top: 4px solid var(--line); font-size: 15px; color: var(--muted); }
.track li strong { display: block; color: var(--ink); }
.track li.done { border-color: var(--raspberry); }
.track li.now { border-color: var(--apricot); }
.todo { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ── admin ── */
.admin-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile dt { font-size: 15px; color: var(--muted); }
.tile dd { margin: 4px 0 0; font: 400 32px/1.1 var(--serif); color: var(--raspberry-deep); }
.tile dd.tile-text { font: 600 17px/1.35 var(--sans); color: var(--ink); }
.tabs { position: relative; display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.tabs button { flex: none; min-height: 48px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; font-size: 16px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--raspberry-deep); }
.tabs button:hover { color: var(--ink); }
.tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--raspberry); color: #fff; font-size: 13px; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.req:first-of-type { border-top: 0; padding-top: 0; }
.req-when { font-weight: 600; }
.req-meta { font-size: 15px; color: var(--muted); }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: flex-end; }
.admin-signin { max-width: 540px; margin-inline: auto; }
.admin-signin form { margin-block: 24px 14px; }
.admin-footnote { margin-top: 18px; }
.admin-notice { margin-bottom: 20px; }
.admin-links { margin-top: 20px; }
.admin-links > .hint { margin-bottom: 14px; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
body:has(.studio-section) .site-header a { display: inline-flex; align-items: center; min-height: 44px; }
body:has(.studio-section) .site-header { height: auto; min-height: var(--header-h); }
body:has(.studio-section) .site-header .header-row { min-height: var(--header-h); height: auto; flex-wrap: wrap; padding-block: 6px; }
body:has(.studio-section) .site-header nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.studio-readiness { margin: 0 0 20px; }
.studio-start-editor, .studio-start-list { display: grid; gap: 8px; }
.studio-start-row { display: flex; align-items: center; gap: 8px; }
.studio-start-row input { min-width: 0; }
.studio-start-row button { flex: 0 0 auto; }
.studio-whole-day { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.studio-whole-day input { width: 20px; height: 20px; }
.studio-same-price { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 7px 2px; background: none; color: var(--raspberry-deep); font: 600 15px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 600px) {
  body:has(.studio-tabs) .studio-section:not(#schedule):not(:target) { display: none; }
  body:has(.studio-tabs) .studio-section:target { display: block; }
  body:has(.studio-tabs):has(.studio-section:target) .studio-section:not(:target) { display: none; }
  body:has(.studio-tabs):has(.studio-section:target) #schedule:not(:target) { display: none; }
}
.studio-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 17px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--raspberry-deep); font-weight: 600; text-decoration: none; }
.studio-tabs a:hover, .studio-tabs a:focus-visible { background: var(--wait-bg); }
.studio-section { margin-bottom: 22px; scroll-margin-top: 84px; }
.studio-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.studio-section-head p, .studio-section > p { color: var(--muted); }
.studio-sched { margin: 20px 0 16px; }
.studio-sched .day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.studio-sched .cell { overflow-wrap: anywhere; }
.studio-sched .cell button { margin-top: 8px; min-height: 44px; }
.cell-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cell-actions .btn { flex: 1 1 96px; padding-inline: 12px; white-space: nowrap; }
.move-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.studio-form { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.studio-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.studio-fields label, .studio-setting > div:first-child label { display: grid; gap: 7px; font-weight: 600; }
.studio-fields input, .studio-setting input, .studio-setting select, .studio-setting textarea { width: 100%; min-width: 0; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font: inherit; }
.studio-setting textarea { min-height: 92px; }
.studio-warning { margin: 18px 0; border: 1px solid #e6c27a; border-radius: 10px; padding: 15px; background: var(--wait-bg); color: #4d2f00; }
.studio-warning p { margin: 4px 0; }
.studio-item-list { display: grid; gap: 12px; margin: 20px 0; }
.studio-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.studio-item-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.studio-item-heading h3 { margin: 0; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-new { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.studio-new form { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.studio-new .studio-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.studio-settings { margin-top: 18px; }
.studio-setting { display: grid; grid-template-columns: minmax(180px,1fr) minmax(0,1.5fr); align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.studio-setting-control { display: flex; align-items: center; gap: 10px; }
.studio-setting-control > :first-child { flex: 1; }
.studio-setting .weekday-checks { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.studio-setting .weekday-checks label { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }
.studio-setting .weekday-checks input { width: 18px; min-height: 18px; }
@media (max-width: 900px) { .studio-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .studio-sched { grid-template-columns: 1fr; } .studio-new { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .studio-fields, .studio-new .studio-fields, .studio-setting { grid-template-columns: 1fr; } .studio-setting-control { align-items: stretch; flex-direction: column; } .studio-setting-control .btn { width: 100%; } .studio-sched .day { display: flex; } }
.admin-email-input { max-width: 360px; width: 100%; min-height: 44px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.urgent { color: var(--raspberry-deep); }
.sync { font-size: 14px; color: var(--muted); }
.empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }
.feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feed li { padding-left: 14px; border-left: 3px solid var(--coral); font-size: 15px; }
.feed time { display: block; color: var(--muted); font-size: 14px; }
.sched { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sched .day { background: var(--surface); }
.cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 100%; min-height: 62px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: #fffbf8; font-size: 14px; line-height: 1.25; text-align: left; }
.cell b { font-weight: 600; }
.cell-open { border-style: dashed; color: var(--muted); }
button.cell:hover { border-color: var(--raspberry); }
.cell-pending { background: var(--wait-bg); border-color: #e6c27a; color: #4d2f00; }
.cell-confirmed { background: var(--ok-bg); border-color: #9fd0b5; color: #134a32; }
.cell-off { background: var(--off-bg); border-color: transparent; color: var(--off); }
.day-tools { margin-top: 2px; }
.day-tools button { width: 100%; min-height: 32px; border: 0; background: none; color: var(--raspberry); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 16px; }
.table thead th { border-top: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.table input[type=text], .table input[type=number] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.table input[type=number] { max-width: 96px; }
.table-scroll { position: relative; overflow-x: auto; }
.thumb { width: 60px; height: 75px; object-fit: cover; border-radius: 8px; }
.row-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.saved { margin-left: 12px; color: var(--ok); font-weight: 600; font-size: 15px; }
.mail-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mail-pick button[aria-pressed=true] { border-color: var(--raspberry-deep); background: #fff1f0; color: var(--raspberry-deep); }
.mail-meta { margin: 0 0 12px; display: grid; gap: 4px; font-size: 15px; }
.mail-meta div { display: flex; gap: 10px; }
.mail-meta dt { flex: none; width: 70px; color: var(--muted); }
.mail-meta dd { margin: 0; font-weight: 500; }
.mail-frame { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #f6eeea; padding: clamp(10px, 2vw, 22px); }
.mail-plain { margin-top: 14px; }
.mail-plain summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--raspberry); }
.mail-plain pre { margin: 0; padding: 14px; border-radius: 8px; background: #2b1419; color: #fff3ec; font: 14px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cal-event { padding: 14px 16px; border-left: 5px solid var(--raspberry); border-radius: 8px; background: #fff4ee; font-size: 15px; }
.cal-event strong { display: block; font-size: 17px; }
.kv { margin: 0; display: grid; gap: 8px; font-size: 16px; }
.kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ── footer ── */
.site-footer { padding: 40px 0; background: var(--raspberry-deep); color: #ffe9e4; font-size: 15px; }
.site-footer .brand { color: #fff; margin-bottom: 8px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-row p { max-width: 32em; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .book-grid, .manage-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { justify-self: stretch; max-width: none; margin-top: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-photos .photo { grid-row: auto; aspect-ratio: 3 / 4; margin-top: 0; }
  .book-grid, .manage-grid, .admin-cols, .cal-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .board, .sched { grid-template-columns: 1fr; }
  .day { display: grid; grid-template-columns: 84px repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; padding: 8px; }
  .day-name { text-align: left; margin: 0; }
  .day-off { grid-column: 2 / -1; min-height: 54px; }
  .sched .day { grid-template-columns: 84px repeat(3, minmax(0, 1fr)); }
  .sched .day-tools { grid-column: 1 / -1; }
  .sched .day-tools button { text-align: left; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(43, 20, 25, .12); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { min-height: 48px; display: flex; align-items: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photos { grid-template-columns: 1.32fr 1fr; gap: 12px; }
  .hero-photos .photo-a { grid-row: 1 / 3; }
  .hero-photos .photo-b, .hero-photos .photo-c { aspect-ratio: 1 / 1; }
  .star-1 { width: 54px; right: 4%; }
  .star-2 { left: -8px; }
  .menu-grid, .cards, .cards-3, .fields { grid-template-columns: 1fr; }
  .section-head-row { display: block; }
  .addon-table th { width: auto; }
  .addon-table td.time { display: none; }
  .addon-table th small.time-inline { display: block; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .req { grid-template-columns: 1fr; }
  .req-actions { justify-content: flex-start; }
  .footer-links { align-items: flex-start; }
  .kv div { grid-template-columns: 1fr; gap: 0; }
  .track { grid-template-columns: 1fr; }
  .viewer-bar h2 { font-size: 20px; }
}
@media (min-width: 701px) { .addon-table th small.time-inline { display: none; } }
@media (max-width: 420px) {
  .day, .sched .day { grid-template-columns: 62px repeat(3, minmax(0, 1fr)); gap: 6px; }
  .slot-face, .slot-taken, .slot-off { font-size: 14px; }
  .slot-taken small { font-size: 12px; }
  .gallery { gap: 10px; }
  .shot figcaption { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── motion: feedback for an action, never decoration. One shot, ≤ 500 ms, transform and opacity only. ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes price-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  @keyframes tick-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
  @keyframes press-in { from { transform: scale(.94); } to { transform: none; } }
  @keyframes slide-next { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
  @keyframes slide-prev { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
  @keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
  @keyframes ring { from { opacity: 1; transform: scale(.96); } to { opacity: 0; transform: scale(1.12); } }
  @keyframes fill { from { transform: scaleX(0); } to { transform: none; } }

  /* 1. estimate changes */
  .sum-total strong { display: inline-block; }
  .sum-total strong.tick { animation: price-in .18s ease-out both; }
  /* 2. service and design cards */
  .card-radio input:checked + .card-face strong::after { display: inline-block; }
  .is-live .card-radio input:checked + .card-face strong::after { animation: tick-in .16s ease-out both; }
  /* 3. chosen time */
  .is-live .slot input:checked + .slot-face { animation: press-in .15s ease-out both; }
  /* 4. earlier / later dates */
  .board.slide-next { animation: slide-next .2s ease-out both; }
  .board.slide-prev { animation: slide-prev .2s ease-out both; }
  /* 5. dialogs fade and rise on open; closing may snap where discrete transitions are unsupported */
  .sheet, .viewer { transition: opacity .22s ease-out, transform .22s ease-out; }
  .sheet::backdrop, .viewer::backdrop { transition: opacity .22s ease-out; }
  @starting-style {
    .sheet[open], .viewer[open] { opacity: 0; transform: translateY(12px); }
    .sheet[open]::backdrop, .viewer[open]::backdrop { opacity: 0; }
  }
  /* 6. failed submit */
  .shake { animation: shake .3s ease-in-out both; }
  /* 7. request sent or changed: progress fills in order, banner settles */
  .banner.fresh { animation: price-in .3s ease-out both; }
  .track.fresh li { border-top-color: var(--line); }
  .track.fresh li.done::before, .track.fresh li.now::before { content: ''; position: absolute; top: -4px; left: 0; right: 0; height: 4px; background: var(--raspberry); transform-origin: left; animation: fill .35s ease-out both; }
  .track.fresh li.now::before { background: var(--apricot); }
  .track.fresh li:nth-child(2)::before { animation-delay: .25s; }
  .track.fresh li:nth-child(3)::before { animation-delay: .5s; }
  /* 8. a time preselected from the hero is pointed out once, after the scroll lands */
  .slot-face.flash::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--raspberry); border-radius: 12px; pointer-events: none; opacity: 0; animation: ring .5s .6s ease-out both; }
}

/* ── motion, part two: optional polish (plan items 9–14) ── */
@media (prefers-reduced-motion: no-preference) {
  /* 9. gallery thumbnail grows into the viewer */
  ::view-transition-group(photo) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
  .viewer.no-fade, .viewer.no-fade::backdrop { transition: none; }
  /* 10. admin numbers tick when they change */
  .tile dd.tick { animation: price-in .2s ease-out both; }
  /* 13. stars settle in with the hero */
  @keyframes star-in { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
  .star { animation: star-in .5s .45s cubic-bezier(.2, .8, .2, 1) both; }
  /* 14. phone menu drops in */
  @media (max-width: 700px) {
    .site-nav.open { transition: opacity .18s ease-out, transform .18s ease-out; }
    @starting-style { .site-nav.open { opacity: 0; transform: translateY(-8px); } }
  }
}

/* ── hero scroll sequence and gallery reveal.
   Driven natively from the scroll position (no library, no scroll listener). Browsers
   without that support (iOS 18 and earlier) fail the @supports test and keep the static
   hero: there is deliberately no script fallback, because that is the code that janks.
   From 901px the hero pins for 90% of a screen while the sequence plays; below that the
   page never pins and the photos and polish animate as they scroll through view.
   The drawn polish was replaced on 2026-11-18 by real-looking footage that scroll steps through (see HERO.md); the sequence around it is the mockup's.
   No photo is ever shown wider than its 480px source. ── */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0 1px)) {
    /* the nail polish: real-looking footage of a bottle tipping out a run of polish (see HERO.md).
       It has a white ground, so multiply lets the page's gradient show through it. .polish is
       the first frame as a picture. Over the part that changes sits a reel of 60 stills on one
       sheet (10 by 7; the last row is spare copies of the final frame), and scroll moves the
       sheet one frame at a time: transform only, no script. The reel fades in over its top and
       side edges so no seam shows where it crosses the bottle. The six percentages on
       .polish-reel and .polish-sheet are printed by tools/hero-film-prep.cjs. */
    .polish { display: block; position: absolute; z-index: 0; top: -35%; right: -16%; width: 68%; aspect-ratio: 9 / 16; background: url('/assets/hero-pour-start.webp') center / 100% 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; transform-origin: 29.5% 25%; scale: .5; translate: 5% -12%; }
    .polish-reel { position: absolute; left: 30.556%; top: 35.625%; width: 40%; height: 40.625%; overflow: hidden;
      -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%), linear-gradient(to right, transparent, #000 9%, #000 94%, transparent); -webkit-mask-composite: source-in;
      mask-image: linear-gradient(to bottom, transparent, #000 7%), linear-gradient(to right, transparent, #000 9%, #000 94%, transparent); mask-composite: intersect; }
    .polish-sheet { width: 1027.778%; height: 710.769%; background: url('/assets/hero-pour-reel.webp') 0 0 / 100% 100% no-repeat; }
    .hero-photos .photo { z-index: 1; }
    .star-1 { top: -34px; right: auto; left: -34px; }
    .star-2 { bottom: -22px; left: auto; right: 30%; }
    @keyframes polish-in { to { scale: 1; translate: 0 0; } }
    @keyframes reel-x { to { translate: -90% 0; } }
    @keyframes reel-y { to { transform: translateY(calc(-100% * 6 / 7)); } }
    @keyframes star-drift-1 { to { rotate: 120deg; translate: -40px -70px; } }
    @keyframes star-drift-2 { to { rotate: -90deg; translate: -30px -50px; } }
    @keyframes aura-in { to { opacity: 1; } }
    @keyframes dock { from { scale: 1.26; } to { scale: 1; } }

    /* aura shift and wordmark dock, at every width */
    .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: linear-gradient(168deg, #ffb48a 0%, #fba0a2 48%, #f8c3d6 100%); animation: aura-in linear both; animation-timeline: scroll(root); animation-range: 0 110svh; }
    body:has(#publicView:not([hidden])) .site-header .brand { transform-origin: left center; animation: dock linear both; animation-timeline: scroll(root); animation-range: 0 45svh; }
    @media (max-width: 420px) { @keyframes dock { from { scale: 1.14; } to { scale: 1; } } }

    /* ── desktop: pinned sequence. Screens under 600px tall (a large phone held sideways)
       cannot fit the pinned copy, so they keep the static hero ── */
    @media (min-width: 901px) and (min-height: 600px) {
      .hero { display: block; min-height: 0; height: calc(190svh - var(--header-h)); padding: 0; overflow: clip; }
      .hero-grid { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); padding-block: 36px 66px; }
      /* a pinned element is its own layer, and the footage can only blend with what is inside
         that layer. So while pinned, the gradient and its warming are painted here, edge to edge. */
      .hero-grid::before, .hero-grid::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none; }
      .hero-grid::before { background: var(--aura); }
      .hero-grid::after { opacity: 0; background: linear-gradient(168deg, #ffb48a 0%, #fba0a2 48%, #f8c3d6 100%); animation: aura-in linear both; animation-timeline: scroll(root); animation-range: 0 110svh; }
      .hero-copy, .hero-next { grid-column: 1; grid-row: 1; }
      .hero-photos { grid-column: 2; grid-row: 1; }

      /* 1. the opening copy lifts away … */
      @keyframes copy-out { to { opacity: 0; translate: 0 -48px; visibility: hidden; } }
      .hero-copy { animation: copy-out linear both; animation-timeline: scroll(root); animation-range: 26svh 48svh; }
      /* … and the three-step line arrives in its place */
      @keyframes next-in { from { opacity: 0; translate: 0 44px; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
      .hero-next { display: block; align-self: center; animation: next-in linear both; animation-timeline: scroll(root); animation-range: 50svh 74svh; }
      .hero-next-title { margin-bottom: 30px; max-width: 9.5em; font: 400 clamp(40px, 4.6vw, 68px)/1.04 var(--serif); letter-spacing: -.022em; color: var(--raspberry-deep); }

      /* 2. the side photos part and the lead photo comes forward (397px wide at most) */
      @keyframes lead { from { rotate: -5deg; } to { rotate: 0deg; scale: 1.26; translate: -4% 2%; } }
      @keyframes part-b { from { rotate: 7deg; } to { rotate: 26deg; translate: 85% -70%; opacity: 0; } }
      @keyframes part-c { from { rotate: -8deg; } to { rotate: -24deg; translate: 95% 60%; opacity: 0; } }
      .hero-photos .photo { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, lead linear both; animation-timeline: auto, scroll(root); animation-range: normal, 6svh 58svh; }
      .hero-photos .photo-a { animation-delay: .1s, 0s; z-index: 2; }
      .hero-photos .photo-b { animation-name: rise, part-b; animation-delay: .2s, 0s; animation-range: normal, 4svh 40svh; }
      .hero-photos .photo-c { animation-name: rise, part-c; animation-delay: .3s, 0s; animation-range: normal, 8svh 44svh; }

      /* 3. the bottle comes forward as the side photos part, then scroll steps through the pour */
      .polish { animation: polish-in linear both; animation-timeline: scroll(root); animation-range: 8svh 34svh; }
      .polish-sheet { animation: reel-x steps(10, jump-none) both, reel-y steps(6, jump-end) both; animation-iteration-count: 6, 1; animation-timeline: scroll(root); animation-range: 34svh 78svh; }
      .star-1 { animation: star-in .5s .45s cubic-bezier(.2, .8, .2, 1) both, star-drift-1 linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 80svh; }
      .star-2 { animation: star-in .5s .45s cubic-bezier(.2, .8, .2, 1) both, star-drift-2 linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 80svh; }
    }
    /* short laptop screens: tighten the pinned copy so the open times are not cut off */
    @media (min-width: 901px) and (min-height: 600px) and (max-height: 720px) {
      .hero-grid { padding-block: 20px 50px; }
      .hero .kicker { margin-bottom: 12px; }
      .hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
      .lede { margin-top: 14px; }
      .hero-actions { margin-top: 20px; }
      .next-open { margin-top: 20px; padding-top: 14px; }
    }

    /* ── tablet and phone: no pin; the photos fan in and the polish pours as they pass ── */
    @media (max-width: 900px) {
      .hero { overflow: clip; }
      /* the footage sits above the photos, in room made for it, and runs as it passes through view */
      .hero-photos { --pw: min(52vw, 250px); margin-top: calc(var(--pw) * 1.15 + 10px); view-timeline-name: --photos; }
      .polish { top: calc(var(--pw) * -1.351 + 12px); right: 0; width: var(--pw); scale: 1; translate: none; view-timeline-name: --pour; }
      .hero-photos .photo { z-index: 1; }
      @keyframes fan-a { from { rotate: -11deg; translate: -34% 30px; opacity: .2; } to { rotate: 0deg; translate: 0 0; opacity: 1; } }
      @keyframes fan-b { from { rotate: 14deg; translate: 44% 10px; opacity: .2; } to { rotate: 0deg; translate: 0 0; opacity: 1; } }
      @keyframes fan-c { from { rotate: -13deg; translate: 50% 70px; opacity: .2; } to { rotate: 0deg; translate: 0 0; opacity: 1; } }
      .hero-photos .photo { animation: fan-a linear both; animation-timeline: --photos; animation-range: entry 10% cover 42%; }
      .hero-photos .photo-b { animation-name: fan-b; }
      .hero-photos .photo-c { animation-name: fan-c; }
      .polish-sheet { animation: reel-x steps(10, jump-none) both, reel-y steps(6, jump-end) both; animation-iteration-count: 6, 1; animation-timeline: --pour; animation-range: cover 42% cover 63%; }
      .star-1 { animation: star-drift-1 linear both; animation-timeline: --photos; animation-range: entry 0% exit 100%; }
      .star-2 { animation: star-drift-2 linear both; animation-timeline: --photos; animation-range: entry 0% exit 100%; }
      @keyframes ease-back { to { opacity: .55; } }
      .hero-copy { animation: ease-back linear both; animation-timeline: scroll(root); animation-range: 45svh 100svh; }
    }

    /* gallery photos fade up as each one enters */
    @keyframes shot-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
    .shot { animation: shot-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
