/* Roshaan Asif / Swiss Editorial, Motion & Type Studio */

@font-face {
  font-family: 'TutneseCustom';
  src: url('assets/fonts/Tut-Alphabet.woff2') format('woff2'),
       url('assets/fonts/Tut-Alphabet.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="ink"] {
  --bg: #0b0b0a;
  --bg-2: #131311;
  --ink: #f2efe9;
  --muted: #9c968b;
  --dim: #635e56;
  --accent: #e03c28;
  --rule: rgba(242, 239, 233, 0.14);
  --rule-strong: rgba(242, 239, 233, 0.34);
  --invert-bg: #f2efe9;
  --invert-ink: #0b0b0a;
  --stage-bg: #151513;
}

[data-theme="paper"] {
  --bg: #f3efe6;
  --bg-2: #e7e1d4;
  --ink: #111110;
  --muted: #555049;
  --dim: #8a8379;
  --accent: #c92f1d;
  --rule: rgba(17, 17, 16, 0.16);
  --rule-strong: rgba(17, 17, 16, 0.4);
  --invert-bg: #111110;
  --invert-ink: #f3efe6;
  --stage-bg: #dfd8ca;
}

[data-theme="vermilion"] {
  --bg: #d43220;
  --bg-2: #b92817;
  --ink: #f6f2ea;
  --muted: rgba(246, 242, 234, 0.8);
  --dim: rgba(246, 242, 234, 0.56);
  --accent: #0d0c0b;
  --rule: rgba(246, 242, 234, 0.24);
  --rule-strong: rgba(246, 242, 234, 0.58);
  --invert-bg: #0d0c0b;
  --invert-ink: #f6f2ea;
  --stage-bg: #a92313;
}

:root {
  --f-disp: 'Syne', 'Satoshi', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --f-tut: 'TutneseCustom', monospace;
  --pad: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
  transition: background-color 0.28s ease, color 0.28s ease;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Analog Grain Layer */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Film-Leader Preloader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0b0b0a;
  color: #f2efe9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  font-family: var(--f-mono);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.35s ease;
}
.loader.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.loader-top, .loader-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c968b;
}
.loader-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid rgba(242, 239, 233, 0.18);
  border-bottom: 1px solid rgba(242, 239, 233, 0.18);
  padding: 20px 0;
}
.loader-num {
  font-family: var(--f-disp);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.loader-tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e03c28;
}

/* Custom Reticle Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  background: transparent;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}
.cursor-stack {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.cursor.has-label .cursor-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
}
.cursor.has-label .cursor-stack {
  display: flex;
}
.cursor.has-sub {
  align-items: flex-start;
}
.cursor.has-sub .cursor-dot {
  margin-top: 3px;
}
.cursor-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--invert-bg);
  color: var(--invert-ink);
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.cursor.has-label .cursor-label {
  opacity: 1;
}
.cursor-sub {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #f2efe9;
  padding: 2px 6px;
  white-space: nowrap;
}
.cursor.has-label.has-sub .cursor-sub {
  display: block;
}
.cursor-sub[hidden] {
  display: none !important;
}
[data-theme="vermilion"] .cursor-sub {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
@media (pointer: fine) {
  .cursor.is-ready { display: inline-flex; }
}

/* Sticky NLE Studio Rail */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
/* Background-Adaptive Studio Calligraphic Brand Mark */
.brand-sigil {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url('assets/brand/roshaan-mark.png');
  mask-image: url('assets/brand/roshaan-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.22s ease, transform 0.25s ease;
}
.loader-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.loader-sigil {
  width: 26px;
  height: 31px;
  color: #f2efe9;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.rail-sigil {
  width: 25px;
  height: 30px;
}
.brand-link:hover .rail-sigil {
  background-color: var(--accent);
  transform: translateY(-1px) scale(1.06);
}
.rail-clock {
  color: var(--muted);
  white-space: nowrap;
}
.rail-mid {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mode-switch,
.theme-switch {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
}
.rail-btn {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.rail-btn:last-child { border-right: 0; }
.rail-btn:hover { color: var(--ink); }
.rail-btn.is-active {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.rail-links {
  display: flex;
  gap: 16px;
}
.rail-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}
.rail-links a:hover { color: var(--ink); }
.rail-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-pct {
  min-width: 38px;
  text-align: right;
  color: var(--accent);
  font-weight: 500;
}

/* Shared Architectural Framing */
.frame {
  padding-inline: var(--pad);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-kicker { color: var(--accent); }
.section-title-sm { color: var(--ink); font-weight: 500; }
.section-meta { color: var(--muted); }

/* Asymmetric Kinetic Hero */
.hero {
  padding: clamp(28px, 5vw, 64px) var(--pad) 0;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.hero-kicker strong {
  color: var(--accent);
  font-weight: 500;
}
.hero-display {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(3rem, 9.6vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 28px);
}
.hero-serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-line-end {
  justify-content: flex-end;
}

/* Interactive 24FPS Match-Cut Aperture */
.matchcut {
  position: relative;
  display: inline-block;
  width: clamp(130px, 18vw, 250px);
  height: clamp(72px, 9.6vw, 134px);
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--stage-bg);
  cursor: pointer;
  overflow: hidden;
  vertical-align: middle;
}
.matchcut img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}
.matchcut img.is-active {
  opacity: 1;
}
.matchcut-hud {
  position: absolute;
  z-index: 2;
  left: 6px;
  right: 6px;
  bottom: 5px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #f2efe9;
  background: rgba(11, 11, 10, 0.78);
  padding: 2px 5px;
}

.hero-subgrid {
  margin-top: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 0.78fr 1fr 1.38fr 0.84fr;
  border-top: 1px solid var(--rule);
}
.ledger-cell {
  padding: 18px 16px 20px 0;
  border-right: 1px solid var(--rule);
}
.ledger-cell:not(:first-child) { padding-left: 18px; }
.ledger-cell:last-child { border-right: 0; text-align: right; padding-right: 0; }
.ledger-val {
  display: block;
  font-family: var(--f-disp);
  font-size: clamp(1.08rem, 1.72vw, 1.58rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ledger-key {
  display: block;
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrub-cue {
  text-decoration: none;
  display: inline-block;
}
.scrub-cue:hover .ledger-val { color: var(--accent); }

/* Dual View Mode Toggle */
.index-view { display: none; }
body.mode-index .reel-view { display: none; }
body.mode-index .index-view { display: block; }

/* Curated Exhibition Plates */
.work-section {
  padding-top: 24px;
}

.plate-row {
  border-bottom: 1px solid var(--rule);
}
.plate-grid-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
}
.plate-grid-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.plate-grid-rev {
  display: grid;
  grid-template-columns: 7fr 5fr;
}
.plate {
  padding: clamp(20px, 3vw, 36px) 0;
}
.plate-left {
  padding-right: clamp(16px, 2.8vw, 36px);
  border-right: 1px solid var(--rule);
}
.plate-right {
  padding-left: clamp(16px, 2.8vw, 36px);
}
.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.plate-id {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.plate-year {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.plate-title {
  margin: 0 0 6px;
  font-family: var(--f-disp);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}
.plate-sub {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 58ch;
}

/* Interactive Media Boxes */
.media-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--stage-bg);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.media-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-btn:hover img {
  transform: scale(1.025);
}

.plate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.btn-sharp {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-sharp:hover,
.btn-sharp.is-active {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-color: var(--invert-bg);
}
.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent:hover,
.btn-accent.is-active {
  background: var(--accent);
  color: #f2efe9;
  border-color: var(--accent);
}
.spec-note {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 01 Fatal Affair Interactive Vinyl Turntable Stage */
.turntable {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.vinyl-rig {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: clamp(48px, 8vw, 130px);
}
.vinyl-sleeve {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.45);
}
.vinyl-sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
button.vinyl-drawer {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.vinyl-drawer {
  position: absolute;
  right: 0;
  width: min(86%, 400px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  transform: translateX(-26%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.vinyl-rig:hover .vinyl-drawer,
.vinyl-rig.is-playing .vinyl-drawer,
.vinyl-drawer:focus-visible {
  transform: translateX(0%);
}
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 34%, rgba(255, 255, 255, 0.06) 35%, rgba(0, 0, 0, 0.9) 36%, rgba(255, 255, 255, 0.04) 44%, #0b0b0a 45%, rgba(255, 255, 255, 0.05) 56%, #0d0d0c 57%, rgba(255, 255, 255, 0.04) 68%, #0a0a09 69%, rgba(255, 255, 255, 0.05) 82%, #111110 83%, #080807 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.vinyl-label {
  width: 38%;
  height: 38%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #0b0b0a;
  position: relative;
}
.vinyl-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vinyl-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.vinyl-rig:hover .vinyl-disc,
.vinyl-rig.is-playing .vinyl-disc,
.vinyl-drawer:focus-visible .vinyl-disc {
  animation: vinylSpin 3.2s linear infinite;
}
.vinyl-rig.is-playing .vinyl-disc {
  border-color: var(--accent);
  box-shadow: 0 20px 54px rgba(224, 60, 40, 0.28), 0 20px 50px rgba(0, 0, 0, 0.6);
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.turntable-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sigil-preview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.sigil-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* 03 Chai Club Interactive Day / Neon Split Stage */
.neon-stage {
  --split: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  background: #2e5932;
}
.neon-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.neon-layer {
  clip-path: inset(0 0 0 var(--split));
}
.neon-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #f2efe9;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}
.neon-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #f2efe9;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  white-space: nowrap;
}
.neon-tags {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.neon-tags span {
  background: rgba(11, 11, 10, 0.78);
  color: #f2efe9;
  padding: 3px 7px;
}
.scrub-range {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--accent);
  cursor: ew-resize;
}

/* 04 Blackletter Filmstrip (3-Across) */
.filmstrip-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
}
.film-cell {
  border-right: 1px solid var(--rule);
  padding: 12px;
  background: var(--bg-2);
}
.film-cell:last-child { border-right: 0; }
.film-cap {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.film-cap strong {
  color: var(--ink);
  font-weight: 500;
}

/* 02 Index Sheet Table Mode */
.index-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.78rem;
}
.index-table th {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.index-row {
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.index-row td {
  padding: 18px 10px;
  vertical-align: middle;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.index-row:hover td {
  background-color: var(--invert-bg);
  color: var(--invert-ink);
}
.index-row .td-title {
  font-family: var(--f-disp);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.td-muted { color: var(--muted); }
.index-row:hover .td-muted { color: var(--invert-ink); opacity: 0.8; }
.index-row .btn-sharp { white-space: nowrap; }
.index-row:hover .btn-sharp {
  border-color: var(--invert-ink);
  color: var(--invert-ink);
}

/* Floating LERP Preview Monitor for Index Mode */
.index-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule-strong);
  background: var(--stage-bg);
  pointer-events: none;
  z-index: 75;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.index-preview.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.index-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interactive Type Foundry Lab (Tutnese) */
.foundry {
  padding: clamp(44px, 6vw, 84px) var(--pad);
  border-bottom: 1px solid var(--rule);
}
.foundry-controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: end;
}
.ctrl-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ctrl-input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  outline: none;
}
.ctrl-input:focus { border-color: var(--accent); }
.ctrl-range {
  width: 100%;
  accent-color: var(--accent);
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.foundry-stage {
  padding: clamp(28px, 5vw, 56px) 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  text-align: center;
  overflow-x: auto;
}
.tut-output {
  font-family: var(--f-tut);
  font-size: var(--tut-size, 96px);
  letter-spacing: var(--tut-track, 0.08em);
  line-height: 1.15;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.2s ease;
}
.cipher-ruler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 0;
}
.cipher-cell {
  border: 1px solid var(--rule);
  min-width: 44px;
  padding: 8px 6px 6px;
  text-align: center;
  background: var(--bg);
}
.cipher-glyph {
  display: block;
  font-family: var(--f-tut);
  font-size: 1.8rem;
  line-height: 1.1;
}
.cipher-latin {
  display: block;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--muted);
}

/* Velocity-Reactive Marquee */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  will-change: transform;
}
.ticker-item {
  padding-right: 36px;
}
.ticker-dot {
  color: var(--accent);
  padding-right: 36px;
}

/* Practice & Honors Architectural Grid */
.practice {
  padding: clamp(36px, 5vw, 72px) var(--pad);
  border-bottom: 1px solid var(--rule);
}
.practice-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
}
.practice-lead {
  margin: 0 0 18px;
  font-family: var(--f-disp);
  font-size: clamp(1.5rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.practice-lead em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.practice-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 54ch;
}
.honors-list {
  border-top: 1px solid var(--rule);
}
.honor-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.honor-yr {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.honor-txt strong {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
}
.honor-txt span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.practice-seal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.seal-sigil {
  width: 44px;
  height: 52px;
  color: var(--ink);
}
.practice-seal:hover .seal-sigil {
  background-color: var(--accent);
  transform: scale(1.05);
}
.practice-seal-meta strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.practice-seal-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Commission Switchboard (Contact) */
.terminal {
  padding: clamp(48px, 7vw, 96px) var(--pad) 28px;
}
.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 18px 0 28px;
}
.terminal-hed {
  margin: 0;
  font-family: var(--f-disp);
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.terminal-hed em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--accent);
}
.terminal-emblem {
  flex-shrink: 0;
  padding-bottom: 6px;
}
.terminal-sigil {
  width: clamp(64px, 8vw, 102px);
  height: clamp(76px, 9.5vw, 120px);
  color: var(--ink);
  opacity: 0.92;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.terminal-emblem:hover .terminal-sigil {
  background-color: var(--accent);
  transform: rotate(-4deg) scale(1.05);
}
.switchboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}
.chan-deck {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 38px);
  border-right: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 196px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 60, 40, 0.11), transparent 70%);
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
[data-theme="vermilion"] .chan-deck {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(13, 12, 11, 0.16), transparent 70%);
}
.chan-deck:last-child { border-right: 0; }
.chan-watermark {
  position: absolute;
  right: 16px;
  bottom: -10px;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.85;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0);
  transition: opacity 0.25s ease;
}
.chan-deck:hover .chan-watermark { opacity: 0.09; }
.chan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.chan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.chan-arrow {
  font-family: var(--f-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}
.chan-deck:hover .chan-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}
@keyframes chanPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: chanPulse 2.2s infinite;
}
.pulse-wa {
  background: #24c36b;
}
[data-theme="vermilion"] .pulse-wa {
  background: #f6f2ea;
}
.chan-body {
  position: relative;
  z-index: 1;
}
.chan-value {
  display: block;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(1.06rem, 1.68vw, 1.58rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.chan-deck:hover .chan-value {
  color: var(--accent);
}
.foot {
  padding: 20px var(--pad) 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-brand,
.lb-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.foot-sigil {
  width: 20px;
  height: 24px;
  color: var(--ink);
}
.lb-sigil {
  width: 18px;
  height: 22px;
  color: var(--accent);
}

/* Darkroom Case-Study Lightbox */
dialog.lb {
  width: min(96vw, 1220px);
  max-height: 92vh;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.85);
}
dialog.lb::backdrop {
  background: rgba(6, 6, 5, 0.92);
  backdrop-filter: blur(4px);
}
.lb-wrap {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  max-height: 92vh;
}
.lb-stage {
  background: var(--stage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  max-height: 92vh;
  border-right: 1px solid var(--rule);
}
.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}
.lb-side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.lb-kicker {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.lb-title {
  margin: 18px 0 10px;
  font-family: var(--f-disp);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.lb-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.lb-specs {
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.7rem;
}
.lb-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.lb-spec-row span:first-child { color: var(--muted); text-transform: uppercase; }
.lb-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Scroll Reveal */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .rail-links { display: none; }
  .hero-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-cell:nth-child(2) { border-right: 0; }
  .switchboard,
  .turntable,
  .plate-grid-split,
  .plate-grid-even,
  .plate-grid-rev,
  .practice-grid,
  .foundry-controls,
  .lb-wrap { grid-template-columns: 1fr; }
  .chan-deck {
    border-right: 0;
    border-bottom: 1px solid var(--rule-strong);
  }
  .chan-deck:last-child { border-bottom: 0; }
  .chan-value { font-size: clamp(1.1rem, 3.8vw, 1.65rem); }
  .plate-left { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .plate-right { padding-left: 0; }
  .filmstrip-3 { grid-template-columns: 1fr; }
  .film-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .film-cell:last-child { border-bottom: 0; }
  dialog.lb {
    width: min(94vw, 680px);
    max-height: 90dvh;
    overflow-y: auto;
  }
  .lb-wrap { max-height: none; }
  .lb-stage {
    max-height: 40dvh;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .lb-stage img { max-height: 35dvh; }
  .lb-side { padding: 16px; gap: 14px; }
  .index-preview { display: none !important; }
}
@media (max-width: 720px) {
  .index-view {
    overflow-x: hidden;
  }
  .index-table {
    table-layout: fixed;
    width: 100%;
  }
  .index-table th:nth-child(3),
  .index-table td:nth-child(3),
  .index-table th:nth-child(4),
  .index-table td:nth-child(4),
  .index-table th:nth-child(5),
  .index-table td:nth-child(5) {
    display: none;
  }
  .index-table th:nth-child(1),
  .index-table td:nth-child(1) {
    width: 44px;
    padding: 12px 4px;
  }
  .index-table th:nth-child(2),
  .index-table td:nth-child(2) {
    width: auto;
    padding: 12px 6px;
  }
  .index-table th:nth-child(6),
  .index-table td:nth-child(6) {
    width: 82px;
    text-align: right;
    padding: 12px 2px 12px 6px;
  }
  .index-row .td-title {
    font-size: 0.86rem;
    line-height: 1.22;
    word-break: break-word;
  }
  .index-row .btn-sharp {
    padding: 6px 8px;
    font-size: 0.6rem;
  }
}
@media (max-width: 640px) {
  .rail { padding: 10px var(--pad); gap: 8px; }
  .rail-clock, .scroll-pct { display: none; }
  .rail-brand { order: 1; gap: 8px; }
  .brand-link { font-size: 0.68rem; gap: 7px; }
  .rail-sigil { width: 20px; height: 24px; }
  .rail-right { order: 2; gap: 6px; }
  .rail-mid {
    order: 3;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--rule);
  }
  .mode-switch { flex-shrink: 0; }
  .rail-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 10px;
    font-size: 0.58rem;
    white-space: nowrap;
  }
  .rail-btn { padding: 5px 8px; font-size: 0.6rem; }

  .hero { padding-top: 22px; }
  .hero-kicker { font-size: 0.64rem; gap: 6px; padding-bottom: 18px; }
  .hero-display { font-size: clamp(1.85rem, 8.2vw, 2.7rem); line-height: 0.95; }
  .hero-line { gap: 10px; }
  .hero-line-end { justify-content: flex-start; }
  .matchcut { width: 108px; height: 60px; }
  .matchcut-hud { font-size: 0.5rem; padding: 1px 4px; left: 4px; right: 4px; bottom: 4px; }
  .hero-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
  .ledger-cell {
    padding: 12px 10px 12px 0 !important;
    border-bottom: 1px solid var(--rule);
    text-align: left !important;
  }
  .ledger-cell:nth-child(2n) {
    border-right: 0;
    padding-left: 12px !important;
    padding-right: 0 !important;
  }
  .ledger-cell:nth-child(2n+1) {
    border-right: 1px solid var(--rule);
    padding-left: 0 !important;
  }
  .ledger-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .ledger-val { font-size: 1.05rem; white-space: normal; }

  .section-head { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; font-size: 0.66rem; }
  .btn-sharp { padding: 7px 11px; font-size: 0.64rem; }
  .vinyl-rig { padding-right: 54px; }
  .vinyl-drawer { width: 78%; transform: translateX(-12%); }
  .sigil-preview { grid-template-columns: 84px 1fr; gap: 12px; padding: 10px; }
  .neon-tags { font-size: 0.54rem; left: 6px; right: 6px; top: 6px; }

  .foundry-brief-bar { padding: 14px; }
  .ctrl-input { font-size: 16px; }
  .foundry-stage { padding: 24px 10px; }
  .tut-output { font-size: min(var(--tut-size, 96px), 12.5vw); }
  .cipher-cell { min-width: 36px; padding: 6px 4px; }
  .cipher-glyph { font-size: 1.35rem; }

  .honor-row { grid-template-columns: 84px 1fr; gap: 10px; }

  .terminal-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin: 14px 0 20px;
  }
  .terminal-hed { font-size: clamp(1.52rem, 6.7vw, 2.2rem); line-height: 0.94; min-width: 0; }
  .terminal-sigil { width: 40px; height: 48px; }
  .chan-deck { min-height: 132px; padding: 20px 16px; gap: 16px; }
  .chan-value { font-size: clamp(0.82rem, 3.85vw, 1.16rem); letter-spacing: -0.02em; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vinyl-rig:hover .vinyl-disc,
  .vinyl-rig.is-playing .vinyl-disc,
  .vinyl-drawer:focus-visible .vinyl-disc { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .loader { display: none; }
}

/* Fatal Affair Multi-Sleeve Switcher & Inline Case-Study Briefs */
.sleeve-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.foundry-brief-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.foundry-brief-copy {
  margin: 0;
  max-width: 72ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.lb-ext {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.award-stage {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 48px);
  align-items: center;
}
.award-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  background: var(--bg-2);
}
.award-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.award-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 980px) {
  .award-stage { grid-template-columns: 1fr; }
}

/* Global Studio Dispatches Console & Dual-Rail Kinetic Tape */
.reviews {
  padding-top: clamp(48px, 7vw, 88px);
}
.dispatch-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.country-stamp {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.country-stamp:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.country-stamp.is-active {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-color: var(--invert-bg);
}
.dispatch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.dispatch-filters,
.dispatch-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dispatch-counter {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-right: 6px;
}
.dispatch-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 0.64fr);
  min-height: 292px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg-2);
}
.dispatch-passport {
  padding: 26px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.dp-iso {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: clamp(3.2rem, 5.6vw, 4.8rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.dp-geo {
  margin-top: 10px;
}
.dp-geo strong {
  display: block;
  font-family: var(--f-disp);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.dp-geo span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.dp-ledger {
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.69rem;
}
.dp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.dp-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dp-row span:first-child {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dp-row span:last-child {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}
.dispatch-reader {
  position: relative;
  padding: 28px clamp(22px, 3.5vw, 44px) 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.dp-native-wrap[hidden],
.dp-trans[hidden] {
  display: none !important;
}
.dp-native-badge {
  display: inline-block;
  padding: 4px 9px;
  background: var(--accent);
  color: #F5F2EB;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[data-theme="vermilion"] .dp-native-badge {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.dp-quote {
  margin: 0;
  color: var(--ink);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.dp-quote.is-short {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
}
.dp-quote.is-mid {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(1.22rem, 1.9vw, 1.58rem);
  line-height: 1.45;
}
.dp-quote.is-long {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.38vw, 1.22rem);
  line-height: 1.58;
}
.dp-quote.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}
.dp-trans {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.dp-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rule);
}
.dp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.dispatch-kinetic-wrap {
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
}
.dispatch-kinetic-wrap[hidden],
.dispatch-filtered-strip[hidden] {
  display: none !important;
}
.dispatch-rail {
  display: flex;
  width: max-content;
  border-bottom: 1px solid var(--rule);
  will-change: transform;
}
.dispatch-rail-alt {
  border-bottom: 0;
}
.dispatch-filtered-strip {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
  scrollbar-width: thin;
}
.dt-card {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  width: 340px;
  flex: 0 0 340px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.dt-card:hover {
  background: var(--bg-2);
}
.dt-card.is-active {
  background: var(--invert-bg);
  color: var(--invert-ink);
}
.dt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dt-country {
  color: var(--accent);
  font-weight: 500;
}
.dt-card.is-active .dt-country {
  color: var(--invert-ink);
  text-decoration: underline;
}
.dt-lang {
  padding: 1px 5px;
  border: 1px solid currentColor;
  font-size: 0.6rem;
}
.dt-excerpt {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dt-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 9px;
}
.dt-card.is-active .dt-foot {
  color: var(--invert-ink);
  opacity: 0.82;
  border-top-color: rgba(127, 127, 127, 0.35);
}
.reviews-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .dispatch-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .dispatch-passport {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .dispatch-countries {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
  }
  .dispatch-countries::-webkit-scrollbar { display: none; }
  .dispatch-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dispatch-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dispatch-filters::-webkit-scrollbar { display: none; }
  .dispatch-filters .btn-sharp { flex-shrink: 0; }
  .dispatch-transport {
    justify-content: space-between;
    width: 100%;
  }
  .dispatch-passport {
    flex-direction: column;
    padding: 16px;
  }
  .dispatch-reader {
    padding: 20px 16px 26px;
  }
  .dp-quote.is-short {
    font-size: clamp(1.5rem, 6.4vw, 2.05rem);
  }
  .dt-card {
    width: 268px;
    flex: 0 0 268px;
    padding: 14px 16px;
  }
}
