/* South Shore Housekeeping
   Palette: ink #000, gilt #D4AF63, champagne #F1E3BF, white #FFF, ash #8C8679
   Type: Bodoni Moda (display), Jost (text), Pinyon Script (one line only) */
:root {
  --ink: #000;
  --gilt: #D4AF63;
  --gilt-deep: #A9853F;
  --champagne: #F1E3BF;
  --text-c: #EEE8DA;
  --white: #fff;
  --ash: #A9A291;
  --line: rgba(212, 175, 99, .32);
  --line-dark: rgba(0, 0, 0, .14);
  --display: 'Playfair Display', 'Didot', Georgia, serif;
  --text: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--text-c);
  font: 400 1.125rem/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gilt); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--champagne), var(--gilt) 55%, var(--gilt-deep)); color: var(--ink); }
.btn-gold:hover { background: var(--champagne); }
.btn-gold:disabled { background: #2a261d; color: var(--ash); cursor: not-allowed; }
.btn-line { border-color: var(--gilt); color: var(--champagne); background: transparent; }
.btn-line:hover { background: rgba(212, 175, 99, .12); }
.btn-small { min-height: 38px; padding: 0 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.btn-text:hover { color: var(--gilt); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px); border-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav-brand img { border-radius: 50%; width: 40px; height: 40px; }
.nav-brand span { font-family: var(--display); font-size: 1.15rem; opacity: 0; transform: translateY(4px); transition: .35s var(--ease); }
.nav.solid .nav-brand span { opacity: 1; transform: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--champagne); opacity: 1; }
.nav-links a:hover { opacity: 1; color: var(--gilt); }
.nav-account { display: flex; align-items: center; gap: 14px; }
.demo-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--champagne); color: var(--ink); font-size: .85rem; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); text-align: center;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-brand span { display: none; }
}

/* ---------- hero ---------- */
.hero { height: 280vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-mark { width: min(64vmin, 520px); aspect-ratio: 1; margin-top: -9vh; will-change: transform, opacity; }
.logo-svg { width: 100%; height: 100%; overflow: visible; }
.logo-svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo-svg .logo-words { font: 500 31px var(--text); letter-spacing: .32em; opacity: 0; }
.logo-svg .spark { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.drawn .logo-svg .draw { animation: draw 1.6s var(--ease) forwards; }
.drawn .logo-svg .draw:nth-child(2) { animation-delay: .15s; }
.drawn .logo-svg .draw:nth-child(3) { animation-delay: .3s; }
.drawn .logo-svg .draw:nth-child(n+4) { animation-delay: .7s; animation-duration: 1.1s; }
.drawn .logo-svg .logo-words { animation: fade 1s 1.2s forwards; }
.drawn .logo-svg .spark { animation: twinkle .7s var(--ease) forwards; animation-delay: calc(1.5s + var(--i) * .12s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes twinkle { 60% { transform: scale(1.3); } to { transform: scale(1); } }

.hero-intro { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; padding: 0 var(--pad); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: .04em; color: var(--champagne); margin-bottom: 22px; opacity: 0; animation: fade .8s 1.9s forwards; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fade .8s 2.1s forwards; }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; letter-spacing: .2em; color: var(--ash); padding-bottom: 26px; opacity: 0; animation: fade 1s 2.6s forwards;
}
.scroll-cue::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 20px; background: var(--gilt); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.hero-photo {
  position: absolute; inset: 0; background: #1a1712;
  clip-path: circle(0px at 50% 41%); will-change: clip-path;
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.1) 22%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.78)); }
.hero-photo-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 12vh; z-index: 2; max-width: 900px; opacity: 0; transform: translateY(30px); }
.hero-photo-line { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 1; color: var(--white); }
.script { font-family: var(--script); font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--gilt); margin-top: .25em; line-height: 1.2; }

/* ---------- promises ---------- */
.promises { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.statement { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 18ch; line-height: 1.12; color: var(--white); }
.promise-list { list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.promise-list li { border-top: 1px solid var(--line); padding-top: 28px; }
.promise-list svg { width: 40px; height: 40px; fill: none; stroke: var(--gilt); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.promise-list h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 10px; }
.promise-list p { color: var(--text-c); max-width: 34ch; }
@media (max-width: 760px) { .promise-list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- services ---------- */
.services { padding: 40px 0 clamp(96px, 12vw, 160px); }
.services-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(32px, 6vw, 96px); }
.services-head { position: sticky; top: 110px; align-self: start; }
.services-head h2 { color: var(--white); margin-bottom: 18px; }
.services-head p { opacity: 1; max-width: 30ch; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); }
.service .price { font-family: var(--display); font-size: 1.35rem; color: var(--gilt); white-space: nowrap; }
.service .price small { font-family: var(--text); font-size: .85rem; color: var(--ash); margin-right: 6px; }
.service p { grid-column: 1 / -1; max-width: 56ch; opacity: 1; }
.service .btn-text { grid-column: 1 / -1; justify-self: start; color: var(--gilt); font-size: .95rem; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } .services-head { position: static; } }

/* arched photo frame (the doorway of the house mark) */
.svc-frame {
  position: relative; margin-top: 44px; width: min(100%, 40vh); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px; overflow: hidden; background: #14110b; isolation: isolate;
}
.svc-frame::after {
  content: ''; position: absolute; inset: 10px; border-radius: 999px 999px 2px 2px;
  border: 1px solid rgba(241, 227, 191, .55); z-index: 2; pointer-events: none;
}
.svc-frame picture { position: absolute; inset: 0; }
.svc-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 2.4s var(--ease); }
.svc-img.on { opacity: 1; transform: scale(1); }
.service.active h3 { color: var(--gilt); }
.service.active .price { color: var(--champagne); }
@media (max-width: 860px) { .svc-frame { display: none; } }

/* ---------- quote (white panel, like the printed pricing guide) ---------- */
.quote { background: var(--white); color: #1d1a14; padding: clamp(80px, 10vw, 130px) 0; }
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 48px; }
.quote-head h2 { color: var(--ink); }
.quote-head p { max-width: 42ch; color: #4d473b; }
.quote-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.step legend { font-family: var(--display); font-size: 1.5rem; color: var(--ink); margin-bottom: 18px; padding: 0; display: flex; align-items: center; gap: 12px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gilt-deep); color: var(--gilt-deep); font: 500 .85rem var(--text); }
.hint { color: #6a6354; font-size: .92rem; margin-top: 10px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .tile, .cond {
  border: 1px solid var(--line-dark); background: var(--white); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.seg button { border-radius: 999px; padding: 10px 18px; font-size: .95rem; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--champagne); border-color: var(--ink); }
.seg button:hover:not([aria-checked="true"]) { border-color: var(--gilt-deep); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile { border-radius: 14px; padding: 16px 10px 14px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.tile svg { height: 40px; width: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; color: #3b362c; }
.tile .t-label { font-size: .82rem; line-height: 1.25; color: #4d473b; }
.tile .t-price { font-family: var(--display); font-size: 1.45rem; color: var(--ink); }
.tile[aria-checked="true"] { border-color: var(--gilt-deep); background: #FBF4E2; box-shadow: inset 0 0 0 1px var(--gilt-deep); }
.tile[aria-checked="true"] svg { color: var(--gilt-deep); }
.tile:hover { border-color: var(--gilt-deep); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

.conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cond { border-radius: 14px; padding: 16px; text-align: left; }
.cond strong { display: block; font-weight: 500; color: var(--ink); }
.cond span { font-family: var(--display); font-size: 1.3rem; }
.cond[data-c="light"] span { color: #3f6b3a; }
.cond[data-c="moderate"] span { color: var(--gilt-deep); }
.cond[data-c="heavy"] span { color: #9b2c1f; }
.cond[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 560px) { .conditions { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.extra .x-name { display: grid; }
.extra .x-price { font-size: .88rem; color: #6a6354; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #ddd8cc; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--gilt-deep); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gilt-deep); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 999px; flex: none; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; border-radius: 50%; }
.stepper button:hover { color: var(--gilt-deep); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 500; }
.stepper.big button { width: 52px; height: 52px; font-size: 1.4rem; }
.stepper.big output { font-family: var(--display); font-size: 2rem; min-width: 3ch; }
@media (max-width: 640px) { .extras { grid-template-columns: 1fr; } }

.summary { position: sticky; top: 100px; background: var(--ink); color: var(--champagne); border-radius: 22px; padding: 30px; }
.summary h3 { font-size: 1.4rem; color: var(--white); }
.summary-service { color: var(--gilt); margin: 4px 0 18px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 18px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(241, 227, 191, .12); }
.summary-lines li span:last-child { white-space: nowrap; }
.summary-total { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--white); margin: 6px 0 8px; font-variant-numeric: lining-nums; }
.summary-total.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); color: var(--champagne); } }
.summary-time { color: var(--ash); font-size: .92rem; }
.summary-note { font-size: .86rem; color: var(--ash); margin: 12px 0 22px; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- booking ---------- */
.book { padding: clamp(80px, 10vw, 130px) 0; }
.book-head { margin-bottom: 44px; }
.book-head h2 { color: var(--white); margin-bottom: 12px; }
.book-head p { opacity: 1; }
.book-head strong { font-weight: 500; color: var(--gilt); }
.book-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.cal { border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 30px); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-bar h3 { font-size: 1.6rem; color: var(--white); }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.cal-nav:hover:not(:disabled) { border-color: var(--gilt); color: var(--gilt); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-dow span { font-size: .78rem; color: var(--ash); padding-bottom: 8px; }
.day {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer;
  font: 400 1rem var(--text); color: var(--champagne); position: relative; display: grid; place-items: center;
}
.day.open { color: var(--white); }
.day.open::after { content: ''; position: absolute; bottom: 16%; width: 4px; height: 4px; border-radius: 50%; background: var(--gilt); }
.day.open:hover { border-color: var(--gilt); }
.day.closed { color: #4a463d; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1px rgba(241, 227, 191, .3); }
.day[aria-selected="true"] { background: var(--gilt); color: var(--ink); }
.day[aria-selected="true"]::after { background: var(--ink); }
.day.blank { visibility: hidden; }
.cal.loading .cal-days { opacity: .4; }
.cal-key { margin-top: 16px; font-size: .82rem; color: var(--ash); display: flex; align-items: center; gap: 6px; }
.cal-key span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.key-open { background: var(--gilt); }
.key-full { background: #4a463d; }

.slots-wrap h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 6px; }
.slots-hours { color: var(--gilt); font-size: .92rem; margin-bottom: 16px; min-height: 1.4em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 30px; min-height: 8px; }
.slot { min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: .95rem; }
.slot:hover { border-color: var(--gilt); }
.slot[aria-checked="true"] { background: var(--gilt); border-color: var(--gilt); color: var(--ink); font-weight: 500; }
.slots-empty { grid-column: 1 / -1; color: var(--ash); }

.details { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: .9rem; color: var(--champagne); }
.opt { color: var(--ash); font-size: .8rem; }
input, textarea {
  font: 400 1rem var(--text); color: var(--white); background: #0d0c0a; border: 1px solid #3a352a;
  border-radius: 12px; padding: 13px 14px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--gilt); }
textarea { resize: vertical; }
.form-error { color: #f0a08f; font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
.fine { font-size: .82rem; color: var(--ash); }
.booked { border: 1px solid var(--gilt); border-radius: 22px; padding: clamp(28px, 5vw, 48px); max-width: 640px; }
.booked h3 { font-size: 2.2rem; color: var(--white); margin-bottom: 12px; }
.booked p { opacity: 1; margin-bottom: 24px; }
.booked-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- contact & footer ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-top: 1px solid var(--line); }
.contact-photo { position: relative; overflow: hidden; background: #2a251b; }
.contact-body { padding: clamp(56px, 8vw, 110px) var(--pad); align-self: center; }
.contact-body h2 { color: var(--white); margin-bottom: 16px; }
.contact-body > p { opacity: 1; max-width: 40ch; margin-bottom: 34px; }
.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list dt { font-size: .85rem; color: var(--ash); }
.contact-list dd { margin: 2px 0 0; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--white); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gilt); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-photo { min-height: 300px; } }
.foot { text-align: center; padding: 64px var(--pad) 90px; border-top: 1px solid var(--line); }
.foot-thanks { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--gilt); margin-bottom: 12px; }
.foot-meta { font-size: .85rem; color: var(--ash); }
.foot-owner { margin-left: 14px; color: var(--ash); }

/* ---------- dialogs ---------- */
dialog { color: var(--champagne); background: #070706; border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal { width: min(440px, calc(100% - 32px)); border-radius: 22px; padding: 34px 30px 30px; }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal h2 { font-size: 2rem; color: var(--white); margin-bottom: 6px; }
.modal-sub { opacity: 1; margin-bottom: 22px; font-size: .95rem; }
.modal-close-form { position: absolute; top: 14px; right: 14px; }
.modal-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.modal-x:hover { border-color: var(--gilt); color: var(--gilt); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { border: 0; background: none; border-radius: 999px; padding: 9px; cursor: pointer; font-size: .92rem; }
.tabs button[aria-selected="true"] { background: var(--gilt); color: var(--ink); font-weight: 500; }
#authForm { display: grid; gap: 14px; }
#authForm:not(.register) .reg-only { display: none; }

.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100%); border-width: 0 0 0 1px; padding: 28px; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 2rem; color: var(--white); }
.drawer-who { color: var(--ash); font-size: .9rem; margin: 6px 0 22px; }
.mine { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.mine li { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 4px; }
.mine .m-when { font-family: var(--display); font-size: 1.3rem; color: var(--white); }
.mine .m-what { font-size: .92rem; opacity: 1; }
.mine .m-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.status { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.status.requested { color: var(--champagne); }
.status.confirmed { background: var(--gilt); color: var(--ink); border-color: var(--gilt); }
.status.completed { color: var(--ash); }
.status.cancelled { color: #8a5b52; border-color: #4b302b; }
.mine-empty { color: var(--ash); padding: 18px 0; }
.drawer-foot { display: grid; gap: 12px; justify-items: center; padding-top: 18px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100vh; padding: 120px 0 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
  .hero-mark { margin-top: 0; }
  .hero-intro { position: static; }
  .hero-photo { display: none; }
  .scroll-cue { display: none; }
  .logo-svg .draw { stroke-dashoffset: 0; }
  .logo-svg .logo-words, .hero-sub, .hero-actions { opacity: 1; animation: none; }
  .logo-svg .spark { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ================= motion layer ================= */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.rv-left { transform: translateX(-36px); }

/* statement lights up word by word as you scroll */
.statement .w { color: rgba(241, 227, 191, .28); transition: color .4s; }
.statement .w.lit { color: var(--white); }

/* promise icons draw themselves */
.promise-list svg * { stroke-dasharray: 160; stroke-dashoffset: 160; }
.promise-list li.in svg * { animation: drawIcon 1.4s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 150ms + .2s); }
@keyframes drawIcon { to { stroke-dashoffset: 0; } }

/* service rows: gold rule sweeps in */
.service { position: relative; border-top-color: transparent; }
.service::before { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.service.in::before { transform: scaleX(1); }
.service h3 { transition: color .3s, transform .4s var(--ease); }
.service:hover h3 { color: var(--gilt); transform: translateX(6px); }

/* nav underline */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gilt); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* buttons shimmer */
.btn-gold { background-size: 200% 100%; position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); }
.btn-gold:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }

/* quote interactions */
.tile[aria-checked="true"] svg { animation: hop .45s var(--ease); }
@keyframes hop { 40% { transform: translateY(-6px); } }
.extra { transition: background .25s; }
.extra:has(input:checked) { background: linear-gradient(90deg, #FBF4E2, transparent); }
.summary-lines li { animation: lineIn .35s var(--ease) backwards; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } }
.step:not([hidden]) { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }

/* calendar cascade + slot pop */
.cal-days .day { animation: dayIn .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 14ms); }
@keyframes dayIn { from { opacity: 0; transform: scale(.7); } }
.slot { animation: slotIn .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes slotIn { from { opacity: 0; transform: translateY(8px); } }
.day[aria-selected="true"] { animation: pick .35s var(--ease); }
@keyframes pick { 50% { transform: scale(1.12); } }

/* booking confirmed: gold check draws */
.booked .check { width: 64px; height: 64px; margin-bottom: 18px; fill: none; stroke: var(--gilt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booked .check circle { stroke-dasharray: 180; stroke-dashoffset: 180; }
.booked .check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.booked:not([hidden]) .check circle { animation: drawIcon .9s var(--ease) forwards; }
.booked:not([hidden]) .check path { animation: drawIcon .5s .7s var(--ease) forwards; }
.booked:not([hidden]) { animation: stepIn .6s var(--ease); }

/* photos: 4K, cover their frame; parallax moves them */
.fill-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .fill-img { transform: scale(calc(1.18 - var(--zoom, 0) * .18)); transform-origin: 50% 45%; }
.hero-photo::after { z-index: 1; }
.contact-photo .fill-img { height: 120%; top: -10%; object-position: 58% 50%; transform: translateY(var(--py, 0)); will-change: transform; }

.band { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; display: grid; place-items: center; background: #050504; }
.band .band-img { height: 130%; top: -15%; transform: translateY(var(--py, 0)) scale(1.02); will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.65)); }
.band-line {
  position: relative; z-index: 1; font-family: var(--display); font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1.02;
  color: var(--white); text-align: center; padding: 0 var(--pad);
}
.band-line .w2 { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.band.in .band-line .w2 { opacity: 1; transform: none; }

/* floating gold dust over the black sections */
.dust { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
main, footer, .nav { position: relative; z-index: 1; }
.nav { position: fixed; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .statement .w { color: var(--white); }
  .band-line .w2 { opacity: 1; transform: none; }
  .promise-list svg *, .booked .check * { stroke-dashoffset: 0; }
  .service::before { transform: scaleX(1); }
  .dust { display: none; }
}
