/* ============================================================
   DARK APERTURE PICTURES — dehancer-inspired cinematic stylesheet
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --panel: #141419;
  --panel-2: #1a1a21;
  --line: #26262e;
  --text: #f2f2f0;
  --muted: #9a9aa4;
  --accent: #e2261f;       /* signal red (from the shutter-wheel blade) */
  --accent-soft: rgba(226, 38, 31, 0.14);
  --good: #7fd1a8;
  --radius: 14px;
  --container: 1200px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000;
  padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ─────────────────────────── HEADER / NAV ─────────────────────────── */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand-logo { display: block; height: 46px; width: auto; }

.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--text);
  background: radial-gradient(circle at 50% 50%, transparent 0 28%, var(--accent) 30% 100%);
  box-shadow: 0 0 18px rgba(226, 38, 31, 0.35);
  flex: none;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 600; letter-spacing: 0.22em; font-size: 0.8rem; line-height: 1.25;
}
.brand-sub { font-weight: 300; color: var(--muted); letter-spacing: 0.42em; font-size: 0.62rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { opacity: 1; color: var(--accent); }

.tag-software {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(226, 38, 31, 0.4);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px;
  vertical-align: 2px;
}

.nav-cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px !important; background: var(--panel);
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────── HERO ─────────────────────────── */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.25) 40%, rgba(10,10,12,0.92) 100%),
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(10,10,12,0.5) 100%);
}

.hero-grain {
  position: absolute; inset: -50%; z-index: 2; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none; }
}

.hero-content { position: relative; z-index: 3; padding: 140px 0 120px; max-width: none; }

.hero-kicker {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 26px; text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }

.hero-lede {
  max-width: 620px; color: #cfcfd6; font-size: 1.06rem; margin-bottom: 36px;
}
.hero-lede strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
}
.hero-stats strong {
  display: block; font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 600; color: var(--text);
}
.hero-stats span {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; height: 56px; width: 24px; display: flex; justify-content: center;
}
.scroll-cue-line {
  width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────── MARQUEE ─────────────────────────── */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  white-space: nowrap; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-head);
  font-size: 0.78rem; letter-spacing: 0.3em; color: var(--muted);
}
.marquee-track .dot { color: var(--accent); font-size: 0.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ─────────────────────────── SECTIONS ─────────────────────────── */

.section { padding: 110px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-kicker {
  font-family: var(--font-head); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 16px; text-wrap: balance;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ─────────────────────────── FILMS ─────────────────────────── */

.film-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.card-featured { grid-column: span 2; }

.film-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.film-card:hover { transform: translateY(-4px); border-color: rgba(226, 38, 31, 0.45); }

.film-media { position: relative; display: block; aspect-ratio: 16 / 9; }

.film-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: rgba(255, 255, 255, 0.5);
}
.ph-a { background: linear-gradient(135deg, #171b26 0%, #0d0f16 55%, #1d1508 100%); }
.ph-b { background: linear-gradient(135deg, #1a1414 0%, #0f0d12 60%, #231016 100%); }
.ph-c { background: linear-gradient(135deg, #101418 0%, #0b0d10 55%, #14202a 100%); }

.film-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: rgba(10, 10, 12, 0.75);
  border: 1px solid rgba(226, 38, 31, 0.5);
  border-radius: 999px; padding: 5px 12px;
  backdrop-filter: blur(6px);
}

.film-info { padding: 22px 24px 26px; }
.film-info h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.film-info p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.film-meta { display: flex; flex-wrap: wrap; gap: 14px; }
.film-meta span {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 8px;
}

/* ─────────────────────────── MUSIC ─────────────────────────── */

.music-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.music-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.music-card:hover { border-color: rgba(226, 38, 31, 0.45); transform: translateY(-4px); }

.music-icon {
  font-size: 1.9rem; color: var(--accent); margin-bottom: 18px;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid rgba(226, 38, 31, 0.35);
}
.music-card h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 10px; }
.music-card p { color: var(--muted); font-size: 0.93rem; }

/* ─────────────────────────── PRODUCT ─────────────────────────── */

.section-product {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(226, 38, 31, 0.06) 0%, transparent 60%),
    var(--bg);
}

.product-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  margin-bottom: 26px;
}

.product-media { position: relative; min-height: 320px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--panel) 100%);
  pointer-events: none;
}

.product-info { padding: 44px 44px 40px; }

.version-chip {
  display: inline-block;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--good);
  border: 1px solid rgba(127, 209, 168, 0.4);
  background: rgba(127, 209, 168, 0.08);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 20px;
}

.product-info h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 14px; }
.product-info > p { color: var(--muted); margin-bottom: 22px; }

.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 0.95rem; color: #d8d8de;
}
.feature-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--accent);
}

.product-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pipeline-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; padding: 22px 16px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  margin-bottom: 26px; background: var(--bg-soft);
}
.pipeline-strip span {
  font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
}
.pipeline-strip i { color: var(--accent); font-style: normal; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.feature-card h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 10px; color: var(--accent); }
.feature-card p { color: var(--muted); font-size: 0.88rem; }

/* ─────────────────────────── STOCK STRIP ─────────────────────────── */

.stock-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}

.stock-card {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stock-card:hover { transform: scale(1.03); border-color: var(--accent); z-index: 2; }
.stock-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.stock-card figcaption {
  font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; padding: 9px 4px; border-top: 1px solid var(--line);
}
.stock-card:hover figcaption { color: var(--accent); }

/* ─────────────────────────── ABOUT ─────────────────────────── */

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }

.about-text p { margin-bottom: 18px; color: #cfcfd6; }
.about-text strong { color: var(--text); }

.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fact {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
}
.fact strong { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--accent); margin-bottom: 6px; }
.fact span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ─────────────────────────── CTA ─────────────────────────── */

.section-cta {
  background:
    radial-gradient(70% 90% at 20% 20%, rgba(226, 38, 31, 0.08) 0%, transparent 55%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cta-block h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.cta-block > p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.fineprint { font-size: 0.78rem; color: var(--muted); opacity: 0.8; margin-top: 18px; max-width: 460px; }

/* ─────────────────────────── FOOTER ─────────────────────────── */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 44px 0; }
.footer-grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.22em;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-fine { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }

/* ─────────────────────────── BUTTONS ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.04em; text-decoration: none;
  border-radius: 999px; padding: 14px 30px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-primary {
  background: var(--accent); color: #14100a; border: 1px solid var(--accent);
  box-shadow: 0 6px 26px rgba(226, 38, 31, 0.28);
}
.btn-primary:hover { background: #f0b258; border-color: #f0b258; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────────────────────── LIGHTBOX ─────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 40px; cursor: zoom-out;
  animation: lbIn 0.25s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 78vh;
  border-radius: 8px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-cap {
  font-family: var(--font-head); letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--accent);
}
.lightbox-close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────────────────────── REVEAL ANIMATION ─────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */

@media (max-width: 1024px) {
  .film-grid { grid-template-columns: 1fr 1fr; }
  .card-featured { grid-column: span 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stock-strip { grid-template-columns: repeat(4, 1fr); }
  .product-hero { grid-template-columns: 1fr; }
  .product-media::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: rgba(12, 12, 15, 0.97);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 8px; padding: 100px 32px 32px;
    transform: translateX(100%); transition: transform 0.32s ease;
    z-index: 90;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1.05rem; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }

  .film-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: auto; }
  .music-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stock-strip { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
  .hero-stats { gap: 26px; }
}

@media (max-width: 480px) {
  .stock-strip { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
}

.showcase-frame {
  margin: 0 auto;
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.showcase-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.showcase-caption {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.motion-cta {
  margin: 28px 0 0;
  text-align: center;
}
.motion-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.motion-link:hover {
  text-decoration: underline;
}

/* ── Sarah: disabled-download state ───────────────────────── */
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}
