/* ════════════════════════════════════════════════════════════
   LES MURMURES / ALT — BASE design system edition
   Achromatic instrument panel · IBM Plex Mono · radius 0
   1px hairlines · one signal colour spent only on the living.
   Dark is the root mode; light is html[data-mode="clair"].
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-SemiBold-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #000;
  --chrome: #050505;
  --card: #080808;
  --panel: #0d0d0d;

  --ink: #fff;
  --body: #d0d0d0;
  --sec: #7a7a7a;
  --lab: #6a6a6a;
  --val: #6a6a6a;
  --hud: #5f5f5f;
  --inactive: #4f4f4f;
  --dim: #3f3f3f;
  --dimmer: #2a2a2a;

  --line: #1a1a1a;
  --line-2: #242424;
  --ring: rgba(255, 255, 255, 0.04);
  --ring-hover: rgba(255, 255, 255, 0.10);
  --scrim: rgba(0, 0, 0, 0.45);

  --accent: #e7d52e;
  --accent-fill: #e7d52e;
  --onacc: #000;
  --rec: #d18585;

  --shadow: 0 18px 44px rgba(0, 0, 0, 0.7);

  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono",
    Consolas, "Liberation Mono", monospace;

  --fs-micro: 9px;
  --fs-label: 9.5px;
  --fs-section: 10px;
  --fs-hint: 10px;
  --fs-value: 11px;
  --fs-menu: 11.5px;
  --fs-body: 13px;
  --fs-base: 12px;
  --fs-title: 16px;

  --bar-masthead: 44px;
  --bar-status: 20px;
  --edge: 28px;
  --radius: 0;

  --fdin: 0.12s;
  --fdback: 0.7s;
  --xfade: 0.35s;

  /* murmure canvas colours (read by JS) */
  --bloc-ink: #4f4f4f;
  --bloc-title-ink: #1f1f1f; /* 12% above black */
  --bloc-zoom-ink: #d6d6d6;
  --chunk-ink: #d0d0d0;
}

html[data-mode="clair"] {
  color-scheme: light;

  --bg: #fff;
  --chrome: #fafafa;
  --card: #f7f7f7;
  --panel: #f2f2f2;

  --ink: #000;
  --body: #2c2c2c;
  --sec: #6a6a6a;
  --lab: #8a8a8a;
  --val: #8a8a8a;
  --hud: #8a8a8a;
  --inactive: #b0b0b0;
  --dim: #b0b0b0;
  --dimmer: #d0d0d0;

  --line: #ededed;
  --line-2: #e0e0e0;
  --ring: rgba(0, 0, 0, 0.05);
  --ring-hover: rgba(0, 0, 0, 0.12);
  --scrim: rgba(0, 0, 0, 0.35);

  --accent: #8a7a00;
  --accent-fill: #e7d52e;
  --onacc: #fff;
  --rec: #c74a4a;

  --shadow: 0 18px 44px rgba(0, 0, 0, 0.18);

  --bloc-ink: #a8a8a8;
  --bloc-title-ink: #e0e0e0; /* 12% below white */
  --bloc-zoom-ink: #2a2a2a;
  --chunk-ink: #2c2c2c;
}

/* ── reset ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  transition: background var(--xfade) ease, color var(--xfade) ease;
  padding-bottom: var(--bar-status);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--body); text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

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

.sr-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the 5px status dot — the only circle in the system */
.lamp {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dim);
  vertical-align: middle;
  flex: none;
}
.lamp--accent { background: var(--accent-fill); }

/* ── masthead ──────────────────────────────────────── */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-masthead);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--edge);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background var(--xfade) ease;
}
.wordmark {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  white-space: nowrap;
}
#mast-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
#mast-nav::-webkit-scrollbar { display: none; }
#mast-nav a {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lab);
  white-space: nowrap;
  transition: color var(--fdback) ease;
}
#mast-nav a:hover { color: var(--ink); transition-duration: var(--fdin); }
#mast-nav a.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.mast-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.mast-burger { display: none; }
.lang-switch { display: flex; align-items: center; gap: 5px; }
.tool-sep { color: var(--dimmer); font-size: var(--fs-label); }
.lang-btn, .mode-toggle, .status-btn {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lab);
  padding: 2px 0;
  transition: color var(--fdback) ease;
}
.lang-btn:hover, .mode-toggle:hover, .status-btn:hover { color: var(--ink); transition-duration: var(--fdin); }
.lang-btn.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ── le bloc ───────────────────────────────────────── */
#bloc {
  padding-top: var(--bar-masthead);
  border-bottom: 1px solid var(--line);
}
.bloc-head, .bloc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--edge);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lab);
}
.bloc-head { border-bottom: 1px solid var(--line); }
.bloc-foot {
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.bloc-count { color: var(--hud); }
.bloc-stage {
  position: relative;
  padding: 40px var(--edge);
}
#bloc-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}
.bloc-title {
  /* invisible: it only sizes the cursor-dragged void in the text,
     and keeps the h1 in the document for accessibility */
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  padding: 20px 34px;
  background: var(--bg);
  transition: background var(--xfade) ease;
}
.bloc-title h1 {
  font-size: clamp(28px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 0.5em; height: 3px;
  background: var(--accent-fill);
  margin-left: 0.18em;
  animation: caret-blink 1.1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.bloc-subtitle {
  margin-top: 10px;
  font-size: var(--fs-menu);
  color: var(--sec);
  letter-spacing: 0.06em;
}
.bloc-meta {
  margin-top: 6px;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lab);
}

/* ── sections ──────────────────────────────────────── */
.section { border-bottom: 1px solid var(--line); }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px var(--edge) 88px;
}
.section-head { margin-bottom: 44px; }
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-section);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sec);
  margin-bottom: 14px;
}
.section-n { color: var(--dim); }
.section-head h2 {
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.section-credit {
  margin-top: 10px;
  font-size: var(--fs-hint);
  color: var(--lab);
}
.section-credit a { color: var(--sec); border-bottom: 1px solid var(--line-2); }
.section-credit a:hover { color: var(--ink); }

.section p { max-width: 68ch; }
.section p + p { margin-top: 1em; }
.section em { font-style: normal; color: var(--ink); }
.section p a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.section p a:hover { border-color: var(--ink); }
.section h3 {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
}

/* pretext chunks: the canvas replaces the paragraph visually */
.chunk { position: relative; margin: 1.4em 0; }
.chunk canvas { display: block; width: 100%; }
.chunk.is-canvas > p {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.chunk--lead { font-size: var(--fs-body); }

.pull-quote {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 1px solid var(--line-2);
  font-size: 15px;
  line-height: 1.55;
  color: var(--sec);
  letter-spacing: 0.02em;
}

.offline-callout {
  margin: 1.6em 0;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  font-size: var(--fs-value);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sec);
}

.meta-note {
  margin-top: 1.2em;
  font-size: var(--fs-hint);
  color: var(--lab);
}

.text-link {
  font-size: var(--fs-value);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sec);
  border-bottom: 1px solid var(--line-2);
  transition: color var(--fdback) ease;
}
.text-link:hover { color: var(--ink); transition-duration: var(--fdin); }

/* figures */
figure { position: relative; }
figure img, figure video {
  width: 100%;
  box-shadow: inset 0 0 0 1px var(--ring);
}
figcaption, .fig-caption {
  margin-top: 8px;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lab);
}

/* ── 01 concept ────────────────────────────────────── */
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.concept-figure { position: sticky; top: calc(var(--bar-masthead) + 24px); }

/* ── 02 device ─────────────────────────────────────── */
.device-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.device-media img, .device-media video {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.chunk--wide { max-width: 74ch; }

.spec-block {
  margin: 48px 0;
  border: 1px solid var(--line);
  padding: 24px;
}
.spec-heading {
  font-size: var(--fs-section);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sec);
  margin-bottom: 16px;
}
.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
.spec-photo { position: relative; }
.spec-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 5px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  transition: background var(--xfade) ease, color var(--xfade) ease;
}
.spec-list { margin-bottom: 24px; }
.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
  min-height: 20px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row dt {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab);
}
.spec-row dd { font-size: var(--fs-value); color: var(--body); }
.spec-controls-heading {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sec);
  margin-bottom: 8px;
}
.controls-list { list-style: none; }
.controls-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 3px 0;
  font-size: var(--fs-value);
  color: var(--body);
  border-bottom: 1px solid var(--line);
}
.ctrl-n { color: var(--dim); font-size: var(--fs-label); flex: none; }
.spec-note {
  margin-top: 10px;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* compare sliders */
.compare-block { margin-top: 48px; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-slider {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y; /* horizontal drags go to the slider, page still scrolls */
  box-shadow: inset 0 0 0 1px var(--ring);
}
.compare-slider img {
  pointer-events: none; /* the browser must never start a native image drag */
  -webkit-user-drag: none;
  user-select: none;
}
.compare-base { width: 100%; display: block; }
.compare-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--clip)) 0 0);
}
.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;
}
.compare-line { flex: 1; width: 1px; background: var(--ink); opacity: 0.8; }
.compare-grip {
  padding: 2px 6px;
  font-size: 10px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-2);
  letter-spacing: 0.05em;
}
.compare-label {
  position: absolute;
  top: 8px;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: #fff;
  mix-blend-mode: difference;
  transition: opacity var(--fdin) ease;
}
.compare-label--l { left: 10px; }
.compare-label--r { right: 10px; }
.compare-hint {
  margin-top: 14px;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-align: center;
}

/* ── 03 lantern ────────────────────────────────────── */
.lantern-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
}
.lantern-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lantern-media figure:first-child { grid-column: 1 / -1; }
.lantern-media img, .lantern-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lantern-media figure:not(:first-child) { aspect-ratio: 1 / 1; overflow: hidden; }
.lantern-text { position: sticky; top: calc(var(--bar-masthead) + 24px); }

/* ── 04 series ─────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.series-item { cursor: pointer; outline: none; }
.series-img {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.series-img img {
  transition: opacity var(--fdback) ease;
}
.series-item:hover .series-img img,
.series-item:focus-visible .series-img img { opacity: 0.85; transition-duration: var(--fdin); }
.series-item:focus-visible .series-img { box-shadow: inset 0 0 0 1px var(--ink); }
.series-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--fs-hint);
  color: var(--sec);
}
.series-item.is-playing .lamp { background: var(--accent-fill); }
.series-item.is-playing .series-caption { color: var(--ink); }

.room-views { margin-top: 64px; }

/* ── carousel ──────────────────────────────────────── */
.carousel { position: relative; }
.carousel-stage { position: relative; }
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.carousel-slide {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  height: clamp(240px, 42vw, 520px);
  /* placeholder width before the lazy image loads; without it the
     zero-width slides never intersect the viewport and never load */
  min-width: min(45vw, 340px);
  background: var(--card);
}
.carousel-slide img { min-width: 100%; object-fit: cover; }
.carousel-slide img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.carousel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.carousel-count {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--sec);
  font-variant-numeric: tabular-nums;
}
.carousel-count-sep, .carousel-count-total { color: var(--dim); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  color: var(--sec);
  font-size: 15px;
  border: 1px solid var(--line-2);
  background: none;
  cursor: pointer;
  transition: color var(--fdin) ease, border-color var(--fdin) ease;
}
.carousel-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.carousel-btn:disabled { color: var(--dimmer); border-color: var(--line); cursor: default; }
/* desktop edge zones + mouse drag */
.carousel-zone {
  display: none;
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 12%, 140px);
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff; /* always over the dark scrim, both modes */
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--fdin) ease;
}
.carousel-zone--prev { left: 0; }
.carousel-zone--next { right: 0; }
.carousel-zone--prev:hover { background: linear-gradient(to right, var(--scrim), transparent); }
.carousel-zone--next:hover { background: linear-gradient(to left, var(--scrim), transparent); }
.carousel-zone:hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .carousel-zone { display: grid; place-items: center; }
  .carousel-zone.is-off { display: none; }
  .carousel-track { cursor: grab; }
  .carousel.is-dragging { user-select: none; }
  .carousel.is-dragging .carousel-track { cursor: grabbing; }
  .carousel.is-dragging .carousel-zone { opacity: 0; pointer-events: none; }
}

/* ── 05 process ────────────────────────────────────── */
.process-video-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.process-video-wrap { position: relative; }
.process-video-wrap video {
  width: 100%;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.video-toggle {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: border-color var(--fdin) ease;
}
.video-toggle:hover { border-color: var(--ink); }
.process-aside p { font-size: var(--fs-value); color: var(--sec); }
.process-aside p + p { margin-top: 0.9em; }
.process-aside a { color: var(--body); border-bottom: 1px solid var(--line-2); }
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.process-images { display: grid; gap: 24px; }
.process-images img { box-shadow: inset 0 0 0 1px var(--ring); }

/* ── 06 archive ────────────────────────────────────── */
.productions-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.production-title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
}
.production-desc { font-size: var(--fs-value); color: var(--sec); margin-bottom: 16px; }
.production-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.production-video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.timeline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line-2);
  transition: border-color var(--fdback) ease;
}
.timeline-card:hover { border-color: var(--ink); transition-duration: var(--fdin); }
.timeline-card-name {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.4;
}
.timeline-card-cta {
  font-size: var(--fs-value);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sec);
}

/* ── 07 / 08 two-col ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.lineage-list { list-style: none; margin: 1em 0; }
.lineage-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-value);
  color: var(--sec);
}
.lineage-list a { color: var(--ink); }
.lineage-list strong { font-weight: 600; }
.lineage-list span { color: var(--lab); }
.lineage-more { margin-top: 1.2em; font-size: var(--fs-hint); color: var(--lab); }

/* ── 09 support ────────────────────────────────────── */
.btn-apply {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-menu);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity var(--fdin) ease;
}
.btn-apply:hover { opacity: 0.82; }

/* ── collaboration ─────────────────────────────────── */
.collab-band { border-bottom: 1px solid var(--line); background: var(--chrome); }
.collab-inner {
  /* same grid as .footer-inner: the studio logo left-aligns with the
     partner logos column below */
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: center;
}
.collab-band .container { padding-top: 56px; padding-bottom: 56px; }
.collab-copy h2 {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}
.collab-copy p { max-width: 58ch; font-size: var(--fs-value); color: var(--sec); }
.collab-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: start;
}
.collab-logo { width: min(100%, 200px); max-height: 60px; object-fit: contain; }

/* ── footer ────────────────────────────────────────── */
#site-footer { border-bottom: 1px solid var(--line); }
#site-footer .container { padding-top: 56px; padding-bottom: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: start;
}
.footer-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.footer-artist { margin-top: 6px; font-size: var(--fs-value); color: var(--sec); margin-bottom: 12px; }
.footer-partners { display: grid; gap: 32px; }
.footer-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3x2, never a 4th column */
  gap: 12px;
}
.footer-logo-card {
  display: grid;
  place-items: center;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.footer-logo { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
/* per-logo compensation, same factors as the main site: some files carry
   a lot of internal margin and need scaling to read at the same size */
.footer-logo--museum { max-height: 60px; transform: scale(1.04); }
.footer-logo--ph { max-width: 90%; max-height: 46px; transform: scale(1.92); }
.footer-logo--vaud { max-width: 88%; max-height: 46px; 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); }
/* logos come in two polarities: dark-on-transparent (default) and
   white-on-transparent (.logo--neg). Each mode inverts the wrong one. */
:root:not([data-mode="clair"]) .footer-logo:not(.logo--neg),
:root:not([data-mode="clair"]) .collab-logo {
  filter: grayscale(1) invert(1);
  opacity: 0.75;
}
:root:not([data-mode="clair"]) .logo--neg { filter: grayscale(1); opacity: 0.75; }
html[data-mode="clair"] .footer-logo:not(.logo--neg),
html[data-mode="clair"] .collab-logo { filter: grayscale(1); opacity: 0.85; }
html[data-mode="clair"] .logo--neg { filter: grayscale(1) invert(1); opacity: 0.85; }
.footer-logo-card--text span {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab);
  text-align: center;
  line-height: 1.5;
}

/* ── status bar ────────────────────────────────────── */
#statusbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bar-status);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: var(--chrome);
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lab);
  z-index: 100;
  transition: background var(--xfade) ease;
}
.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status-pos { color: var(--hud); }

/* ── lightbox ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fdin) ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
html[data-mode="clair"] .lightbox-backdrop { background: rgba(255,255,255,0.95); }
.lightbox-figure {
  position: relative;
  max-width: min(1100px, 90vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  margin: 0 auto;
}
.lightbox-caption {
  text-align: center;
  font-size: var(--fs-hint);
  color: var(--sec);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: var(--sec);
  font-size: 15px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  transition: color var(--fdin) ease, border-color var(--fdin) ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--ink); border-color: var(--ink); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── modes dialog ──────────────────────────────────── */
.modes-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fdin) ease;
}
.modes-modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: var(--scrim); }
.modal-inner {
  position: relative;
  width: min(920px, calc(100vw - 40px));
  max-height: 84vh;
  overflow-y: auto;
  background: var(--chrome);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  padding: 34px 40px 30px;
}
.modal-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 8px;
}
.modal-sub { font-size: var(--fs-hint); color: var(--sec); margin-bottom: 24px; max-width: 60ch; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  color: var(--sec);
  border: 1px solid var(--line-2);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mode-item { background: var(--chrome); padding: 14px 16px; }
.mode-item h4 {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 6px;
}
.mode-item p { font-size: var(--fs-hint); color: var(--sec); line-height: 1.55; }

/* ── responsive ────────────────────────────────────── */
@media (max-width: 1000px) {
  #mast-nav { display: none; }
  #mast-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--bar-masthead);
    left: 0; right: 0;
    background: var(--chrome);
    border-bottom: 1px solid var(--line-2);
    padding: 16px var(--edge) 20px;
    gap: 12px;
  }
  .mast-burger { display: block; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--lab); }
  .mast-burger:hover { color: var(--ink); }
}

@media (max-width: 860px) {
  :root { --edge: 18px; }
  .concept-grid, .spec-layout, .lantern-grid, .process-video-row,
  .process-grid, .productions-grid, .two-col, .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .concept-figure { position: static; }
  .series-grid { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .device-media { grid-template-columns: 1fr; }
  .collab-inner { grid-template-columns: 1fr; gap: 32px; }
  .bloc-title h1 { white-space: normal; }
  .container { padding-top: 52px; padding-bottom: 60px; }
}

@media (max-width: 520px) {
  .series-grid { grid-template-columns: 1fr; }
  .footer-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
