@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("fonts/CrimsonText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/LibreFranklin-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F6F0E4;
  --cream-deep: #E8DCC8;
  --ivory: #FBF7EF;
  --ink: #2A1416;
  --wine: #6F1420;
  --wine-deep: #3E0E12;
  --forest: #1E3A2F;
  --forest-mid: #2F5A45;
  --gold: #C4A36A;
  --gold-soft: #E2C992;
  --safe: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  background: #11080A;
  color: var(--ink);
  font-family: "Libre Franklin", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
  cursor: default;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

#app, .screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* ---------- Attract ---------- */
#screen-attract { background: #0A0707; }

.stage, .layer {
  position: absolute;
  inset: 0;
}

.layer {
  opacity: 0;
  transition: opacity 1.05s ease;
  overflow: hidden;
}
.layer.is-on { opacity: 1; }

.media-fill,
.layer video,
.layer img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vertical-wrap {
  position: absolute;
  inset: 0;
  background: #0A0707;
}
.vertical-wrap .blur-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(32px) brightness(0.45) saturate(1.1);
  transform: scale(1.08);
}
.vertical-wrap .portrait-fg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: 56%;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,.45);
}

.kenburns {
  animation: kenburns 9s ease-in-out forwards;
  transform-origin: center center;
}
.kenburns.alt {
  animation-name: kenburns-alt;
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.08) translate3d(-1.4%, -1%, 0); }
}
@keyframes kenburns-alt {
  from { transform: scale(1.07) translate3d(1%, 1%, 0); }
  to   { transform: scale(1) translate3d(0,0,0); }
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,4,4,.62) 0%, rgba(8,4,4,.08) 38%, transparent 58%),
    linear-gradient(to bottom, rgba(8,4,4,.28) 0%, transparent 22%);
}

.logo-btn { padding: 0; background: none; }
.logo-attract {
  position: absolute;
  top: max(18px, calc(var(--safe) + 10px));
  left: 28px;
  z-index: 3;
  width: min(240px, 28vw);
}
.logo-attract img { width: 100%; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }

.overlay-line {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: max(56px, calc(var(--safe-b) + 40px));
  z-index: 3;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  color: #F7F1E6;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
  letter-spacing: 0.01em;
  max-width: 18em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.overlay-line.is-on { opacity: 1; transform: none; }

.tap-hint {
  position: absolute;
  right: 32px;
  bottom: max(28px, calc(var(--safe-b) + 18px));
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,241,230,.78);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ---------- Menu ---------- */
#screen-menu { background: var(--cream); display: block; }
.menu-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196,163,106,.18), transparent 50%),
    var(--cream);
}

.menu-shell {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(52%, 620px);
  padding: max(28px, calc(var(--safe) + 18px)) 56px 40px 56px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.logo-light { width: 260px; margin-bottom: 10px; align-self: flex-start; }
.logo-light img { width: 100%; height: auto; }

.menu-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 6px 0 28px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.menu-nav button {
  text-align: left;
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 400;
  color: var(--ink);
  padding: 0.38em 0;
  border-bottom: 1px solid rgba(110, 20, 32, 0.16);
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.menu-nav button:hover,
.menu-nav button:active { color: var(--wine); padding-left: 8px; }

.btn-book {
  margin-top: 28px;
  align-self: flex-start;
  background: var(--wine);
  color: var(--ivory);
  padding: 0.85em 1.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.btn-book:hover, .btn-book:active { background: var(--wine-deep); }

.menu-foot {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--forest);
  letter-spacing: 0.04em;
}

.menu-aside {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
}
.menu-aside img, .menu-aside video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.menu-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 18%);
}

/* ---------- Shared bars ---------- */
.bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: max(16px, calc(var(--safe) + 8px)) 24px 12px;
  color: #F7F1E6;
}
.bar-light { color: var(--ink); }
.bar-over { background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent); }
.bar-title {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.bar-sub {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.btn-back {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F7F1E6;
  padding: 8px 0;
}
.btn-back::before { content: "← "; }
.btn-back-dark { color: var(--wine); }
.btn-text {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

/* ---------- Gallery ---------- */
#screen-gallery { background: #0C0808; }
.gallery-stage {
  position: absolute;
  inset: 0;
}
.gallery-stage .layer { /* reuse */ }
.gallery-caption {
  position: absolute;
  left: 28px;
  bottom: 118px;
  z-index: 3;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  color: #F7F1E6;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  max-width: 18em;
}
.filmstrip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 12px 20px max(16px, calc(var(--safe-b) + 10px));
  overflow-x: auto;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.28) 70%, transparent);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip button {
  flex: 0 0 auto;
  width: 108px;
  height: 68px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  opacity: 0.7;
}
.filmstrip button.is-current {
  border-color: var(--gold);
  opacity: 1;
}
.filmstrip img, .filmstrip video {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Events ---------- */
#screen-events { background: var(--cream); }
.event-grid {
  position: absolute;
  inset: 88px 36px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(62,14,18,.12);
}
.event-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.event-card:hover img, .event-card:active img { transform: scale(1.05); }
.event-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(20,8,8,.72), transparent);
  color: #F7F1E6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-card em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.event-card strong {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 600;
  font-size: 2.1rem;
}

/* ---------- Stories ---------- */
#screen-stories { background: #000; }
.stories-reel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.story {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}
.story .blur-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(36px) brightness(0.4);
}
.story .portrait-fg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  height: 100%;
  width: auto;
  max-width: 42%;
  object-fit: contain;
}
.story .story-cap {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: max(36px, calc(var(--safe-b) + 24px));
  width: min(46%, 28rem);
  transform: translateX(-50%);
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #F7F1E6;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  z-index: 2;
}
.story .story-progress {
  position: absolute;
  top: max(10px, calc(var(--safe) + 6px));
  left: 80px;
  right: 24px;
  height: 3px;
  background: rgba(255,255,255,.25);
  z-index: 5;
  border-radius: 2px;
  overflow: hidden;
}
.story .story-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-soft);
}
.stories-hint {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,241,230,.55);
  pointer-events: none;
  z-index: 3;
}

/* ---------- Book ---------- */
#screen-book { background: var(--cream); }
.book-grid {
  position: absolute;
  inset: 96px 48px 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.book-qr {
  background: var(--ivory);
  border: 1px solid rgba(110,20,32,.12);
  padding: 28px 24px;
  text-align: center;
}
.book-qr img {
  width: min(260px, 100%);
  margin: 0 auto 16px;
}
.book-qr p { font-size: 0.95rem; color: var(--ink); }
.placeholder-note {
  margin-top: 8px;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest) !important;
}

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.form-intro {
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.lead-form input {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(110,20,32,.2);
  padding: 0.7em 0.8em;
  border-radius: 2px;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--wine);
}
.form-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.lead-form .btn-book { align-self: flex-start; margin-top: 8px; }
.form-status {
  font-size: 0.95rem;
  color: var(--forest);
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
}

/* ---------- Admin ---------- */
#screen-admin { background: var(--cream); overflow: auto; }
.admin-body {
  position: absolute;
  inset: 88px 36px 24px;
  overflow: auto;
}
.admin-note { font-size: 0.85rem; color: var(--forest); margin-bottom: 16px; }
.admin-note code { font-size: 0.8em; }
.leads-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--ivory);
}
.leads-list th, .leads-list td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(110,20,32,.12);
}
.leads-list th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
}
.empty-leads { color: var(--forest); font-style: italic; }

/* Portrait iPad: stack menu, shrink aside */
@media (orientation: portrait) {
  .menu-shell {
    width: 100%;
    padding: max(24px, calc(var(--safe) + 14px)) 28px 28px;
  }
  .menu-aside { display: none; }
  .logo-light, .logo-attract { width: 210px; }
  .book-grid, .event-grid {
    grid-template-columns: 1fr;
    inset: 88px 20px 20px;
    overflow: auto;
  }
  .vertical-wrap .portrait-fg { max-width: 86%; }
  .stories-hint { display: none; }
  .overlay-line { font-size: 1.4rem; }
}

@media (max-height: 820px) and (orientation: landscape) {
  .menu-nav button { padding: 0.28em 0; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
  .logo-light { width: 220px; }
}
