/* The Opera Kitchen — core stylesheet */

:root {
  --bg: #0c0a08;
  --bg-2: #14100c;
  --bg-3: #1c1712;
  --cream: #f3ece1;
  --muted: #a2958289;
  --text-muted: #b3a695;
  --gold: #c2a06a;
  --gold-dim: #8d7449;
  --line: rgba(243, 236, 225, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2.6rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

section { padding: clamp(5rem, 11vw, 9rem) 0; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(12, 10, 8, 0.9);
  backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

.brand {
  font-family: var(--serif);
  /* Scales with the viewport so it can never push the menu button
     off-screen, whatever width the real webfont renders at. */
  font-size: clamp(0.72rem, 3.1vw, 1.15rem);
  letter-spacing: clamp(0.1em, 0.6vw, 0.24em);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2vw, 2.2rem);
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  padding: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 1.05rem 2.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.btn:hover { background: var(--gold); color: var(--bg); }

.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--gold); }

.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

/* On desktop, cap the hero at the video's own 16:9 height so the
   sides of the frame aren't cropped away. Phones stay full-height —
   a vertical crop is unavoidable there and looks right. */
@media (min-width: 900px) {
  .hero { height: min(100svh, 56.25vw); }
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url("/assets/img/hero/poster.webp") center / cover no-repeat;
}

/* Portrait screens: show the whole 16:9 frame rather than cropping the
   sides off. The surrounding space is the page background, so it reads
   as negative space instead of letterbox bars. */
@media (max-width: 899px) {
  .hero {
    height: 62svh;
    background: var(--bg);
  }

  .hero video {
    object-fit: contain;
    background: none;
  }
}

/* Just enough gradient to seat the header and blend into the page below */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 8, 0.6) 0%,
    transparent 22%,
    transparent 72%,
    var(--bg) 100%
  );
}

.titlecard {
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 0;
}

.titlecard h1 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.6rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.titlecard .btn { margin-bottom: 3.5rem; }

.hero-lede {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 2.4s var(--ease) infinite;
}

@keyframes drop {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- Intro ---------- */

.intro { text-align: center; }

.intro p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.55;
  max-width: 46rem;
  margin-inline: auto;
  color: var(--cream);
}

.rule {
  width: 1px;
  height: 70px;
  background: linear-gradient(var(--gold-dim), transparent);
  margin: 0 auto 2.6rem;
}

/* ---------- Expect ---------- */

.expect { background: var(--bg-2); }

.expect-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.expect-head figure { margin: 0; }

.expect-head img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-2);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background 0.5s var(--ease);
}

.card:hover { background: var(--bg-3); }

.card h3 { margin-bottom: 1rem; color: var(--cream); }

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
  filter: brightness(0.88);
}

.gallery-grid figure:hover img { transform: scale(1.06); filter: brightness(1); }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Reviews ---------- */

.reviews { background: var(--bg-2); overflow: hidden; }

.quote {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  margin: 0 0 1.4rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.marquee {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 68s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

.marquee img {
  height: 200px;
  width: auto;
  border: 1px solid var(--line);
  opacity: 0.82;
  transition: opacity 0.4s;
}

.marquee img:hover { opacity: 1; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Hosts ---------- */

.host {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.host:last-child { margin-bottom: 0; }
.host.reverse { grid-template-columns: 7fr 5fr; }
.host.reverse > figure { order: 2; }

.host figure { margin: 0; }

.host img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.host h3 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.4rem;
}

.host .role {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

.host p { color: var(--text-muted); }

.credits {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}

.credits li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.55rem 0;
}

.credits li + li { border-top: 1px solid rgba(243, 236, 225, 0.06); }

.credits span {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  background: var(--bg-2);
}

.cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
}

.cta p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */

.form-wrap {
  max-width: 46rem;
  margin-inline: auto;
}

.field { margin-bottom: 1.6rem; }

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  border-radius: 0;
  transition: border-color 0.35s;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.4rem;
}

.form-status {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.ok { color: var(--gold); }
.form-status.err { color: #e0796a; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer-links a:hover { color: var(--gold); }

.copyright {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 5, 0.96);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox button:hover { opacity: 1; }
.lb-close { top: 1.2rem; right: 1.4rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Page header (subpages) ---------- */

.page-head {
  padding: clamp(9rem, 18vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-head p {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 1.4rem auto 0;
}

.prose { max-width: 42rem; margin-inline: auto; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.6rem; }
.prose li { margin-bottom: 0.9rem; color: var(--text-muted); }
.prose li strong { color: var(--cream); font-weight: 400; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .expect-head { grid-template-columns: 1fr; }
  .host, .host.reverse { grid-template-columns: 1fr; }
  .host.reverse > figure { order: 0; }
  .host img { aspect-ratio: 4 / 3; }
  /* Uniform 2-up grid. The desktop tall/wide spans leave holes at this width. */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-tall { grid-row: auto; }
  .g-wide { grid-column: auto; }
}

/* Nav collapses well before the links would run out of room.
   Cormorant and Jost are wider than the system fallbacks, so this
   breakpoint is deliberately generous. */
@media (max-width: 1150px) {
  .nav-toggle { display: block; }

  /* A backdrop-filter makes an element the containing block for its
     position:fixed descendants, which would trap the fullscreen menu
     inside the header. Use a solid bar here instead. */
  .site-header.scrolled {
    backdrop-filter: none;
    background: rgba(12, 10, 8, 0.97);
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 8, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
  }

  .nav.open { transform: none; }
  .nav a { font-size: 1rem; letter-spacing: 0.22em; color: var(--cream); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 2; }
  .marquee img { height: 150px; }

  /* Tighter rhythm on small screens */
  section { padding: 4rem 0; }
  .titlecard { padding-top: 3.5rem; }
  .host { margin-bottom: 3.5rem; }
  .expect-head { margin-bottom: 2.5rem; }
  .g-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
