/* ==========================================================================
   LEA : LIGHT ECHOES ALGORITHM — style.css
   Base typography, layout system, page sections.
   ========================================================================== */

/* ---- Base ------------------------------------------------------------- */

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-deep);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: calc(var(--z-menu) + 1);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text);
  color: var(--color-bg-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ---- Layout primitives ------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--width-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--flush {
  padding-block: 0;
}

.section--deep {
  background: var(--color-bg-deep);
}

.section--line-top {
  border-top: 1px solid var(--color-line);
}

/* ---- Typography -------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display--hero {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.display--xl {
  font-size: var(--text-3xl);
}

.display--lg {
  font-size: var(--text-2xl);
}

.display--md {
  font-size: var(--text-xl);
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  max-width: var(--width-text);
}

.body-text {
  max-width: var(--width-text);
  color: var(--color-muted);
}

.body-text p + p {
  margin-top: var(--space-md);
}

.body-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mono--faint {
  color: var(--color-faint);
}

.mono--accent {
  color: var(--color-accent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ---- Shimmer text (animated brand gradient) ------------------------------ */

.text-shimmer {
  background: linear-gradient(100deg,
    var(--color-text) 0%, var(--color-text) 35%,
    var(--color-accent-2) 48%, var(--color-accent) 55%,
    var(--color-text) 68%, var(--color-text) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to { background-position: -250% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .text-shimmer {
    animation: none;
    background: none;
    color: var(--color-text);
  }
}

/* ---- Signal noise texture (subtle, static) ------------------------------ */

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: var(--z-base);
}

/* ==========================================================================
   SECTION 01 — HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(157, 92, 255, 0.13), transparent 55%),
    radial-gradient(70% 55% at 12% 108%, rgba(55, 230, 242, 0.08), transparent 60%),
    var(--color-bg-deep);
  overflow: hidden;
}

/* Campaign photo slot behind the hero (loads once the file exists) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

.hero-media.is-loaded {
  opacity: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 8, 0.45) 0%, transparent 26%, transparent 55%, rgba(3, 3, 8, 0.94) 96%);
}

/* When the campaign banner is loaded, it carries the branding.
   The banner becomes a full-width block at the top and ALL text moves
   BELOW it — nothing ever overlaps the artwork (logo, Metamorphs, figure). */
.hero:has(.hero-media.is-loaded) {
  min-height: 0;
  display: block;
  background: var(--color-bg-deep);
  /* keep the full artwork clear of the fixed header */
  padding-top: 4.6rem;
}

.hero-media.is-loaded {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 2600 / 1082;
  max-height: 82svh;
}

.hero-media.is-loaded {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media.is-loaded img {
  opacity: 1;
  /* the img box hugs the visible picture exactly, so the feather mask
     lands right on the photo's real edges */
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* feather INSIDE the photo: its edges dissolve into the blurred backdrop */
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%,
    #000 58%, rgba(0, 0, 0, 0.85) 76%, rgba(0, 0, 0, 0.35) 92%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%,
    #000 58%, rgba(0, 0, 0, 0.85) 76%, rgba(0, 0, 0, 0.35) 92%, transparent 100%);
}

/* Blurred copy of the banner itself fills the frame behind the image:
   the sides continue in the artwork's own colors — no seam can exist. */
.hero-media.is-loaded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--photo-src);
  background-size: cover;
  background-position: center;
  filter: blur(64px) saturate(1.15) brightness(0.75);
  transform: scale(1.2);
}

.hero-media.is-loaded::after {
  z-index: 2;
  /* gentle vignette so the whole block melts into the page */
  background:
    linear-gradient(90deg, var(--color-bg-deep) 0%, transparent 16%, transparent 84%, var(--color-bg-deep) 100%),
    linear-gradient(180deg, rgba(3, 3, 8, 0.6) 0%, transparent 12%, transparent 84%, var(--color-bg-deep) 100%);
}

/* The aurora tinted the side bands — keep it out of the banner zone. */
.hero:has(.hero-media.is-loaded) .aurora {
  display: none;
}

.hero-media.is-loaded {
  overflow: hidden;
}

.hero:has(.hero-media.is-loaded) .hero-title,
.hero:has(.hero-media.is-loaded) .hero-subtitle,
.hero:has(.hero-media.is-loaded) .hero-scan {
  display: none;
}

.hero:has(.hero-media.is-loaded) .hero-inner {
  padding-block: var(--space-lg) var(--space-xl);
}

.hero:has(.hero-media.is-loaded) .hero-statement {
  margin-top: var(--space-md);
}

.hero-scan {
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 241, 236, 0.25), transparent);
  top: 30%;
  pointer-events: none;
  animation: hero-scan 11s linear infinite;
  z-index: var(--z-base);
}

@keyframes hero-scan {
  0%   { top: -2%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: var(--z-media);
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-title {
  margin-left: -0.05em; /* optical alignment of the A */
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(157, 92, 255, 0.35));
}

.hero-subtitle {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-chrome);
}

.hero-statement {
  margin-top: var(--space-xl);
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-statement em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.hero-meta {
  display: grid;
  gap: var(--space-xs);
}

/* ==========================================================================
   SECTION 02 — LATEST TRANSMISSION
   ========================================================================== */

.transmission {
  background: var(--color-bg);
}

.transmission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
}

/* The artwork is the star of this section — full column, glowing */
.transmission-grid .work-media {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.transmission-grid .art {
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), var(--glow-violet);
}

/* Balanced display type: strong, not overwhelming */
.transmission-title {
  margin-block: var(--space-sm) var(--space-sm);
  word-break: break-word;
  font-size: var(--text-2xl);
  line-height: 0.95;
}

.transmission-title .exe {
  position: relative;
  display: inline-block;
  color: var(--color-accent);
}

/* pointer-driven echo — see animations.js; layers stay invisible until active */
.transmission-title .exe::before,
.transmission-title .exe::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.transmission-title .exe.is-echoing::before {
  opacity: 0.35;
  color: var(--color-chrome);
  transform: translate(calc(var(--echo-x, 0) * 1px), calc(var(--echo-y, 0) * -1px));
}

.transmission-title .exe.is-echoing::after {
  opacity: 0.2;
  color: var(--color-text);
  transform: translate(calc(var(--echo-x, 0) * -1.6px), calc(var(--echo-y, 0) * 1.6px));
}

.transmission-desc {
  margin-block: var(--space-md) var(--space-lg);
  max-width: 40ch;
  color: var(--color-muted);
}

.transmission-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
}

/* ==========================================================================
   SECTION 03 — MANIFESTO
   ========================================================================== */

.manifesto {
  position: relative;
  background: var(--color-bg-deep);
  text-align: left;
  overflow: hidden; /* contains the 3D depth motion */
}

.manifesto-lines {
  display: grid;
  gap: 0.1em;
  perspective: 900px;
}

.manifesto-line[data-depth] {
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.manifesto-line {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.manifesto-line--muted {
  color: var(--color-faint);
  -webkit-text-stroke: 1px var(--color-line-strong);
  color: transparent;
}

.manifesto-support {
  margin-top: var(--space-xl);
  max-width: 34rem;
  margin-left: auto;
}

.manifesto-support .mono {
  display: block;
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   SECTION 04 — SELECTED WORKS
   ========================================================================== */

.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  align-items: center;
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

/* Compact artwork — editorial thumbnails, not posters (Selected Works rows only) */
.work .work-media {
  width: 100%;
  max-width: 240px;
  justify-self: end;
}

.work:nth-child(even) .work-media {
  order: -1;
  justify-self: start;
}

.work--feature {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding-block: var(--space-xl);
}

.work--feature .work-media {
  max-width: 340px;
}

.work-index {
  display: block;
  margin-bottom: var(--space-sm);
}

.work-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.work--feature .work-title {
  font-size: var(--text-3xl);
}

.work-label {
  display: inline-block;
  margin-top: var(--space-sm);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
}

/* ==========================================================================
   SECTION 05 — HUMAN × MACHINE
   ========================================================================== */

.human {
  background: var(--color-bg-deep);
}

/* Full-width title, then the full-width studio photo below it. */
.human-title {
  margin-bottom: var(--space-lg);
}

.human-studio {
  width: 100%;
  max-height: 72vh;
  margin-bottom: var(--space-xl);
}

.human-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(var(--space-lg), 6vw, var(--space-2xl));
  align-items: stretch;
}

/* Left column: heading + text, then the portrait grows to fill the column
   so it ends level with the process list on the right. */
.human-intro {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.human .human-portrait {
  margin-top: var(--space-lg);
  width: 100%;
  max-width: none;
  aspect-ratio: auto;      /* let flex control the height, not 3:4 */
  flex: 1 1 auto;
  min-height: 26rem;
}

.process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
}

/* ---- The process — a 3D signal chain of step-cards ---- */

.process {
  --p-persp: 1200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  margin-top: var(--space-md);
  padding: 0;
  padding-left: 1.4rem;              /* room for the connecting signal line */
  position: relative;
  perspective: var(--p-persp);
  perspective-origin: 50% 22%;
}

/* Vertical signal line linking the steps. */
.process::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent-2) 12%,
    var(--color-accent) 72%,
    transparent
  );
  opacity: 0.5;
  pointer-events: none;
}

.process-step {
  --p-z: 0px;
  --p-rx: 0deg;
  --p-ry: 0deg;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  transform-style: preserve-3d;
  transform:
    translateZ(var(--p-z))
    rotateX(var(--p-rx))
    rotateY(var(--p-ry));
  transition:
    transform var(--duration-medium) var(--ease-out),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-medium) var(--ease-out);
  will-change: transform;
}

/* Node dot sitting on the signal line. */
.process-step::before {
  content: "";
  position: absolute;
  left: calc(-1.08rem - 1px);
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-bg-deep), var(--glow-violet);
  transform: translateZ(1px);
}

.process-step:hover,
.process-step:focus-within {
  z-index: 5;                 /* lift the active card above its neighbours */
  border-color: var(--color-line-strong);
  box-shadow: var(--glow-violet), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.process-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--color-accent);
  min-width: 2.4rem;
  transform: translateZ(28px);
}

.process-body {
  transform: translateZ(18px);
}

.process-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

.process-desc {
  margin: var(--space-xs) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 40ch;
}

/* The single machine-assisted step — cyan signal, subtly distinct. */
.process-step--machine {
  border-color: rgba(55, 230, 242, 0.28);
}

.process-step--machine::before {
  background: var(--color-accent-2);
  box-shadow: 0 0 0 3px var(--color-bg-deep), var(--glow-cyan);
}

.process-step--machine .process-index {
  color: var(--color-accent-2);
}

.process-step--machine:hover,
.process-step--machine:focus-within {
  border-color: rgba(55, 230, 242, 0.5);
  box-shadow: var(--glow-cyan), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.process-foot {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 06 — SIGNALS
   ========================================================================== */

.signals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--color-line);
}

.signal {
  padding: var(--space-lg) var(--space-md);
  border-left: 1px solid var(--color-line);
}

.signal:first-child {
  border-left: none;
  padding-left: 0;
}

.signal-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.signal-label {
  display: block;
  margin-top: var(--space-sm);
}

.signals-note {
  margin-top: var(--space-md);
  display: grid;
  gap: 2px;
}

/* ==========================================================================
   SECTION 07 — VISUAL UNIVERSE
   ========================================================================== */

.universe {
  background: var(--color-bg-deep);
  position: relative;
  overflow: hidden;
}

/* ---- 3D rotating film-reel ------------------------------------------------
   A cinematic carousel of the official videos. Cells sit on a preserve-3d
   ring; JS spins it. Street / electro-pop mood: letterbox bars, film grain,
   neon signal edges. */

.reel {
  --reel-cell-w: clamp(19rem, 46vw, 36rem);
  --reel-cell-h: calc(var(--reel-cell-w) * 0.5625);   /* 16:9 */
  --reel-radius: 30rem;                                 /* set by JS */
  --reel-rot: 0deg;                                     /* set by JS */
  margin-top: var(--space-lg);
}

.reel-stage {
  position: relative;
  height: calc(var(--reel-cell-h) + var(--space-2xl));
  perspective: 1700px;
  perspective-origin: 50% 46%;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
}

.reel-stage.is-grabbing {
  cursor: grabbing;
}

.reel-stage:focus-visible {
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.reel-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--reel-cell-w);
  height: var(--reel-cell-h);
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--reel-radius))) rotateY(var(--reel-rot));
  transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.reel-ring.is-dragging {
  transition: none;
}

.reel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.reel-cell {
  position: absolute;
  inset: 0;
  width: var(--reel-cell-w);
  height: var(--reel-cell-h);
  padding: 0;
  border: 0;
  background: none;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * var(--reel-theta))) translateZ(var(--reel-radius));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reel-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  transition: border-color var(--duration-medium) var(--ease-out),
              box-shadow var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out);
}

.reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(65%) contrast(1.08) brightness(0.62) saturate(1.05);
  transition: filter var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

/* Cinematic scan sweep + vignette overlay. */
.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 40%, rgba(157, 92, 255, 0.14) 50%, transparent 60%),
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(3, 3, 8, 0.72) 100%);
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-out);
}

.reel-cell-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.6rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 0 2px 18px rgba(3, 3, 8, 0.95);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out);
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: rgba(7, 7, 13, 0.55);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-out),
              transform var(--duration-medium) var(--ease-out),
              background var(--duration-fast) var(--ease-standard);
  pointer-events: none;
}

/* Side cells recede; the front (active) cell lights up. */
.reel-cell:not(.is-active) .reel-frame {
  transform: scale(0.84);
  opacity: 0.82;
}

.reel-cell.is-active {
  cursor: pointer;
}

.reel-cell.is-active .reel-frame {
  border-color: var(--color-accent);
  box-shadow: var(--glow-violet), 0 30px 80px -34px rgba(0, 0, 0, 0.95);
}

.reel-cell.is-active .reel-frame img {
  filter: grayscale(0%) contrast(1.05) brightness(0.92) saturate(1.15);
}

.reel-cell.is-active .reel-frame::after {
  opacity: 0.9;
}

.reel-cell.is-active .reel-cell-label,
.reel-cell.is-active .reel-play {
  opacity: 1;
  transform: translateY(0);
}

.reel-cell.is-active .reel-play {
  transform: translate(-50%, -50%) scale(1);
}

.reel-stage:hover .reel-cell.is-active .reel-play,
.reel-stage:focus-within .reel-cell.is-active .reel-play {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-deep);
}

/* Loaded player fills the active cell. */
.reel-cell .video-frame {
  border-radius: 6px;
  overflow: hidden;
  border-color: var(--color-accent);
  box-shadow: var(--glow-violet);
}

/* Letterbox bars — cinematic framing on the stage. */
.reel-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(1rem, 4vh, 2.2rem);
  background: linear-gradient(var(--color-bg-deep), transparent);
  z-index: 3;
  pointer-events: none;
}

.reel-bar--top { top: 0; }
.reel-bar--bottom { bottom: 0; transform: scaleY(-1); }

/* Film grain / scanline texture. */
.reel-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* HUD — counter, title, controls. */
.reel-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  margin-top: var(--space-md);
}

.reel-caption {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: min(22rem, 68vw);
  text-align: center;
}

.reel-counter {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
}

.reel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.reel-kind {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reel-nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-medium) var(--ease-out),
              transform var(--duration-fast) var(--ease-standard);
}

.reel-nav:hover,
.reel-nav:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--glow-violet);
  transform: translateY(-2px);
}

.reel-nav:active {
  transform: translateY(0) scale(0.94);
}

.reel-nav span {
  transform: translateY(-2px);
}

/* Reduced-motion / no-3D fallback: a plain responsive grid of facades. */
.reel.is-flat .reel-stage,
.reel.is-flat .reel-hud {
  display: none;
}

.reel-flatgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.universe-foot {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION 08 — SIGNAL MAP (3D globe) + PRESS
   ========================================================================== */

.signal {
  margin-bottom: var(--space-2xl);
}

.signal-stage {
  position: relative;
  width: 100%;
  max-width: none;
  height: clamp(30rem, 62vw, 58rem);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.signal-stage.is-grabbing { cursor: grabbing; }

.signal-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.signal-hint {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  pointer-events: none;
}

/* Zoom controls (overlaid top-right of the stage) */
.signal-zoom {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: grid;
  gap: 6px;
  z-index: 2;
}

.signal-zoom-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-strong);
  border-radius: 8px;
  background: rgba(7, 7, 13, 0.6);
  backdrop-filter: blur(6px);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-medium) var(--ease-out);
}

.signal-zoom-btn:hover,
.signal-zoom-btn:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--glow-violet);
}

/* Selected-country detail, overlaid on the stage (top-left). */
.signal-detail {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: min(20rem, 62%);
  z-index: 2;
  padding: var(--space-md);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: rgba(10, 10, 22, 0.72);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Bar under the globe: stats/legend + compact top-markets list. */
.signal-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  align-items: start;
  margin-top: var(--space-lg);
}

.signal-detail-kind {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.signal-detail-place {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1.05;
}

.signal-detail-title {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.3;
}

.signal-detail-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-xs);
}

.signal-detail-body {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.signal-detail-link {
  display: inline-block;
  margin-top: var(--space-sm);
}

/* Stats readout + sparkline */
.signal-stats {
  display: grid;
  gap: var(--space-sm);
}

.signal-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  overflow: hidden;
}

.signal-stat {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-deep);
}

.signal-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1;
}

.signal-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.signal-spark {
  display: block;
  width: 100%;
  height: 44px;
  overflow: visible;
}

.signal-spark path.line {
  fill: none;
  stroke: var(--color-accent-2);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.signal-spark path.area { fill: url(#sparkFill); stroke: none; }

/* Platform (distributor) legend */
.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-xs);
}

.signal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.signal-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Signal log — compact top-markets grid (accessible + drives the globe) */
.signal-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-log-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.4rem var(--space-sm);
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.signal-log-btn:hover,
.signal-log-btn:focus-visible,
.signal-log-btn.is-active {
  border-color: var(--color-line-strong);
  background: var(--color-surface);
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.signal-dot--origin   { background: var(--color-text);     box-shadow: 0 0 10px rgba(241,241,246,0.7); }
.signal-dot--press    { background: var(--color-accent);   box-shadow: var(--glow-violet); }
.signal-dot--radio    { background: var(--color-accent-2); box-shadow: var(--glow-cyan); }
.signal-dot--playlist { background: var(--color-accent-3); box-shadow: 0 0 12px rgba(239,92,224,0.6); }

.signal-log-place {
  font-size: var(--text-sm);
  line-height: 1.2;
}

.signal-log-place small {
  display: block;
  color: var(--color-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-log-kind {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.signal-note { line-height: 1.5; }

.signal-sub {
  margin-bottom: var(--space-lg);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.press-item {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  align-items: start;
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.press-item:last-of-type {
  border-bottom: 1px solid var(--color-line);
}

/* Article thumbnail (hot-linked from the outlet). */
.press-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.03) brightness(0.9);
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
}

.press-item:hover .press-thumb img,
.press-item:focus-within .press-thumb img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05) brightness(1);
}

.press-body {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.press-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
}

.press-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.press-headline {
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: 1.25;
}

.press-summary {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 54ch;
}

.press-quote {
  margin: var(--space-xs) 0 0;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.3;
  max-width: 52ch;
}

.press-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.press-tags {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Legacy right-column meta (kept for compatibility). */
.press-meta {
  display: grid;
  gap: var(--space-xs);
  justify-items: start;
}

.press-meta .btn {
  margin-top: var(--space-sm);
}

/* ==========================================================================
   SECTION 09 — DISCOGRAPHY TIMELINE (home)
   ========================================================================== */

.timeline {
  display: grid;
  gap: 0;
  margin-block: var(--space-lg);
}

.timeline-year {
  display: grid;
  grid-template-columns: minmax(4rem, 8rem) minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.timeline-year:last-child {
  border-bottom: 1px solid var(--color-line);
}

.timeline-year-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-faint);
}

.timeline-year--active .timeline-year-label {
  color: var(--color-text);
}

.timeline-entries {
  display: grid;
  gap: var(--space-sm);
}

.timeline-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm) var(--space-md);
}

.timeline-entry-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 10 — FINAL CTA
   ========================================================================== */

.final-cta {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(80% 70% at 50% 120%, rgba(157, 92, 255, 0.14), transparent 60%),
    radial-gradient(40% 40% at 85% 10%, rgba(55, 230, 242, 0.06), transparent 70%),
    var(--color-bg-deep);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   INTERIOR PAGE HEADERS
   ========================================================================== */

.page-head {
  padding-top: calc(var(--space-2xl) + 4rem);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(100% 80% at 85% -20%, rgba(242, 241, 236, 0.05), transparent 55%),
    var(--color-bg-deep);
}

.page-head .lede {
  margin-top: var(--space-lg);
}

/* Page titles (h1) — editorial, not monumental */
.page-head .display--xl {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem);
  line-height: 1;
}

/* ---- About page -------------------------------------------------------- */

.about-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-lg) var(--space-2xl);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-line);
}

.about-block:first-of-type {
  border-top: none;
}

.about-block-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

/* ---- Reveal system ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scan {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
