@font-face {
  font-family: "Prata";
  src: url("fonts/prata-v22.ttf?v=36") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #050505;
  --gold: #d8b766;
  --gold-light: #f1d99f;
  --paper: #f4efe5;
  --ink: #251c13;
  --form-glass: rgba(28, 18, 12, .68);
  --form-glass-border: rgba(241, 217, 159, .38);
  --site-font: "Prata", serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--black); }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, input { font-family: var(--site-font); font-weight: 400; }
body { min-height: 100dvh; overflow: hidden; color: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.experience { position: relative; width: 100%; height: 100dvh; min-height: 100svh; overflow: hidden; background: #050505; }
.splash, .film, .arrival { position: absolute; inset: 0; }

.film { z-index: 0; overflow: hidden; background: #050505 url("assets/opening-poster.jpg?v=36") 28% center / cover no-repeat; }
.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--video-focus, 28%) center;
  transform: scale(1.035);
  filter: saturate(.78) brightness(.63);
  transition: filter 1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1);
}

.sound-toggle {
  position: absolute;
  z-index: 4;
  top: max(18px, calc(env(safe-area-inset-top) + 10px));
  right: max(18px, calc(env(safe-area-inset-right) + 14px));
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(10, 8, 7, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 10px 28px rgba(0,0,0,.22);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: opacity .45s ease, background-color .25s ease, transform .2s ease, visibility 0s linear .45s;
}
.sound-toggle__icon { width: 22px; height: 22px; overflow: visible; }
.sound-toggle__icon path { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle__icon--off { display: none; }
.sound-toggle[aria-pressed="false"] { color: rgba(255,255,255,.82); background: rgba(10,8,7,.52); }
.sound-toggle[aria-pressed="false"] .sound-toggle__icon--on { display: none; }
.sound-toggle[aria-pressed="false"] .sound-toggle__icon--off { display: block; }
.sound-toggle:active { transform: scale(.94); }
.sound-toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.is-opening .sound-toggle,
.is-ready .sound-toggle { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: .25s, 0s, 0s, 0s; }

.splash {
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
  background: rgba(8, 7, 6, .16);
  backdrop-filter: blur(14px) saturate(.72);
  -webkit-backdrop-filter: blur(14px) saturate(.72);
  transition: opacity .85s ease, visibility 0s linear .85s;
}
.splash::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 236, 195,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 22px 70px rgba(0,0,0,.24);
  pointer-events: none;
}
.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.06) 44%, transparent 61%);
}
.splash:active { cursor: grabbing; }
.splash:focus-visible { outline: 1px solid var(--gold); outline-offset: -12px; }

.fifty-five {
  position: absolute;
  top: var(--number-top, 44%);
  left: 50%;
  z-index: 1;
  display: block;
  width: min(86vw, 350px);
  margin: 0;
  padding: .08em .08em .13em;
  overflow: visible;
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: var(--gold);
  font-family: var(--site-font);
  font-size: clamp(138px, 47vw, 205px);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0,0,0,.42), 0 0 28px rgba(216,183,102,.17);
  transform: translate(-50%, -50%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}

.swipe-prompt {
  position: absolute;
  z-index: 2;
  bottom: max(38px, env(safe-area-inset-bottom));
  display: flex;
  width: calc(100% - 62px);
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: rgba(244,239,229,.82);
  font-family: var(--site-font);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .35s ease;
}
.swipe-prompt i {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: rise 1.6s ease-in-out infinite;
}
@keyframes rise { 50% { transform: translateY(-6px) rotate(45deg); opacity: .35; } }

.arrival {
  z-index: 3;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  background: none;
  transition: none;
}
.arrival p { display: none; }
.arrival button {
  position: absolute;
  top: var(--response-top, 70%);
  left: 50%;
  min-width: clamp(190px, 58vw, 230px);
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 2px;
  padding: 15px 20px;
  color: #fff;
  cursor: pointer;
  background: rgba(13,10,8,.33);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 55px rgba(0,0,0,.24);
  backdrop-filter: blur(10px) saturate(.8);
  -webkit-backdrop-filter: blur(10px) saturate(.8);
  font-family: var(--site-font);
  font-size: clamp(20px, 5.8vw, 26px);
  line-height: 1.25;
  text-shadow: 0 2px 25px rgba(0,0,0,.85);
  opacity: 0;
  clip-path: inset(8% 50% round 2px);
  transform: translate(-50%, -50%);
  transition: background-color .25s ease, transform .25s ease;
  will-change: opacity, clip-path;
}
.arrival button::before {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -48%;
  width: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 6%, rgba(216,183,102,.18) 32%, rgba(255,244,206,.88) 50%, rgba(230,176,77,.3) 68%, transparent 94%);
  transform: translateX(-150%) skewX(-14deg);
}
.arrival button::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.arrival button:active { transform: translate(-50%, -50%) scale(.98); }
.arrival button span { display: none; }

.is-opening .splash { opacity: 0; visibility: hidden; pointer-events: none; }
.is-opening .film video { transform: scale(1); filter: saturate(1) brightness(1); }
.is-opening .fifty-five { transform: translate(-50%, -90%) scale(.72); opacity: 0; }
.is-opening .swipe-prompt { opacity: 0; }
.is-ready .arrival { visibility: visible; pointer-events: auto; }
.is-ready .arrival button { animation: flame-cta-reveal 1.25s cubic-bezier(.16,1,.3,1) both; }
.is-ready .arrival button::before { animation: ember-sweep 1.35s cubic-bezier(.2,.75,.2,1) both; }

@keyframes flame-cta-reveal {
  0% { opacity: 0; clip-path: inset(18% 50% round 2px); text-shadow: 0 0 8px rgba(241,217,159,0); }
  24% { opacity: 1; }
  62% { clip-path: inset(0 0 round 2px); text-shadow: 0 0 24px rgba(241,217,159,.72), 0 2px 25px rgba(0,0,0,.85); }
  100% { opacity: 1; clip-path: inset(0 0 round 2px); text-shadow: 0 2px 25px rgba(0,0,0,.85); }
}
@keyframes ember-sweep {
  0%, 12% { opacity: 0; transform: translateX(-150%) skewX(-14deg); }
  32% { opacity: .95; }
  78% { opacity: .36; }
  100% { opacity: 0; transform: translateX(460%) skewX(-14deg); }
}

dialog {
  width: var(--dialog-mobile-width, 100%);
  max-width: var(--dialog-max-width, 430px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  border: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  color: var(--paper);
  background: #1b100b var(--confirmation-background) center top / cover no-repeat fixed;
  opacity: 0;
  clip-path: circle(0 at 50% 70%);
}
dialog::-webkit-scrollbar { display: none; }
dialog[open] { animation: confirmation-reveal .95s cubic-bezier(.2,.8,.2,1) forwards; }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
dialog[open]::backdrop { animation: backdrop-in .55s ease both; }
.confirmation-shell {
  position: relative;
  min-height: 100dvh;
  padding: 0 18px max(42px, calc(env(safe-area-inset-bottom) + 24px));
  background: linear-gradient(180deg, rgba(16,10,6,.17) 0, rgba(16,10,6,.29) 29%, rgba(16,10,6,.52) 100%);
}
.confirmation-header { padding-top: max(76px, calc(env(safe-area-inset-top) + 68px)); opacity: 0; transform: translateY(25px); }
.dialog__eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--site-font);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
  text-transform: uppercase;
}
h1 {
  margin: 13px 0 19px;
  color: #fff;
  font-family: var(--site-font);
  font-size: clamp(38px, 11vw, 47px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-align: center;
  text-shadow: 0 3px 30px rgba(0,0,0,.78);
  text-wrap: balance;
}
h1 em { color: var(--gold-light); font-style: normal; }
#form-title:focus { outline: none; }
dialog[open] .confirmation-header { animation: content-rise .72s .34s cubic-bezier(.2,.8,.2,1) forwards; }

.event-moment {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 316px;
  margin: 0 auto 20px;
  color: #fff;
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
  transform: translateY(22px);
}
dialog[open] .event-moment { animation: content-rise .7s .44s cubic-bezier(.2,.8,.2,1) forwards; }
.event-moment p { margin: 0; }
.event-moment i { width: 1px; height: 44px; background: rgba(241,217,159,.62); }
.event-moment__date { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.event-moment__date strong { color: var(--gold-light); font-size: 39px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.event-moment__date span { font-size: 13px; line-height: 1.2; }
.event-moment__time { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.event-moment__time span { color: rgba(255,255,255,.86); font-size: 11px; letter-spacing: .035em; }
.event-moment__time strong { color: #fff; font-size: 24px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }

form {
  margin: 0;
  border: 1px solid var(--form-glass-border);
  border-radius: 2px;
  padding: 24px 18px 19px;
  color: var(--paper);
  background: var(--form-glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 26px 75px rgba(0,0,0,.24);
  backdrop-filter: blur(20px) saturate(.8);
  -webkit-backdrop-filter: blur(20px) saturate(.8);
  opacity: 0;
  transform: translateY(34px);
}
dialog[open] form { animation: content-rise .78s .56s cubic-bezier(.2,.8,.2,1) forwards; }
form > label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255,244,221,.82);
  font-family: var(--site-font);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}
input[type="text"] {
  width: 100%;
  min-height: 46px;
  margin: 0 0 23px;
  border: 0;
  border-bottom: 1px solid rgba(241,217,159,.58);
  border-radius: 0;
  padding: 7px 2px 9px;
  outline: 0;
  color: #fffaf0;
  background: transparent;
  font-family: var(--site-font);
  font-size: 18px;
}
input:focus { border-color: var(--gold-light); box-shadow: 0 1px 0 var(--gold-light); }

.venue-card {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(241,217,159,.24);
  border-radius: 2px;
  background: rgba(248,243,234,.94);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
}
.venue-card__image {
  position: relative;
  height: 142px;
  background: #b28a55 url("restaurant-chaika.png?v=36") 50% 51% / cover no-repeat;
}
.venue-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(30,19,10,.68));
}
.venue-card__image span {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 11px;
  color: #fff;
  font-family: var(--site-font);
  font-size: 11px;
  letter-spacing: .06em;
  text-shadow: 0 2px 12px rgba(0,0,0,.75);
}
.venue-card__content { padding: 16px 14px 14px; }
.venue-card__eyebrow { margin: 0 0 7px; color: #8b6534; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.venue-card h2 { margin: 0 0 7px; color: var(--ink); font-family: var(--site-font); font-size: clamp(23px, 7.2vw, 27px); font-weight: 400; line-height: 1.15; }
.venue-card address { max-width: 310px; color: #65513c; font-family: var(--site-font); font-size: 12px; font-style: normal; line-height: 1.6; text-wrap: pretty; }
.venue-card__actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 15px; }
.venue-card__actions a, .venue-card__actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(78,56,31,.42);
  border-radius: 1px;
  padding: 11px 13px;
  color: #3e2e1e;
  background: rgba(255,255,255,.35);
  font-family: var(--site-font);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
#maps-link { border-color: #b79051; color: #241a10; background: var(--gold); }
.venue-card__actions a:active, .venue-card__actions button:active { transform: scale(.985); }
.venue-card__actions button:disabled { cursor: wait; opacity: .65; }
.venue-card__actions span { padding-left: 10px; font-size: 15px; }
.calendar-status { margin: 11px 0 0; color: #725a3e; font-size: 11px; line-height: 1.55; }
.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  border: 1px solid rgba(241,217,159,.72);
  border-radius: 1px;
  padding: 13px 15px;
  color: #fffaf0;
  background: rgba(69,47,28,.72);
  font-family: var(--site-font);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .2s ease;
}
.form__submit:active { transform: scale(.985); }
.form__submit:disabled { cursor: wait; opacity: .72; }
.form__submit-label { text-align: center; }
.form__submit-arrow { padding-left: 12px; font-size: 16px; }
.guest-roster {
  margin: 24px 0 0;
  border-top: 1px solid rgba(241,217,159,.52);
  border-bottom: 1px solid rgba(241,217,159,.3);
  padding: 23px 4px 12px;
  color: #fff;
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
  transform: translateY(24px);
}
dialog[open] .guest-roster { animation: content-rise .72s .68s cubic-bezier(.2,.8,.2,1) forwards; }
.guest-roster__header { margin: 0; }
.guest-roster__header p { margin: 0; color: var(--gold-light); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.guest-roster h2 { margin: 9px 0 11px; color: #fff; font-family: var(--site-font); font-size: 29px; font-weight: 400; line-height: 1.15; text-wrap: balance; }
.guest-roster__empty,
.guest-roster__notice { margin: 0 0 10px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.guest-roster__notice { color: #ffe5ad; }
.guest-roster__list { margin: 0; padding: 0; list-style: none; }
.guest-roster__list li {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: baseline;
  min-height: 53px;
  border-top: 1px solid rgba(255,255,255,.17);
  padding: 14px 0 11px;
}
.guest-roster__number { color: var(--gold-light); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; }
.guest-roster__name { min-width: 0; color: #fff; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.guest-roster__list li.is-new { animation: guest-arrival .7s cubic-bezier(.2,.8,.2,1) both; }

@keyframes confirmation-reveal {
  0% { opacity: .35; clip-path: circle(0 at 50% 70%); transform: scale(1.055); }
  100% { opacity: 1; clip-path: circle(150% at 50% 70%); transform: scale(1); }
}
@keyframes content-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes guest-arrival {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .experience { width: 430px; margin: auto; box-shadow: 0 0 65px #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
