:root {
  /* Palette from the Burn Pilates reference Taylor picked: oxblood base, ember accent, cream type */
  --oxblood: #2a0b0b;
  --wine: #3e1212;
  --ember: #b4561f;
  --cream: #f2e8dc;
  --sand: #e6d6c4;
  --ink: #2a0b0b;
  --line: rgba(242, 232, 220, 0.16);
  --line-dark: rgba(42, 11, 11, 0.18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 18px/1.6 var(--sans);
  color: var(--cream);
  background: var(--oxblood);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

/* Type */
.display, .title {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1;
}
.display { font-size: clamp(56px, 8.6vw, 128px); }
.title { font-size: clamp(44px, 6vw, 84px); margin-bottom: 28px; }
.display em, .title em { font-style: italic; }
.center { text-align: center; }
h3 { font: 600 16px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; margin: 20px 0 8px; }

/* Fixed hero layer, visible behind the whole scroll */
.hero-media { position: fixed; inset: 0; z-index: -1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(42,11,11,0.85) 0%, rgba(42,11,11,0.6) 35%, rgba(42,11,11,0) 60%),
    linear-gradient(180deg, rgba(42,11,11,0.35) 0%, rgba(42,11,11,0) 30%, rgba(42,11,11,0.6) 100%);
  opacity: calc(0.6 + var(--scrim, 0) * 0.4);
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--pad);
  color: var(--cream);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header.is-solid { background: rgba(42, 11, 11, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wordmark { font: 700 28px/1 var(--serif); letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: 32px; font-size: 16px; font-weight: 500; }
.nav a { opacity: 0.85; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }

.pill {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); cursor: pointer; border: 1.5px solid;
  background: transparent; color: inherit;
  transition: background 0.25s, color 0.25s;
}
.pill--light { border-color: var(--cream); color: var(--cream); }
.pill--light:hover { background: var(--cream); color: var(--ink); }
.pill--dark { border-color: var(--oxblood); background: var(--oxblood); color: var(--cream); }
.pill--dark:hover { background: var(--ember); border-color: var(--cream); }
.pill:disabled { opacity: 0.5; cursor: wait; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 22px; padding: 96px var(--pad) clamp(40px, 8vh, 88px);
  color: var(--cream);
}
.hero-sub { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; max-width: 34ch; }

/* Panels sit on cream over the fixed video */
.panel { background: var(--oxblood); padding: clamp(80px, 12vw, 150px) var(--pad); }
.panel--sand { background: var(--wine); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip .split-text { order: 2; }
.split-text p { max-width: 46ch; margin-bottom: 16px; }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.card img { aspect-ratio: 3 / 4; height: auto; }
.card p { font-size: 18px; }

/* Transparent band that shows the fixed loop again */
.window {
  min-height: 80vh; display: grid; place-items: center; text-align: center;
  color: var(--cream); padding: 0 var(--pad);
}

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; }
.steps span { font: italic 600 44px/1 var(--serif); color: var(--cream); }

/* Inquiry */
.inquire { display: grid; grid-template-columns: 1fr 1fr; background: var(--oxblood); padding: var(--pad); gap: 0; }
.inquire-media { min-height: 420px; }
.inquire-body { background: var(--cream); color: var(--ink); padding: clamp(32px, 5vw, 72px); }
.inquire-body > p { margin-bottom: 28px; }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.form input, .form select, .form textarea {
  font: 400 18px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: 8px 0; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--oxblood); }
.form [aria-invalid="true"] { border-bottom-color: #a3361f; }
.form button { justify-self: start; margin-top: 8px; }
.form-status { min-height: 1.5em; font-size: 16px; font-weight: 500; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #1c0707; color: var(--cream); padding: clamp(72px, 10vw, 110px) var(--pad) 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-line { font-size: clamp(40px, 5vw, 64px); }
.footer-nav { display: grid; gap: 8px; font-size: 16px; font-weight: 500; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-contact { display: grid; gap: 10px; font-size: 16px; align-content: start; }
.footer-meta { margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(247, 236, 228, 0.2); font-size: 14px; opacity: 0.85; }
.footer-mark {
  font: 700 clamp(68px, 25vw, 400px)/1 var(--serif);
  letter-spacing: -0.03em; text-align: center; white-space: nowrap;
  margin-top: 24px; padding-bottom: 24px;
}

/* Sizing fixes from the Codex review, 2026-12-03 */
section[id] { scroll-margin-top: 88px; }
.pill, .nav a, .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.row > label { min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; min-height: 44px; }

/* Placeholder watermark. Delete the .ph class (and data-ph) when a real photo goes in. */
.ph { position: relative; overflow: hidden; container-type: inline-size; }
.ph::before {
  content: "PLACEHOLDER";
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 11cqi/1 var(--sans); letter-spacing: 0.08em;
  color: rgba(242, 232, 220, 0.55); transform: rotate(-24deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); pointer-events: none;
}
.ph::after {
  content: "Replace with: " attr(data-ph);
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 8px 12px; border-radius: 6px;
  background: #f2e8dc; color: #2a0b0b;
  font: 600 13px/1.3 var(--sans); letter-spacing: 0.02em;
  pointer-events: none;
}
.ph-badge {
  position: absolute; top: 96px; right: var(--pad);
  padding: 8px 14px; border-radius: 6px;
  background: #f2e8dc; color: #2a0b0b;
  font: 600 13px/1.3 var(--sans); letter-spacing: 0.02em;
}
.hero { position: relative; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Phase 1: multi-page additions */
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.page-head { background: var(--oxblood); padding: clamp(120px, 14vw, 180px) var(--pad) 24px; }
.page-head .title { margin-bottom: 20px; }
.page-head p { max-width: 52ch; }
.panel--tight { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 110px); }
.panel--first { padding-top: clamp(120px, 14vw, 180px); }
.sub-title { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--serif); margin-bottom: 20px; }
.embed-slot { min-height: 520px; border: 1px solid var(--cream); border-radius: 2px; margin-bottom: 28px; }
.player-slot { min-height: 0; width: 100%; aspect-ratio: 16 / 9; margin-top: 40px; }
.aside { margin-top: 8px; }
.textlink { text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.ph-text { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--cream); color: var(--oxblood); font: 600 15px/1.35 var(--sans); }
.ph-text::before { content: "Placeholder: "; font-size: 12px; font-variant: small-caps; letter-spacing: 0.08em; font-weight: 700; }
.card { display: block; }
.teasers { display: grid; }
.teaser { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 24px; min-height: 44px; padding: 28px 0; border-top: 1px solid var(--line); }
.teaser:last-child { border-bottom: 1px solid var(--line); }
.teaser-name { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); }
.teaser-go { font-size: 28px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { border: 1px solid var(--line); padding: 28px; border-radius: 2px; }
.tier h3 { margin-top: 0; }
.facts { display: grid; gap: 0; margin: 0; max-width: 720px; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.facts dt { font: 600 16px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0; }
.cta .center { margin-bottom: 20px; }
.form .check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.form .check input { width: 24px; min-width: 24px; min-height: 24px; height: 24px; accent-color: var(--oxblood); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 6px; } .embed-slot:not(.player-slot) { min-height: 420px; } }

.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 16px; background: none; color: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; font: 600 15px/1 var(--sans); cursor: pointer; }

/* Mobile */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--pad) 20px; background: var(--oxblood); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .site-header { gap: 12px; }
  .wordmark { margin-right: auto; }
  .tiers { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr auto; }
  .teaser span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .hero-media video { object-position: 60% center; }
  .split, .inquire { grid-template-columns: 1fr; }
  .split--flip .split-text { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .inquire-media { min-height: 260px; }
}
@media (max-width: 560px) {
  .cards, .row { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 4 / 3; }
  .panel { padding-block: 64px; }
  .panel--first { padding-top: 120px; }
  .window { min-height: 45svh; padding-block: 64px; }
  .footer-mark { font-size: clamp(68px, 20vw, 90px); }
  .site-header .pill { padding: 9px 16px; font-size: 14px; }
  .ph-badge { left: var(--pad); right: var(--pad); text-align: center; }
}


/* Events list, RSVP dialog, signup */
.event-list { list-style: none; padding: 0; display: grid; gap: 20px; margin-bottom: 28px; }
.event-card { border: 1px solid var(--cream); border-radius: 2px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; justify-items: start; }
.event-when { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
.event-title { font: 600 clamp(28px, 3.4vw, 44px)/1.05 var(--serif); }
.event-details { max-width: 60ch; }
.event-spots { font-weight: 600; }
.event-empty { padding: 32px 0; font-size: 20px; }
.rsvp { margin: auto; width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 2px; padding: clamp(24px, 4vw, 40px); background: var(--cream); color: var(--ink); }
.rsvp::backdrop { background: rgb(20 5 5 / 0.7); }
.rsvp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rsvp .pill:not(.pill--dark) { border-color: var(--oxblood); color: var(--oxblood); }
.signup-form { max-width: 520px; }
.signup-form input { color: var(--cream); border-bottom-color: var(--cream); }
.signup-form input:focus { border-bottom: 2px solid var(--cream); }

/* Event calendar (2026-12-04). Big tap targets; a day expands in place; other days dim. */
.cal { margin-bottom: 48px; background: var(--cream); color: var(--ink); padding: clamp(16px, 3vw, 36px); border-radius: 6px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.cal .pill--light { border-color: var(--oxblood); color: var(--ink); }
.cal .pill--light:hover { background: var(--oxblood); color: var(--cream); }
.cal .event-card { border-color: rgb(42 11 11 / 0.35); background: #fbf6ef; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-month { font: 600 clamp(24px, 3vw, 38px)/1 var(--serif); white-space: nowrap; }
.cal-nav { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--oxblood); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; touch-action: pan-y; }
.cal-dow { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 4px; color: #6b4a44; }
.cal-cell { min-height: clamp(48px, 9vw, 104px); border: 1px solid rgb(42 11 11 / 0.14); background: #fbf6ef; border-radius: 2px; padding: 6px; display: flex; flex-direction: column; transition: opacity 0.25s var(--ease); }
.cal-cell.is-blank { border-color: transparent; background: transparent; }
.cal-cell.is-past { opacity: 0.4; }
.cal-cell.is-today .cal-num { background: var(--oxblood); color: var(--cream); border-radius: 999px; padding: 2px 7px; }
.cal-num { font: 600 14px/1.4 var(--sans); align-self: flex-start; }
.cal-hit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; min-height: 44px; }
.cal-cell:has(.cal-hit) { border-color: var(--oxblood); background: #fff; box-shadow: inset 0 0 0 1px var(--oxblood); }
.cal-hit:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.cal-chip { display: block; font: 600 12.5px/1.25 var(--sans); background: var(--oxblood); color: var(--cream); border-radius: 2px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-grid.has-open .cal-cell:not(:has(.is-open)) { opacity: 0.3; }
.cal-hit.is-open .cal-chip { background: #9a4416; color: var(--cream); }
.cal-empty { margin: 14px 0 0; font-size: 18px; }
.cal-day { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.cal-day-inner { overflow: hidden; min-height: 0; }
.cal-day.is-open { grid-template-rows: 1fr; margin-top: 18px; }
.cal-day-when { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; margin: 0 0 10px; }
.cal-day .event-list { margin-bottom: 0; }
.list-title { margin: 8px 0 18px; }
@media (max-width: 640px) {
  .cal-chip { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
  .cal-hit { align-items: center; }
  .cal-num { align-self: center; }
  .cal-cell { padding: 4px 2px; }
  .event-card .pill { width: 100%; justify-content: center; }
}

/* Loading: skeleton cards appear at once, so the page answers inside 400 ms. */
.event-skel { height: 180px; border: 1px solid var(--line); border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(242 232 220 / 0.08), transparent) 0 0 / 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* Feedback: instant press, a pulse on success, a dialog that grows from its button over a dimmed page. */
.pill:active, .cal-nav:active { transform: scale(0.97); }
.pulse { animation: pulse 0.6s var(--ease); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(180 86 31 / 0.7); transform: scale(1); } 40% { transform: scale(1.05); } 100% { box-shadow: 0 0 0 18px rgb(180 86 31 / 0); transform: scale(1); } }
.rsvp[open] { animation: grow 0.32s var(--ease); }
@keyframes grow { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rsvp::backdrop { backdrop-filter: blur(3px); }

/* Headings enter with a wipe, not a fade. */
.page-head .title { animation: wipe 0.9s var(--ease) both; }
.reveal :is(h1, h2), h2.reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) 0.1s; }
.reveal.is-in :is(h1, h2), h2.reveal.is-in { clip-path: inset(0 0 0 0); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .pulse, .rsvp[open], .page-head .title, .event-skel { animation: none; }
  .reveal :is(h1, h2), h2.reveal { clip-path: none; transition: none; }
  .cal-day, .cal-cell { transition: none; }
}
