/* =========================================
   Reset & tokens
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0a0a;
  --bg-light: #ffffff;
  --bg-cream: #f6f4ef;
  --text-dark: #14141a;
  --text-light: #f5f5f0;
  --muted-light: rgba(245, 245, 240, 0.6);
  --muted-dark: rgba(20, 20, 26, 0.55);
  --hairline-light: rgba(255, 255, 255, 0.12);
  --hairline-dark: rgba(0, 0, 0, 0.08);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", Baskerville, "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif-display: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* =========================================
   Reveal-on-scroll (used in magazine view)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2 { transition-delay: 0.20s; }
.reveal.delay-3 { transition-delay: 0.30s; }
.reveal.delay-4 { transition-delay: 0.40s; }

/* =========================================
   Typography utilities
   ========================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
}

/* =========================================
   HERO  (magazine top)
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  animation: heroZoom 10s var(--ease-out) forwards;
  transform: scale(1.16);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.12) 38%,
    rgba(0,0,0,0.22) 62%,
    rgba(0,0,0,0.78) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-content .eyebrow {
  opacity: 0;
  animation: fadeUp 1.4s 0.4s var(--ease-out) forwards;
  color: rgba(255,255,255,0.85);
}
.hero-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(120px, 38vw, 260px);
  line-height: 0.92;
  margin: 26px 0 22px;
  letter-spacing: 0.005em;
  font-style: italic;
  opacity: 0;
  animation: fadeUp 1.6s 0.7s var(--ease-out) forwards;
}
.hero-sub {
  font-size: 11px;
  letter-spacing: 0.36em;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1.4s 1.1s var(--ease-out) forwards;
  color: rgba(255,255,255,0.85);
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center;
  color: rgba(255,255,255,0.65);
  opacity: 0;
  animation: fadeIn 1s 1.6s var(--ease-out) forwards;
}
.scroll-cue span {
  display: block; font-size: 9px; letter-spacing: 0.42em; margin-bottom: 12px;
}
.scroll-cue i {
  display: block; width: 1px; height: 32px; margin: 0 auto;
  background: rgba(255,255,255,0.5);
  transform-origin: top center;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1.0); } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1); }
}

/* =========================================
   COVER  (clean full-bleed photo, no text)
   ========================================= */
.cover {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  background: #000;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  animation: heroZoom 10s var(--ease-out) forwards;
  transform: scale(1.16);
}
.cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.0) 70%,
    rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.cover .scroll-cue { z-index: 2; }

/* =========================================
   MASTHEAD  (title text, no image)
   ========================================= */
.masthead {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: clamp(90px, 18vh, 170px) 24px clamp(70px, 14vh, 130px);
  text-align: center;
}
.masthead .eyebrow {
  display: inline-block;
  margin-bottom: 26px;
  opacity: 0.55;
}
.masthead h1 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(96px, 30vw, 200px);
  line-height: 0.92;
  margin-bottom: 28px;
  letter-spacing: 0.005em;
}
.masthead-sub {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* =========================================
   INTRO (light section)
   ========================================= */
.intro {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: clamp(110px, 22vh, 200px) 24px;
  text-align: center;
}
.intro-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 5.4vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}
.intro-text em {
  font-style: italic;
  position: relative;
  padding: 0 2px;
}

/* =========================================
   SOLO (single photo, framed)
   ========================================= */
.solo {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: clamp(72px, 14vh, 140px) 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solo.dark { background: var(--bg-dark); color: var(--text-light); }
.solo figure { max-width: 460px; width: 100%; }
.solo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.28);
}
.solo.dark img { box-shadow: 0 26px 56px -14px rgba(0,0,0,0.65); }
.solo figcaption {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 400;
  opacity: 0.55;
  text-transform: lowercase;
}

/* =========================================
   PAIR (two photos)
   ========================================= */
.pair {
  background: var(--bg-cream);
  padding: clamp(36px, 8vh, 80px) 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pair.dark { background: var(--bg-dark); }
.pair figure { width: 100%; }
.pair img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 32px -10px rgba(0,0,0,0.22);
}
.pair.dark img { box-shadow: 0 18px 36px -10px rgba(0,0,0,0.55); }

/* =========================================
   SPOTLIGHT  (full-bleed single photo, no text)
   ========================================= */
.spotlight {
  background: #000;
  display: block;
  overflow: hidden;
}
.spotlight img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: cover;
  object-position: center 30%;
}

/* =========================================
   QUOTE  (standalone text between photos)
   ========================================= */
.quote {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(90px, 18vh, 160px) 24px;
  text-align: center;
}
.quote.light {
  background: var(--bg-cream);
  color: var(--text-dark);
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 5.4vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto;
}

/* =========================================
   CINEMA  (landscape photos)
   ========================================= */
.cinema-intro {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: clamp(70px, 14vh, 130px) 24px clamp(20px, 4vh, 40px);
}
.cinema-intro .eyebrow { opacity: 0.45; }

.cinema {
  background: var(--bg-dark);
  padding: clamp(28px, 5vh, 50px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinema figure { width: 100%; max-width: 100%; }
.cinema img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 24px 56px -16px rgba(0,0,0,0.7);
}
.cinema figcaption {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 400;
  opacity: 0.5;
  text-transform: lowercase;
  color: var(--text-light);
  padding: 0 24px;
}

@media (min-width: 720px) {
  .cinema { padding: clamp(40px, 7vh, 80px) clamp(20px, 4vw, 60px); }
  .cinema figure { max-width: 1100px; }
}

/* =========================================
   PIN (sticky photo + scrolling text)
   ========================================= */
.pin { position: relative; height: 320vh; background: #000; }
.pin-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pin-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
}
.pin-veil { position: absolute; inset: 0; background: rgba(0,0,0,0.48); }
.pin-text {
  position: relative; z-index: 2;
  text-align: center;
  width: 100%; height: 100%;
}
.pin-text h3 {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 9.2vw, 76px);
  letter-spacing: 0.02em;
  color: #fff;
  padding: 0 24px;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  text-transform: lowercase;
}
.pin-text h3.is-active { opacity: 1; transform: translate3d(0, 0, 0); }

/* =========================================
   PARALLAX
   ========================================= */
.parallax { background: #000; padding: 0; }
.parallax-clip {
  position: relative;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
}
.parallax-clip img {
  position: absolute;
  top: -15%; left: 0;
  width: 100%; height: 130%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

/* =========================================
   INTERLUDE  (between sections)
   ========================================= */
.interlude {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(120px, 24vh, 220px) 24px;
  text-align: center;
}
.interlude p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 6vw, 36px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* =========================================
   FINALE  (full grid, light)
   ========================================= */
.finale {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: clamp(90px, 16vh, 150px) 0 80px;
}
.finale-head {
  text-align: center;
  padding: 0 24px clamp(50px, 9vh, 90px);
}
.finale-head .eyebrow { display: block; margin-bottom: 18px; opacity: 0.45; }
.finale-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(64px, 18vw, 140px);
  line-height: 0.95;
  margin-bottom: 22px;
  letter-spacing: 0.005em;
}
.finale-head p {
  font-size: 11px;
  letter-spacing: 0.42em;
  opacity: 0.5;
  text-transform: uppercase;
}
.finale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 4px;
}
.finale-grid .g {
  display: block;
  overflow: hidden;
  background: #ece9e2;
  cursor: zoom-in;
}
.finale-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.4s ease;
}
.finale-grid .g:hover img { transform: scale(1.05); }

.finale-grid .g.landscape {
  grid-column: 1 / -1;
}
.finale-grid .g.landscape img {
  aspect-ratio: 3 / 2;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-cream);
  color: var(--text-dark);
  text-align: center;
  padding: 70px 24px 56px;
  border-top: 1px solid var(--hairline-dark);
}
.footer-mark {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-meta {
  font-size: 10px;
  letter-spacing: 0.32em;
  opacity: 0.45;
  text-transform: uppercase;
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox:not([hidden]) { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

/* =========================================
   Tablet & up — open the layout
   ========================================= */
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(56px, 10vh, 100px) 28px; }
  .solo figure { max-width: 540px; }
  .finale-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px; }
}

@media (min-width: 1024px) {
  .solo figure { max-width: 600px; }
  .pair { padding: 100px 60px; gap: 26px; }
  .finale-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 28px; }
  .parallax-clip { height: 88vh; }
}

/* =========================================
   Reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg img { transform: scale(1); }
  .pin { height: auto; }
  .pin-stage { position: relative; height: 70vh; }
  .pin-text h3 { position: relative; opacity: 1; transform: none; inset: auto; padding: 40px 24px; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================
   PAGE SHELLS — lock + menu
   ========================================= */
body.no-overflow {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* =========================================
   VANTA.JS 3D BACKGROUND
   ========================================= */
.vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #c290d4;            /* lilac fallback if Vanta fails */
  pointer-events: none;
}
.vanta-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* subtle veil for legibility — does NOT kill the 3D effect */
.vanta-veil {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(0,0,0,0) 30%,
      rgba(20,10,28,0.30) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0) 25%,
      rgba(0,0,0,0) 75%,
      rgba(20,10,28,0.45) 100%);
}

/* faint film grain — barely perceptible, adds texture */
.ambient-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  animation: grainShift 1.6s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* =========================================
   LOCK SCREEN
   ========================================= */
.lock {
  position: relative;
  z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  align-items: center; justify-content: center;
  padding: max(22px, env(safe-area-inset-top))
           max(20px, env(safe-area-inset-right))
           max(22px, env(safe-area-inset-bottom))
           max(20px, env(safe-area-inset-left));
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lock.is-out {
  opacity: 0; transform: scale(0.96);
  pointer-events: none;
}
.lock-card {
  width: 100%;
  max-width: 320px;
  padding: 36px 22px 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(40, 20, 60, 0.35);
  overflow: hidden;
  box-shadow:
    0 24px 60px -12px rgba(70, 30, 90, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(255, 255, 255, 0.08) inset;
}
.lock-card.shake { animation: shake 0.45s var(--ease-out); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.lock-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
  color: #fff;
}
.lock-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.lock-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 26px;
}
.lock-form {
  display: flex; gap: 8px;
  align-items: stretch;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
}
.lock-input {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.28em;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.lock-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.18em;
}
.lock-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.42);
}
.lock-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: none;
  border-radius: 11px;
  background: #fff;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-appearance: none;
  appearance: none;
}
.lock-btn:hover { background: rgba(255, 255, 255, 0.85); }
.lock-btn:active { transform: scale(0.95); }
.lock-error {
  height: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8888;
  opacity: 0;
  transition: opacity 0.2s;
}
.lock-error.is-show { opacity: 1; }

/* =========================================
   MENU  (after unlock)
   ========================================= */
.menu {
  position: relative;
  z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: max(44px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  opacity: 1;
}
.menu-head {
  text-align: center;
  margin-top: clamp(24px, 6vh, 60px);
  color: #fff;
  width: 100%;
  max-width: 720px;
}
.menu-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  opacity: 0.55;
}
.menu-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 8.5vw, 52px);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.menu-sub {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.5;
}

.menu-grid {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0 24px;
}
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.menu-card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  isolation: isolate;
}
@media (min-width: 640px) { .menu-card { height: 300px; } }
@media (min-width: 1024px) { .menu-card { height: 340px; } }
.menu-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.65);
}
.menu-card:hover .menu-card-bg img { transform: scale(1.08); }
.menu-card:hover .menu-card-arrow { transform: translateX(4px); }

.menu-card-bg { position: absolute; inset: 0; }
.menu-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.menu-card-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.88) 100%);
}
.menu-card-body {
  position: absolute; inset: 0;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.menu-card-tag {
  font-size: 9px;
  letter-spacing: 0.42em;
  opacity: 0.78;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.menu-card-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.005em;
  line-height: 1;
  margin-bottom: 6px;
}
.menu-card-desc {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.72;
}
.menu-card-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-out), background 0.2s;
}

.menu-foot { width: 100%; max-width: 720px; text-align: center; }
.menu-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.menu-lock:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

/* =========================================
   VIEW SWITCHER  (top-right floating)
   ========================================= */
.view-switcher {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 50;
  display: flex;
  gap: 6px;
}
.vs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s, transform 0.1s;
}
.vs-btn:hover { background: rgba(0, 0, 0, 0.7); }
.vs-btn:active { transform: scale(0.96); }
.vs-btn.vs-icon { padding: 7px; width: 34px; justify-content: center; }

/* =========================================
   STORIES VIEW
   ========================================= */
body.stories-body {
  overflow: hidden;
  background: #000;
  height: 100vh; height: 100dvh;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}
.stories {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.st-stage { position: absolute; inset: 0; z-index: 1; }
.st-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
  background: #000;
}
.st-img.is-show { opacity: 1; }
.st-img.is-wide { object-fit: contain; }

.st-progress {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 10px; right: 10px;
  z-index: 5;
  display: flex; gap: 3px;
  pointer-events: none;
}
.pb-seg {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
}
.pb-fill {
  width: 0%; height: 100%;
  background: rgba(255, 255, 255, 0.95);
  transition: width 0.08s linear;
}

.st-top {
  position: absolute;
  top: max(20px, calc(env(safe-area-inset-top) + 14px));
  left: 14px; right: 14px;
  z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.st-meta {
  pointer-events: auto;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.st-album-name {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.005em;
}
.st-album-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 3px;
}
.st-actions {
  pointer-events: auto;
  display: flex; gap: 6px;
}
.st-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}
.st-icon-btn:hover { background: rgba(0, 0, 0, 0.6); }

.st-bottom {
  position: absolute;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  left: 0; right: 0;
  z-index: 6;
  text-align: center;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.st-counter {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-bottom: 6px;
}
.st-hint {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
}

.st-zone {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 4;
  width: 35%;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.st-zone-prev { left: 0; }
.st-zone-next { right: 0; }

/* =========================================
   IN-APP ALBUM VIEW  (iframe shell so music never stops on navigation)
   ========================================= */
.album-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
}
.album-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
body.album-open { overflow: hidden; }

/* =========================================
   FLOATING MUSIC PLAYER  (bottom-right pill)
   ========================================= */
.player {
  position: fixed;
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  right:  max(14px, calc(env(safe-area-inset-right)  + 10px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  max-width: calc(100% - 28px);
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.5);
  animation: playerIn 0.4s var(--ease-out) both;
}
@keyframes playerIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s, transform 0.1s;
}
.player-btn:hover  { background: rgba(255, 255, 255, 0.24); }
.player-btn:active { transform: scale(0.92); }

.player-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
}
.player-artist {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

@media (max-width: 380px) {
  .player-meta { max-width: 110px; }
}
