@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 650;
}
@font-face {
  font-family: Lora;
  src: url("assets/lora-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 550;
}

:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --surface: #fffdfa;
  --ink: #191817;
  --muted: #625e58;
  --line: #dbd7d0;
  --line-strong: #a7a097;
  --soft: #eeebe5;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: Lora, Georgia, serif;
  --radius-control: 10px;
  --radius-panel: 18px;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #49433c; outline-offset: 4px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.frame { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.site-header { min-height: 89px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.header-mark { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.12; }
.header-mark img { width: auto; height: 62px; mix-blend-mode: multiply; }
.header-mark strong, .header-mark small { display: block; }
.header-mark strong { font-size: 13px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.header-mark small { margin-top: 6px; font-size: 13px; color: var(--muted); }
.site-header nav { display: flex; align-items: center; gap: clamp(3px, 1.1vw, 15px); }
.site-header nav a, .nav-button, .header-contact {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0;
  border: 0; background: none; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 480;
}
.site-header nav :is(a, button), .header-contact { padding-inline: 13px; border-radius: 999px; transition: background .18s ease; }
.site-header nav > :hover, .header-contact:hover { background: var(--soft); }
.header-contact { justify-self: end; gap: 7px; border: 1px solid var(--line); }
.header-contact .icon { width: 18px; height: 18px; }

.hero-copy { padding: clamp(47px, 5.3vw, 76px) 0 clamp(36px, 3.8vw, 53px); text-align: center; }
.hero-copy h1 { margin: 0; font: 450 clamp(44px, 6.35vw, 91px)/1.07 var(--display); letter-spacing: -.048em; }
.hero-copy h1 span, .studio-location { white-space: nowrap; }
.hero-copy p { margin: 17px auto 24px; max-width: 45ch; color: var(--muted); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; }
.hero-actions, .form-actions, .studio-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.hero-actions { justify-content: center; gap: 10px; }
.hero-actions > a { min-width: 154px; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; line-height: 1.35; font-weight: 570; text-decoration: none; text-align: center;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.primary-button { color: var(--surface); background: var(--ink); border-color: var(--ink); }
:is(.primary-button, .secondary-button):active:not(:disabled) { transform: scale(.98); }
.primary-button:hover:not(:disabled) { background: #37332f; border-color: #37332f; }
.primary-button:disabled { background: var(--soft); border-color: var(--soft); color: var(--muted); }
.secondary-button { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.secondary-button:hover { background: var(--soft); border-color: #746b61; }

.motif-reel { min-width: 0; margin: 0; }
.motif-reel figcaption {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  color: var(--muted); font-size: 13px; line-height: 1.35; font-weight: 560;
  letter-spacing: .035em;
}
.motif-reel figcaption::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.motif-viewport { height: clamp(290px, 30vw, 445px); overflow: hidden; border-radius: var(--radius-panel); container-type: inline-size; }
.motif-track { display: flex; width: max-content; height: 100%; animation: motif-loop 37s linear infinite; }
.motif-set { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.motif-set li { width: max(175px, 26.5cqw); height: 100%; margin-inline-end: 8px; }
.motif-set img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--soft); }
@keyframes motif-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.booking-stage {
  margin-top: clamp(37px, 4.7vw, 65px); padding: clamp(18px, 3.2vw, 42px);
  border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface);
}
.riv-intro h2, .contact-inner h2, .studio-section h2 {
  margin: 0; font: 450 clamp(32px, 3.65vw, 51px)/1.13 var(--display); letter-spacing: -.043em;
}
.riv-intro p, .contact-inner > p { margin: 10px 0 20px; color: var(--muted); }
.booking-note { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 14px; }
.preview-label { display: inline-block; padding: 3px 8px; border-radius: 999px; color: var(--muted); background: var(--soft); font-size: 12px; line-height: 1.35; }
.booking-category { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 22px; }
.category-option, .choice {
  display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 3px 13px;
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink);
  text-align: left; transition: background .16s ease, border-color .16s ease;
}
.category-option { min-height: 81px; padding: 13px 15px; }
.category-option strong { display: block; align-self: end; font-size: 16px; line-height: 1.25; font-weight: 600; }
.category-option span { grid-row: 2; align-self: start; color: var(--muted); font-size: 14px; line-height: 1.4; }
.category-option::after, .choice::after {
  content: ""; grid-column: 2; grid-row: 1; display: block; width: 16px; height: 16px;
  border: 1px solid #79726a; border-radius: 50%; background: var(--surface);
}
.category-option::after { grid-row: 1 / span 2; }
.category-option:hover, .choice:not(:disabled):hover { border-color: var(--line-strong); background: #f5f2ec; }
.category-option[aria-pressed="true"], .choice[aria-pressed="true"] { border-color: #746b61; background: var(--soft); }
.category-option[aria-pressed="true"]::after, .choice[aria-pressed="true"]::after { border: 5px solid var(--ink); }

.riv-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); margin-bottom: 12px; border-top: 1px solid var(--line); }
.riv-grid > section { min-width: 0; padding: 17px 19px 13px; }
.riv-grid > section:first-child { padding-left: 0; }
.riv-grid > section:last-child { padding-right: 0; }
.riv-grid > section + section { border-left: 1px solid var(--line); }
.riv-grid h3 { margin: 0 0 12px; font-weight: 620; font-size: 17px; line-height: 1.25; }
.service-options { display: grid; gap: 7px; }
.choice { min-height: 63px; padding: 9px 11px; }
.choice-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.choice strong { font-size: 15px; line-height: 1.25; font-weight: 600; }
.choice small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.consultation-shortcut { grid-template-columns: minmax(0, 1fr); margin-top: 7px; }
.consultation-shortcut::after { display: none; }
.consultation-shortcut small { text-decoration: underline; text-underline-offset: 3px; }

.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.calendar-head strong { text-align: center; font-size: 15px; font-weight: 580; }
.calendar-nav { border: 1px solid transparent; background: none; padding: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.calendar-nav:not(:disabled):hover { border-color: var(--line); background: var(--soft); }
.calendar-nav:disabled { color: #a9a39a; }
.calendar-nav.previous .icon { transform: rotate(180deg); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays span { padding: 6px 0 8px; text-align: center; color: var(--muted); font-size: 13px; }
.day, .time-option { display: grid; place-items: center; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.day:disabled { border-color: transparent; background: #f1eee8; color: #706a61; }
.day[aria-current="date"]:not(:disabled) { border-color: #72695e; }
:is(.day, .time-option):hover:not(:disabled) { border-color: var(--line-strong); background: var(--soft); }
:is(.day, .time-option)[aria-pressed="true"], :is(.day, .time-option)[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.timing { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 7px; }
.timing p { margin: 0; color: var(--muted); font-size: 14px; }
.timing .calendar-note:empty { display: none; }
.time-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(59px, 1fr)); gap: 5px; }
.time-options:empty { display: none; }

.riv-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 13px 0 0; background: var(--surface); }
.selection span { display: block; font-size: 16px; font-weight: 590; line-height: 1.25; }
.selection small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.riv-summary .primary-button { min-width: 125px; }

.contact-section, .result-section { padding-top: 25px; }
.contact-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: clamp(18px, 4vw, 40px); }
.contact-inner h2 { font-size: clamp(32px, 3.8vw, 49px); }
.contact-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 15px; padding: 12px 15px; margin-bottom: 18px; border-radius: var(--radius-control); background: var(--soft); }
.contact-summary strong { font-size: 17px; font-weight: 600; }
.contact-summary p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.inline-link { color: var(--ink); font-size: 14px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.inline-link:hover { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: block; color: var(--ink); font-size: 14px; font-weight: 580; }
.form-grid label small { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 3px; }
.form-grid :is(input, textarea, select) { display: block; width: 100%; padding: 10px 12px; margin-top: 6px; min-height: 47px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; }
.form-grid textarea { resize: vertical; }
.form-grid .motif-field { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.check-row input { accent-color: var(--ink); width: 18px; height: 18px; }
.form-actions { margin-top: 13px; }
.form-note, .request-status { color: var(--muted); font-size: 14px; margin: 13px 0 0; }
.request-status a { text-underline-offset: 3px; }
.result-section { max-width: 820px; }
.result-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 16px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.result-section dl { margin: 18px 0; border-top: 1px solid var(--line); }
.result-section dl div { display: grid; grid-template-columns: minmax(85px, 1fr) 3fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.result-section dd { margin: 0; overflow-wrap: anywhere; }
.result-section dt { color: var(--muted); }
.result-mode .hero, .result-mode:not(.reschedule-mode) .booking-stage, .reschedule-mode #bookingCategory { display: none; }
.reschedule-mode .booking-stage { max-width: 1010px; }
.reschedule-mode .riv-summary .primary-button { min-width: 140px; }

.studio-section { border-top: 1px solid var(--line); padding-block: 27px; margin-top: 33px; display: flex; justify-content: space-between; align-items: center; gap: 14px 23px; }
.studio-section h2 { font-size: clamp(27px, 3vw, 37px); }
.studio-section address, .studio-section p { color: var(--muted); margin: 8px 0 0; font: 14px/1.45 var(--font); }
.studio-section address a { display: flex; align-items: center; gap: 5px; text-decoration: none; }
.studio-section address a:hover, .phone-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.studio-section address .icon { width: 17px; height: 17px; }
.phone-link { padding: 0 4px; color: var(--muted); font-size: 14px; text-decoration: none; }
.footer { min-height: 67px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 9px 18px; }
.footer-brand { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.footer div { display: flex; flex-wrap: wrap; gap: 2px 17px; }
.footer div > * { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page > .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.legal-page > .footer { margin-top: auto; }
.legal-content { max-width: 720px; padding-block: clamp(40px, 7vw, 88px); overflow-wrap: break-word; }
.legal-content h1 { margin: 0 0 32px; font: 450 clamp(31px, 6vw, 64px)/1.12 var(--display); letter-spacing: -.042em; }
.legal-content h2 { margin: 28px 0 9px; font: 550 19px/1.35 var(--display); }
.legal-content p { margin: 0 0 13px; color: var(--muted); line-height: 1.65; }
.legal-content a { text-underline-offset: .2em; }

dialog { width: min(650px, calc(100% - 28px)); max-height: 90dvh; padding: clamp(17px, 4vw, 29px); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-panel); }
dialog::backdrop { background: #231f1aa6; }
dialog h2 { margin: 0; font: 450 clamp(28px, 3.6vw, 39px)/1.1 var(--display); letter-spacing: -.035em; }
dialog h3 { margin: 16px 0 4px; font-size: 17px; font-weight: 620; }
dialog p, dialog li { color: var(--muted); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.dialog-head .secondary-button { min-height: 44px; padding-inline: 12px; }
#serviceList ul { margin: 0; padding-left: 19px; }
#serviceList li { padding: 3px 0; }

@media (max-width: 980px) and (min-width: 701px) {
  .frame { width: calc(100% - 62px); }
  .motif-set li { width: max(185px, 30cqw); }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 36px); }
  .site-header { grid-template-columns: 1fr auto; min-height: 0; gap: 0 10px; padding-top: 8px; }
  .header-mark { gap: 9px; }
  .header-mark img { height: 52px; }
  .header-mark strong { font-size: 12px; }
  .header-mark small { margin-top: 4px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; gap: 3px; margin-inline-start: -8px; }
  .site-header nav :is(a, button), .header-contact { padding-inline: 8px; }
  .hero-copy { padding: 39px 0 32px; }
  .hero-copy h1 { font-size: clamp(42px, 11.9vw, 70px); line-height: 1.04; }
  .hero-copy h1 span { display: block; }
  .hero-copy p { margin: 16px auto 18px; max-width: 31ch; font-size: 15px; }
  .hero-actions .primary-button, .hero-actions .secondary-button { min-height: 45px; min-width: 0; padding-inline: 15px; }
  .motif-reel figcaption { margin-bottom: 9px; }
  .motif-viewport { height: clamp(230px, 63vw, 330px); }
  .motif-set li { width: max(155px, 54cqw); margin-inline-end: 6px; }
  .booking-stage { margin-top: 34px; }
  .booking-note { font-size: 13px; }
  .booking-category { gap: 7px; margin-bottom: 17px; }
  .category-option { gap: 3px 5px; padding: 10px; min-height: 80px; }
  .category-option strong { font-size: 15px; }
  .category-option span { font-size: 13px; }
  .riv-grid { grid-template-columns: 1fr; margin-bottom: 6px; }
  .riv-grid > section { padding: 14px 0; }
  .riv-grid > section + section { border: 0; border-top: 1px solid var(--line); }
  .riv-summary { position: sticky; bottom: 0; z-index: 1; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .booking-stage:has(#bookingChoices[hidden]) .riv-summary { position: static; }
  .riv-summary .primary-button { min-width: 78px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .studio-section { align-items: flex-start; flex-direction: column; }
  .footer { flex-wrap: wrap; padding-top: 11px; }
}
@media (max-width: 365px) {
  .frame { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: clamp(36px, 11.9vw, 43px); }
  .hero-actions { gap: 6px; }
  .hero-actions .primary-button, .hero-actions .secondary-button { padding-inline: 10px; }
  .category-option { grid-template-columns: minmax(0, 1fr); min-height: 83px; }
  .category-option::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .motif-viewport { height: auto; }
  .motif-track { width: 100%; animation: none; }
  .motif-set { width: 100%; gap: 4px; }
  .motif-set li { flex: 1; min-width: 0; margin: 0; width: auto; height: auto; aspect-ratio: 3 / 4; }
  .motif-set[aria-hidden="true"] { display: none; }
}

.riv-intro .session-step, .contact-inner .session-step {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .03em;
}
.session-followup { background: var(--soft); border-radius: var(--radius-control); margin-bottom: 20px; padding: 14px; }
.session-followup p { margin: 4px 0 0; font-size: 14px; }
.session-followup .inline-link { min-height: 36px; }
#dayDetails, #dayPayment { max-width: 930px; }
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; padding: 0; border: 0; margin: 0; }
.payment-methods legend { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.payment-methods label { display: flex; align-items: center; gap: 7px; padding: 9px 11px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; }
.payment-methods label:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.payment-methods input { accent-color: var(--ink); }
.deposit-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.reference-list { font-size: 14px; padding-inline-start: 20px; overflow-wrap: anywhere; }
#dayReferences { padding: 7px; }
#dayReferences::file-selector-button { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; margin-inline-end: 8px; font: inherit; cursor: pointer; }
