:root {
  --bg: #F7F0E8;
  --surface: #E9DDD1;
  --surface-2: #FFF9F2;
  --text: #241B18;
  --muted: #6A5C55;
  --accent: #A83F2D;
  --accent-soft: #D8A69A;
  --gold: #C8A46A;
  --line: rgba(36,27,24,0.14);
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --maxw: 1080px;
  --r-sm: 4px; --r-md: 10px; --r-lg: 18px;
}
[data-theme="dark"] {
  --bg: #1B1512;
  --surface: #241B18;
  --surface-2: #2C221E;
  --text: #F3E9DE;
  --muted: #B3A197;
  --accent: #E0745C;
  --accent-soft: #8C4E42;
  --gold: #C8A46A;
  --line: rgba(243,233,222,0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
h1,h2,h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
a { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface-2); color: var(--text); padding: 12px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brandmark { font-family: var(--display); font-size: 22px; letter-spacing: .02em; white-space: nowrap; }
.brandmark span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.toggle { cursor: pointer; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); border-radius: 999px; padding: 7px 14px; font-family: var(--mono); font-size: 12px; }
.toggle:hover { border-color: var(--accent); }
.nav .wa { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); text-decoration: none; font-size: 15px; }
.nav .wa svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  .brandmark { font-size: 19px; }
}

.btn { display: inline-block; border-radius: var(--r-md); padding: 14px 26px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.eyebrow { margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 52ch; }

/* hero */
.hero { padding: 84px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 40ch; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #f4d9cd 0%, transparent 55%),
    linear-gradient(160deg, #e7c3b4 0%, #cf9d8c 45%, #9c6a5a 100%);
  position: relative; box-shadow: 0 24px 60px rgba(36,27,24,.18); }
/* hero carousel — cross-fade. object-fit:cover preserves each image's own
   aspect ratio and crops the overflow, so nothing is ever stretched. */
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }

.hero-dots { position:absolute; top:14px; right:14px; z-index:2; display:flex; gap:7px; }
.hero-dots button { width:8px; height:8px; padding:0; border:0; border-radius:999px; cursor:pointer;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  box-shadow: 0 0 0 1px rgba(36,27,24,.28);
  transition: background .25s ease, transform .25s ease; }
.hero-dots button[aria-current="true"] { background: var(--surface-2); transform: scale(1.35); }
.hero-dots button:focus-visible { outline: 2px solid var(--surface-2); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-dots button { transition: none; }
}

.hero-photo .cap { position:absolute; left:16px; bottom:16px; right:16px; z-index:2;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent); border:1px solid var(--line);
  border-radius: var(--r-md); padding:12px 14px; }
.hero-photo .cap-line { font-family: var(--display); font-size: 19px; margin-top: 2px; }
@media (max-width: 820px){ .hero-grid { grid-template-columns: 1fr; } }

/* protocol steps */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
@media (max-width:820px){ .steps{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:560px){ .steps{ grid-template-columns: 1fr;} }
.step { border:1px solid var(--line); border-radius: var(--r-lg); padding:22px; background: var(--surface-2); }
.step .n { font-family: var(--mono); font-size:11px; letter-spacing:.14em; color: var(--accent); }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* case file */
.casefile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; }
.casefile + .casefile { margin-top: 18px; }
.casefile .rows { display: grid; grid-template-columns: 130px 1fr; gap: 10px 18px; margin-top: 8px; }
@media (max-width:560px){ .casefile .rows { grid-template-columns: 1fr; gap: 4px 0; } }
.casefile .k { font-family: var(--mono); font-size: 11px; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); padding-top:3px; }
.casefile .v { font-size: 16px; }
.ba { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
.ba .frame { aspect-ratio: 1/1; border-radius: var(--r-md); position: relative; overflow:hidden; }
.ba .before { background: linear-gradient(150deg,#c9a394,#a97a68); }
.ba .after  { background: linear-gradient(150deg,#f0d3c6,#d7a998); }
/* object-fit:cover scales uniformly and crops the overflow, so a portrait or
   landscape source fills the square frame without ever being distorted. The
   crop is biased upward because faces sit high in all four photographs. */
.ba .frame img { width:100%; height:100%; object-fit:cover; object-position:center 30%; display:block; }
.ba .tag { z-index:2; position:absolute; top:10px; left:10px; font-family:var(--mono); font-size:10px;
  letter-spacing:.14em; text-transform:uppercase; background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  padding:4px 8px; border-radius:999px; border:1px solid var(--line); }
.placeholder-note {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-md);
}

/* city selector */
.city-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); padding: 12px 16px; margin-bottom: 26px;
}
.city-bar label { font-family: var(--mono); font-size: 11px; letter-spacing:.14em; text-transform: uppercase; color: var(--muted); }
.city-bar select {
  font-family: var(--body); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 12px; cursor: pointer;
}
.city-bar .hint { font-size: 13px; color: var(--muted); margin-left: auto; }

/* tiers */
.tiers { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width:820px){ .tiers{ grid-template-columns:1fr; } }
.tier { border:1px solid var(--line); border-radius: var(--r-lg); padding:26px; background:var(--surface-2);
  display: flex; flex-direction: column; }
.tier.feat { border-color: var(--accent); box-shadow: 0 16px 40px rgba(168,63,45,.12); }
.tier .price { font-family: var(--display); font-size: 26px; margin: 10px 0 4px; }
.tier .from { font-family: var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.tier ul { padding-left: 18px; margin: 16px 0 22px; color: var(--muted); }
.tier li { margin: 6px 0; }
.tier .btn { margin-top: auto; text-align: center; }
.quote-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 60ch; }

/* trial */
.trial { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
@media (max-width:720px){ .trial{ grid-template-columns:1fr; } }
.card { border:1px solid var(--line); border-radius: var(--r-lg); padding:22px; background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { color: var(--muted); font-size: 15px; padding-left: 18px; margin: 12px 0 0; }
.card li { margin: 6px 0; }

/* inquiry form */
.book-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
@media (max-width:820px){ .book-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width:560px){ .form-grid { grid-template-columns: 1fr; } }
.field { display:block; margin:12px 0; }
.field.full { grid-column: 1 / -1; }
.field > span { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border-radius: var(--r-md); border:1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: var(--body); font-size:15px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .help { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-error { display: block; font-size: 13px; color: var(--accent); margin-top: 6px; }
.form-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }

.alerts .a { border-radius: var(--r-md); padding:12px 14px; margin:10px 0; font-size:14px; border:1px solid var(--line); }
.a.ok { background: color-mix(in srgb, #4f7a52 16%, var(--surface-2)); }
.a.warn { background: color-mix(in srgb, var(--gold) 22%, var(--surface-2)); }
.a.err { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.a a { font-weight: 600; }

.privacy { border:1px solid var(--line); border-radius: var(--r-lg); padding:22px; background: var(--surface); }
.privacy h3 { font-size: 19px; margin-bottom: 10px; }
.privacy p, .privacy li { color: var(--muted); font-size: 15px; }
.privacy ul { padding-left: 18px; margin: 12px 0 0; }
.privacy li { margin: 6px 0; }
.direct { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.direct a { text-decoration: none; font-weight: 600; }
.direct div { margin-top: 6px; }

footer { padding: 40px 0 80px; color: var(--muted); font-size: 14px; }
footer .foot-grid { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer .foot-brand { font-family: var(--display); font-size: 19px; color: var(--text); }
.cta-band { text-align:center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto 22px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
