/* ════════════════════════════════════════════════════════════
   LES MURMURES — Light/Dark Edition
   White / Lab / Monospace / Radical
════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ul[role="list"] {
  list-style: none;
}

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-alt:     #f4f4f4;
  --text:       #111111;
  --text-mid:   #555555;
  --text-muted: #888888;
  --text-dim:   #aaaaaa;
  --accent:     #993333;
  --accent2:    #6699cc;
  --border:     #d8d8d8;
  --border-strong: #111111;

  --font-heading: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-body:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --heading-weight: 700;
  --heading-transform: uppercase;
  --heading-spacing: -0.02em;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --gutter:      clamp(1.5rem, 4vw, 3rem);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --img-border: 1px solid var(--border);
  --hero-overlay-top: rgba(255,255,255,0.62);
  --hero-overlay-mid: rgba(255,255,255,0.35);
  --hero-overlay-bot: rgba(255,255,255,0.60);
  --nav-bg: rgba(255,255,255,0.94);
  --lightbox-bg: rgba(255,255,255,0.95);
  --section-stroke: var(--border);
}

/* ── BODY ───────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--text);
  line-height: 1.15;
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-spacing);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

strong {
  font-weight: 700;
  color: var(--text);
}

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

/* ── SECTION BASE ───────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

/* Section index — large, left-aligned, lab-style */
.section-index {
  position: absolute;
  top: var(--section-pad);
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--section-stroke);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.section-rule {
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
  transition: width 0.8s var(--ease-out);
}

.section-rule.is-visible {
  width: 40px;
}

/* ── SCROLL REVEAL ANIMATIONS ───────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

[data-reveal]:nth-child(2) { transition-delay: 0.06s; }
[data-reveal]:nth-child(3) { transition-delay: 0.12s; }
[data-reveal]:nth-child(4) { transition-delay: 0.18s; }

/* ── NAV ────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

#site-nav.is-visible {
  opacity: 1;
  transform: none;
}

.nav-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent2);
  transition: width 0.1s linear;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--white);
  background: var(--text);
}

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-top) 0%,
    var(--hero-overlay-mid) 40%,
    var(--hero-overlay-bot) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-meta {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.hero-sep {
  color: var(--text-dim);
}

.hero-ref {
  color: var(--accent2);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8.5vw, 7.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.hero-title .char.is-visible {
  opacity: 1;
  transform: none;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--text-mid);
  min-height: 1.5em;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s step-end 3 forwards;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid rgba(17,17,17,0.2);
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.hero-link {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.hero-link:hover {
  color: var(--accent);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--text-dim);
  text-decoration: none;
  animation: scrollPulse 2s ease-in-out 2s infinite;
  z-index: 2;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: none; }
}

/* ── CONCEPT SECTION ─────────────────────────────────────── */
.concept-layout {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.concept-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lead {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.offline-callout {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.pull-quote {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0 1.5rem 0;
}

.concept-image {
  position: sticky;
  top: 70px;
}

.concept-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--border);
}

.concept-image figcaption,
.img-caption {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── DEVICE SECTION ─────────────────────────────────────── */
.device-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.device-media-item img,
.device-media-item video {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: var(--img-border);
}

.device-media-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.device-intro {
  max-width: 720px;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Spec block */
.spec-heading {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.device-spec-block {
  border: 1px solid var(--border-strong);
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.device-spec-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

/* Camera diagram with hotspots */
.camera-diagram {
  margin: 0;
  position: relative;
}

.camera-diagram img {
  width: 100%;
  display: block;
}

.cam-hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  cursor: default;
}

.cam-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s;
}

.cam-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.3em 0.6em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

.cam-hotspot:hover .cam-dot {
  transform: scale(1.2);
}

.cam-hotspot:hover .cam-tip {
  opacity: 1;
}

/* Controls list */
.device-spec-controls {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.spec-controls-heading {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.spec-controls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.5rem;
}

.spec-controls li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text);
}

.cam-n {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.spec-controls-note {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  margin-top: 0.6rem;
  color: var(--text-muted);
}

@media (max-width: 750px) {
  .device-spec-layout {
    grid-template-columns: 1fr;
  }
  .spec-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .spec-controls {
    grid-template-columns: 1fr;
  }
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-row dd {
  font-size: 0.85rem;
  color: var(--text);
}

.device-note {
  max-width: 640px;
  color: var(--text-mid);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.device-credit {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.device-credit a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.device-credit a:hover {
  opacity: 0.6;
}

/* Compare Slider */
.compare-pair-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.compare-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.compare-hint {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 700px) {
  .compare-pair-row {
    grid-template-columns: 1fr;
  }
}

.compare-wrapper {
  position: relative;
  z-index: 1;
}

.compare-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
  border: var(--img-border);
}

.compare-base {
  display: block;
  width: 100%;
  height: auto;
}

.compare-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--clip)) 0 0);
  transition: none;
}

.compare-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--clip);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.compare-line {
  width: 2px;
  flex: 1;
  background: var(--accent);
}

.compare-circle {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.compare-circle svg {
  width: 14px;
  height: 14px;
}

.compare-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  padding: 0.2rem 0.4rem;
  pointer-events: none;
  transition: opacity 0.3s;
}

.compare-label--l { left: 0.5rem; }
.compare-label--r { right: 0.5rem; }

.compare-caption {
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── SERIES SECTION ─────────────────────────────────────── */
.series-intro {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: var(--text-mid);
  position: relative;
  z-index: 1;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  position: relative;
  z-index: 1;
}

.series-item:nth-child(7) {
  grid-column: 2 / 3;
}

.series-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.series-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: var(--img-border);
}

.series-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
}

.series-item:hover .series-img-wrap img,
.series-item:focus .series-img-wrap img {
  transform: scale(1.03);
  filter: brightness(0.8);
}

.series-caption-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.series-item:hover .series-caption-overlay,
.series-item:focus .series-caption-overlay {
  opacity: 1;
}

.series-caption {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

/* Audio indicator */
.audio-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.series-item.is-playing .audio-indicator {
  opacity: 1;
  animation: audio-pulse 1s ease-in-out infinite;
}

@keyframes audio-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.4; }
}

.series-item {
  opacity: 0;
  transform: translateY(1.5rem) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.series-item.is-visible {
  opacity: 1;
  transform: none;
}

/* ── ROOM VIEWS ─────────────────────────────────────────── */
.room-views {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.room-views-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.room-views-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.room-views-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border: var(--img-border);
}

@media (max-width: 600px) {
  .room-views-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PROCESS SECTION ────────────────────────────────────── */
.process-video-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.process-video-aside {
  padding-top: 0.25rem;
}

.process-aside-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.process-video-aside p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.process-video-aside a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.process-video-aside a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 750px) {
  .process-video-row {
    grid-template-columns: 1fr;
  }
}

.process-video-wrap {
  position: relative;
  max-width: 420px;
  border: var(--img-border);
  overflow: hidden;
  z-index: 1;
}

.process-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

.video-toggle {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.process-video-wrap:hover .video-toggle {
  opacity: 1;
}

.video-toggle:hover {
  background: var(--accent);
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.process-text p {
  color: var(--text-mid);
  margin-bottom: 1.15rem;
}

.process-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.process-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--img-border);
}

/* ── ARCHIVE / PRODUCTIONS ─────────────────────────────── */
.archive-intro {
  color: var(--text-mid);
  max-width: 64ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.productions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.production-title {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--text);
  margin-bottom: 0.4rem;
}

.production-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.production-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border: var(--img-border);
}

.production-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.production-card-link {
  display: block;
  text-decoration: none;
}

.production-card {
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.production-card-link:hover .production-card {
  border-color: var(--accent);
  background: rgba(232,56,13,0.03);
}

.production-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.production-card-name {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text);
  line-height: 1.2;
  text-transform: uppercase;
}

.production-card-cta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.production-card-link:hover .production-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.production-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.production-link:hover {
  opacity: 0.6;
}

/* ── MAGIC LANTERN SECTION ───────────────────────────────── */
.lantern-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.lantern-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 1vw, 0.75rem);
}

.lantern-video {
  grid-column: 1 / -1;
}

.lantern-video video,
.lantern-still img {
  width: 100%;
  display: block;
  object-fit: cover;
  border: var(--img-border);
}

.lantern-video video {
  aspect-ratio: 4 / 3;
}

.lantern-still img {
  aspect-ratio: 3 / 4;
}

.lantern-text {
  padding-top: 0.5rem;
}

.lantern-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

/* ── CONTEXT SECTION ────────────────────────────────────── */
.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.context-block {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
}

.context-block a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.context-block a:hover {
  opacity: 0.6;
}

.lineage-list {
  list-style: none;
  margin: 1rem 0;
}

.lineage-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-mid);
}

.lineage-list li:last-child {
  border-bottom: none;
}

.lineage-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.lineage-list span {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.lineage-more {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lineage-more a {
  color: var(--accent);
  text-decoration: none;
}

/* ── PERSPECTIVES SECTION ───────────────────────────────── */
.perspectives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.perspectives-block {
  border-top: 2px solid var(--border-strong);
  padding-top: 1.5rem;
}

.perspectives-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.4rem;
}

.perspectives-block h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.perspectives-block p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.65rem;
}

.perspectives-meta {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.75rem !important;
}

@media (max-width: 700px) {
  .perspectives-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SUPPORT SECTION ────────────────────────────────────── */
.support-body {
  max-width: 640px;
}

.support-lead {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.support-body p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.support-contact {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.support-contact:hover {
  background: var(--text);
  transform: translateY(-1px);
}

/* ── COLLABORATION BAND ────────────────────────────────── */
.collaboration-band {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.collaboration-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 380px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.collaboration-band__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.collaboration-band__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 0.65rem;
}

.collaboration-band__text {
  max-width: 55ch;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

.collaboration-band__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--border-strong);
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.collaboration-band__link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.collaboration-band__logo {
  width: min(100%, 220px);
  max-height: 60px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.collaboration-band__link:hover .collaboration-band__logo {
  opacity: 1;
}

.collaboration-band__cta {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.collaboration-band__link:hover .collaboration-band__cta {
  color: var(--accent);
}

/* ── FOOTER ─────────────────────────────────────────────── */
#site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-artist {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer-website {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-website:hover {
  opacity: 0.7;
}

.footer-partners {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.footer-logo-group {
  padding: 1rem clamp(0.8rem, 1.5vw, 1.2rem);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.footer-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.footer-logo-card {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s;
}

.footer-logo-card:hover {
  border-color: rgba(232,56,13,0.4);
}

.footer-logo-card--museum {
  min-height: 100px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.6rem;
}

.footer-logo {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(1) brightness(0) invert(1);
  transition: opacity 0.2s;
}

.footer-logo-card:hover .footer-logo {
  opacity: 1;
}

.footer-logo--museum {
  max-width: 90%;
  max-height: 60px;
  transform: scale(1.04);
}

.footer-logo--pro-helvetia {
  max-height: 46px;
  max-width: 90%;
  transform: scale(1.92);
}

.footer-logo--vaud {
  max-height: 46px;
  max-width: 88%;
  transform: scale(1.62);
}

.footer-logo--givel {
  max-height: 48px;
  transform: scale(1.01);
}

.footer-logo--loterie {
  max-height: 48px;
  transform: scale(1.02);
}

.footer-logo--vevey {
  max-height: 52px;
  transform: scale(1.22);
}

.footer-logo-card--text {
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 0.85rem;
}

.footer-text-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 14ch;
  margin: 0;
  text-align: left;
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.footer-credit {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.2rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.footer-city {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

.footer-year {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-tag {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.easter-btn {
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
  transition: opacity 0.3s, color 0.3s, transform 0.3s;
  line-height: 1;
  padding: 0.5rem;
}

.easter-btn:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--lightbox-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0.5rem);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.is-open .lightbox-figure {
  transform: none;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
}

.lightbox-caption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mid);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  background: var(--text);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

/* ── MODES MODAL ───────────────────────────────────────── */
.modes-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modes-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--lightbox-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: clamp(2rem, 4vw, 3rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--accent);
}

.modal-overline {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 2rem;
  max-width: 60ch;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.mode-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.mode-item:hover {
  border-color: var(--accent);
}

.mode-item h4 {
  margin-bottom: 0.4rem;
}

.mode-item p {
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── THEME TOGGLE ──────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
}

.theme-icon--dark {
  display: none;
}

[data-theme="dark"] .theme-icon--light {
  display: none;
}

[data-theme="dark"] .theme-icon--dark {
  display: block;
}

/* ── CURSOR TRAIL ──────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
}

body.has-mouse .cursor-dot {
  display: block;
}

/* ── MOBILE RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .concept-layout {
    grid-template-columns: 1fr;
  }

  .lantern-layout {
    grid-template-columns: 1fr;
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .productions-grid {
    grid-template-columns: 1fr;
  }

  .collaboration-band__inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-partners {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 99;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.8rem;
    color: var(--text);
  }

  .nav-hamburger {
    display: flex;
  }

  .device-media {
    grid-template-columns: 1fr;
  }

  .series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-item:nth-child(7) {
    grid-column: auto;
  }

  .section-index {
    font-size: clamp(4rem, 20vw, 6rem);
  }
}

@media (max-width: 480px) {
  .series-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   DARK THEME
════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:         #090909;
  --bg-alt:     #111214;
  --white:      #f0ede6;
  --text:       #b0b5c0;
  --text-mid:   #b0b5c0;
  --text-muted: #7a7f8e;
  --text-dim:   #2c2f36;
  --accent:     #c9a96e;
  --accent2:    #7a6040;
  --border:     rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --heading-weight: 300;
  --heading-transform: none;
  --heading-spacing: -0.01em;

  --img-border: none;
  --hero-overlay-top: rgba(9,9,9,0.75);
  --hero-overlay-mid: rgba(9,9,9,0.55);
  --hero-overlay-bot: rgba(9,9,9,0.80);
  --nav-bg: rgba(9,9,9,0.92);
  --lightbox-bg: rgba(5,5,5,0.95);
  --section-stroke: rgba(255,255,255,0.025);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: var(--white);
}

[data-theme="dark"] strong {
  color: var(--white);
}

[data-theme="dark"] .nav-brand {
  color: var(--white);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

[data-theme="dark"] #site-nav {
  border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .nav-links a::after {
  background: var(--accent);
}

[data-theme="dark"] .lang-switcher {
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .lang-btn.is-active {
  background: rgba(201,169,110,0.08);
  color: var(--accent);
}

[data-theme="dark"] .hero-title {
  color: var(--white);
  font-weight: 300;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-subtitle {
  color: var(--white);
  font-family: var(--font-heading);
  font-style: italic;
}

[data-theme="dark"] .hero-meta,
[data-theme="dark"] .hero-link {
  color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .hero-ref {
  color: var(--accent);
}

[data-theme="dark"] .tag {
  border-color: rgba(255,255,255,0.15);
  color: var(--accent);
  background: rgba(9,9,9,0.5);
}

[data-theme="dark"] .hero-link:hover {
  color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .cursor-blink {
  background: var(--accent);
}

[data-theme="dark"] .section {
  border-bottom-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .section-rule {
  background: var(--accent);
}

[data-theme="dark"] .section-index {
  color: transparent;
  -webkit-text-stroke-color: rgba(255,255,255,0.025);
}

[data-theme="dark"] .lead {
  color: var(--white);
}

[data-theme="dark"] .pull-quote {
  color: var(--accent);
  border-left-color: var(--accent2);
  font-family: var(--font-heading);
  font-style: italic;
}

[data-theme="dark"] .offline-callout {
  color: var(--accent);
  border-left-color: var(--accent);
}

[data-theme="dark"] .device-intro {
  color: var(--white);
}

[data-theme="dark"] .device-spec-block {
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .spec-row {
  border-bottom-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .spec-row dd {
  font-family: var(--font-heading);
  font-style: italic;
}

[data-theme="dark"] .spec-controls li {
  border-bottom-color: rgba(255,255,255,0.04);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--white);
}

[data-theme="dark"] .device-spec-controls {
  border-top-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .cam-dot {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.5);
}

[data-theme="dark"] .cam-tip {
  background: var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}

[data-theme="dark"] .compare-label {
  background: rgba(9,9,9,0.6);
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .compare-line {
  background: var(--white);
}

[data-theme="dark"] .compare-circle {
  background: var(--white);
  color: var(--bg);
}

[data-theme="dark"] .series-caption-overlay {
  background: linear-gradient(to top, rgba(9,9,9,0.85) 0%, transparent 60%);
}

[data-theme="dark"] .context-block {
  background: var(--bg-alt);
  border-color: rgba(255,255,255,0.08);
  border-top-color: var(--accent2);
}

[data-theme="dark"] .context-block a {
  color: inherit;
  border-bottom: 1px solid rgba(201,169,110,0.3);
}

[data-theme="dark"] .context-block a:hover {
  border-bottom-color: var(--accent);
}

[data-theme="dark"] .lineage-list li {
  border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .perspectives-block {
  border-top-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .support-lead {
  color: var(--white);
  font-family: var(--font-heading);
  font-style: italic;
}

[data-theme="dark"] .support-contact {
  background: var(--accent);
  color: var(--bg);
}

[data-theme="dark"] .support-contact:hover {
  background: var(--white);
  color: var(--bg);
}

[data-theme="dark"] .production-card {
  background: var(--bg-alt);
  border-color: rgba(255,255,255,0.07);
  border-top: 2px solid var(--accent2);
}

[data-theme="dark"] .production-card-link:hover .production-card {
  border-top-color: var(--accent);
  background: rgba(201,169,110,0.04);
}

[data-theme="dark"] .collaboration-band {
  background: linear-gradient(180deg, rgba(17,18,20,0.96), rgba(9,9,9,1));
  border-top-color: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .collaboration-band__link {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.015);
}

[data-theme="dark"] .collaboration-band__link:hover {
  border-color: rgba(201,169,110,0.32);
}

[data-theme="dark"] .collaboration-band__logo {
  filter: grayscale(1) brightness(0) invert(1);
}

[data-theme="dark"] #site-footer {
  background: var(--bg);
}

[data-theme="dark"] .footer-logo-group {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .footer-logo-card {
  border-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}

[data-theme="dark"] .footer-logo-card:hover {
  border-color: rgba(201,169,110,0.28);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .lightbox-img {
  border: none;
}

[data-theme="dark"] .lightbox-close,
[data-theme="dark"] .lightbox-prev,
[data-theme="dark"] .lightbox-next {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

[data-theme="dark"] .lightbox-close:hover,
[data-theme="dark"] .lightbox-prev:hover,
[data-theme="dark"] .lightbox-next:hover {
  background: var(--accent);
}

[data-theme="dark"] .modal-inner {
  background: var(--bg-alt);
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .modal-close {
  background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .modal-close:hover {
  background: var(--accent);
}

[data-theme="dark"] .mode-item {
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .mode-item:hover {
  border-color: var(--accent);
}

[data-theme="dark"] .video-toggle {
  background: rgba(9,9,9,0.7);
}

[data-theme="dark"] .video-toggle:hover {
  background: var(--accent);
}

[data-theme="dark"] .nav-hamburger span {
  background: var(--text-muted);
}

[data-theme="dark"] .hero-scroll-cue {
  color: rgba(255,255,255,0.4);
}
