*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:root {
  --bg: oklch(0.97 0.014 85);
  --bg-alt: oklch(0.93 0.02 80);
  --ink: oklch(0.24 0.02 250);
  --ink-soft: color-mix(in oklch, oklch(0.24 0.02 250) 75%, transparent);
  --accent: oklch(0.5 0.09 210);
  --accent-label: oklch(0.45 0.09 210);
  --accent-light: oklch(0.78 0.09 190);
  --accent-script: oklch(0.78 0.07 190);
  --line: oklch(0.7 0.03 85);
  --line-soft: oklch(0.85 0.02 85);
  --paper: oklch(0.97 0.008 90);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Caveat', cursive;
  --wordmark: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: 64px;
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-label); margin: 0 0 14px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.load-in { animation: fadeUp 0.7s ease-out both; }
.load-in--delay { animation: fadeUp 0.9s 0.15s ease-out both; }

/* .reveal starts fully visible; JS opts elements into the hidden pre-animation
   state via .js-reveal so a slow/broken script never hides real content. */
.js-reveal.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.js-reveal.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- announcement bar ---------- */
.announce { background: var(--accent); color: var(--paper); text-align: center; padding: 10px var(--gutter); }
.announce p { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.announce a { text-decoration: underline; }
.announce a:hover { opacity: 0.85; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px var(--gutter) 22px; color: var(--paper);
}
.nav-edge {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  color: var(--paper); opacity: 0.85; transition: opacity 0.2s, color 0.2s;
}
.nav-edge:hover { opacity: 1; color: var(--accent-script); }
.nav-edge svg { width: 20px; height: 20px; }
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.nav-brand img { width: 150px; height: 150px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: -18px; }
.nav-brand span {
  font-family: var(--wordmark); font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper);
}

.nav-menu-btn {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; gap: 1px; width: auto; height: auto;
}
.nav-menu-btn span { display: block; }

/* ---------- menu drawer ---------- */
.menu-scrim {
  position: fixed; inset: 0; background: oklch(0.24 0.02 250 / 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 50;
}
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }

.menu-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: var(--ink); color: var(--paper); z-index: 51;
  padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 48px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.menu-drawer.is-open { transform: translateX(0); }
.menu-close {
  align-self: flex-end; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--paper); opacity: 0.8;
}
.menu-close:hover { opacity: 1; }
.menu-drawer-links { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.menu-drawer-links a { font-family: var(--display); font-size: 26px; }
.menu-drawer-links a:hover { color: var(--accent-script); }
.menu-drawer-contact { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14px; opacity: 0.8; }
.menu-drawer-contact a:hover { opacity: 1; color: var(--accent-script); }

/* ---------- hero ---------- */
.hero {
  position: relative; width: 100%; min-height: 640px; overflow: hidden; background: var(--ink);
}
.hero-photo {
  /* Sizing the column by the image's own aspect ratio (rather than a fixed
     % width) guarantees zero cropping AND zero letterboxing at any viewport
     height — the box always matches the photo exactly, so the fade mask
     below always falls on real image pixels instead of empty gap. */
  position: absolute; top: 0; bottom: 0; right: 0; height: 100%; width: auto; aspect-ratio: 2 / 3;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* Two layers: the diagonal one darkens the text side for legibility; the
     vertical one dissolves the photo's bottom edge into --ink instead of
     ending in a hard line where the wave-divider begins. */
  background:
    linear-gradient(100deg, oklch(0.24 0.02 250) 0%, oklch(0.24 0.02 250 / 0.75) 32%, oklch(0.24 0.02 250 / 0.2) 60%, oklch(0.24 0.02 250 / 0.05) 78%),
    linear-gradient(to bottom, transparent 80%, oklch(0.24 0.02 250) 100%);
}
.hero-nav-scrim {
  position: absolute; top: 0; left: 0; right: 0; height: 130px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, oklch(0.24 0.02 250 / 0.55), transparent);
}
.hero-content {
  position: relative; z-index: 1; min-height: 640px; display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter); max-width: 640px; color: var(--paper);
}
.hero-eyebrow { font-family: var(--script); font-size: 27px; color: var(--accent-script); margin-bottom: 8px; }
.hero h1 { font-style: italic; font-size: clamp(2.6rem, 6vw, 4.1rem); line-height: 1.05; margin-bottom: 26px; }
.hero p.sub { font-size: 18px; line-height: 1.65; max-width: 460px; opacity: 0.9; margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-call { font-size: 14px; opacity: 0.85; }
.hero-call:hover { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 3px; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px oklch(0.24 0.02 250 / 0.35); }
.btn:active { transform: translateY(-1px); }
.btn-light { background: var(--accent-light); color: oklch(0.2 0.02 250); }
.btn-white { background: var(--paper); color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--paper); }

section { padding: 90px var(--gutter); }
.bg-alt { background: var(--bg-alt); }

/* ---------- wave dividers ---------- */
.wave-divider { line-height: 0; background: var(--wave-top); margin: 0; }
.wave-divider svg { display: block; width: 100%; height: 56px; }
.wave-divider svg path { fill: var(--wave-bottom); }

/* ---------- about ---------- */
.about-inner { max-width: 760px; margin: 0 auto; }
.about-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.about-body { font-size: 17px; line-height: 1.75; opacity: 0.82; max-width: 560px; margin-bottom: 20px; }
.stat-row { display: flex; gap: 40px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; flex-wrap: wrap; }
.stat-row .num { font-family: var(--display); font-size: 26px; }
.stat-row .label { font-size: 13px; opacity: 0.65; }

/* ---------- mission (bold color block) ---------- */
.mission {
  background: var(--ink); color: var(--paper); text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: 100px var(--gutter);
}
.mission-eyebrow { font-family: var(--script); font-size: 28px; color: var(--accent-script); margin-bottom: 24px; }
.mission-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.35; max-width: 18ch; }
.mission-sign { display: block; margin-top: 24px; font-size: 14px; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- techniques ---------- */
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); max-width: 600px; margin-bottom: 44px; }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.tech-card { background: var(--bg); padding: 32px; transition: box-shadow 0.25s, transform 0.25s; }
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px oklch(0.24 0.02 250 / 0.12); }
.tech-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.tech-card h3 { font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.tech-card p { font-size: 14.5px; opacity: 0.75; line-height: 1.6; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; background: var(--accent); color: var(--paper);
  padding: 22px 0;
}
.marquee-track { display: inline-flex; animation: marquee-scroll 22s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem);
  padding-right: 0.4em; white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- services ---------- */
.menu { max-width: 760px; }
.menu-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 20px 12px; border-bottom: 1px solid var(--line); transition: background 0.2s;
}
.menu-row:last-child { border-bottom: none; }
.menu-row:hover { background: var(--bg); }
.menu-row .name { font-family: var(--display); font-size: 19px; }
.menu-options { display: flex; gap: 32px; }
.menu-option { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.menu-option .duration { font-size: 14px; opacity: 0.6; white-space: nowrap; }
.menu-option .price { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-note { margin-top: 24px; font-size: 13px; opacity: 0.6; max-width: 560px; }

/* ---------- mobile banner ---------- */
.mobile-banner {
  background: var(--accent); color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
}
.mobile-banner .copy { max-width: 640px; }
.mobile-banner .eyebrow { color: var(--paper); opacity: 0.75; }
.mobile-banner h2 { font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.mobile-banner p { font-size: 16px; line-height: 1.6; opacity: 0.92; }

/* ---------- how it works (numbered steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step-num {
  display: inline-block; background: var(--accent); color: var(--paper);
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 3px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; opacity: 0.75; line-height: 1.6; max-width: 32ch; }

/* ---------- location ---------- */
.location {
  display: grid; grid-template-columns: 1fr 1fr; padding: 0;
}
.location-copy { padding: 80px var(--gutter); }
.location-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 24px; }
.location-copy .address { font-size: 17px; line-height: 1.7; margin-bottom: 20px; }
.location-copy .hours { font-size: 15px; line-height: 1.8; opacity: 0.75; }
.location-map {
  min-height: 320px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px;
}

/* ---------- booking widget ---------- */
.booking-widget {
  max-width: 640px; background: var(--card, var(--bg)); border: 1px solid var(--line);
  border-radius: 14px; padding: 40px; margin-bottom: 64px;
}
.booking-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14.5px; font-weight: 600; padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.booking-change {
  font-size: 13px; font-weight: 700; text-decoration: underline; color: var(--accent-label); flex: none;
}
.booking-error {
  background: oklch(0.55 0.18 30 / 0.1); color: oklch(0.45 0.18 30);
  border-radius: 6px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px;
}
.booking-step h3 {
  display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 22px;
}
.booking-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--paper); font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
}
.booking-loading { font-size: 14.5px; opacity: 0.65; }

.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.service-option:hover { border-color: var(--accent); background: var(--bg-alt); }
.service-option-name { font-family: var(--display); font-size: 17px; }
.service-option-meta { font-size: 13px; opacity: 0.65; }
.service-option-desc { font-size: 13px; opacity: 0.55; margin-top: 2px; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.date-chip {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 56px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; transition: border-color 0.2s, background 0.2s;
}
.date-chip:disabled { opacity: 0.35; cursor: not-allowed; }
.date-chip:not(:disabled):hover { border-color: var(--accent); }
.date-chip.is-selected { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.date-chip-day { text-transform: uppercase; opacity: 0.65; font-size: 11px; }
.date-chip-num { font-family: var(--display); font-size: 18px; }
.date-chip.is-selected .date-chip-day { opacity: 0.85; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot-chip {
  padding: 10px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.slot-chip:hover { border-color: var(--accent); color: var(--accent-label); }

.booking-form { display: flex; flex-direction: column; gap: 14px; }
.booking-form input, .booking-form textarea {
  font-family: var(--body); font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); resize: none;
  transition: border-color 0.2s;
}
.booking-form input:focus, .booking-form textarea:focus { outline: none; border-color: var(--accent); }
.booking-form button { align-self: flex-start; }

.booking-confirmed h3 { font-family: var(--display); font-size: 24px; }
.booking-confirmed p { font-size: 15px; margin-top: 8px; }
.booking-confirmed-note { opacity: 0.7; font-size: 13.5px; }

.book-contact { max-width: 480px; }
.book-contact h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: 20px; }

form.contact { display: flex; flex-direction: column; gap: 14px; }
form.contact input, form.contact textarea {
  font-family: var(--body); font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); resize: none;
  transition: border-color 0.2s;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact button { align-self: flex-start; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status[data-state="success"] { color: var(--accent); }
.form-status[data-state="error"] { color: oklch(0.55 0.18 30); }

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap;
  padding: 56px var(--gutter);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand span { font-family: var(--display); font-size: 19px; }
.footer-links { display: flex; gap: 36px; font-size: 14px; opacity: 0.85; flex-wrap: wrap; }
.footer-links a:hover { opacity: 1; }
.footer-contact { font-size: 14px; opacity: 0.85; line-height: 1.8; text-align: right; }

@media (max-width: 860px) {
  .nav-brand span { display: none; }
  .nav-brand img { width: 56px; height: 56px; margin-bottom: 0; }
  /* Overlaying text on the photo doesn't scale to mobile: the text column
     forces the box tall, but a contained portrait photo can't grow past its
     own aspect ratio, leaving an empty gap above it. Stack instead: a
     full-length photo (its own natural aspect ratio, not cropped) on top,
     text in its own solid block below. */
  .hero { min-height: auto; display: flex; flex-direction: column; padding: 0; }
  .hero-photo {
    position: static; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
  }
  .hero-scrim { display: none; }
  .hero-content { min-height: auto; max-width: none; padding: 48px var(--gutter) 56px; }

  /* Tighter vertical rhythm on mobile — 90px section padding plus wave
     dividers reads as too much dead air stacked on a small screen. */
  section { padding: 52px var(--gutter); }
  .mission { padding: 64px var(--gutter); }
  .wave-divider svg { height: 40px; }

  .tech-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .menu-row { grid-template-columns: 1fr; row-gap: 10px; }
  .menu-options { justify-content: flex-start; }
  .menu-option { align-items: flex-start; }
  .location { grid-template-columns: 1fr; }
  .location-copy { padding: 56px var(--gutter); }
  .booking-widget { padding: 28px 20px; }
  footer { flex-direction: column; }
  .footer-contact { text-align: left; }
}
