/* ============================================================
   Portfolio — Elliot Audic
   Dark, editorial, mono-tech.
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1C1C1C;
  --line: #2A2A2A;
  --line-2: #1f1f1f;
  --fg: #F5F5F2;
  --fg-dim: #9A9A95;
  --fg-mute: #5a5a55;
  --accent: #D86A2C;
  --accent-2: #4A6CF7;
  --accent-soft: rgba(216, 106, 44, 0.14);

  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Migra", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --u: 8px;
  --margin: 80px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide native cursor only where the custom cursor is active.
   Inputs / textareas keep their native I-beam (see media query at bottom). */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor,
  body.custom-cursor * {
    cursor: none;
  }
  body.custom-cursor input,
  body.custom-cursor textarea,
  body.custom-cursor select {
    cursor: text;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

img, svg, video { display: block; max-width: 100%; }

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

/* ============================================================
   Typography utilities
   ============================================================ */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

p { color: var(--fg); }
p.dim { color: var(--fg-dim); }

/* Reveal animation primitive */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-out);
}
.in-view .reveal-word > span {
  transform: translateY(0%);
}
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.in-view .reveal-fade {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 18px var(--margin);
  transition: backdrop-filter 400ms var(--ease), background 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.home-btn {
  appearance: none;
  background: none;
  border: none;
  cursor: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 8px currentColor, 0 0 22px currentColor, 0 0 40px currentColor;
  padding: 0;
  transition: color 250ms var(--ease), text-shadow 250ms var(--ease);
}
.home-btn.home-btn--away {
  color: var(--fg-mute);
  text-shadow: none;
}
.home-btn:hover,
.home-btn.home-btn--away:hover {
  color: var(--accent);
  text-shadow: 0 0 10px currentColor, 0 0 30px currentColor, 0 0 55px currentColor;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand small {
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header center — persistent audio control */
.audio-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 360px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: border-color 250ms var(--ease);
}
.audio-bar:hover { border-color: #3a3a3a; }

.audio-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.audio-play:hover { transform: scale(1.06); background: var(--accent); color: var(--bg); }
.audio-play svg { width: 10px; height: 10px; }

.audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.audio-skip-btn {
  width: 20px; height: 20px;
  color: var(--fg-dim);
  display: grid;
  place-items: center;
  transition: color 200ms;
  border-radius: 3px;
}
.audio-skip-btn:hover { color: var(--fg); }
.audio-skip-btn svg { width: 11px; height: 11px; }

.audio-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.audio-meta .label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.audio-meta .title {
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}
.audio-meta .title .sep {
  color: var(--fg-mute);
  margin: 0 8px;
}

.audio-progress {
  flex: 0 0 64px;
  height: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}
.audio-progress .bar {
  flex: 1;
  width: 2px;
  background: var(--fg-mute);
  opacity: 0.5;
  transform-origin: center;
  transition: opacity 200ms;
}
.audio-progress .bar.on {
  background: var(--accent);
  opacity: 1;
}

.audio-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.audio-vol button {
  width: 18px; height: 18px;
  color: var(--fg-dim);
  display: grid;
  place-items: center;
  transition: color 200ms;
}
.audio-vol button:hover { color: var(--fg); }
.audio-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 56px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.audio-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  background: var(--fg);
  border-radius: 50%;
  cursor: none;
}
.audio-vol input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  background: var(--fg);
  border-radius: 50%;
  border: none;
}

/* Audio pulse hint dot — first-visit invitation */
.audio-bar.muted-hint .audio-play {
  position: relative;
}
.audio-bar.muted-hint .audio-play::after {
  content: "";
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 106, 44, 0.55);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 106, 44, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(216, 106, 44, 0); }
}

/* Nav */
.nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--fg);
  transition: color 250ms var(--ease);
}
.nav a .idx {
  color: var(--fg-mute);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-right: 6px;
  vertical-align: top;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 400ms var(--ease);
}
.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav a.active { color: var(--accent); }
.nav a.active::after { background: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px var(--margin) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.hero-top .now {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-top .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 2.4s var(--ease) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(64px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 80px 0 40px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line:nth-child(3),
.hero-title .line:nth-child(4) {
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}
.hero-title em {
  font-family: "Playfair Display", var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.hero-title .ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-dim);
  font-weight: 400;
  letter-spacing: 0;
  padding: 0 0.05em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-bottom .col p {
  max-width: 38ch;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
}
.hero-desc {
  text-align: justify;
}
.hero-bottom .meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-bottom .meta-row span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-bottom .meta-row span b {
  color: var(--fg);
  font-weight: 500;
  margin-right: 6px;
}

/* Hero ambient waveform — bottom right */
.hero-wave {
  position: absolute;
  right: var(--margin);
  bottom: 200px;
  width: 320px;
  height: 56px;
  display: flex;
  align-items: end;
  gap: 2px;
  pointer-events: none;
  opacity: 0.7;
}
.hero-wave .b {
  flex: 1;
  background: var(--fg);
  width: 2px;
  transition: height 280ms var(--ease);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--margin);
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--fg-mute);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: left;
}
@keyframes cue {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============================================================
   Section frame
   ============================================================ */
section.section {
  position: relative;
  padding: 120px var(--margin);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.section-head h2 {
  font-size: clamp(40px, 5.4vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0;
}
.section-head .tail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: right;
  max-width: 26ch;
  line-height: 1.5;
}

/* ============================================================
   Sound — editorial list
   ============================================================ */
.sound-list {
  display: flex;
  flex-direction: column;
}
.sound-row {
  display: grid;
  grid-template-columns: 48px 1.4fr 1fr 96px;
  gap: 24px;
  align-items: center;
  padding: 28px 16px 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: none;
  transition: padding 500ms var(--ease), background 500ms var(--ease);
}
.sound-row:last-child { border-bottom: 1px solid var(--line); }
.sound-row .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.sound-row .title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: transform 500ms var(--ease), color 500ms var(--ease);
}
.sound-row .client {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-dim);
}
.sound-row .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  text-align: right;
}

/* Waveform — always visible, interactive */
.sound-row .wave-slot {
  position: absolute;
  inset: 0 0 0 auto;
  right: 220px;
  width: 220px;
  display: flex;
  align-items: center;
  pointer-events: auto;
  cursor: ew-resize;
  opacity: 0.35;
  transition: opacity 400ms var(--ease);
}
.sound-row .wave-slot .wf {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 32px;
}
.sound-row .wave-slot .wf span {
  flex: 1;
  background: var(--fg-dim);
  width: 2px;
  transition: background 250ms;
}

/* Play / pause icon inside title */
.sound-play-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  color: var(--fg-mute);
  vertical-align: middle;
  transition: color 300ms var(--ease);
}
.sound-play-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex-shrink: 0;
}
.sound-row:hover .sound-play-icon,
.sound-row.sound-playing .sound-play-icon { color: var(--accent); }

.sound-row:hover {
  padding-left: 24px;
  background: linear-gradient(90deg, var(--bg-2) 0%, transparent 70%);
}
.sound-row:hover .title { color: var(--accent); transform: translateX(4px); }
.sound-row:hover .wave-slot { opacity: 0.7; }
/* Waveform stays fully visible while track is playing */
.sound-row.sound-playing .wave-slot { opacity: 1; }

/* ── Volume control per row ── */
.vol-ctrl {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  z-index: 4;
}
.sound-row:hover .vol-ctrl,
.sound-row.sound-playing .vol-ctrl { opacity: 1; }

.vol-icon-btn {
  appearance: none;
  background: none;
  border: none;
  cursor: none;
  padding: 3px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 200ms var(--ease);
}
.vol-icon-btn:hover { color: var(--accent); }

/* Slider — floats above the icon, reveals upward on hover */
.vol-slider-wrap {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  height: 0;
  overflow: hidden;
  transition: height 260ms var(--ease);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* slider anchors at bottom, reveals from bottom up */
}
.vol-ctrl:hover .vol-slider-wrap,
.vol-ctrl:focus-within .vol-slider-wrap { height: 80px; }

.vol-slider {
  /* Vertical orientation */
  writing-mode: vertical-lr;
  direction: rtl; /* bottom = min (0), top = max (1) */
  -webkit-appearance: none;
  appearance: none;
  width: 2px;
  height: 72px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: ns-resize;
  flex-shrink: 0;
  border-radius: 999px;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: ns-resize;
}
.vol-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: ns-resize;
}

/* ============================================================
   Video grid
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  row-gap: 64px;
}
.video-card {
  position: relative;
  cursor: none;
}
.video-card.span-7 { grid-column: span 7; }
.video-card.span-5 { grid-column: span 5; }
.video-card.span-6 { grid-column: span 6; }
.video-card.span-12 { grid-column: span 12; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.video-thumb .placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 245, 242, 0.025) 0 2px,
      transparent 2px 12px
    ),
    radial-gradient(80% 60% at 30% 30%, rgba(216, 106, 44, 0.18), transparent 60%),
    linear-gradient(180deg, #1c1c1c 0%, #0e0e0e 100%);
  transition: transform 1200ms var(--ease);
}
.video-card.alt .video-thumb .placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 245, 242, 0.025) 0 2px,
      transparent 2px 12px
    ),
    radial-gradient(60% 80% at 70% 40%, rgba(74, 108, 247, 0.18), transparent 60%),
    linear-gradient(180deg, #161616 0%, #0b0b0b 100%);
}
.video-card.alt2 .video-thumb .placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(245, 245, 242, 0.025) 0 2px,
      transparent 2px 12px
    ),
    radial-gradient(50% 60% at 50% 70%, rgba(245, 245, 242, 0.08), transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}
.video-thumb::after {
  /* grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.93  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.video-thumb .placeholder-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  z-index: 1;
}

.video-card:hover .video-thumb .placeholder {
  transform: scale(1.04);
}

.video-thumb .play-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 6px 10px 6px 8px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.video-card:hover .play-badge {
  opacity: 1; transform: translateY(0);
}
.play-badge .tri {
  width: 0; height: 0;
  border-left: 6px solid var(--fg);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.video-thumb .timecode {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg);
  padding: 4px 8px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Thumbnail image */
.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.video-card:hover .video-thumb-img { transform: scale(1.04); }
.video-card.vc-active .video-thumb-img { transform: scale(1.04); }

/* Active card accent */
.video-card.vc-active .play-badge {
  opacity: 1;
  background: var(--accent);
  color: var(--bg);
}

/* Video modal */
@keyframes videoModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes videoModalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--margin);
  animation: videoModalFadeIn 0.3s var(--ease) both;
}
.video-modal-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  width: 100%;
  max-width: 1320px;
  align-items: center;
  animation: videoModalSlideIn 0.45s var(--ease) both;
}
.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes videoCloseGlow {
  0%   { opacity: 0; text-shadow: 0 0 8px rgba(245,245,242,0), 0 0 22px rgba(245,245,242,0); }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(245,245,242,0.95), 0 0 22px rgba(245,245,242,0.6), 0 0 45px rgba(245,245,242,0.3); }
}
.video-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: none;
  align-self: flex-start;
  padding: 0;
  animation: videoCloseGlow 1.8s var(--ease) 0.3s forwards;
  opacity: 0;
}
.video-close:hover {
  text-shadow:
    0 0 8px rgba(245,245,242,0.95),
    0 0 22px rgba(245,245,242,0.6),
    0 0 45px rgba(245,245,242,0.3);
}
.video-modal-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.video-modal-title {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.video-modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
}
.video-modal-roles {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.8;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.video-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
}
.video-meta h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.video-meta .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.video-meta .year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

/* ============================================================
   Writing section
   ============================================================ */
.writing-section { border-top: 1px solid var(--border); }

.writing-list {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
}

.writing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.writing-row:first-child { border-top: 1px solid var(--border); }

/* PDF card */
.pdf-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: default;
  user-select: none;
}
.pdf-card.has-file {
  cursor: pointer;
}
.pdf-card.has-file:hover .pdf-page {
  border-color: var(--accent);
  background: var(--bg-2);
}
.pdf-card.has-file:hover .pdf-footer {
  color: var(--accent);
}

.pdf-page {
  aspect-ratio: 210 / 297; /* A4 */
  max-width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 20px;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}

.pdf-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pdf-lines span {
  display: block;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
}

.pdf-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--fg-mute);
}
.pdf-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pdf-icon span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.pdf-footer {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  padding: 10px 0 0;
  transition: color 0.25s;
}

/* PDF fullscreen overlay */
.pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pdf-fade-in 0.25s ease;
}
@keyframes pdf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pdf-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}
.pdf-close:hover { color: var(--fg); }

.pdf-frame {
  width: min(90vw, 900px);
  height: 90vh;
  border: none;
  background: #fff;
}

/* Writing right column */
.writing-right {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.writing-type {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.writing-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.writing-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-dim);
  font-weight: 300;
  max-width: 52ch;
  margin-top: 8px;
}

/* ============================================================
   Marquee strip (Mood / keywords)
   ============================================================ */
.strip {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-1);
}
.strip-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-strip 60s linear infinite;
  width: max-content;
}
.strip-track span {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.strip-track span::after {
  content: "·";
  color: var(--accent);
  margin-left: 64px;
}
@keyframes scroll-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 120px var(--margin) 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
.footer-top h3 {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 24px;
}
.footer-top h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.footer-top .mail {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: color 250ms var(--ease), border-color 250ms var(--ease);
}
.footer-top .mail:hover { color: var(--accent); border-color: var(--accent); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: color 250ms var(--ease);
}
.footer-col a:hover { color: var(--fg); }
.footer-col a::before {
  content: "→";
  color: var(--fg-mute);
  font-size: 11px;
  transform: translateX(0);
  transition: transform 250ms var(--ease), color 250ms var(--ease);
}
.footer-col a:hover::before { transform: translateX(4px); color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-bottom .footer-toggles {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-bottom .cursor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: none;
  transition: color 200ms;
}
.footer-bottom .cursor-toggle:hover { color: var(--fg); }
.footer-bottom .cursor-toggle .box {
  width: 12px; height: 12px;
  border: 1px solid var(--fg-mute);
  display: grid;
  place-items: center;
}
.footer-bottom .cursor-toggle.on .box { background: var(--fg); border-color: var(--fg); }

/* ============================================================
   Custom cursor
   ============================================================ */
.custom-cursor-el {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
  will-change: transform;
}
.custom-cursor-el svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #F5F5F2;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-el svg { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ============================================================
   Sound Design section
   ============================================================ */
.sd-section { padding-top: 0; }

.sd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.sd-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sd-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
}
.sd-video-wrap:hover .sd-play-btn { opacity: 1; }

.sd-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  padding: 16px;
  text-align: center;
}

.sd-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.45);
  border: none;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.sd-play-btn.playing { opacity: 1; background: transparent; }
.sd-play-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.sd-dur {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(245,245,242,0.6);
  letter-spacing: 0.04em;
}

.sd-waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
}
.sd-waveform span {
  flex: 1;
  background: var(--fg-mute);
  border-radius: 1px;
  transition: height 0.08s ease, background 0.3s;
  min-height: 3px;
}
.sd-waveform span.on {
  background: var(--accent);
}

.sd-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0 0;
}
.sd-num {
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  padding-top: 3px;
  flex-shrink: 0;
}
.sd-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.sd-desc {
  font-size: 11px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   Page wrapper — revealed after intro
   ============================================================ */
.page-wrap {
  opacity: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.page-wrap.page-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Intro / loading screen
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.intro-launching {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease) 0.35s !important;
}

/* Site-wide fluid background */
.site-fluid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  mix-blend-mode: screen;
  will-change: opacity;
}

/* Entry screen */
.intro-entry { cursor: pointer; }
.intro-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.intro-entry-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: intro-fade-in 1.2s var(--ease) both;
}
@keyframes intro-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro-entry-logo svg { width: 36px; height: 36px; opacity: 0.9; }
.intro-entry-name {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--fg);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.intro-entry-cta {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg);
  text-shadow:
    0 0 8px rgba(245, 245, 242, 0.95),
    0 0 22px rgba(245, 245, 242, 0.6),
    0 0 45px rgba(245, 245, 242, 0.3);
  animation: intro-pulse-cta 2.4s var(--ease) forwards;
}
@keyframes intro-pulse-cta {
  0% {
    opacity: 0;
    text-shadow: 0 0 8px rgba(245,245,242,0), 0 0 22px rgba(245,245,242,0);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(245,245,242,0.95), 0 0 22px rgba(245,245,242,0.6), 0 0 45px rgba(245,245,242,0.3);
  }
}

.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  will-change: transform, opacity;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-launching .intro-card {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* ---- Intro exit animations ---- */
@keyframes il-labelUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-28px); }
}
@keyframes il-shoot {
  0%   { transform: translateY(0);     opacity: 1; }
  15%  { transform: translateY(-8px);  opacity: 1; }
  100% { transform: translateY(-72vh); opacity: 0; }
}
@keyframes il-waveOut {
  from { transform: scaleY(1);   opacity: 1; }
  to   { transform: scaleY(0);   opacity: 0; }
}
@keyframes il-fluidOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.intro-launching .intro-label {
  animation: il-labelUp 0.28s var(--ease) both;
}
.intro-launching .intro-reel-outer {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: il-shoot 0.82s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.intro-launching .intro-wave {
  transform-origin: bottom center;
  animation: il-waveOut 0.32s var(--ease) both;
}
.intro-launching .intro-fluid {
  animation: il-fluidOut 0.7s var(--ease) 0.1s both;
}

/* ---- Page entrance animations ---- */
@keyframes pe-slideDown {
  from { opacity: 0; transform: translateY(-110%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pe-wordIn {
  from { opacity: 0; transform: translateY(85%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pe-wordInSpring {
  0%   { opacity: 0; transform: translateY(85%); }
  70%  { opacity: 1; transform: translateY(-4%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pe-waveGrow {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}
@keyframes pe-stripIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pe-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pe-fromLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pe-fromRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pe-scaleFade {
  from { opacity: 0; transform: scale(0.92); filter: blur(5px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0px); }
}
@keyframes pe-brandMark {
  0%   { opacity: 0; transform: rotate(-150deg) scale(0.2); }
  100% { opacity: 1; transform: rotate(0deg)    scale(1); }
}
@keyframes pe-audioBar {
  0%   { opacity: 0; transform: scaleX(0.4); filter: blur(8px); }
  60%  { filter: blur(0px); }
  100% { opacity: 1; transform: scaleX(1);   filter: blur(0px); }
}
@keyframes pe-navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pe-scanIn {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0.5; }
  15%  { opacity: 1; }
  100% { clip-path: inset(0 0% 0 0);   opacity: 1; }
}
/* ── Header — sweeps in as one unit, children assemble inside ── */
.page-visible .site-header {
  animation: pe-slideDown 0.72s var(--ease-out) 0.38s both;
}
.page-visible .brand-mark {
  animation: pe-brandMark 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}
.page-visible .brand > span:last-child {
  animation: pe-fromLeft 0.45s var(--ease) 0.50s both;
}
.page-visible .audio-bar {
  transform-origin: center;
  animation: pe-audioBar 0.7s var(--ease-out) 0.46s both;
}
.page-visible .nav a:nth-child(1) { animation: pe-navIn 0.38s var(--ease) 0.54s both; }
.page-visible .nav a:nth-child(2) { animation: pe-navIn 0.38s var(--ease) 0.60s both; }
.page-visible .nav a:nth-child(3) { animation: pe-navIn 0.38s var(--ease) 0.66s both; }
.page-visible .nav a:nth-child(4) { animation: pe-navIn 0.38s var(--ease) 0.72s both; }
.page-visible .nav a:nth-child(5) { animation: pe-navIn 0.38s var(--ease) 0.78s both; }

/* ── Hero meta — splits apart from center ── */
.page-visible .hero-top .meta-row {
  animation: pe-fromLeft 0.5s var(--ease) 0.48s both;
}
.page-visible .hero-top .now {
  animation: pe-fromRight 0.5s var(--ease) 0.56s both;
}

/* ── Hero title — three distinct entrances ── */
/* Line 1 "Elliot" — rises from below */
.page-visible .hero-title .line:nth-child(1) .reveal-word span {
  animation: pe-wordIn 0.65s var(--ease-out) 0.62s both !important;
}
/* Line 2 "AUDIC" — rises with spring overshoot */
.page-visible .hero-title .line:nth-child(2) .reveal-word span {
  animation: pe-wordInSpring 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.76s both !important;
}
/* Line 3 "Designed" — glides in from left */
.page-visible .hero-title .line:nth-child(3) .reveal-word span {
  animation: pe-fromLeft 0.65s var(--ease-out) 0.90s both !important;
}
/* Line 4 "to be heard." — glides in from left, léger décalage */
.page-visible .hero-title .line:nth-child(4) .reveal-word span {
  animation: pe-fromLeft 0.65s var(--ease-out) 0.98s both !important;
}

/* ── Hero waveform — grows from the floor ── */
.page-visible .hero-wave {
  transform-origin: bottom center;
  animation: pe-waveGrow 1.2s var(--ease-out) 0.78s both;
}

/* ── Hero bottom — three columns, three directions ── */
.page-visible .hero-bottom .col:nth-child(1) .reveal-fade {
  animation: pe-fromLeft 0.65s var(--ease) 1.02s both !important;
}
.page-visible .hero-bottom .col:nth-child(2) .reveal-fade {
  animation: pe-scaleFade 0.75s var(--ease) 1.14s both !important;
}
.page-visible .hero-bottom .col:nth-child(3).reveal-fade,
.page-visible .hero-bottom .col:nth-child(3) .reveal-fade {
  animation: pe-fromRight 0.65s var(--ease) 1.22s both !important;
}

/* ── Strip — slides in and blurs into focus ── */
.page-visible .strip {
  animation: pe-stripIn 0.7s var(--ease-out) 0.92s both;
}

/* ── Scroll cue — scanned in left to right ── */
.page-visible .scroll-cue {
  animation: pe-scanIn 0.9s var(--ease) 1.42s both;
}

.intro-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  transition: color 0.6s;
}

/* Reel */
.intro-reel-outer {
  position: relative;
  width: clamp(280px, 60vw, 720px);
  height: 264px; /* 3 × 88px */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 33%, #000 67%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 33%, #000 67%, transparent 100%);
}

.intro-reel-track {
  will-change: transform;
}

.intro-reel-item {
  height: 88px; /* REEL_ITEM_H — must match JS const */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(18px, 3.2vw, 36px);
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0 16px;
  transition: color 0.5s;
}

/* Gradient masks — fade top and bottom items */
.intro-reel-mask-top,
.intro-reel-mask-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 88px;
  pointer-events: none;
  z-index: 2;
}
.intro-reel-mask-top {
  top: 0;
}
.intro-reel-mask-bottom {
  bottom: 0;
}

/* Center highlight line */
.intro-reel-mask-center {
  position: absolute;
  left: 0; right: 0;
  top: 88px; /* 1 × REEL_ITEM_H */
  height: 88px;
  pointer-events: none;
  z-index: 1;
  border-top: 1px solid rgba(245,245,242,0.1);
  border-bottom: 1px solid rgba(245,245,242,0.1);
}
.intro-locked .intro-reel-mask-center {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(216, 106, 44, 0.12);
  transition: border-color 0.5s, box-shadow 0.5s;
}

.intro-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
  width: clamp(240px, 40vw, 480px);
}
.intro-wave span {
  flex: 1;
  background: var(--bg-3);
  border-radius: 1px;
  min-height: 3px;
  transition: height 0.07s ease, background 0.5s;
}
.intro-wave span.on {
  background: var(--accent);
}

.intro-skip {
  position: absolute;
  bottom: 32px;
  right: 40px;
  background: transparent;
  border: none;
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
}
.intro-skip:hover { color: var(--fg); }

/* ============================================================
   Hero surname variant
   ============================================================ */
.hero-surname .reveal-word span {
  letter-spacing: -0.03em;
}

/* "Défiler pour découvrir" — droite + glow */
@keyframes discoverGlow {
  0%   { opacity: 0; text-shadow: none; }
  100% { opacity: 1;
         text-shadow:
           0 0 6px  rgba(245,245,242,0.85),
           0 0 18px rgba(245,245,242,0.5),
           0 0 38px rgba(245,245,242,0.25); }
}
.hero-discover {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  animation: discoverGlow 2.2s var(--ease) 1.2s both;
}

/* ============================================================
   Bio / À propos
   ============================================================ */
.bio-section {
  border-top: 1px solid var(--border);
}

.bio-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.bio-label .index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
}

.bio-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-dim);
  font-weight: 300;
  text-align: justify;
}

.bio-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
}

.bio-sig {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  padding-top: 12px;
}
.bio-sig .stroke {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Motion Design — section en vedette (temporaire)
   ============================================================ */
.motion-section {
  position: relative;
  padding-top: 12px;
}
.motion-section::before {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 28px;
}

/* Titre + badge sur la même ligne */
.motion-head-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

/* "✦ À la une" badge */
.motion-badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

/* Nav link Motion : comportement identique aux autres liens */

/* Grille de cartes — même structure que .video-grid */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.motion-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.motion-card.span-4  { grid-column: span 4; }
.motion-card.span-6  { grid-column: span 6; }
.motion-card.span-7  { grid-column: span 7; }
.motion-card.span-5  { grid-column: span 5; }
.motion-card.span-12 { grid-column: span 12; }

/* Thumbnail vidéo (premier frame) */
.motion-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.motion-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.motion-card:hover .motion-thumb-video {
  transform: scale(1.03);
}

/* Métadonnées plus proches de la vidéo pour les cartes motion */
.motion-card .video-meta {
  grid-template-columns: auto auto auto;
  justify-content: start;
  gap: 4px 14px;
  margin-top: 12px;
}

/* Icône PLAY centrée sur les cartes motion */
.motion-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.18);
  transition: background 0.3s var(--ease);
}
.motion-card:hover .motion-play-overlay {
  background: rgba(10, 10, 10, 0.34);
}
.motion-play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(245, 245, 242, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s;
}
.motion-card:hover .motion-play-circle {
  transform: scale(1.12);
  background: rgba(10, 10, 10, 0.72);
  border-color: rgba(245, 245, 242, 0.5);
}
.motion-play-circle svg {
  width: 14px;
  height: 14px;
  margin-left: 2px; /* centrage optique du triangle */
}

/* Vidéo plein écran dans le modal */
.motion-modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ============================================================
   Écriture — personnage chantier animé (temporaire)
   ============================================================ */

/* Personnage statique */
.worker-impact,
.worker-dig {
  /* animation désactivée */
}

.worker-svg {
  width: 160px;
  height: auto;
  display: block;
  color: var(--accent);
  overflow: visible;
}

/* Container centré de la section */
.writing-worker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 64px 0 48px;
}

.writing-construction {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  :root { --margin: 32px; }
  .hero-title { font-size: clamp(56px, 13vw, 120px); }
  .site-header { grid-template-columns: 1fr auto; }
  .audio-bar { display: none; }
  .home-btn { display: none; }
  .nav { gap: 18px; }
  .sound-row { grid-template-columns: 36px 1fr 80px; }
  .sound-row .client { display: none; }
  .sound-row .wave-slot { display: none; }
  .video-card.span-7, .video-card.span-5, .video-card.span-6 { grid-column: span 12; }
  .motion-card.span-4, .motion-card.span-6 { grid-column: span 12; }
  .sd-grid { grid-template-columns: 1fr; gap: 24px; }
  .bio-grid { grid-template-columns: 1fr; gap: 24px; }
  .bio-label .index { position: static; }
  .writing-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 16px; }
}
