/* ============================================================
   D4VE.UK — CINEMATIC SCROLL ENGINE (index only)
   Pinned full-viewport scenes, multi-plane parallax layers.
   ============================================================ */

/* ---- scene scaffolding ---- */
.cn-scene {
  position: relative;
  /* height set via data-len * 100vh by cine.js; fallback: */
  height: 220vh;
}
.cn-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.cn-layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.cn-layer.cn-interactive { pointer-events: none; }
.cn-layer.cn-interactive > * { pointer-events: auto; }

/* ---- shared scene furniture ---- */
.cn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(140px, 26vw, 400px);
  letter-spacing: 12px;
  color: var(--text);
  opacity: 0.035;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.cn-grid {
  background-image:
    linear-gradient(rgba(229,221,212,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,221,212,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 45% 45%, black 25%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 70% at 45% 45%, black 25%, transparent 74%);
}
.cn-glow {
  background: radial-gradient(circle at 78% 18%, rgba(204,34,238,0.17) 0%, rgba(122,0,255,0.08) 32%, transparent 58%);
  filter: blur(52px);
}
.cn-glow--low {
  background: radial-gradient(circle at 18% 85%, rgba(204,34,238,0.13) 0%, rgba(122,0,255,0.06) 34%, transparent 60%);
}
.cn-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cn-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: block;
}
.cn-h {
  font-family: var(--font-display);
  font-size: clamp(46px, 7.5vw, 104px);
  line-height: 0.88;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cn-h .red { color: var(--accent); }
.cn-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 470px;
}

/* ============================================================
   SCENE 1 — HERO
   ============================================================ */
#cn-hero .cn-hud-corner {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
#cn-hero .cn-hud-corner .hl { color: var(--accent); }
#cn-hero .cn-hud-tr { top: calc(var(--nav-h) + var(--ticker-h) + 26px); right: 40px; }
#cn-hero .cn-hud-br { bottom: 92px; right: 40px; }

.cn-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--ticker-h)) 40px 0;
}
.cn-hero-content .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.cn-hero-logo {
  height: 132px;
  width: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 28px rgba(204,34,238,0.55));
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
  display: block;
}
.cn-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.cn-hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.84;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}
.cn-hero-title .red { color: var(--accent); }
.cn-hero-sub {
  font-family: var(--font-ui);
  font-size: clamp(15px, 2vw, 20px);
  color: var(--text-muted);
  letter-spacing: 1px;
  max-width: 460px;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.cn-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}
.cn-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   SCENE 2 — ABOUT
   ============================================================ */
.cn-about-photo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
}
.cn-about-photo .frame {
  width: min(360px, 34vw);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-mid);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.cn-about-photo .frame img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
}
.cn-about-photo .frame::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}
.cn-about-photo .frame::after {
  content: '';
  position: absolute;
  bottom: -1px; left: -1px;
  width: 36px; height: 36px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}
.cn-about-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
}
.cn-about-text .col {
  width: min(560px, 46vw);
}
.cn-about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 13.5px;
}
.cn-about-text .tag-row { margin-top: 22px; }

/* ============================================================
   SCENE 3 — TRACKERS
   ============================================================ */
.cn-trk-head {
  display: flex;
  align-items: flex-start;
  padding: 16vh 0 0 max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
}
.cn-trk-card-wrap {
  display: flex;
  align-items: center;
}
.cn-trk-card-wrap.left  { justify-content: flex-start; padding-left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px)); }
.cn-trk-card-wrap.right { justify-content: flex-end;  padding-right: max(40px, calc((100vw - var(--max-w)) / 2 + 40px)); }

.cn-trk-card {
  width: min(500px, 42vw);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  padding: 44px 40px 40px;
  position: relative;
  overflow: hidden;
  display: block;
  transition: border-color 0.25s;
}
.cn-trk-card:hover { border-color: var(--accent); }
.cn-trk-card .trk-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid rgba(204,34,238,0.4);
  padding: 5px 14px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cn-trk-card h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.92;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cn-trk-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 34ch;
}
.cn-trk-card .trk-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  transition: letter-spacing 0.2s;
}
.cn-trk-card:hover .trk-link { letter-spacing: 4px; }
.cn-trk-card .trk-bg {
  position: absolute;
  right: -20px; bottom: -34px;
  font-family: var(--font-display);
  font-size: 150px;
  color: var(--text);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cn-trk-more { text-align: center; padding-top: 4vh; }

/* ============================================================
   SCENE 4 — PODCAST
   ============================================================ */
.cn-pod-bg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cn-pod-bg img {
  width: 105%;
  height: 105%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.7) brightness(0.42);
}
.cn-pod-shade {
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9,9,9,0.86) 0%, rgba(9,9,9,0.45) 55%, rgba(9,9,9,0.15) 100%);
}
.cn-pod-content {
  display: flex;
  align-items: center;
  padding-left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
}
.cn-pod-content .col { max-width: 560px; }
.cn-pod-content .cn-copy { margin-bottom: 30px; }
.cn-pod-content .role-badge { margin-bottom: 18px; }

/* ============================================================
   MOBILE / REDUCED-MOTION FLAT MODE
   cine.js adds .cn-flat to <html>; scenes become normal sections
   ============================================================ */
.cn-flat .cn-scene { height: auto !important; }
.cn-flat .cn-pin {
  position: relative;
  height: auto;
  overflow: visible;
}
.cn-flat .cn-layer {
  position: relative;
  inset: auto;
  transform: none !important;
  opacity: 1 !important;
}
.cn-flat .cn-grid,
.cn-flat .cn-glow,
.cn-flat .cn-ghost,
.cn-flat .cn-pod-shade { display: none; }
.cn-flat #cn-hero .cn-hud-corner { display: none; }
.cn-flat .cn-hero-content { min-height: 92vh; padding: calc(var(--nav-h) + var(--ticker-h) + 30px) 20px 40px; }
.cn-flat .cn-scroll-cue { display: none; }
.cn-flat .cn-about-photo,
.cn-flat .cn-about-text {
  padding: 28px 20px;
  justify-content: flex-start;
}
.cn-flat .cn-about-photo .frame { width: min(360px, 80vw); }
.cn-flat .cn-about-text .col { width: 100%; }
.cn-flat .cn-trk-head { padding: 40px 20px 0; }
.cn-flat .cn-trk-card-wrap.left,
.cn-flat .cn-trk-card-wrap.right { padding: 16px 20px; justify-content: flex-start; }
.cn-flat .cn-trk-card { width: 100%; max-width: 560px; }
.cn-flat .cn-trk-more { padding: 24px 20px 48px; }
.cn-flat .cn-pod-bg {
  position: relative;
  height: 260px;
}
.cn-flat .cn-pod-bg img { filter: saturate(0.75) brightness(0.5); width: 100%; height: 100%; }
.cn-flat .cn-pod-content { padding: 32px 20px 56px; }

@media (max-width: 860px) {
  .cn-hero-logo { height: 96px; }
}
