/* Homepage only. Shared pieces live in site.css. */

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--cream);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a231d url('/assets/video/hero-poster-wide.webp') center / cover no-repeat;
  transform-origin: 50% 0;
}
@media (max-aspect-ratio: 1/1) { .hero-media { background-image: url('/assets/video/hero-poster-tall.webp'); } }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(22, 17, 12, 0.86) 0%, rgba(22, 17, 12, 0.5) 38%, rgba(22, 17, 12, 0.08) 70%),
    linear-gradient(to right, rgba(22, 17, 12, 0.45), rgba(22, 17, 12, 0) 65%);
}
.hero-content {
  width: 100%;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: clamp(9rem, 22vh, 13rem);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.86); margin-bottom: 1.5rem; }
.hero-title { color: #fff; margin-bottom: 1.75rem; max-width: 11ch; }
.hero-title em { color: var(--sand); }
.hero-title .w { display: inline-block; }
.hero-sub { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, 0.92); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(9rem, 22vh, 13rem);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-toggle:hover { border-color: #fff; }
.hero-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.hero-toggle .i-play { display: none; margin-left: 2px; }
.hero-toggle.is-paused .i-play { display: block; }
.hero-toggle.is-paused .i-pause { display: none; }

/* Page load: the words of the headline rise in, one after another, under a second total */
@keyframes rise { from { opacity: 0; translate: 0 0.35em; } to { opacity: 1; translate: 0 0; } }
.hero .eyebrow, .hero-title .w, .hero-sub, .hero-actions { animation: rise 0.6s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero-title .w:nth-child(1) { animation-delay: 0.12s; }
.hero-title .w:nth-child(2) { animation-delay: 0.2s; }
.hero-title .w:nth-child(3) { animation-delay: 0.28s; }
.hero-title .w:nth-child(4) { animation-delay: 0.36s; }
.hero-title .w:nth-child(5) { animation-delay: 0.44s; }
.hero-sub { animation-delay: 0.5s; }
.hero-actions { animation-delay: 0.58s; }

/* Scrolling past the hero: the video eases back and rounds its corners as the Saturday card slides over */
@supports (animation-timeline: scroll()) {
  @keyframes hero-recede { to { scale: 0.92; border-radius: 28px; filter: brightness(0.8); } }
  .hero-media {
    animation: hero-recede linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 100vh;
  }
}

/* ---------- 3. This Saturday ---------- */
.saturday { position: relative; z-index: 2; margin-top: clamp(-7rem, -14vh, -4rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.sat-notice {
  max-width: 980px;
  margin: 0 auto 0.75rem;
  background: var(--moss);
  color: var(--cream);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}
.sat-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(47, 47, 47, 0.45), 0 2px 0 rgba(47, 47, 47, 0.04);
  display: grid;
  grid-template-columns: 220px 1fr;
}
.sat-date {
  background: var(--clay);
  color: var(--cream);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.sat-date .eyebrow { color: rgba(246, 239, 228, 0.8); margin: 0; }
.sat-day-num { font-family: var(--serif); font-size: 5.5rem; font-weight: 300; line-height: 0.85; }
.sat-month { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.6rem; }
.sat-time { font-size: 0.95rem; }
.sat-countdown { font-size: 0.82rem; color: rgba(246, 239, 228, 0.85); }
.sat-body { padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.sat-body .eyebrow { margin-bottom: 0.75rem; }
.sat-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.sat-passage { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-bottom: 1rem; }
.sat-summary { color: var(--muted); max-width: 34rem; margin-bottom: 1rem; }
.sat-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; font-size: 0.92rem; color: var(--muted); margin-bottom: 1.75rem; }
.sat-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.sat-facts svg { width: 16px; height: 16px; stroke: var(--olive); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sat-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.sat-actions .text-link { font-size: 0.92rem; }
.sat-upcoming { max-width: 980px; margin: 3rem auto 0; }
.sat-upcoming h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.5rem; }
.upcoming { list-style: none; border-top: 1px solid var(--line); }
.upcoming li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.upcoming .u-date { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.upcoming .u-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.upcoming .u-meta { font-size: 0.85rem; color: var(--muted); text-align: right; }
@media (max-width: 720px) {
  .sat-card { grid-template-columns: 1fr; }
  .sat-date { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0.5rem 1.25rem; padding: 1.5rem; }
  .sat-date .eyebrow { grid-column: 1 / -1; }
  .sat-day-num { font-size: 3.75rem; }
  .upcoming li { grid-template-columns: 4.5rem 1fr; }
  .upcoming .u-meta { grid-column: 2; text-align: left; }
}

/* ---------- 4. What a Saturday looks like ---------- */
.look-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.look-media { position: sticky; top: calc(var(--nav-h-small) + 2rem); height: min(78vh, 680px); align-self: start; overflow: hidden; background: var(--sage); }
.look-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 0.9s var(--ease), scale 1.4s var(--ease); scale: 1.06; }
.look-media img.is-active { clip-path: inset(0 0 0 0); scale: 1; }
.look-media img.is-past { clip-path: inset(0 0 0 0); scale: 1; }
.look-steps { list-style: none; }
.look-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.5s var(--ease); }
.look-step:first-child { border-top: 0; }
.look-step.is-active { opacity: 1; }
.look-num { font-family: var(--serif); font-size: 3.5rem; font-weight: 300; line-height: 1; color: var(--clay); margin-bottom: 1rem; }
.look-step h3 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 0.75rem; }
.look-step p { max-width: 30rem; color: var(--muted); font-size: 1.05rem; }
.look-step .look-photo { display: none; }
@media (max-width: 860px) {
  .look-grid { grid-template-columns: 1fr; }
  .look-media { display: none; }
  .look-step { min-height: 0; opacity: 1; padding: 0 0 3rem; border-top: 0; }
  .look-step .look-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.5rem; background: var(--sage); }
  .look-step .look-photo img { width: 100%; height: 100%; object-fit: cover; }
  .look-num { font-size: 2.5rem; margin-bottom: 0.5rem; }
}

/* ---------- 5. Questions ---------- */
.questions-more { margin-top: 2rem; }

/* ---------- 6. The chair and the form ---------- */
.seat { background: var(--cream-deep); }
.seat-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.seat-stage { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; }
.chair-scene { position: absolute; inset: 0; }
.chair-scene canvas { width: 100% !important; height: 100% !important; display: block; outline: none; }
.chair-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s var(--ease); }
.chair-fallback svg { width: auto; height: 78%; color: var(--olive); }
.has-webgl .chair-fallback { opacity: 0; pointer-events: none; }
.place-card {
  position: absolute;
  left: 50%;
  top: 58%;
  translate: -50% 0;
  background: #fff;
  color: var(--clay);
  padding: 0.55rem 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px -12px rgba(47, 47, 47, 0.45);
  white-space: nowrap;
  opacity: 0;
  translate: -50% 12px;
  transition: opacity 0.5s var(--ease) 0.5s, translate 0.5s var(--ease) 0.5s;
  pointer-events: none;
}
.seat-stage.is-pulled .place-card { opacity: 1; translate: -50% 0; }
.seat-hint { position: absolute; bottom: 0.25rem; left: 0; right: 0; text-align: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.seat-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field label, .field legend { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 0.45rem; }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 2px;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(127, 74, 34, 0.15); }
.field .error { display: none; font-size: 0.85rem; color: #9b2c1d; margin-top: 0.35rem; }
.field.has-error .error { display: block; }
.field.has-error input { border-color: #9b2c1d; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
fieldset.field { border: 0; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--sand); background: var(--paper); }
.stepper button { width: 46px; background: none; border: 0; font-size: 1.3rem; color: var(--clay); cursor: pointer; }
.stepper button:hover { background: var(--cream); }
.stepper button:disabled { color: var(--sand); cursor: default; }
.stepper input { width: 3.25rem; text-align: center; border: 0; border-left: 1px solid var(--sand); border-right: 1px solid var(--sand); background: transparent; font: inherit; font-size: 1.1rem; padding: 0.7rem 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.choice { display: inline-flex; gap: 0.5rem; }
.choice label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 400; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid var(--sand); background: var(--paper); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--moss); border-color: var(--moss); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.kid-ages { margin-top: 0.75rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; }
.consent input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--clay); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; color: #9b2c1d; }
.form-quiet { font-size: 0.9rem; color: var(--muted); }
.seat-done { padding: 2rem; background: var(--paper); border-left: 3px solid var(--moss); margin-top: 2rem; }
.seat-done h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.seat-form .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Fields rise into place when the chair is pulled out */
@keyframes field-rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.seat-form.is-rising > * { animation: field-rise 0.45s var(--ease) both; }
.seat-form.is-rising > *:nth-child(2) { animation-delay: 0.06s; }
.seat-form.is-rising > *:nth-child(3) { animation-delay: 0.12s; }
.seat-form.is-rising > *:nth-child(4) { animation-delay: 0.18s; }
.seat-form.is-rising > *:nth-child(5) { animation-delay: 0.24s; }
.seat-form.is-rising > *:nth-child(6) { animation-delay: 0.3s; }
.seat-form.is-rising > *:nth-child(7) { animation-delay: 0.36s; }
@media (max-width: 860px) {
  .seat-grid { grid-template-columns: 1fr; }
  .seat-stage { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Location popup ---------- */
.modal { position: fixed; inset: 0; z-index: 500; background: rgba(28, 24, 20, 0.6); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; animation: fadeIn 0.25s ease; }
.modal-box { background: var(--paper); max-width: 420px; width: 100%; padding: 2.25rem 2rem; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.modal-box h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.modal-box p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.modal-box .btn { width: 100%; margin-bottom: 0.6rem; }
.btn-whatsapp { background: #1f7a4a; color: #fff; }
.btn-whatsapp:hover { background: #17633b; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; margin-top: 0.5rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Film player ---------- */
.film-modal { position: fixed; inset: 0; z-index: 600; background: rgba(14, 11, 8, 0.94); display: none; align-items: center; justify-content: center; padding: 4rem 1.5rem 2rem; }
.film-modal.is-open { display: flex; }
.film-frame { position: relative; width: min(1200px, 100%, calc((100vh - 7rem) * 16 / 9)); }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-close { position: absolute; right: 0; top: -2.75rem; background: none; border: 0; color: #fff; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.film-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
::view-transition-group(film) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 640px) { .film-modal { padding: 3.5rem 0 1rem; } .film-close { right: 1rem; } }

/* ---------- Saturday app notice ---------- */
.app-redirect { position: fixed; inset: 0; z-index: 700; background: rgba(28, 24, 20, 0.6); display: flex; align-items: center; justify-content: center; padding: 1.25rem; animation: fadeIn 0.25s ease; }
.app-redirect-card { background: var(--paper); max-width: 440px; width: 100%; padding: 2.25rem 2rem; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.app-redirect-card h2 { font-size: 2.1rem; margin-bottom: 0.6rem; }
.app-redirect-card p { color: var(--muted); margin-bottom: 1.5rem; }
.app-redirect-actions { display: flex; flex-direction: column; gap: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .look-media img { transition: none; }
  .look-step { opacity: 1; }
}
.has-webgl .place-card { display: none; }
