/* ════════════════════════════════════════════════════
   OS SONS DO ISLA — um sound short doc de Tiago Gomes
   ════════════════════════════════════════════════════ */

:root {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --ink: #f4f1ea;
  --ink-dim: rgba(244, 241, 234, 0.62);
  --ink-faint: rgba(244, 241, 234, 0.32);
  --red: #d22b3a;
  --red-deep: #8e1422;
  --gold: #e8a13c;
  --line: rgba(244, 241, 234, 0.1);
  --font-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-m: "Space Mono", "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--ink); }

img, svg, video { display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ══════════ PRELOADER ══════════ */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
body.loaded #preloader { opacity: 0; visibility: hidden; pointer-events: none; }

.pre-eq { display: flex; gap: 6px; align-items: flex-end; height: 44px; }
.pre-eq span {
  width: 7px; border-radius: 4px; background: var(--red);
  animation: preEq 0.9s ease-in-out infinite;
}
.pre-eq span:nth-child(1) { animation-delay: 0s; }
.pre-eq span:nth-child(2) { animation-delay: 0.15s; background: var(--ink); }
.pre-eq span:nth-child(3) { animation-delay: 0.3s; }
.pre-eq span:nth-child(4) { animation-delay: 0.45s; background: var(--ink); }
.pre-eq span:nth-child(5) { animation-delay: 0.6s; }
@keyframes preEq { 0%, 100% { height: 10px; } 50% { height: 44px; } }

.pre-count {
  font-family: var(--font-m); font-size: 13px; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.pre-count::after { content: "%"; }
.pre-label {
  font-size: 11px; letter-spacing: 0.45em; color: var(--ink-faint);
  text-transform: uppercase;
}

/* ══════════ CURSOR ══════════ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}
.cursor-ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              background-color 0.25s, border-color 0.25s;
}
.cursor-ring .cursor-label {
  font-family: var(--font-m); font-size: 9px; letter-spacing: 0.18em;
  opacity: 0; transition: opacity 0.2s; white-space: nowrap;
}
.cursor-ring.is-hover {
  width: 72px; height: 72px;
  background: rgba(210, 43, 58, 0.85); border-color: transparent;
  mix-blend-mode: normal;
}
.cursor-ring.is-hover .cursor-label { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor .card, body.has-cursor .track { cursor: none; }

.ripple {
  position: fixed; z-index: 98; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--red);
  transform: translate(-50%, -50%) scale(0);
  animation: rip 0.9s var(--ease-out) forwards;
}
.ripple.r2 { animation-delay: 0.12s; animation-duration: 1.1s; border-color: var(--ink-dim); }
@keyframes rip {
  to { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

/* ══════════ GRAIN ══════════ */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 40px); }
  50% { transform: translate(40px, -25px); }
  75% { transform: translate(-25px, -40px); }
  100% { transform: translate(0, 0); }
}

/* ══════════ EQ ICON ══════════ */
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i {
  width: 3px; background: var(--red); border-radius: 2px; height: 6px;
  animation: eqB 1.1s ease-in-out infinite paused;
}
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.4s; }
.eq i:nth-child(4) { animation-delay: 0.6s; }
body.is-playing .eq i { animation-play-state: running; }
@keyframes eqB { 0%, 100% { height: 5px; } 50% { height: 16px; } }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4vw;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.8s ease 1s, transform 0.8s var(--ease-out) 1s, background 0.4s;
}
body.loaded .nav { opacity: 1; transform: none; }
.nav.scrolled {
  background: linear-gradient(rgba(8, 8, 11, 0.92), rgba(8, 8, 11, 0));
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-weight: 800; font-size: 13px; letter-spacing: 0.22em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.rec {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.25em;
  color: var(--ink-faint); transition: color 0.4s;
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint); transition: background 0.4s;
}
body.is-playing .rec { color: var(--ink); }
body.is-playing .rec-dot { background: var(--red); animation: blink 1.2s ease infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 40%, rgba(8, 8, 11, 0.85) 100%),
    linear-gradient(rgba(8, 8, 11, 0.35), transparent 30%, transparent 70%, var(--bg));
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 0 5vw; max-width: 1400px;
}
.hero-kicker {
  font-family: var(--font-m); font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.45em; color: var(--ink-dim);
  margin-bottom: 3.5vh; text-transform: uppercase;
}
.hero-kicker strong { color: var(--ink); font-weight: 700; }

.hero-title {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(52px, 13.5vw, 190px);
  line-height: 0.92; letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.05em 0; }
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .red { color: var(--red); }
.hero-title .ch {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 0.25s);
  will-change: transform;
}
body.loaded .hero-title .ch { transform: translateY(0); }

.hero-meta {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  margin-top: 4vh;
  font-family: var(--font-m); font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.22em; color: var(--ink-dim);
}
.hero-meta i { color: var(--red); font-style: normal; }

.hero-play {
  margin-top: 5vh;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px; border-radius: 60px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.04);
  backdrop-filter: blur(6px);
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.35s, border-color 0.35s, transform 0.2s ease-out;
}
.hero-play svg { width: 16px; height: 16px; fill: var(--red); transition: transform 0.3s var(--ease-out); }
.hero-play:hover { background: rgba(210, 43, 58, 0.16); border-color: rgba(210, 43, 58, 0.5); }
.hero-play:hover svg { transform: scale(1.25); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-faint); text-transform: uppercase;
}
.cue-line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: var(--line);
}
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--red);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ══════════ MARQUEE ══════════ */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; background: var(--bg-2);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 38px;
  animation: marq 30s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-weight: 900; font-stretch: 115%;
  font-size: clamp(20px, 3vw, 34px); letter-spacing: 0.06em;
  color: transparent; -webkit-text-stroke: 1px var(--ink-faint);
  transition: color 0.3s;
}
.marquee-track b { color: var(--red); font-size: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:hover span { color: var(--ink-dim); }
@keyframes marq { to { transform: translateX(-50%); } }
@supports not (-webkit-text-stroke: 1px black) {
  .marquee-track span { color: var(--ink-faint); }
}

/* ══════════ MANIFESTO ══════════ */
.manifesto {
  max-width: 1100px; margin: 0 auto;
  padding: 22vh 6vw 18vh;
}
.man-kicker {
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.35em;
  color: var(--red); margin-bottom: 5vh;
}
.man-line {
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(40px, 7vw, 96px); line-height: 1;
  text-transform: uppercase; margin-bottom: 6vh;
}
.man-text {
  font-size: clamp(20px, 2.6vw, 34px); line-height: 1.45;
  font-weight: 500; max-width: 20em;
}
[data-words] .wd {
  opacity: 0.13; display: inline-block;
  transition: opacity 0.5s ease;
}
[data-words] .wd.lit { opacity: 1; }
.man-line .wd.lit:last-child { color: var(--red); }

/* ══════════ SECTION HEAD ══════════ */
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  padding: 0 4vw; margin-bottom: 5vh;
}
.section-head .eq { align-self: center; }
.section-head h2 {
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(30px, 4.6vw, 60px); letter-spacing: 0.01em;
}
.head-note {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.rail-arrows { margin-left: auto; display: flex; gap: 10px; }
.rail-arrows button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 17px; transition: all 0.3s;
}
.rail-arrows button:hover { border-color: var(--red); color: var(--ink); background: rgba(210, 43, 58, 0.12); }

/* ══════════ CINEMA ══════════ */
.cinema { padding: 8vh 0 14vh; }

.stage {
  position: relative;
  margin: 0 auto; width: min(92vw, 1500px);
  padding: 3.5vh 4.5% 0;
  background: var(--bg);
}
#ambient {
  position: absolute; inset: -8% -10% -14%;
  width: 120%; height: 122%;
  filter: blur(70px) saturate(1.6);
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
body.is-playing #ambient { opacity: 0.5; }
#spectrum {
  position: absolute; left: 0; right: 0; bottom: -30px;
  width: 100%; height: 45%;
  pointer-events: none;
  /* esbate as barras atrás dos controlos para manter a leitura */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 52%, rgba(0, 0, 0, 0.18) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 52%, rgba(0, 0, 0, 0.18) 88%, transparent 100%);
}

.screen {
  position: relative; z-index: 2;
  border-radius: 14px; overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(244, 241, 234, 0.07);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.screen video { width: 100%; height: auto; }

.big-play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 11, 0.25);
  transition: opacity 0.5s, visibility 0.5s;
}
.big-play svg {
  width: 36px; height: 36px; fill: var(--ink);
  position: relative; z-index: 2; margin-left: 5px;
}
.big-play .ring {
  position: absolute; left: 50%; top: 50%;
  width: 110px; height: 110px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 241, 234, 0.5);
}
.big-play .r1 { background: rgba(210, 43, 58, 0.9); border: none; transition: transform 0.35s var(--ease-out); }
.big-play:hover .r1 { transform: translate(-50%, -50%) scale(1.12); }
.big-play .r2 { animation: pulse 2.2s var(--ease-out) infinite; }
.big-play .r3 { animation: pulse 2.2s var(--ease-out) 1.1s infinite; }
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
body.has-played .big-play { opacity: 0; visibility: hidden; }

/* controls */
.controls {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 6px 26px;
}
.ctl {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.ctl:hover { border-color: rgba(210, 43, 58, 0.6); background: rgba(210, 43, 58, 0.1); }
.ctl svg { width: 17px; height: 17px; fill: var(--ink); }
.ic-pause, .ic-mut { display: none; }
body.is-playing .ic-play { display: none; }
body.is-playing .ic-pause { display: block; }
body.is-muted .ic-vol { display: none; }
body.is-muted .ic-mut { display: block; }

.time {
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.08em;
  flex: 0 0 auto; min-width: 46px;
}
.time.dim { color: var(--ink-dim); }

.track {
  position: relative; flex: 1; height: 30px;
  display: flex; align-items: center;
}
.track::before {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--line); border-radius: 2px;
}
.track-fill {
  position: absolute; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  border-radius: 2px;
}
.track-dot {
  position: absolute; left: 0%; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) scale(0.6);
  transition: transform 0.25s;
  box-shadow: 0 0 12px rgba(210, 43, 58, 0.9);
}
.track:hover .track-dot, .track:focus-visible .track-dot { transform: translate(-50%, -50%) scale(1); }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks i {
  position: absolute; top: 50%; width: 3px; height: 3px;
  background: var(--ink-dim); border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cinema-hint {
  text-align: center; margin-top: 4vh;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em;
  color: var(--ink-faint);
}

/* fullscreen (regras duplicadas: o Safari antigo só conhece o prefixo) */
.stage:fullscreen {
  width: 100%; padding: 0; background: #000;
  display: flex; flex-direction: column; justify-content: center;
}
.stage:fullscreen .screen { border-radius: 0; box-shadow: none; }
.stage:fullscreen .screen video { max-height: 100vh; object-fit: contain; }
.stage:fullscreen .controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 4vw 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.stage:fullscreen #spectrum, .stage:fullscreen #ambient { display: none; }

.stage:-webkit-full-screen {
  width: 100%; padding: 0; background: #000;
  display: flex; flex-direction: column; justify-content: center;
}
.stage:-webkit-full-screen .screen { border-radius: 0; box-shadow: none; }
.stage:-webkit-full-screen .screen video { max-height: 100vh; object-fit: contain; }
.stage:-webkit-full-screen .controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 4vw 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.stage:-webkit-full-screen #spectrum, .stage:-webkit-full-screen #ambient { display: none; }

/* ══════════ CHAPTERS ══════════ */
.chapters { padding: 10vh 0 16vh; background: var(--bg-2); border-top: 1px solid var(--line); }
.chapters .section-head { padding-top: 8vh; flex-wrap: wrap; }

.rail {
  display: flex; gap: 26px;
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 2vh 4vw 5vh;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }

.card {
  flex: 0 0 min(78vw, 380px);
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 22px;
  background: var(--bg);
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out),
              border-color 0.35s;
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: transform;
}
.card.in { opacity: 1; transform: translateY(0); }
.card:hover { border-color: rgba(210, 43, 58, 0.55); }
.card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.card figure {
  border-radius: 10px; overflow: hidden; aspect-ratio: 1280 / 537;
  margin-bottom: 18px; background: var(--bg-2);
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.06);
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  user-select: none; -webkit-user-drag: none;
}
.card:hover img { transform: scale(1.13); filter: saturate(1.1); }

.card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-dim); margin-bottom: 10px;
}
.card-meta .num { color: var(--red); font-weight: 700; }
.card h3 {
  font-weight: 900; font-stretch: 118%;
  font-size: 26px; text-transform: uppercase; margin-bottom: 10px;
}
.card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-dim); }

.card-wave {
  display: flex; gap: 4px; align-items: flex-end;
  height: 16px; margin-top: 16px;
}
.card-wave i {
  width: 3px; height: 4px; border-radius: 2px;
  background: var(--ink-faint);
  transition: height 0.3s var(--ease-out), background 0.3s;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.card:hover .card-wave i { background: var(--red); height: calc(5px + var(--h, 6) * 1px); }

/* ══════════ RELATÓRIO TÉCNICO ══════════ */
.report { padding: 14vh 4vw 12vh; max-width: 1500px; margin: 0 auto; }
.report .section-head { padding: 0; }

.report-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 60px;
}
.spec {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
  background: linear-gradient(160deg, rgba(244, 241, 234, 0.03), transparent 55%);
}
.spec-label {
  display: block; font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.3em; color: var(--red); margin-bottom: 20px;
}
.spec dl { display: flex; flex-direction: column; gap: 14px; }
.spec dl div {
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 12px; border-bottom: 1px dashed rgba(244, 241, 234, 0.08);
}
.spec dl div:last-child { border-bottom: none; padding-bottom: 0; }
.spec dt {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}
.spec dd {
  font-family: var(--font-m); font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
}
.spec dd small {
  font-weight: 400; font-size: 11px; color: var(--ink-dim);
  margin-left: 6px; letter-spacing: 0.08em;
}
.spec dd .cnt { font-style: normal; color: var(--ink); }

/* forma de onda navegável */
.wave-nav { margin-bottom: 60px; }
.wave-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.wave-head .spec-label { margin-bottom: 0; }
.wave-hint {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase;
}
.wave-box {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 0; cursor: pointer; overflow: hidden;
  background: var(--bg-2);
  transition: border-color 0.3s;
}
.wave-box:hover { border-color: rgba(210, 43, 58, 0.45); }
.wave-base { width: 100%; height: 120px; object-fit: fill; opacity: 0.28; }
.wave-played {
  position: absolute; top: 18px; left: 0; width: 0%; height: 120px;
  overflow: hidden; pointer-events: none;
}
.wave-played img { height: 120px; object-fit: fill; filter: drop-shadow(0 0 10px rgba(210, 43, 58, 0.6)); }
.wave-playhead {
  position: absolute; top: 0; bottom: 0; left: 0%; width: 2px;
  background: var(--ink); opacity: 0;
  box-shadow: 0 0 14px rgba(244, 241, 234, 0.8);
  pointer-events: none; transition: opacity 0.4s;
}
body.has-played .wave-playhead { opacity: 0.9; }
.wave-ticks { position: absolute; inset: 0; pointer-events: none; }
.wave-ticks i {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(244, 241, 234, 0.12);
}
.wave-tip {
  position: absolute; top: 6px; left: 0;
  transform: translateX(-50%);
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.1em;
  background: var(--red); color: var(--ink);
  padding: 3px 8px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wave-box:hover .wave-tip { opacity: 1; }

/* decupagem / EDL */
.edl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.edl-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-m); font-size: 12.5px; min-width: 760px;
}
.edl-table th {
  text-align: left; font-size: 10px; letter-spacing: 0.25em;
  color: var(--ink-dim); font-weight: 400;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.edl-table td {
  padding: 13px 18px; border-bottom: 1px solid rgba(244, 241, 234, 0.06);
  white-space: nowrap;
}
.edl-table td:nth-child(4) { white-space: normal; min-width: 200px; font-family: var(--font-d); font-weight: 600; font-size: 14px; }
.edl-table td:nth-child(5) { color: var(--ink-dim); font-size: 11.5px; }
.edl-table td:first-child { color: var(--red); }
.edl-table tbody tr { cursor: pointer; transition: background 0.25s; }
.edl-table tbody tr:hover { background: rgba(210, 43, 58, 0.07); }
.edl-table tbody tr:last-child td { border-bottom: none; }
.edl-table .lvl { min-width: 150px; }
.edl-table td.lvl > * { vertical-align: middle; }
.edl-table td.lvl i { display: inline-block; margin-right: 10px; }
.edl-table td.lvl i {
  height: 5px; border-radius: 3px;
  width: calc(var(--w, 10%) * 0.62); min-width: 4px;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 70%, var(--gold));
}
.edl-table td.lvl span { font-size: 10.5px; color: var(--ink-dim); }
.edl-note {
  margin-top: 16px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* ══════════ QUOTE ══════════ */
.quote {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.quote-bg {
  position: absolute; inset: -12% 0;
  background: url("../assets/stills/ch14.jpg") center / cover no-repeat;
  opacity: 0.5;
  will-change: transform;
}
.quote::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 8, 11, 0.25), rgba(8, 8, 11, 0.92));
}
.quote blockquote {
  position: relative; z-index: 2;
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(34px, 6.5vw, 92px); line-height: 1.05;
  text-transform: uppercase; padding: 0 6vw; max-width: 1200px;
}

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 12vh 4vw 8vh; max-width: 1500px; margin: 0 auto;
}
.foot-label {
  display: block; font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.35em; color: var(--red); margin-bottom: 22px;
}
.foot-big {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(44px, 6vw, 86px); line-height: 0.95;
  text-transform: uppercase;
}
.foot-col p {
  font-size: 14px; line-height: 1.6; color: var(--ink-dim);
  margin-bottom: 18px;
}
.foot-top {
  margin-top: 8px; padding: 12px 22px; border-radius: 40px;
  border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.3s;
}
.foot-top:hover { border-color: var(--red); background: rgba(210, 43, 58, 0.1); }
.foot-end {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4vw; border-top: 1px solid var(--line);
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.25em;
  color: var(--ink-faint);
}

/* ══════════ REVEALS ══════════ */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { padding: 16px 5vw; }
  .brand-name { font-size: 11px; letter-spacing: 0.14em; }
  .rec { font-size: 10px; letter-spacing: 0.12em; }
  .foot-grid { grid-template-columns: 1fr; gap: 50px; }
  .rail-arrows { display: none; }
  .stage { width: 96vw; padding: 2vh 3% 0; }
  .controls { gap: 10px; flex-wrap: wrap; }
  .hero-meta { flex-wrap: wrap; row-gap: 6px; }
  .cinema-hint { display: none; }
  .section-head { flex-wrap: wrap; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .wave-base, .wave-played, .wave-played img { height: 80px; }
}
@media (max-width: 560px) {
  .report-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (pointer: coarse) {
  .ctl { width: 48px; height: 48px; }
  .track { height: 44px; }
  .rail-arrows button { width: 48px; height: 48px; }
}

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .grain { animation: none; }
  .hero-title .ch { transition: none; transform: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .card { transition: border-color 0.3s; opacity: 1; transform: none; }
  .big-play .r2, .big-play .r3 { animation: none; opacity: 0; }
  .cue-line::after { animation: none; }
  .pre-eq span { animation: none; height: 20px; }
}
