@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3efe8;
  --ink: #1c1917;
  --muted: #6f675f;
  --accent: #8d3f32;
  --accent-soft: #f6e7e2;
  --card: #fffdfb;
  --line: rgba(28, 25, 23, 0.14);
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}

a { color: inherit; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wide {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.card, main.sheet, main.desk {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.card { padding: 20px; }

main.sheet, main.desk {
  border-top: 6px solid var(--accent);
  margin: 20px auto 48px;
  padding: 26px 20px 32px;
}

main.sheet { width: min(440px, calc(100% - 28px)); overflow: hidden; }
main.desk { width: min(720px, calc(100% - 28px)); }

.choice, .chip, .btn {
  cursor: pointer;
}

.choice {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.choice-top, .choice-bottom, .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.choice-title { font-weight: 700; }

.choice[aria-pressed="true"], .choice:hover, .chip:hover {
  border-color: var(--accent);
}

.choice[aria-pressed="true"] { background: var(--accent-soft); }

.stack { display: grid; gap: 10px; }

.steps {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 18px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.steps .on { color: var(--accent); font-weight: 700; }

.dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 0 8px;
}

.dates::-webkit-scrollbar { display: none; }

.times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 10px 8px;
  min-height: 44px;
}

.date-chip {
  flex: 0 0 calc((100% - 16px) / 3);
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

label { display: block; font-weight: 600; margin-bottom: 6px; }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
}

.btn {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn:disabled { opacity: 0.55; cursor: wait; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { width: auto; }

.alert, .note {
  border-radius: 14px;
  padding: 12px 14px;
}

.alert { background: #fde8e4; color: #6d2418; }
.note { background: var(--accent-soft); }

.ticket {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
  background: var(--accent);
  margin-right: 6px;
}

.status-confirmed .dot { background: #2f6b45; }
.status-cancelled .dot { background: #b7b0a8; }
.status-reschedule .dot { background: #a56a12; }

.swatch {
  width: 42px;
  height: 10px;
  border-radius: 99px;
  display: inline-block;
}

.linkish { overflow-wrap: anywhere; }

.how {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
}

.how li { margin-left: 1.1rem; }

.keep { white-space: nowrap; }

@media (min-width: 720px) {
  .times { grid-template-columns: repeat(4, 1fr); }
  main.sheet, main.desk { padding: 32px 28px 36px; }
  .poster { margin: -32px -28px 22px; height: 300px; }
}

.poster {
  margin: -26px -20px 18px;
  height: 230px;
  overflow: hidden;
  position: relative;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 16s ease-in-out infinite alternate;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.28), transparent 45%);
  pointer-events: none;
}

main.sheet.enter > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

main.sheet.enter > *:nth-child(2) { animation-delay: 0.06s; }
main.sheet.enter > *:nth-child(3) { animation-delay: 0.12s; }
main.sheet.enter > *:nth-child(4) { animation-delay: 0.18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

body.film {
  background: #100e0c;
  color: #f6f1ea;
}

.nav {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6f1ea;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.nav a { text-decoration: none; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.reel, .reel img, .veil, .grain {
  position: absolute;
  inset: 0;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: reel 32s infinite;
}

.reel img:nth-child(2) { animation-delay: 8s; }
.reel img:nth-child(3) { animation-delay: 16s; }
.reel img:nth-child(4) { animation-delay: 24s; }

@keyframes reel {
  0% { opacity: 0; transform: scale(1); }
  8% { opacity: 1; }
  25% { opacity: 1; transform: scale(1.08); }
  33% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

.veil {
  background: linear-gradient(to top, rgba(16, 14, 12, 0.78) 0%, rgba(16, 14, 12, 0.15) 46%, rgba(16, 14, 12, 0.25) 100%);
}

.grain {
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
  animation: grain 0.45s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2px, 1px); }
}

.hero-copy, .clock {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 18vh 28px 72px;
  max-width: 920px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.88;
  font-weight: 500;
}

.hero-copy p {
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(246, 241, 234, 0.82);
}

.clock {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.chapters {
  display: grid;
}

.chapter {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #171411;
}

.chapter:nth-child(even) .chapter-still { order: 2; }

.chapter-still {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
}

.chapter-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s ease;
}

.chapter:hover .chapter-still img,
.chapter:focus-within .chapter-still img {
  transform: scale(1);
}

.chapter-copy {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.chapter-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.92;
  font-weight: 500;
}

body.film .btn {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  background: #f6f1ea;
  color: #161310;
  text-decoration: none;
  margin-top: 12px;
}

body.film .btn.secondary {
  background: transparent;
  color: #f6f1ea;
  border-color: rgba(246, 241, 234, 0.35);
}

.beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246, 241, 234, 0.12);
}

.beat {
  min-height: 280px;
  padding: 28px 22px;
  background: #100e0c;
  opacity: 0.35;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.beat.on {
  opacity: 1;
  transform: none;
}

.beat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.foot {
  padding: 48px 28px 72px;
  color: rgba(246, 241, 234, 0.72);
  max-width: 720px;
}

.foot a { color: inherit; }

@media (max-width: 800px) {
  .chapter, .chapter:nth-child(even) .chapter-still { order: 0; }
  .chapter { grid-template-columns: 1fr; min-height: 0; }
  .chapter-still { min-height: 46vh; }
  .beats { grid-template-columns: 1fr 1fr; }
  .nav { padding: 16px; font-size: 0.68rem; }
  .hero-copy { padding: 22vh 18px 64px; }
  .clock { right: 18px; bottom: 18px; }
}

body.tg:not(.film) {
  background: var(--bg);
}

body.tg main.sheet {
  width: min(520px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
}

body.tg .poster {
  height: 38vh;
  min-height: 210px;
  margin: 0 -20px 20px;
}

body.tg .actions { display: none; }

body.tg .times { padding-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .reel img, .poster img, .grain, main.sheet.enter > * { animation: none; }
  .reel img { opacity: 0; transform: none; }
  .reel img:first-child { opacity: 1; }
  .beat { opacity: 1; transform: none; }
  .chapter-still img { transition: none; }
}
