:root {
  --peach: #E8927C;
  --peach-hover: #F0A48F;
  --black: #030303;
  --card: #0A0A0A;
  --charcoal: #1A1A1A;
  --cream: #FFFBEB;
  --text: rgba(255,255,255,0.92);
  --text-soft: rgba(255,255,255,0.72);
  --text-faint: rgba(255,255,255,0.5);
  --line: rgba(232,146,124,0.18);
  --font-display: 'Recoleta', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Base, fonts, age gate (moved from index.html in v2 stage 3) ---------- */
/* Brand typeface: Recoleta (per Surenitea ID brand deck §1.5). Files in /public/fonts/. */
@font-face {
  font-family: 'Recoleta';
  src: url('/fonts/Latinotype - Recoleta Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Recoleta';
  src: url('/fonts/Latinotype - Recoleta Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Recoleta';
  src: url('/fonts/Latinotype - Recoleta Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Recoleta';
  src: url('/fonts/Latinotype - Recoleta SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Recoleta';
  src: url('/fonts/Latinotype - Recoleta Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

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

html, body {
  background: #030303;
  color: #fff;
}
/* `clip` instead of `hidden`: `hidden` makes body a scroll container and
   silently breaks position:sticky on descendants (canvas in #hero). */
body {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

body {
  font-family: 'Inter', sans-serif;
}

a { color: inherit; }

/* Header link hover */
header a:hover {
  text-decoration: underline;
  color: #E8927C;
}

/* Age gate: stacks above the loader (z 9999) so the 21+ check happens while
   the hero frames extract, instead of after. Opaque background, and the wordmark
   is positioned like the loader's so dismissing it crossfades rather than jumps. */
#age-gate {
  position: fixed; inset: 0;
  background: #030303;
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
  transition: opacity 0.5s ease;
}
#age-gate.done { opacity: 0; pointer-events: none; }
.age-skip #age-gate { display: none; }
#age-gate .brand {
  width: 320px; max-width: 70vw; height: auto;
  display: block; margin-bottom: 40px;
}
#age-gate h2 {
  font-family: 'Recoleta', serif;
  font-size: 26px;
  font-weight: 400;
  color: #E8927C;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
#age-gate p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 430px;
  margin: 0 auto 32px;
}
.age-actions {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}
.age-btn {
  padding: 15px 30px;
  background: transparent;
  border: 1px solid rgba(232,146,124,0.45);
  color: #E8927C;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.age-btn:hover { background: #E8927C; color: #030303; border-color: #E8927C; }
.age-btn:focus-visible { outline: 2px solid #E8927C; outline-offset: 3px; }
.age-btn--ghost {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
}
.age-btn--ghost:hover {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
#age-gate .age-fine {
  margin: 34px auto 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
@media (max-width: 480px) {
  #age-gate .brand { margin-bottom: 30px; }
  #age-gate h2 { font-size: 22px; }
  #age-gate p { font-size: 13px; }
  .age-actions { flex-direction: column; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* Footer */
footer a:hover {
  color: #E8927C;
}
footer a svg {
  transition: color 0.3s;
}

@media (max-width: 768px) {
  /* Footer: stack to single column */
  footer { padding: 40px 20px 30px !important; }
  #footer-top {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 28px !important;
    margin-bottom: 32px !important;
  }
  #footer-top .footer-brand,
  #footer-top .footer-meta,
  #footer-top .footer-social { justify-self: center !important; }
  .footer-meta p:first-child { font-size: 13px !important; }
}

@media (max-width: 380px) {
  header nav { font-size: 10px !important; letter-spacing: 0.08em !important; }
  header nav a { margin: 0 5px !important; }
}

@media (max-height: 500px) and (orientation: landscape) {
  header { padding: 0 20px !important; height: 60px !important; }
  header nav { font-size: 12px !important; }
  #header-mark { left: 20px !important; }
  #header-wordmark { height: 26px !important; }
  #header-tagline { height: 14px !important; }
}

/* Honor prefers-reduced-motion: kill nonessential animations.
   Hero scroll-scrubbing itself is fine (it's user-driven, not auto-playing),
   but the auto-running transitions/keyframes should stop. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  z-index: 200;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  transition: background-color 0.3s ease;
}
.site-header.is-solid {
  background: rgba(3,3,3,0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#header-mark {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  will-change: opacity;
}
.page-home #header-mark { opacity: 0; }
#header-logo { display: block; line-height: 0; }
#header-wordmark { height: 44px; width: auto; display: block; }
#header-tagline { height: 26px; width: auto; display: block; }

.header-actions button {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-actions button:hover,
.header-actions button:focus-visible {
  color: var(--peach);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Menu icon + dropdown (desktop opens on hover; below 1100 the icon opens the overlay) ---------- */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}
#menu-toggle {
  width: 32px;
  height: 32px;
  justify-content: flex-end;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 24px;
}
.menu-icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-icon span:nth-child(1) { width: 24px; }
.menu-icon span:nth-child(2) { width: 15px; }
.menu-icon span:nth-child(3) { width: 20px; }
.nav-menu.is-open #menu-toggle { color: var(--peach); }
.nav-menu.is-open .menu-icon span { width: 24px; }

.site-nav {
  position: absolute;
  top: calc(100% + 20px);
  right: -18px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 16px 18px 20px 34px;
  background: rgba(3,3,3,0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232,146,124,0.14);
  border-top-color: rgba(232,146,124,0.6);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  white-space: nowrap;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
}
.nav-menu.is-open .site-nav {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
/* Invisible bridge so the pointer can travel from the icon down to the panel. */
.nav-menu.is-open::after {
  content: '';
  position: absolute;
  top: 100%;
  right: -18px;
  width: 250px;
  height: 22px;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}
.nav-menu.is-open .site-nav a {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease calc(0.12s + var(--i) * 0.06s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.12s + var(--i) * 0.06s),
    color 0.2s ease;
}
.site-nav a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--peach);
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--peach); text-decoration: none; }
.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a[aria-current="page"]::before { transform: rotate(45deg) scale(1); }

@media (max-width: 1279px) {
  .site-header { font-size: 12px; gap: 22px; }
}

@media (max-width: 1099px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
    font-size: 12px;
  }
  .site-nav { display: none; }
  #header-mark { left: 20px; gap: 2px; }
  #header-wordmark { height: 30px; }
  #header-tagline { height: 18px; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  #header-mark { left: 16px; }
}

/* ---------- Menu overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  background: var(--black) radial-gradient(ellipse at 50% 115%, rgba(232,146,124,0.16), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.nav-overlay__top,
.nav-overlay__links,
.nav-overlay__foot {
  position: relative;
  z-index: 1;
}

.nav-overlay__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  padding: 0 20px;
  flex-shrink: 0;
}
.nav-overlay__mark {
  position: relative;
  z-index: 1;
  align-self: center;
  flex-shrink: 0;
  margin-top: 16px;
  line-height: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-overlay.is-open .nav-overlay__mark { opacity: 1; transform: none; }
.nav-overlay__mark img { width: min(72vw, 440px); height: auto; display: block; }
.nav-overlay__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-overlay__actions button {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255,255,255,0.7);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.nav-overlay__actions button:hover,
.nav-overlay__actions button:focus-visible { color: var(--peach); }

.nav-overlay__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.nav-overlay__links a {
  font-weight: 500;
  font-size: clamp(30px, 8vw, 64px);
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0s, calc(var(--i, 0) * 40ms), calc(var(--i, 0) * 40ms);
  opacity: 0;
  transform: translateY(16px);
}
.nav-overlay.is-open .nav-overlay__links a {
  opacity: 1;
  transform: none;
}
.nav-overlay__links a:hover,
.nav-overlay__links a:focus-visible,
.nav-overlay__links a[aria-current="page"] {
  color: var(--peach);
}

.nav-overlay__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 32px;
  flex-shrink: 0;
}
.nav-overlay__foot p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-faint);
}
.nav-overlay__foot a {
  color: var(--text-faint);
  line-height: 0;
  transition: color 0.2s ease;
}
.nav-overlay__foot a:hover,
.nav-overlay__foot a:focus-visible { color: var(--peach); }

@media (prefers-reduced-motion: reduce) {
  .nav-overlay,
  .nav-overlay.is-open { transition: none; }
  .nav-overlay__links a,
  .nav-overlay__mark {
    transition: color 0.2s ease;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer link row ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--peach); }

@media (max-width: 768px) {
  .footer-links {
    gap: 10px 20px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--peach);
  border-radius: 2px;
  background: var(--peach);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--peach-hover);
  border-color: var(--peach-hover);
}
.btn:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.btn--ghost {
  background: transparent;
  color: var(--peach);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--black);
}

/* ---------- Image and video slot (PLAN 9.2) ---------- */
.slot {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--card);
  border: 1px dashed rgba(232,146,124,0.45);
}
.slot:has(> img, > video) { border: 0; }
.slot > img,
.slot > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slot__label {
  padding: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(232,146,124,0.85);
}

/* ---------- Reveal on scroll (site.js toggles .is-revealed) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
