/* =========================================================
   INCOGNITO — an events brand under YXL
   Tokens inherited from ~/yxl-site/DESIGN-TOKENS.md
   ========================================================= */

:root {
  --black: #000000;
  --grey: #0e0e0e;
  --grey-2: #141414;
  --light-grey: #262626;
  --borders: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --paragraph: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.55);
  --red: #e9204f;
  --red-dim: rgba(233, 32, 79, 0.15);

  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --meta: "Barlow Condensed", system-ui, sans-serif;

  --container: 1170px;
  --gutter: 20px;
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--paragraph);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 640px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0 0 12px; line-height: 1.05; }
h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; font-style: italic; letter-spacing: -0.5px; text-transform: uppercase; }
h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; text-transform: uppercase; }

.eyebrow {
  font-family: var(--meta);
  font-size: 15px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px;
}

.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-alt { background: var(--grey); }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 720px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-note { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border: 1px solid transparent;
  font-family: var(--meta); font-size: 17px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-sm { padding: 10px 22px; font-size: 15px; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-ghost { border-color: var(--borders); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borders);
  transition: background-color 0.3s ease;
}
.brand-mark { height: 18px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-family: var(--meta); font-size: 17px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.3s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { width: 100%; }
.nav .nav-cta { color: var(--red); }
.nav .nav-cta:hover { color: var(--white); }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0;
}
.menu-toggle span { display: block; height: 2px; width: 26px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--grey); padding: 40px var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(30px, 9vw, 46px); text-transform: uppercase; color: var(--white);
  padding: 10px 0; border-bottom: 1px solid var(--borders);
}
.mobile-menu nav a:hover { color: var(--red); }
.mobile-menu-foot img { height: 34px; width: auto; opacity: 0.7; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 100px;
  overflow: hidden; text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }

/* Blurred fill behind the vertical clip so wide screens are never letterboxed */
.hero-video-blur {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(48px) saturate(1.25); transform: scale(1.15);
  opacity: 0.55;
}
.hero-video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 100%; width: auto; max-width: none; opacity: 0.85;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.72) 62%, rgba(0,0,0,0.94) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 26%, transparent 62%, var(--black) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-title { margin: 0 0 22px; }
.hero-title img { width: min(100%, 720px); height: auto; margin: 0 auto; }
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--paragraph);
  margin: 0 auto 34px; max-width: 30ch;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1; width: 24px; height: 40px; border: 1px solid var(--borders); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 2px; height: 8px; background: var(--red); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; opacity: 1; } }

/* ---------- Statement ---------- */
.statement .lede {
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: clamp(24px, 3.6vw, 40px); line-height: 1.25; color: var(--white);
  margin: 0 0 26px; max-width: 20ch; text-wrap: balance;
}
.statement .body-copy { max-width: 58ch; margin: 0 0 26px; }
.statement .credit { font-family: var(--meta); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.statement .credit a { color: var(--white); border-bottom: 1px solid var(--red); }
.statement .credit a:hover { color: var(--red); }

/* ---------- Acts ---------- */
.acts { list-style: none; margin: 0; padding: 0; counter-reset: act; }
.act {
  display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 5vw, 60px);
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--borders);
}
.act:last-child { border-bottom: 1px solid var(--borders); }
.act-time { display: flex; flex-direction: column; gap: 6px; }
.act-num { font-family: var(--meta); font-size: 15px; letter-spacing: 0.2em; color: var(--red); }
.act-time time { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(34px, 5vw, 52px); color: var(--white); line-height: 1; }
.act-body h3 { margin-bottom: 10px; }
.act-body p { margin: 0 0 8px; max-width: 52ch; }
.act-meta { font-family: var(--meta); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Film ---------- */
.film-frame {
  position: relative; margin: 0 auto; max-width: 420px;
  aspect-ratio: 9 / 16; background: var(--grey-2);
  border: 1px solid var(--borders); overflow: hidden;
}
.film-video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.film-play svg { width: 34px; height: 34px; fill: var(--white); margin-left: 4px; }
.film-play:hover { background: var(--red); border-color: var(--red); }
.film-frame.is-playing .film-play { opacity: 0; pointer-events: none; }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  background: none; border: 1px solid var(--borders); color: var(--muted);
  padding: 9px 18px; font-family: var(--meta); font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.tab:hover { color: var(--white); border-color: var(--white); }
.tab.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.grid { columns: 4 260px; column-gap: 12px; }
.grid-item {
  break-inside: avoid; margin: 0 0 12px; position: relative;
  background: var(--grey-2); overflow: hidden; cursor: pointer;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.grid-item.is-in { opacity: 1; transform: none; }
.grid-item img { width: 100%; height: auto; transition: transform 0.6s var(--ease), filter 0.6s ease; }
.grid-item::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  opacity: 0; mix-blend-mode: color; transition: opacity 0.4s ease;
}
.grid-item:hover img { transform: scale(1.05); }
.grid-item:hover::after { opacity: 0.28; }

/* ---------- Editions ---------- */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.edition { border: 1px solid var(--borders); padding: clamp(26px, 3.5vw, 40px); background: var(--grey); }
.section-alt .edition { background: var(--grey-2); }
.edition-year { font-family: var(--meta); font-size: 17px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.edition h3 { margin-bottom: 22px; }
.edition-stats { margin: 0; display: grid; gap: 12px; }
.edition-stats > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--borders); padding-bottom: 10px; }
.edition-stats dt { font-family: var(--meta); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.edition-stats dd { margin: 0; font-family: var(--meta); font-size: 18px; color: var(--white); }
.edition-next { border-color: var(--red); background: linear-gradient(180deg, var(--red-dim), transparent 60%); }
.edition-copy { margin: 0 0 24px; font-size: 15px; }

/* ---------- Signup ---------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup input {
  flex: 1 1 260px; min-width: 0; background: var(--black);
  border: 1px solid var(--borders); color: var(--white);
  padding: 14px 18px; font-family: var(--body); font-size: 16px;
  transition: border-color 0.3s ease;
}
.signup input::placeholder { color: rgba(255, 255, 255, 0.35); }
.signup input:focus { outline: none; border-color: var(--red); }
.form-msg { flex: 1 0 100%; margin: 14px 0 0; text-align: center; font-size: 15px; min-height: 1.4em; }
.form-msg.is-ok { color: var(--white); }
.form-msg.is-err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--borders); padding: clamp(56px, 8vw, 90px) 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-mark { height: 24px; width: auto; margin-bottom: 14px; }
.footer-tag { margin: 0; color: var(--muted); font-size: 15px; }
.footer-parent .eyebrow { color: var(--muted); }
.footer-yxl { height: 42px; width: auto; }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--borders);
  font-family: var(--meta); font-size: 16px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.footer-base p { margin: 0; }
.footer-base a:hover { color: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: 0; color: var(--white);
  line-height: 1; transition: color 0.3s ease;
}
.lightbox-close { top: 24px; right: 28px; font-size: 40px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 10px 18px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--red); }
.lightbox-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  margin: 0; font-family: var(--meta); font-size: 16px; letter-spacing: 0.14em; color: var(--muted);
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .grid-item { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .grid { columns: 2 160px; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .act { grid-template-columns: 1fr; gap: 12px; }
  .act-time { flex-direction: row; align-items: baseline; gap: 14px; }
  .footer-inner { flex-direction: column; }
  .lightbox-nav { font-size: 40px; }
}
