/* Primal Clash — site officiel. Styles autonomes, sans framework. */

@font-face {
  font-family: 'Sora';
  src: url('/media/fonts/Sora-VF.subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/media/fonts/Figtree-VF.subset.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0907;
  --bg-2: #100d09;
  --panel: #15110c;
  --panel-2: #1b150f;
  --bone: #e9dfc8;
  --muted: #b9ac97;
  --dim: #8d816e;
  --amber: #f5a742;
  --amber-soft: #ffc571;
  --lava: #ff5b2e;
  --jungle: #4e7a45;
  --teal: #46c8b8;
  --line: rgba(233, 223, 200, 0.13);
  --line-strong: rgba(233, 223, 200, 0.24);
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  --radius: 14px;
  --wrap: 1200px;
  --header: 76px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(245, 167, 66, 0.07), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(70, 200, 184, 0.04), transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
::selection { background: var(--amber); color: #171008; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--amber);
  color: #171008;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 167, 66, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 167, 66, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(245, 167, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 167, 66, 0); }
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.28) 50%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn-sm { min-height: 40px; padding: 9px 17px; font-size: 12px; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(180deg, #ffc36d 0%, #f09a31 55%, #e58620 100%);
  color: #1a1007;
  border-color: rgba(255, 226, 180, 0.5);
  box-shadow: 0 12px 34px rgba(245, 167, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(245, 167, 66, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(11, 9, 7, 0.62);
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--amber); background: rgba(245, 167, 66, 0.08); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 9, 7, 0.96);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.brand b { color: var(--amber); font-weight: 800; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); font-size: 14px; color: var(--muted); }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--bone); }
.nav .nav-play { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(11, 9, 7, 0.4);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(660px, 94svh);
  padding: calc(var(--header) + 40px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 44%; transform: scale(1.015); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 7, 0.95) 0%, rgba(11, 9, 7, 0.78) 34%, rgba(11, 9, 7, 0.25) 70%, rgba(11, 9, 7, 0.5) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0.4) 16%, transparent 38%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.75) 0%, transparent 26%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(4rem, 11.4vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
}
.hero h1 span { display: block; }
.hero h1 .amber { color: var(--amber); text-shadow: 0 0 70px rgba(245, 167, 66, 0.28); }
.hero-lede { max-width: 580px; margin-bottom: 0; color: #d9cebb; font-size: clamp(1.02rem, 1.55vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-meta li::before { content: '✓'; margin-right: 8px; color: var(--amber); }
.hero .eyebrow, .hero h1 span, .hero-lede, .hero-actions, .hero-meta, .trailer-link { animation: heroRise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 span:first-child { animation-delay: 0.14s; }
.hero h1 span.amber { animation-delay: 0.24s; }
.hero-lede { animation-delay: 0.34s; }
.hero-actions { animation-delay: 0.44s; }
.hero-meta { animation-delay: 0.54s; }
.trailer-link { animation-delay: 0.64s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}
.trailer-link:hover { color: var(--bone); }
.trailer-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-size: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.trailer-link:hover .trailer-play { border-color: var(--amber); background: rgba(245, 167, 66, 0.12); transform: scale(1.08); }
.trailer-link span:last-child { color: var(--dim); }
.hero-foot { position: absolute; z-index: 2; inset: auto 0 26px; display: flex; justify-content: center; pointer-events: none; }
.scroll-cue {
  display: grid;
  place-items: center;
  width: 34px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  pointer-events: auto;
}
.scroll-cue span {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: var(--amber);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(-6px); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Facts */
.facts { border-block: 1px solid var(--line); background: rgba(14, 11, 8, 0.72); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 13px; padding: 22px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--amber); }
.fact b { display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.02em; }
.fact small { display: block; color: var(--dim); font-size: 12px; }

/* Sections */
.section { padding: clamp(70px, 9vw, 112px) 0; }
.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-lede { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(0.98rem, 1.4vw, 1.1rem); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: none; }
.section-head-row > div { max-width: 620px; }
.section-head-row .section-lede { max-width: 360px; text-align: right; padding-bottom: 6px; }

/* Steps */
.steps-section { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(245, 167, 66, 0.045), transparent 45%),
    var(--panel);
  overflow: hidden;
}
.step-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0.5;
}
.step-num { display: block; margin-bottom: 22px; color: var(--amber); font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; }
.step-card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Gallery */
.gallery-section { background: var(--bg-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}
.shot-hero { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease; }
.shot:hover img { transform: scale(1.045); filter: brightness(1.08); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(245, 167, 66, 0.16) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.shot:hover::after { transform: translateX(110%); }
.shot:focus-visible { outline-offset: 2px; }
.shot-cap {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 34px 16px 13px;
  background: linear-gradient(0deg, rgba(11, 9, 7, 0.86), transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f1e7d3;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(245, 167, 66, 0.45); background: var(--panel-2); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 167, 66, 0.3);
  border-radius: 11px;
  background: rgba(245, 167, 66, 0.07);
  color: var(--amber);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 9px; font-size: 1.06rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Coop */
.coop-section { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.coop-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.coop-media { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.coop-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.coop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(70, 200, 184, 0.45);
  border-radius: 999px;
  background: rgba(11, 9, 7, 0.8);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.coop-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.coop-copy > p { color: var(--muted); max-width: 520px; }
.ticks { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: #d6cab6; font-size: 0.95rem; }
.ticks li::before { content: '✓'; color: var(--teal); font-weight: 700; }
.coop-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.qr-wrap { flex: 0 0 auto; display: grid; justify-items: center; gap: 7px; }
.qr-wrap canvas { width: 132px; height: 132px; border-radius: 8px; background: #0b0907; }
.qr-wrap span { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.coop-link { flex: 1 1 auto; min-width: 0; }
.coop-link label { display: block; margin-bottom: 7px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0d0a07;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
}
.field button {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(245, 167, 66, 0.45);
  border-radius: 8px;
  background: rgba(245, 167, 66, 0.12);
  color: var(--amber);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.field button:hover { background: rgba(245, 167, 66, 0.22); }
.coop-link small { display: block; margin-top: 8px; color: var(--dim); font-size: 11px; line-height: 1.5; }

/* Install */
.install-section { background: var(--bg-2); }
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.install-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease;
}
.install-card.is-current { border-color: rgba(245, 167, 66, 0.5); box-shadow: 0 0 0 1px rgba(245, 167, 66, 0.12) inset; }
.install-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.install-top > svg { width: 34px; height: 34px; color: var(--amber); flex: 0 0 auto; }
.install-top h3 { margin: 0; font-size: 1.3rem; }
.install-top span { color: var(--dim); font-size: 0.85rem; }
.install-steps { margin: 0 0 24px; padding: 0 0 0 20px; color: var(--muted); font-size: 0.95rem; display: grid; gap: 10px; }
.install-steps b { color: var(--bone); }
.install-btn { width: 100%; }
.install-note { margin: 14px 0 0; color: var(--dim); font-size: 0.82rem; line-height: 1.5; }
.install-foot { margin: 22px 0 0; color: var(--dim); font-size: 0.85rem; text-align: center; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header) + 30px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 40px 22px 4px; color: var(--muted); font-size: 0.95rem; }

/* Final CTA */
.final-cta { position: relative; padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.final-bg {
  position: absolute;
  inset: 0;
  background: url('/media/shots/hero.webp') center 40% / cover no-repeat;
  filter: saturate(0.85);
  transform: scale(1.02);
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 7, 0.94), rgba(11, 9, 7, 0.72) 55%, rgba(11, 9, 7, 0.55)),
    linear-gradient(0deg, var(--bg), transparent 30%, transparent 70%, var(--bg));
}
.final-inner { position: relative; z-index: 2; max-width: 700px; }
.final-inner h2 { margin: 0 0 16px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.final-inner > p { color: #d3c7b3; max-width: 480px; }
.final-inner .hero-actions { margin-bottom: 0; }

/* Footer */
.site-footer { background: #080604; border-top: 1px solid var(--line); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { max-width: 330px; margin: 18px 0 0; color: var(--dim); font-size: 0.88rem; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; color: var(--muted); }
.footer-col h3 { margin: 0 0 6px; color: var(--bone); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a:hover { color: var(--amber); }
.footer-note { color: var(--dim); font-size: 0.76rem; line-height: 1.5; max-width: 220px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--amber); }

/* Lightbox */
.lightbox {
  width: min(1100px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0907;
  color: var(--bone);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(4, 3, 2, 0.93); }
.lightbox img { width: 100%; max-height: calc(92vh - 70px); object-fit: contain; background: #000; }
.lightbox p { margin: 0; padding: 15px 20px; color: var(--muted); font-size: 0.85rem; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 9, 7, 0.8);
  color: var(--bone);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--amber); color: var(--amber); }

/* Trailer */
.trailer-dialog {
  width: min(1000px, 94vw);
  max-height: 94vh;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0907;
  color: var(--bone);
  overflow: visible;
  box-shadow: var(--shadow);
}
.trailer-dialog::backdrop { background: rgba(4, 3, 2, 0.94); }
.trailer-dialog[open] { animation: trailerIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes trailerIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.trailer-dialog video { display: block; width: 100%; max-height: calc(94vh - 90px); border-radius: 9px; background: #000; }
.trailer-dialog p { margin: 10px 4px 2px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.trailer-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #17110c;
  color: var(--bone);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.trailer-close:hover { border-color: var(--amber); color: var(--amber); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Legal / utility pages */
.legal-header { border-bottom: 1px solid var(--line); background: rgba(11, 9, 7, 0.9); }
.legal-header .header-inner { height: 70px; }
.legal-main { padding: 120px 0 90px; }
.legal { max-width: 780px; }
.legal h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal .legal-date { margin-bottom: 40px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal h2 { margin: 38px 0 12px; font-size: 1.28rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.96rem; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; color: var(--amber); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.center-page { min-height: 100svh; display: grid; place-items: center; padding: 40px 24px; text-align: center; }
.center-page img { width: 84px; height: 84px; margin: 0 auto 24px; }
.center-page h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 8vw, 4.6rem); }
.center-page p { max-width: 460px; margin: 0 auto 28px; color: var(--muted); }

/* Responsive */
@media (max-width: 1020px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: 54px 1fr; column-gap: 10px; }
  .step-num { grid-row: span 2; margin: 2px 0 0; }
  .step-card h3 { margin-bottom: 6px; }
  .step-card p { grid-column: 2; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: calc(var(--header) + 8px);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(13, 10, 7, 0.99);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
  .nav a:hover { background: rgba(245, 167, 66, 0.08); }
  .nav .nav-play { display: inline-flex; margin-top: 6px; }
  .play-top { display: none; }
  .menu-btn { display: block; }
  .coop-grid { grid-template-columns: 1fr; }
  .coop-media { order: 2; }
  .install-grid { grid-template-columns: 1fr; }
  .section-head-row { display: block; }
  .section-head-row .section-lede { text-align: left; margin-top: 12px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 0; padding: 18px 0; }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero { min-height: max(600px, 90svh); padding-top: calc(var(--header) + 30px); }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11, 9, 7, 0.93), rgba(11, 9, 7, 0.62) 70%, rgba(11, 9, 7, 0.45)),
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0.35) 30%, transparent 60%),
      linear-gradient(180deg, rgba(11, 9, 7, 0.7), transparent 30%);
  }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 10px; }
  .brand span { font-size: 11px; letter-spacing: 0.1em; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: max(640px, 96svh); padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.2rem); margin-bottom: 18px; }
  .hero-lede { font-size: 1rem; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 8px 16px; font-size: 10px; }
  .hero-foot { display: none; }
  .trailer-dialog { padding: 6px; }
  .trailer-close { top: 6px; right: 6px; background: rgba(23, 17, 12, 0.92); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .shot-hero { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .shot:nth-child(6) { grid-column: span 2; }
  .shot-cap { padding: 24px 10px 9px; font-size: 9px; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .coop-card { flex-direction: column; align-items: stretch; }
  .qr-wrap { justify-self: center; }
  .qr-wrap canvas { width: 156px; height: 156px; }
  .field { flex-direction: column; }
  .field button { height: 42px; }
  .install-card { padding: 24px 20px; }
  .faq summary { font-size: 0.96rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .final-cta .hero-actions .btn { flex: 1 1 100%; }
  .legal-main { padding: 100px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
