/* =========================================================================
   STUDIO NINE — LAB
   S9·LCS-01 Growth Lifecycle Console.
   A full TE-chassis instrument that anchors the homepage in draft form.
   Scoped under .s9-lcs to avoid leaking into the rest of the site.
   ========================================================================= */

:root {
  --lcs-bg:      #EAE6DF;
  --lcs-bg-2:    #F2EFE8;
  --lcs-ink:     #0A0A0A;
  --lcs-line:    rgba(10, 10, 10, 0.12);
  --lcs-line-2:  rgba(10, 10, 10, 0.22);
  --lcs-mute:    rgba(10, 10, 10, 0.55);
  --lcs-accent:  #C8FF3D;
  --lcs-led-on:  #C8FF3D;
  --lcs-led-off: rgba(10, 10, 10, 0.15);
  --lcs-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --lcs-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --lcs-serif:   'Instrument Serif', Georgia, serif;
  --lcs-paper:   #f7f3ea;
  --lcs-paper-2: #efe9dc;
  --lcs-ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------- SECTION CHASSIS ----------- */
.s9-lcs {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 96px);
  background:
    radial-gradient(circle at 50% 0%, rgba(200,255,61,0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--lcs-bg-2), var(--lcs-bg) 240px);
  color: var(--lcs-ink);
  isolation: isolate;
}
.s9-lcs::before {
  /* Quiet grid under everything — instrument bench */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}
.s9-lcs > .s9-container { position: relative; z-index: 1; }

/* ----------- TOP / BOTTOM STRIPS ----------- */
.s9-lcs__strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 18px;
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  border: 1px solid var(--lcs-line);
  background: var(--lcs-bg-2);
  border-radius: 8px;
}
.s9-lcs__strip--top { margin-bottom: 14px; }
.s9-lcs__strip--bot { margin-top:    14px; }
.s9-lcs__plate {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--lcs-ink); font-weight: 500;
}
.s9-lcs__plate-pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lcs-accent);
  box-shadow: 0 0 8px rgba(200,255,61,0.55);
  animation: s9-lcs-pip 1.8s ease-in-out infinite;
}
.s9-lcs__plate--quiet { color: var(--lcs-mute); }
.s9-lcs__sn em {
  font-style: normal;
  color: var(--lcs-ink);
}
.s9-lcs__live {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--lcs-ink);
}
.s9-lcs__live-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lcs-accent);
  box-shadow: 0 0 10px rgba(200,255,61,0.7);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}
@keyframes s9-lcs-pip {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

/* ----------- MAIN CHASSIS — two-bay layout ----------- */
.s9-lcs__chassis {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1.05fr);
  gap: 0;
  border: 1px solid var(--lcs-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--lcs-bg-2), var(--lcs-bg));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 30px 60px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
}
@media (max-width: 980px) {
  .s9-lcs__chassis { grid-template-columns: 1fr; }
}

.s9-lcs__rivet {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d5d0c5, #8a8478);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 1px 1px rgba(0,0,0,0.1);
}
.s9-lcs__rivet--tl { top: 12px; left:  12px; }
.s9-lcs__rivet--tr { top: 12px; right: 12px; }
.s9-lcs__rivet--bl { bottom: 12px; left:  12px; }
.s9-lcs__rivet--br { bottom: 12px; right: 12px; }

.s9-lcs__bay {
  padding: clamp(28px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  position: relative;
}
.s9-lcs__bay--left {
  border-right: 1px dashed var(--lcs-line-2);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5) 0%, transparent 70%);
}
@media (max-width: 980px) {
  .s9-lcs__bay--left { border-right: 0; border-bottom: 1px dashed var(--lcs-line-2); }
}
.s9-lcs__bay--right {
  background: var(--lcs-bg-2);
}

.s9-lcs__label {
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.s9-lcs__label--right { color: var(--lcs-ink); }
.s9-lcs__feed-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lcs-accent);
  box-shadow: 0 0 8px rgba(200,255,61,0.55);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}

/* ----------- DIAL ----------- */
.s9-lcs__dial-wrap {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.s9-lcs__dial {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: none;
}
.s9-lcs__dial:focus-visible .s9-lcs__dial-ring--outer {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 0 0 3px rgba(200,255,61,0.45);
}

.s9-lcs__dial-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.s9-lcs__dial-ring--outer {
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7) 0%, transparent 35%),
    linear-gradient(155deg, var(--lcs-bg-2), var(--lcs-bg));
  border: 1px solid var(--lcs-line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 6px rgba(0,0,0,0.05),
    0 4px 12px rgba(0,0,0,0.04);
}
.s9-lcs__dial-ring--mid {
  inset: 12%;
  border: 1px dashed rgba(10,10,10,0.12);
  background: rgba(255,255,255,0.25);
}
.s9-lcs__dial-ring--inner {
  inset: 26%;
  border: 1px solid var(--lcs-line);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 45%),
    linear-gradient(160deg, var(--lcs-bg-2) 0%, #dfd8c8 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.06);
}

/* TICKS — six segmented buttons around the rim */
.s9-lcs__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.s9-lcs__tick {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  width: 0; height: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  /* Position via CSS custom property set inline by the markup-positioning JS,
     but we also compute angles directly per tick below */
}
.s9-lcs__tick[data-pos="0"]   { --rot: 0deg; }
.s9-lcs__tick[data-pos="60"]  { --rot: 60deg; }
.s9-lcs__tick[data-pos="120"] { --rot: 120deg; }
.s9-lcs__tick[data-pos="180"] { --rot: 180deg; }
.s9-lcs__tick[data-pos="240"] { --rot: 240deg; }
.s9-lcs__tick[data-pos="300"] { --rot: 300deg; }
.s9-lcs__tick-line {
  position: absolute;
  width: 2px; height: 14px;
  background: var(--lcs-line-2);
  left: -1px; top: -50%;
  transform: rotate(var(--rot)) translateY(calc(-50% - 192px));
  transform-origin: 50% 0;
  transition: background 200ms ease, height 200ms ease;
}
.s9-lcs__tick-num,
.s9-lcs__tick-name {
  position: absolute;
  white-space: nowrap;
  font-family: var(--lcs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--lcs-mute);
  transition: color 240ms ease, transform 240ms ease;
}
.s9-lcs__tick-num  { font-weight: 500; }
.s9-lcs__tick-name { font-size: 10px; opacity: 0.7; }

/* Place numerals and labels around the rim using the parent rotation */
.s9-lcs__tick-num {
  transform: rotate(var(--rot)) translate(-50%, -260%) rotate(calc(-1 * var(--rot)));
  left: 50%; top: 0;
}
.s9-lcs__tick-name {
  transform: rotate(var(--rot)) translate(-50%, -210%) rotate(calc(-1 * var(--rot)));
  left: 50%; top: 0;
}

/* Active tick — bright lime */
.s9-lcs__tick.is-active .s9-lcs__tick-line { background: var(--lcs-accent); height: 18px; box-shadow: 0 0 8px rgba(200,255,61,0.7); }
.s9-lcs__tick.is-active .s9-lcs__tick-num  { color: var(--lcs-ink); }
.s9-lcs__tick.is-active .s9-lcs__tick-name { color: var(--lcs-ink); opacity: 1; }
.s9-lcs__tick:hover .s9-lcs__tick-num,
.s9-lcs__tick:hover .s9-lcs__tick-name { color: var(--lcs-ink); }

/* KNOB — central rotating control */
.s9-lcs__knob {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.65) 0%, transparent 35%),
    conic-gradient(from 45deg,
      #c4bda9 0deg, #d5cfb9 30deg,
      #b8b09c 60deg, #cfc7b1 90deg,
      #beb7a2 120deg, #d2cbb4 150deg,
      #bab39e 180deg, #d6cfb6 210deg,
      #bdb6a0 240deg, #d2cab3 270deg,
      #b9b29c 300deg, #c5beaa 330deg,
      #c4bda9 360deg);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -4px 6px rgba(0,0,0,0.15),
    0 8px 18px rgba(0,0,0,0.12),
    0 2px 4px rgba(0,0,0,0.08);
  cursor: grab;
  transition: transform 520ms var(--lcs-ease);
  /* JS sets the rotation via inline transform — this is the easing default */
  transform: rotate(60deg);
  z-index: 3;
}
.s9-lcs__knob:active { cursor: grabbing; }
.s9-lcs__knob.is-dragging { transition: none; cursor: grabbing; }

.s9-lcs__knob-face {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
    linear-gradient(160deg, #d2cbb4 0%, #aea796 100%);
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.15);
}

/* The indicator line — points at the active tick (i.e. up at 0deg). */
.s9-lcs__knob-indicator {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 22%;
  background: var(--lcs-ink);
  border-radius: 4px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.4),
    0 2px 4px rgba(0,0,0,0.25);
}
.s9-lcs__knob-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 8px;
  background: var(--lcs-accent);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(200,255,61,0.65);
}

.s9-lcs__knob-grip {
  position: absolute; inset: 36%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(160deg, #8a8474, #6e6857);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.4);
}

/* CENTRE LCD — number + stage name (sits above the knob inner) */
.s9-lcs__lcd {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  font-family: var(--lcs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.78);
  color: var(--lcs-accent);
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(200,255,61,0.25),
    inset 0 0 10px rgba(200,255,61,0.12),
    0 2px 6px rgba(0,0,0,0.18);
  text-shadow: 0 0 8px rgba(200,255,61,0.55);
  pointer-events: none;
  z-index: 4;
  min-width: 96px;
  text-align: center;
}
.s9-lcs__lcd-num {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.s9-lcs__lcd-name {
  font-size: 8.5px;
  letter-spacing: 0.28em;
  opacity: 0.78;
  margin-top: 3px;
  display: block;
}

/* ----------- LED BANK ----------- */
.s9-lcs__leds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--lcs-line);
  background: rgba(10,10,10,0.04);
  border-radius: 8px;
}
.s9-lcs__led {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  transition: color 200ms ease;
}
.s9-lcs__led > span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lcs-led-off);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.s9-lcs__led.is-active { color: var(--lcs-ink); }
.s9-lcs__led.is-active > span {
  background: var(--lcs-led-on);
  box-shadow: 0 0 10px rgba(200,255,61,0.7), 0 0 2px rgba(200,255,61,0.85) inset;
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}

/* ----------- AUX CONTROLS ----------- */
.s9-lcs__aux {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}
.s9-lcs__seg-label {
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  margin: 0 0 8px;
}
.s9-lcs__seg-buttons {
  display: inline-flex;
  border: 1px solid var(--lcs-line);
  border-radius: 999px;
  padding: 3px;
  background: var(--lcs-bg-2);
}
.s9-lcs__seg-buttons button {
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--lcs-mute);
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  font-weight: 500;
}
.s9-lcs__seg-buttons button[aria-pressed="true"] {
  background: var(--lcs-ink);
  color: var(--lcs-bg-2);
}
.s9-lcs__hint-body {
  font-family: var(--lcs-mono);
  font-size: 11px;
  color: var(--lcs-ink);
  line-height: 1.5;
  margin: 0;
}

/* ----------- RIGHT BAY — PRINTER ----------- */
.s9-lcs__printer {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.65) 0%, transparent 35%),
    linear-gradient(180deg, var(--lcs-paper) 0%, var(--lcs-paper-2) 100%);
  border-radius: 6px;
  padding: clamp(24px, 2.6vw, 36px);
  font-family: var(--lcs-mono);
  color: var(--lcs-ink);
  box-shadow:
    inset 0 0 0 1px rgba(10,10,10,0.06),
    0 4px 18px rgba(0,0,0,0.06);
  overflow: hidden;
}
.s9-lcs__printer::before {
  /* Faint paper noise */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,0,0,0.025) 0%, transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.025) 0%, transparent 30%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.s9-lcs__tear {
  position: absolute; left: 0; right: 0;
  height: 10px;
  background-image:
    radial-gradient(circle at 6px 0, var(--lcs-bg-2) 5px, transparent 5px);
  background-size: 12px 10px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 2;
}
.s9-lcs__tear--top { top: -1px; }
.s9-lcs__tear--bot { bottom: -1px; transform: scaleY(-1); }

/* Receipt content + transition animation */
.s9-lcs__paper {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.s9-lcs__receipt {
  display: block;
  position: relative;
  z-index: 1;
}
.s9-lcs__receipt.is-feeding {
  /* Paper-feed transition: slide down + fade as we swap content */
  animation: s9-lcs-feed 520ms var(--lcs-ease);
}
@keyframes s9-lcs-feed {
  0%   { opacity: 0; transform: translateY(-22px); filter: blur(1.2px); }
  35%  { opacity: 0.5; }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.s9-lcs__receipt-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-mute);
}
.s9-lcs__receipt-barcode {
  display: inline-block;
  height: 14px;
  width: 120px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--lcs-ink) 0, var(--lcs-ink) 1px,
    transparent     1px, transparent     3px,
    var(--lcs-ink) 3px, var(--lcs-ink) 5px,
    transparent     5px, transparent     6px,
    var(--lcs-ink) 6px, var(--lcs-ink) 9px,
    transparent     9px, transparent    11px);
  opacity: 0.55;
}
.s9-lcs__receipt-meta em { font-style: normal; color: var(--lcs-ink); }

.s9-lcs__receipt-pill {
  display: inline-block;
  font-family: var(--lcs-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-ink);
  background: rgba(200, 255, 61, 0.32);
  border: 1px solid rgba(10, 10, 10, 0.18);
  padding: 4px 8px;
  border-radius: 3px;
  margin: 0 0 16px;
}
.s9-lcs__receipt-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--lcs-mute);
  margin: 14px 0 16px;
  font-style: italic;
  max-width: 50ch;
}
.s9-lcs__receipt-stage {
  font-family: var(--lcs-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  margin: 0 0 6px;
}
.s9-lcs__receipt-headline {
  font-family: var(--lcs-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--lcs-ink);
  margin: 0 0 18px;
}
.s9-lcs__receipt-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lcs-ink);
  margin: 0 0 22px;
  max-width: 44ch;
}
.s9-lcs__receipt-dashed {
  border-top: 1px dashed var(--lcs-line-2);
  margin: 16px 0;
}
.s9-lcs__receipt-section {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lcs-mute);
  margin: 0 0 10px;
}
.s9-lcs__receipt-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
}
.s9-lcs__receipt-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 4px;
  counter-increment: lcs-d;
}
.s9-lcs__receipt-list { counter-reset: lcs-d; }
.s9-lcs__receipt-list li::before {
  content: counter(lcs-d, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--lcs-mono);
  font-size: 10px;
  color: var(--lcs-accent);
  background: var(--lcs-ink);
  padding: 2px 4px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.s9-lcs__receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s9-lcs__receipt-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: var(--lcs-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.s9-lcs__receipt-k { color: var(--lcs-mute); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; }
.s9-lcs__receipt-v { color: var(--lcs-ink); font-weight: 500; }

/* COMPOUNDING BARS */
.s9-lcs__bars {
  display: inline-flex; gap: 3px;
  vertical-align: middle;
}
.s9-lcs__bars > span {
  width: 6px; height: 14px;
  background: var(--lcs-line);
  border-radius: 1.5px;
}
.s9-lcs__bars > span.is-lit {
  background: var(--lcs-accent);
  box-shadow: 0 0 6px rgba(200,255,61,0.5);
}

.s9-lcs__receipt-sig {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--lcs-mute);
  letter-spacing: 0.04em;
  margin: 12px 0 4px;
}
.s9-lcs__receipt-sig em { font-style: normal; color: var(--lcs-ink); }
.s9-lcs__receipt-foot {
  font-family: var(--lcs-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--lcs-mute);
  margin: 0;
}

/* CTA below the receipt */
.s9-lcs__cta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 8px;
}
.s9-lcs__secondary {
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lcs-ink);
  border-bottom: 1px solid var(--lcs-ink);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.s9-lcs__secondary:hover { color: var(--lcs-mute); border-color: var(--lcs-mute); }

@media (prefers-reduced-motion: reduce) {
  .s9-lcs__knob,
  .s9-lcs__receipt.is-feeding,
  .s9-lcs__plate-pip,
  .s9-lcs__live-led,
  .s9-lcs__feed-led,
  .s9-lcs__led.is-active > span { animation: none !important; transition: none !important; }
}

/* =========================================================================
   S9·BENCH — three Live Bench hero variations
   Stacked draft on /lab. Each variation owns a distinct prefix so styles
   never collide: .s9-ops · .s9-flap · .s9-patch
   ========================================================================= */
.s9-bench {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,255,61,0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--lcs-bg-2), var(--lcs-bg) 240px);
}
.s9-bench + .s9-bench { border-top: 1px dashed var(--lcs-line); }

.s9-bench__variant-head {
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.s9-bench__variant-num {
  background: var(--lcs-ink);
  color: var(--lcs-accent);
  padding: 6px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.s9-bench__variant-title {
  font-family: var(--lcs-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--lcs-ink);
}
.s9-bench__variant-note { color: var(--lcs-mute); }

/* =====================================================================
   VAR 01 — OPERATIONS PANEL
   ===================================================================== */
.s9-ops {
  position: relative;
  background: linear-gradient(180deg, #0d0d0d, #050505);
  color: #efedea;
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    0 30px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}
.s9-ops::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,255,61,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,255,61,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.s9-ops::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.s9-ops__rivet {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #555, #1a1a1a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 1px rgba(0,0,0,0.4);
  z-index: 2;
}
.s9-ops__rivet--tl { top: 10px; left: 10px; }
.s9-ops__rivet--tr { top: 10px; right: 10px; }
.s9-ops__rivet--bl { bottom: 10px; left: 10px; }
.s9-ops__rivet--br { bottom: 10px; right: 10px; }

.s9-ops__head {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.s9-ops__head-l, .s9-ops__head-r {
  display: inline-flex; align-items: center; gap: 12px;
}
.s9-ops__head-r { justify-content: flex-end; flex-wrap: wrap; }
.s9-ops__pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: #C8FF3D; box-shadow: 0 0 10px rgba(200,255,61,0.7);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}
.s9-ops__title { color: #efedea; }
.s9-ops__tc em, .s9-ops__count em { font-style: normal; color: #C8FF3D; }

/* VU meter — 12 segments breathing */
.s9-ops__vu {
  display: inline-flex; gap: 2px;
}
.s9-ops__vu > span {
  width: 4px; height: 16px; border-radius: 1px;
  background: rgba(255,255,255,0.12);
}
.s9-ops__vu > span { animation: s9-vu 1.4s ease-in-out infinite; }
.s9-ops__vu > span:nth-child(1)  { animation-delay: 0.0s;  background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(2)  { animation-delay: 0.05s; background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(3)  { animation-delay: 0.10s; background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(4)  { animation-delay: 0.15s; background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(5)  { animation-delay: 0.20s; background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(6)  { animation-delay: 0.25s; background: rgba(200,255,61,0.55); }
.s9-ops__vu > span:nth-child(7)  { animation-delay: 0.30s; background: rgba(255,180,40,0.55); }
.s9-ops__vu > span:nth-child(8)  { animation-delay: 0.35s; background: rgba(255,180,40,0.55); }
.s9-ops__vu > span:nth-child(9)  { animation-delay: 0.40s; background: rgba(255,180,40,0.55); }
.s9-ops__vu > span:nth-child(10) { animation-delay: 0.45s; background: rgba(255,90,90,0.55); }
.s9-ops__vu > span:nth-child(11) { animation-delay: 0.50s; background: rgba(255,90,90,0.55); }
.s9-ops__vu > span:nth-child(12) { animation-delay: 0.55s; background: rgba(255,90,90,0.55); }
@keyframes s9-vu {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

.s9-ops__rows {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s9-ops__row {
  display: grid;
  grid-template-columns: 64px 12px 110px 130px 1fr 110px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--lcs-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  animation: s9-ops-row-in 460ms var(--lcs-ease);
  will-change: opacity, transform;
}
@keyframes s9-ops-row-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.s9-ops__row.is-flipping {
  animation: s9-ops-row-out 240ms ease-out forwards;
}
@keyframes s9-ops-row-out {
  to { opacity: 0; transform: translateX(-12px); filter: blur(1px); }
}
.s9-ops__ch  { color: rgba(239,237,234,0.5); letter-spacing: 0.18em; }
.s9-ops__led {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  justify-self: center;
}
.s9-ops__led[data-status="in_session"] { background: #C8FF3D; box-shadow: 0 0 10px rgba(200,255,61,0.65); animation: s9-lcs-pip 1.4s ease-in-out infinite; }
.s9-ops__led[data-status="shipped"]    { background: rgba(255,255,255,0.55); box-shadow: 0 0 8px rgba(255,255,255,0.25); }
.s9-ops__led[data-status="incoming"]   { background: rgba(255,180,40,0.85); box-shadow: 0 0 10px rgba(255,180,40,0.45); animation: s9-lcs-pip 2.6s ease-in-out infinite; }
.s9-ops__status {
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(239,237,234,0.7);
}
.s9-ops__row[data-status="in_session"] .s9-ops__status { color: #C8FF3D; }
.s9-ops__row[data-status="shipped"]    .s9-ops__status { color: rgba(255,255,255,0.55); }
.s9-ops__row[data-status="incoming"]   .s9-ops__status { color: rgba(255,180,40,0.9); }

.s9-ops__verb { color: rgba(239,237,234,0.65); font-style: italic; font-family: var(--lcs-serif); font-size: 15px; letter-spacing: 0; }
.s9-ops__client { color: #efedea; font-weight: 500; letter-spacing: 0.04em; font-size: 13px; }
.s9-ops__stage {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(200,255,61,0.28);
  border-radius: 999px;
  color: #C8FF3D;
  font-size: 10px;
  letter-spacing: 0.22em;
  background: rgba(200,255,61,0.06);
  justify-self: start;
}
.s9-ops__progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.s9-ops__progress > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #C8FF3D, #d8ff7f);
  box-shadow: 0 0 8px rgba(200,255,61,0.55);
  transition: width 700ms var(--lcs-ease);
}
.s9-ops__row[data-status="shipped"]  .s9-ops__progress > span { background: rgba(255,255,255,0.65); box-shadow: none; }
.s9-ops__row[data-status="incoming"] .s9-ops__progress > span { background: linear-gradient(90deg, rgba(255,180,40,0.7), rgba(255,180,40,0.4)); }
.s9-ops__weeks {
  font-size: 10px; letter-spacing: 0.14em;
  color: rgba(239,237,234,0.55);
  text-align: right;
}
@media (max-width: 920px) {
  .s9-ops__row {
    grid-template-columns: 1fr 1fr;
    row-gap: 4px;
    column-gap: 10px;
    padding: 10px 12px;
  }
  .s9-ops__ch, .s9-ops__led, .s9-ops__weeks { display: none; }
  .s9-ops__status { grid-column: 1; }
  .s9-ops__stage  { grid-column: 2; justify-self: end; }
  .s9-ops__verb   { grid-column: 1 / -1; }
  .s9-ops__client { grid-column: 1 / -1; }
  .s9-ops__progress { grid-column: 1 / -1; }
}

.s9-ops__foot {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,237,234,0.55);
}
.s9-ops__ticker {
  overflow: hidden;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  background: rgba(0,0,0,0.5);
  position: relative;
}
.s9-ops__ticker::before, .s9-ops__ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 2;
  pointer-events: none;
}
.s9-ops__ticker::before { left: 0;  background: linear-gradient(90deg, #050505, transparent); }
.s9-ops__ticker::after  { right: 0; background: linear-gradient(270deg, #050505, transparent); }
.s9-ops__ticker-track {
  white-space: nowrap;
  padding: 2px 0;
  display: inline-block;
  animation: s9-ops-ticker 26s linear infinite;
}
.s9-ops__ticker-track > span {
  display: inline-block;
  padding: 0 32px;
  color: rgba(200,255,61,0.7);
  font-size: 10px;
  letter-spacing: 0.22em;
}
@keyframes s9-ops-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
   VAR 02 — SPLIT-FLAP BOARD
   ===================================================================== */
.s9-flap {
  position: relative;
  background: linear-gradient(180deg, #181410, #0c0a08);
  color: #efe6c8;
  border-radius: 14px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(239,230,200,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px rgba(0,0,0,0.22);
  overflow: hidden;
}
.s9-flap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
}
.s9-flap__head, .s9-flap__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,230,200,0.55);
  position: relative; z-index: 1;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(239,230,200,0.18);
}
.s9-flap__foot { padding: 18px 0 0; margin: 18px 0 0; border-top: 1px dashed rgba(239,230,200,0.18); border-bottom: 0; }
.s9-flap__foot em { font-style: normal; color: #efe6c8; }
.s9-flap__brand { color: #efe6c8; display: inline-flex; align-items: center; gap: 10px; }
.s9-flap__brand-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffb02a;
  box-shadow: 0 0 10px rgba(255,176,42,0.6);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}

.s9-flap__table {
  position: relative; z-index: 1;
  display: grid;
  gap: 8px;
}
.s9-flap__row {
  display: grid;
  grid-template-columns: 90px 1fr 160px 180px;
  gap: 12px;
  align-items: center;
}
.s9-flap__row--head .s9-flap__cell {
  background: transparent !important;
  font-size: 10px;
  color: rgba(239,230,200,0.45);
  padding: 4px 8px;
  text-shadow: none;
  box-shadow: none;
}
.s9-flap__cell {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #efe6c8;
  background: #1a1612;
  padding: 12px 14px;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.s9-flap__cell::before {
  /* Centre seam — the classic split-flap horizontal divide */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
}
.s9-flap__cell.is-flipping {
  animation: s9-flap-tumble 600ms steps(8, end);
}
@keyframes s9-flap-tumble {
  /* No actual 3D flap (would need per-char rendering); fake the
     'character tumbling' feel with a quick vertical scroll + jitter. */
  0%   { transform: translateY(0);    filter: blur(0); }
  35%  { transform: translateY(-2px); filter: blur(0.6px); }
  70%  { transform: translateY( 2px); filter: blur(0.6px); }
  100% { transform: translateY(0);    filter: blur(0); }
}
.s9-flap__cell[data-status="in_session"] { color: #C8FF3D; }
.s9-flap__cell[data-status="shipped"]    { color: rgba(239,230,200,0.55); }
.s9-flap__cell[data-status="incoming"]   { color: #ffb02a; }

@media (max-width: 820px) {
  .s9-flap__row { grid-template-columns: 70px 1fr 110px; }
  .s9-flap__cell--status { display: none; }
}

/* =====================================================================
   VAR 03 — PATCH BAY
   ===================================================================== */
.s9-patch {
  position: relative;
  background:
    radial-gradient(circle at 30% 0%, rgba(200,255,61,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #1a1815, #0d0c0a);
  color: #efedea;
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.s9-patch::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 6px);
}
.s9-patch__head, .s9-patch__foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,237,234,0.55);
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.s9-patch__foot { padding: 20px 0 0; margin: 20px 0 0; border-top: 1px dashed rgba(255,255,255,0.1); border-bottom: 0; }
.s9-patch__foot em { font-style: normal; color: #C8FF3D; }
.s9-patch__brand { color: #efedea; display: inline-flex; align-items: center; gap: 10px; }
.s9-patch__brand-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #C8FF3D;
  box-shadow: 0 0 10px rgba(200,255,61,0.7);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}
.s9-patch__count { color: #efedea; }

.s9-patch__legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}
.s9-patch__legend-dot--live  { background: #C8FF3D;  box-shadow: 0 0 6px rgba(200,255,61,0.55); }
.s9-patch__legend-dot--ship  { background: rgba(255,255,255,0.55); }
.s9-patch__legend-dot--ghost { background: #ffb02a;  box-shadow: 0 0 6px rgba(255,176,42,0.45); }

.s9-patch__board {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.4fr) 1fr;
  gap: 0;
  min-height: 380px;
}
.s9-patch__col {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.s9-patch__col--in  { padding-right: 20px; }
.s9-patch__col--out { padding-left:  20px; align-items: flex-end; }

.s9-patch__jack {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--lcs-mono);
  font-size: 12px;
  color: rgba(239,237,234,0.85);
  letter-spacing: 0.04em;
}
.s9-patch__col--out .s9-patch__jack {
  grid-template-columns: auto 1fr auto;
}
.s9-patch__jack-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,237,234,0.4);
  min-width: 44px;
}
.s9-patch__col--out .s9-patch__jack-num { text-align: right; }
.s9-patch__jack-label {
  color: #efedea;
  text-align: left;
}
.s9-patch__col--out .s9-patch__jack-label { text-align: right; }
.s9-patch__jack-port {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2723, #0a0a0a 60%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 1px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  transition: box-shadow 280ms ease;
}
.s9-patch__jack-port::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.9);
}
.s9-patch__jack.is-patched .s9-patch__jack-port {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 1px rgba(0,0,0,0.7),
    0 0 0 1px rgba(200,255,61,0.5),
    0 0 14px rgba(200,255,61,0.35);
}
.s9-patch__jack.is-patched--ship .s9-patch__jack-port {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 1px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.35);
}
.s9-patch__jack--ghost { opacity: 0.55; }
.s9-patch__jack--ghost .s9-patch__jack-port {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 1px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,176,42,0.45),
    0 0 12px rgba(255,176,42,0.25);
}

.s9-patch__cables {
  width: 100%; height: 100%;
  pointer-events: none;
  position: relative;
  z-index: 0;
  overflow: visible;
}
.s9-patch__cable {
  fill: none;
  stroke: #C8FF3D;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
  filter: drop-shadow(0 0 4px rgba(200,255,61,0.4));
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: s9-patch-draw 1100ms var(--lcs-ease) forwards;
}
.s9-patch__cable--ship  { stroke: rgba(255,255,255,0.45); filter: none; opacity: 0.65; }
.s9-patch__cable--ghost { stroke: #ffb02a; stroke-dasharray: 4 6; filter: drop-shadow(0 0 4px rgba(255,176,42,0.4)); animation: s9-patch-draw 1300ms var(--lcs-ease) forwards, s9-patch-ghost 2.2s linear infinite; opacity: 0.7; }
@keyframes s9-patch-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes s9-patch-ghost {
  to { stroke-dashoffset: 10; }
}
.s9-patch__signal {
  fill: #C8FF3D;
  filter: drop-shadow(0 0 6px rgba(200,255,61,0.7));
}

@media (max-width: 820px) {
  /* Patch is a heavy layout — collapse to a list on mobile */
  .s9-patch__board { grid-template-columns: 1fr; gap: 18px; }
  .s9-patch__cables { display: none; }
  .s9-patch__col--in, .s9-patch__col--out { padding: 0; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .s9-ops__pip, .s9-ops__led,
  .s9-ops__vu > span, .s9-ops__ticker-track,
  .s9-flap__brand-led, .s9-flap__cell.is-flipping,
  .s9-patch__cable, .s9-patch__cable--ghost, .s9-patch__brand-led {
    animation: none !important;
  }
}

/* =========================================================================
   S9·NOW — premium "ON THE BENCH" departures board (hero candidate)
   Industrial chrome: brushed-rail top + bottom strips, four corner screws,
   inset board with eight rows of split-flap cells. Status language softened
   to ACTIVE / WRAPPING / STARTING so it reads as 'work in progress' rather
   than an automated ticker.
   ========================================================================= */
.s9-bench--now {
  /* Hero treatment — section fills the viewport below the fixed header.
     100svh = the 'small' viewport (excludes mobile chrome) so it never
     under-shoots when the address bar collapses. Min-height instead of
     fixed height so very short windows still let the board expand
     downwards into the page rhythm if it needs to. */
  --s9-now-pad-y: clamp(56px, 6vh, 96px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,255,61,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #ece7df, #e0dbd1 360px);
  min-height: calc(100svh - var(--s9-header-h, 76px));
  padding: var(--s9-now-pad-y) 0;
  display: flex;
  align-items: stretch;
}
.s9-bench--now > .s9-container {
  flex: 1;
  display: flex;
  align-items: stretch;
}
.s9-bench--now > .s9-container > .s9-now { flex: 1; }
@supports not (height: 100svh) {
  .s9-bench--now { min-height: calc(100vh - var(--s9-header-h, 76px)); }
}
.s9-bench--now + .s9-bench { border-top: 1px dashed var(--lcs-line); margin-top: 0; }

.s9-now {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,255,61,0.05) 0%, transparent 50%),
    linear-gradient(180deg, #161310 0%, #0a0908 100%);
  border-radius: 16px;
  padding: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 40px 90px rgba(0,0,0,0.28),
    0 4px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  isolation: isolate;
  /* Three-row vertical layout so the board grows to fill available height —
     top rail (auto), board (1fr, stretches), bottom rail (auto). */
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Grain + scanlines for the panel */
.s9-now::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.s9-now::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* Corner screws — flat-head, machined */
.s9-now__screw {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #6f6a5e 0%, #2a2823 70%, #15130f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 1px rgba(0,0,0,0.6),
    0 1px 2px rgba(0,0,0,0.5);
  z-index: 4;
}
.s9-now__screw::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(40deg);
  width: 8px; height: 1.5px;
  background: rgba(0,0,0,0.7);
  border-radius: 1px;
}
.s9-now__screw--tl { top: 14px; left:  14px; }
.s9-now__screw--tr { top: 14px; right: 14px; }
.s9-now__screw--bl { bottom: 14px; left:  14px; }
.s9-now__screw--br { bottom: 14px; right: 14px; }

/* Brushed rails — top and bottom strips on the chassis */
.s9-now__rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 1.6vw, 22px) clamp(48px, 5vw, 72px);
  background:
    linear-gradient(180deg,
      #2a2723 0%,
      #3a3530 50%,
      #1f1c19 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  border-bottom: 1px solid rgba(0,0,0,0.6);
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,230,200,0.6);
}
.s9-now__rail--bot {
  border-bottom: 0;
  border-top: 1px solid rgba(0,0,0,0.6);
  background:
    linear-gradient(0deg,
      #2a2723 0%,
      #3a3530 50%,
      #1f1c19 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
}

.s9-now__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #efe6c8;
  font-weight: 500;
}
.s9-now__brand em { font-style: normal; color: #efe6c8; letter-spacing: 0.32em; }
.s9-now__led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C8FF3D;
  box-shadow:
    0 0 12px rgba(200,255,61,0.8),
    0 0 3px rgba(200,255,61,0.6);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}
.s9-now__clock {
  color: #efe6c8;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

/* The five faux mounting bolts that decorate the rail centre */
.s9-now__rail-c {
  display: inline-flex; gap: 22px;
  justify-content: center;
}
.s9-now__rail-bolt {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5a554a, #1c1a17);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 1px rgba(0,0,0,0.6);
}

/* The board itself — inset, dark, eight rows */
.s9-now__board {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vh, 44px) clamp(28px, 3.5vw, 64px);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.025) 0%, transparent 60%),
    linear-gradient(180deg, #100e0c, #07060500);
  /* Stretch to fill the middle grid track so the rails sit at the very
     top and bottom of the chassis even when the viewport is tall. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.s9-now__board-inner {
  display: grid;
  /* Row gap breathes with viewport height — tighter on short windows,
     more generous on tall ones. */
  gap: clamp(4px, 0.7vh, 10px);
  flex: 1;
  align-content: center;
}
.s9-now__row {
  display: grid;
  grid-template-columns: 56px 110px 1fr 170px 130px;
  gap: 10px;
  align-items: center;
}
.s9-now__row--head {
  margin-bottom: 6px;
  padding: 0 14px;
}
.s9-now__row--head .s9-now__cell {
  background: transparent !important;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(239,230,200,0.4);
  padding: 6px 0;
  text-shadow: none;
  box-shadow: none;
  height: auto;
}
.s9-now__row--head .s9-now__cell::before { display: none; }

.s9-now__cell {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 600;
  /* Type scales gently with the smaller viewport axis so it stays
     readable on phones and feels generous on desktops. */
  font-size: clamp(13px, 0.55rem + 0.8vmin, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #efe6c8;
  background:
    linear-gradient(180deg, #1d1916 0%, #14110e 50%, #1a1612 100%);
  padding: clamp(10px, 1.2vh, 18px) clamp(12px, 1.4vw, 20px);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  /* Row height scales with viewport height — eight rows + gaps + rails
     together fill ~80vh on a typical 900-1100px tall window. */
  height: clamp(46px, 6.5vh, 88px);
  display: flex;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 1px 2px rgba(0,0,0,0.3);
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}
.s9-now__cell::before {
  /* Central seam line — the classic split-flap divide */
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.7);
  box-shadow: 0 -0.5px 0 rgba(255,255,255,0.03);
  pointer-events: none;
  z-index: 2;
}
.s9-now__cell--idx {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(239,230,200,0.45);
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  padding: 14px 0;
  justify-content: center;
  display: flex;
}
.s9-now__cell--idx::before { display: none; }
.s9-now__cell--proj {
  letter-spacing: 0.08em;
}
.s9-now__cell--stage {
  letter-spacing: 0.22em;
  font-size: 12px;
  color: #C8FF3D;
  background: linear-gradient(180deg, #0d1208 0%, #08100400 50%, #0d1208 100%);
}
.s9-now__cell--mode {
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 11.5px;
  justify-content: center;
}

/* Status colour-coding */
.s9-now__cell[data-status="in_session"] { color: #C8FF3D; text-shadow: 0 0 8px rgba(200,255,61,0.35); }
.s9-now__cell[data-status="wrapping"]   { color: rgba(239,230,200,0.62); }
.s9-now__cell[data-status="starting"]   { color: #ffb02a; text-shadow: 0 0 8px rgba(255,176,42,0.3); }

/* Subtle row hover — premium feel without being noisy */
.s9-now__row:not(.s9-now__row--head) { transition: opacity 240ms ease; }
.s9-now__row:not(.s9-now__row--head):hover { opacity: 1; }
.s9-now__board-inner:hover .s9-now__row:not(.s9-now__row--head):not(:hover) { opacity: 0.55; }

/* Flip animation — same scramble feel as the candidate flap, calmer */
.s9-now__cell.is-flipping {
  animation: s9-now-flip 620ms cubic-bezier(0.6, 0, 0.4, 1);
}
@keyframes s9-now-flip {
  0%   { transform: translateY(0);    filter: blur(0); }
  30%  { transform: translateY(-3px); filter: blur(1px); }
  60%  { transform: translateY( 3px); filter: blur(1px); }
  100% { transform: translateY(0);    filter: blur(0); }
}

/* Bottom rail — legend + sign-off */
.s9-now__legend {
  display: inline-flex; align-items: center; gap: 22px;
  color: rgba(239,230,200,0.55);
}
.s9-now__legend-item { display: inline-flex; align-items: center; gap: 8px; }
.s9-now__legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.s9-now__legend-dot--active { background: #C8FF3D; box-shadow: 0 0 8px rgba(200,255,61,0.55); }
.s9-now__legend-dot--wrap   { background: rgba(239,230,200,0.55); }
.s9-now__legend-dot--start  { background: #ffb02a; box-shadow: 0 0 8px rgba(255,176,42,0.4); }
.s9-now__signoff { color: rgba(239,230,200,0.55); justify-self: end; letter-spacing: 0.28em; }
.s9-now__signoff em { font-style: normal; color: #efe6c8; }

/* Responsive — drop columns at smaller widths */
@media (max-width: 980px) {
  .s9-now__row { grid-template-columns: 40px 80px 1fr 110px; }
  .s9-now__cell--mode { display: none; }
}
@media (max-width: 720px) {
  .s9-now__row { grid-template-columns: 40px 1fr 110px; }
  .s9-now__cell--week { display: none; }
  .s9-now__rail { padding: 12px 20px; }
  .s9-now__rail-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .s9-now__cell.is-flipping { animation: none; }
  .s9-now__led { animation: none; }
}

/* =========================================================================
   SIX HERO CANDIDATES — full-bleed motion heroes for the homepage.
   Each prefix scoped to avoid collision: s9-rcpt · s9-spec · s9-drift ·
   s9-reel · s9-cmp · s9-cine. Each section is ~80vh so it reads as a
   proper hero in the lab stack.
   ========================================================================= */
.s9-bench--rcpt,
.s9-bench--spec,
.s9-bench--drift,
.s9-bench--reel,
.s9-bench--cmp,
.s9-bench--cine {
  padding: clamp(56px, 7vh, 96px) 0 clamp(48px, 6vh, 80px);
}

/* =====================================================================
   HERO 01 — THE RECEIPT ROLL
   ===================================================================== */
.s9-rcpt {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,255,61,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #161310, #0a0908);
  border-radius: 16px;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px rgba(0,0,0,0.22);
  overflow: hidden;
  min-height: 70vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.s9-rcpt__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(24px, 3vw, 48px);
  background:
    linear-gradient(180deg, #2a2723 0%, #3a3530 60%, #1f1c19 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239,230,200,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.6);
}
.s9-rcpt__head-l { display: inline-flex; align-items: center; gap: 12px; color: #efe6c8; }
.s9-rcpt__head-r { justify-self: end; color: #efe6c8; }
.s9-rcpt__head-r em, .s9-rcpt__head-l em { font-style: normal; color: var(--lcs-accent); }
.s9-rcpt__led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lcs-accent);
  box-shadow: 0 0 12px rgba(200,255,61,0.7);
  animation: s9-lcs-pip 1.4s ease-in-out infinite;
}
.s9-rcpt__led.is-printing { animation: s9-rcpt-led-fast 0.5s ease-in-out infinite; }
@keyframes s9-rcpt-led-fast { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.s9-rcpt__head-c { display: inline-flex; gap: 6px; }
.s9-rcpt__vent {
  width: 3px; height: 18px; border-radius: 1.5px;
  background: rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.s9-rcpt__mechanism {
  position: relative;
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #0a0908, #050403);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
  overflow: hidden;
}
.s9-rcpt__slot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(280px, 38vw, 480px);
  height: 14px;
  background: #050403;
  border-radius: 0 0 4px 4px;
  z-index: 3;
  box-shadow:
    inset 0 4px 8px rgba(0,0,0,0.9),
    0 1px 0 rgba(255,255,255,0.04);
}
.s9-rcpt__slot-edge {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.s9-rcpt__paper {
  position: relative;
  margin-top: 14px;
  width: clamp(280px, 38vw, 480px);
  min-height: 56vh;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #f8f4eb 0%, #efe9dc 50%, #e8e1d0 100%);
  font-family: var(--lcs-mono);
  color: #1a1814;
  padding: 22px clamp(20px, 2.4vw, 36px) 32px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}
.s9-rcpt__paper::before {
  /* Top + bottom fades so new lines feel like they emerge / scroll */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: linear-gradient(180deg, #efe9dc, transparent);
  pointer-events: none;
  z-index: 2;
}
.s9-rcpt__tape {
  position: relative;
}
.s9-rcpt__tape-block {
  margin: 0 0 14px;
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.s9-rcpt__tape-header {
  text-align: center;
  font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.28em;
  margin: 0 0 8px;
  color: #1a1814;
  font-weight: 600;
}
.s9-rcpt__tape-divider {
  border-top: 1px dashed rgba(0,0,0,0.45);
  margin: 10px -10px;
}
.s9-rcpt__tape-title {
  text-align: center;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 14px 0 16px;
  color: #0a0908;
}
.s9-rcpt__tape-line {
  display: block;
  padding: 4px 0;
  letter-spacing: 0.1em;
  position: relative;
}
.s9-rcpt__tape-line .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #1a1814;
  vertical-align: -2px;
  animation: s9-rcpt-caret 0.7s steps(2) infinite;
}
@keyframes s9-rcpt-caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.s9-rcpt__tape-tear {
  text-align: center;
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 0.3em;
  color: rgba(0,0,0,0.5);
  margin: 18px -22px 0;
  padding: 12px 0 4px;
  border-top: 2px dashed rgba(0,0,0,0.35);
  position: relative;
}
.s9-rcpt__tape-tear::before, .s9-rcpt__tape-tear::after {
  content: ""; position: absolute; top: -5px; width: 6px; height: 10px;
  background: #0a0908;
  border-radius: 50%;
}
.s9-rcpt__tape-tear::before { left: -3px; }
.s9-rcpt__tape-tear::after  { right: -3px; }

@media (max-width: 720px) {
  .s9-rcpt__slot, .s9-rcpt__paper { width: 90%; }
  .s9-rcpt__head-c { display: none; }
}

/* =====================================================================
   HERO 02 — THE LIVING SPECIMEN
   ===================================================================== */
.s9-spec {
  background:
    radial-gradient(ellipse at 50% 50%, #f4f0e8 0%, #e6e1d4 100%);
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 12px;
  padding: 28px clamp(28px, 4vw, 64px);
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0;
  isolation: isolate;
  overflow: hidden;
}
.s9-spec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,10,10,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.s9-spec__strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--lcs-mono);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(10,10,10,0.15);
  z-index: 1;
}
.s9-spec__strip em { font-style: normal; color: #0a0a0a; }
.s9-spec__kern {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  z-index: 1;
}
.s9-spec__kern span {
  width: 1px; height: 12px; background: rgba(10,10,10,0.25);
}
.s9-spec__kern span:nth-child(odd) { height: 18px; }
.s9-spec__kern--bot span { transform: scaleY(-1); }

.s9-spec__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 50vh, 520px);
  z-index: 1;
}
.s9-spec__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(10,10,10,0.4);
}
.s9-spec__corner--tl { top: 12px; left:  12px; border-right: 0; border-bottom: 0; }
.s9-spec__corner--tr { top: 12px; right: 12px; border-left:  0; border-bottom: 0; }
.s9-spec__corner--bl { bottom: 12px; left:  12px; border-right: 0; border-top: 0; }
.s9-spec__corner--br { bottom: 12px; right: 12px; border-left:  0; border-top: 0; }

.s9-spec__guide {
  position: absolute;
  left: 0; right: 0; height: 1px;
  background-image: linear-gradient(to right, rgba(10,10,10,0.18) 50%, transparent 50%);
  background-size: 8px 1px;
}
.s9-spec__guide--baseline { bottom: 22%; }
.s9-spec__guide--xheight  { bottom: 45%; }
.s9-spec__guide--cap      { bottom: 72%; }

.s9-spec__label {
  position: absolute;
  left: -4px;
  font-family: var(--lcs-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(10,10,10,0.45);
  transform: translateX(-100%);
  padding-right: 8px;
}
.s9-spec__label--baseline { bottom: calc(22% - 5px); }
.s9-spec__label--xheight  { bottom: calc(45% - 5px); }
.s9-spec__label--cap      { bottom: calc(72% - 5px); }

.s9-spec__char {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(220px, 36vh, 420px);
  line-height: 1;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  z-index: 2;
  transition:
    font-family 540ms var(--lcs-ease),
    font-style 540ms ease,
    font-weight 540ms ease,
    letter-spacing 540ms ease,
    color 540ms ease,
    transform 540ms var(--lcs-ease),
    -webkit-text-stroke 540ms ease,
    text-shadow 540ms ease;
  display: inline-block;
}
.s9-spec__char.is-morphing {
  animation: s9-spec-flicker 540ms ease-out;
}
@keyframes s9-spec-flicker {
  0%   { transform: scale(1)    rotate(0); opacity: 1; }
  35%  { transform: scale(0.96) rotate(-1deg); opacity: 0.5; filter: blur(2px); }
  60%  { transform: scale(1.02) rotate(0.5deg); opacity: 0.8; filter: blur(0.5px); }
  100% { transform: scale(1)    rotate(0); opacity: 1; filter: blur(0); }
}

.s9-spec__foot {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed rgba(10,10,10,0.15);
  z-index: 1;
}
.s9-spec__alphabet {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(13px, 1.4vw, 20px);
  letter-spacing: 0.16em;
  color: rgba(10,10,10,0.7);
  text-align: center;
  margin: 0;
  font-style: italic;
}
.s9-spec__details {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
}
.s9-spec__details em { font-style: normal; color: #0a0a0a; }

/* =====================================================================
   HERO 03 — THE INDEX DRIFT
   ===================================================================== */
.s9-drift {
  position: relative;
  min-height: 78vh;
  background:
    radial-gradient(ellipse at 50% 50%, #f4f0e8 0%, #e0dbd1 100%);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}
.s9-drift::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.05), transparent 50%);
  z-index: 1;
}
.s9-drift__field {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.s9-drift__phrase {
  position: absolute;
  white-space: nowrap;
  color: rgba(10,10,10,0.7);
  will-change: transform, opacity;
  --dur: 18s;
  animation: s9-drift-up var(--dur) linear forwards;
}
@keyframes s9-drift-up {
  0%   { transform: translateY(110vh) translateX(var(--ox, 0px)); opacity: 0; }
  8%   { opacity: var(--maxop, 0.7); }
  92%  { opacity: var(--maxop, 0.7); }
  100% { transform: translateY(-30vh) translateX(var(--ox, 0px)); opacity: 0; }
}
.s9-drift__phrase--serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.s9-drift__phrase--mono {
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.s9-drift__phrase--display {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.s9-drift__brand {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(60px, 12vh, 140px) clamp(20px, 4vw, 48px) clamp(60px, 12vh, 140px);
  pointer-events: none;
}
.s9-drift__brand-mark {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(110px, 22vh, 260px);
  line-height: 0.8;
  color: #0a0a0a;
}
.s9-drift__brand-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin: clamp(20px, 4vh, 40px) 0 12px;
}
.s9-drift__brand-tag {
  font-family: var(--lcs-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
  margin: 0;
}

/* =====================================================================
   HERO 04 — THE DECISION REEL
   ===================================================================== */
.s9-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows:    repeat(3, 1fr);
  gap: 6px;
  background: #050403;
  border-radius: 12px;
  padding: 6px;
  min-height: 76vh;
  overflow: hidden;
}
.s9-reel__tile {
  position: relative;
  background: linear-gradient(180deg, #15120f, #0a0908);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.s9-reel__tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,255,61,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,255,61,0.025) 1px, transparent 1px);
  background-size: 14px 14px;
}
.s9-reel__label {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--lcs-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,230,200,0.4);
  z-index: 2;
}

/* Curve loop — SVG path draws and erases */
.s9-reel__svg {
  width: 76%; max-width: 320px; height: auto;
}
.s9-reel__svg path {
  fill: none;
  stroke: var(--lcs-accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  filter: drop-shadow(0 0 6px rgba(200,255,61,0.4));
  animation: s9-reel-draw 4.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes s9-reel-draw {
  0%   { stroke-dashoffset: 200; }
  45%  { stroke-dashoffset: 0; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

/* Kern loop — A and V breathe toward and away from each other */
.s9-reel__kern-a, .s9-reel__kern-v {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(58px, 8vw, 110px);
  color: #efe6c8;
  line-height: 1;
  animation: s9-reel-kern 3.6s ease-in-out infinite;
}
.s9-reel__kern-v { animation-delay: 1.8s; }
@keyframes s9-reel-kern {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-10px); }
}
.s9-reel__kern-v { transform-origin: left; animation-name: s9-reel-kern-v; }
@keyframes s9-reel-kern-v {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(10px); }
}

/* Grid loop — 4×3 cells light up sequentially like a wave */
.s9-reel__grid-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 76%; max-width: 280px;
  aspect-ratio: 4/3;
}
.s9-reel__grid-wrap > span {
  background: rgba(200,255,61,0.08);
  border-radius: 2px;
  animation: s9-reel-grid 3.6s ease-in-out infinite;
}
.s9-reel__grid-wrap > span:nth-child(1)  { animation-delay: 0.0s; }
.s9-reel__grid-wrap > span:nth-child(2)  { animation-delay: 0.1s; }
.s9-reel__grid-wrap > span:nth-child(3)  { animation-delay: 0.2s; }
.s9-reel__grid-wrap > span:nth-child(4)  { animation-delay: 0.3s; }
.s9-reel__grid-wrap > span:nth-child(5)  { animation-delay: 0.4s; }
.s9-reel__grid-wrap > span:nth-child(6)  { animation-delay: 0.5s; }
.s9-reel__grid-wrap > span:nth-child(7)  { animation-delay: 0.6s; }
.s9-reel__grid-wrap > span:nth-child(8)  { animation-delay: 0.7s; }
.s9-reel__grid-wrap > span:nth-child(9)  { animation-delay: 0.8s; }
.s9-reel__grid-wrap > span:nth-child(10) { animation-delay: 0.9s; }
.s9-reel__grid-wrap > span:nth-child(11) { animation-delay: 1.0s; }
.s9-reel__grid-wrap > span:nth-child(12) { animation-delay: 1.1s; }
@keyframes s9-reel-grid {
  0%, 60%, 100% { background: rgba(200,255,61,0.08); }
  30%           { background: var(--lcs-accent); box-shadow: 0 0 8px rgba(200,255,61,0.5); }
}

/* Ink loop — a single drop blooms */
.s9-reel__ink {
  display: block;
  width: clamp(40px, 6vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lcs-accent) 0%, var(--lcs-accent) 30%, transparent 70%);
  animation: s9-reel-ink 4s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes s9-reel-ink {
  0%, 100% { transform: scale(0); opacity: 1; }
  50%      { transform: scale(3); opacity: 0; }
}

/* Brand mark — center cell */
.s9-reel__tile--brand {
  background:
    radial-gradient(circle at 30% 30%, rgba(200,255,61,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #ece7df 0%, #d8d2c4 100%);
  flex-direction: column;
  gap: 6px;
}
.s9-reel__tile--brand::before { display: none; }
.s9-reel__brand-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.9;
  color: #0a0a0a;
}
.s9-reel__brand-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 20px);
  color: #0a0a0a;
  letter-spacing: -0.01em;
}
.s9-reel__brand-meta {
  font-family: var(--lcs-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
}

/* Lines loop — diagonal lines slide across */
.s9-reel__lines {
  position: relative;
  width: 76%; max-width: 220px;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.s9-reel__lines > span {
  position: absolute;
  left: -20%; right: -20%;
  height: 1px;
  background: var(--lcs-accent);
  transform: rotate(-18deg);
  animation: s9-reel-lines 4s linear infinite;
  opacity: 0.7;
}
.s9-reel__lines > span:nth-child(1) { top: 12%; animation-delay: 0s; }
.s9-reel__lines > span:nth-child(2) { top: 24%; animation-delay: 0.5s; }
.s9-reel__lines > span:nth-child(3) { top: 36%; animation-delay: 1.0s; }
.s9-reel__lines > span:nth-child(4) { top: 48%; animation-delay: 1.5s; }
.s9-reel__lines > span:nth-child(5) { top: 60%; animation-delay: 2.0s; }
.s9-reel__lines > span:nth-child(6) { top: 72%; animation-delay: 2.5s; }
.s9-reel__lines > span:nth-child(7) { top: 84%; animation-delay: 3.0s; }
.s9-reel__lines > span:nth-child(8) { top: 96%; animation-delay: 3.5s; }
@keyframes s9-reel-lines {
  0%   { transform: rotate(-18deg) translateX(-120%); opacity: 0; }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { transform: rotate(-18deg) translateX(120%); opacity: 0; }
}

/* Palette loop — 4 swatches cycle hues */
.s9-reel__palette {
  display: flex; gap: 8px;
  width: 76%; max-width: 240px;
}
.s9-reel__palette > span {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 4px;
  animation: s9-reel-palette 6s ease-in-out infinite;
}
.s9-reel__palette > span:nth-child(1) { background: #C8FF3D; animation-delay: 0s; }
.s9-reel__palette > span:nth-child(2) { background: #efe6c8; animation-delay: 0.4s; }
.s9-reel__palette > span:nth-child(3) { background: #ffb02a; animation-delay: 0.8s; }
.s9-reel__palette > span:nth-child(4) { background: #2a2723; animation-delay: 1.2s; }
@keyframes s9-reel-palette {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.06); filter: brightness(1.25); }
}

/* Counter loop — tabular number scrolls up */
.s9-reel__counter {
  font-family: var(--lcs-mono);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  color: var(--lcs-accent);
  text-shadow: 0 0 16px rgba(200,255,61,0.4);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .s9-reel { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 1fr); min-height: 100vh; }
}

/* =====================================================================
   HERO 05 — THE BRAND COMPASS
   ===================================================================== */
.s9-cmp {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4) 0%, transparent 60%),
    linear-gradient(180deg, #f0ebe0, #e0dbd1);
  border-radius: 12px;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 3vw, 40px);
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 56px);
  position: relative;
  isolation: isolate;
}
.s9-cmp::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(10,10,10,0.012) 0 1px, transparent 1px 4px);
}

.s9-cmp__rose {
  position: relative;
  width: clamp(280px, 56vh, 540px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.s9-cmp__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.s9-cmp__ring--outer {
  border: 1px solid rgba(10,10,10,0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),
    0 4px 16px rgba(0,0,0,0.06);
}
.s9-cmp__ring--inner {
  inset: 14%;
  border: 1px dashed rgba(10,10,10,0.25);
}
.s9-cmp__ring--core {
  inset: 30%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0%, transparent 50%),
    linear-gradient(160deg, #eee8db, #cfc7b1);
  border: 1px solid rgba(10,10,10,0.18);
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.08);
}

.s9-cmp__ticks {
  position: absolute; inset: 0;
  pointer-events: none;
}
.s9-cmp__ticks > span {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 8px;
  background: rgba(10,10,10,0.3);
  transform-origin: 50% 0;
  transform: rotate(var(--a, 0deg)) translate(-50%, calc(-1 * (clamp(140px, 28vh, 270px))));
}
.s9-cmp__ticks > span.is-major { height: 14px; background: rgba(10,10,10,0.55); }

.s9-cmp__principle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * (clamp(160px, 32vh, 310px)))) rotate(calc(-1 * var(--a)));
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 22px);
  color: rgba(10,10,10,0.4);
  white-space: nowrap;
  transition: color 300ms ease, transform 300ms ease, font-size 300ms ease;
}
.s9-cmp__principle.is-active {
  color: #0a0a0a;
  font-size: clamp(18px, 2vw, 28px);
}

.s9-cmp__pointer {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px;
  height: 80%;
  margin-top: -40%;
  margin-left: -2px;
  pointer-events: none;
  z-index: 3;
}
.s9-cmp__pointer-n,
.s9-cmp__pointer-s {
  position: absolute;
  left: 50%;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.s9-cmp__pointer-n {
  top: 0;
  transform: translateX(-50%);
  border-bottom: 38% solid #0a0a0a;
}
.s9-cmp__pointer-s {
  bottom: 0;
  transform: translateX(-50%);
  border-top: 38% solid rgba(10,10,10,0.25);
}

.s9-cmp__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 12vh, 120px);
  height: clamp(64px, 12vh, 120px);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(160deg, #8a8474, #4a4438);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.18),
    inset 0 -3px 4px rgba(0,0,0,0.5),
    0 4px 10px rgba(0,0,0,0.18);
  z-index: 4;
}
.s9-cmp__hub-9 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(36px, 7vh, 64px);
  color: #efe6c8;
  line-height: 1;
}

.s9-cmp__status {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  font-family: var(--lcs-mono);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  padding-top: 18px;
  border-top: 1px dashed rgba(10,10,10,0.18);
}
.s9-cmp__status-c { color: #0a0a0a; }
.s9-cmp__status em { font-style: normal; color: var(--lcs-accent); background: #0a0a0a; padding: 4px 8px; border-radius: 3px; }

/* =====================================================================
   HERO 06 — THE CINEMA CARD
   ===================================================================== */
.s9-cine {
  background: #050505;
  color: #efe6c8;
  border-radius: 12px;
  min-height: 80vh;
  padding: 28px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
}
.s9-cine::before {
  /* Film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.s9-cine::after {
  /* Soft vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.65) 100%);
}
.s9-cine__corner {
  position: absolute;
  font-family: var(--lcs-mono);
  font-size: 14px;
  color: rgba(239,230,200,0.4);
  z-index: 2;
}
.s9-cine__corner--tl { top: 18px; left:  18px; }
.s9-cine__corner--tr { top: 18px; right: 18px; }
.s9-cine__corner--bl { bottom: 18px; left:  18px; }
.s9-cine__corner--br { bottom: 18px; right: 18px; }

.s9-cine__top, .s9-cine__bot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--lcs-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,230,200,0.45);
  z-index: 1;
  padding: 0 24px;
}
.s9-cine__top em, .s9-cine__bot em { font-style: normal; color: #efe6c8; }
.s9-cine__rec {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff3d3d;
  margin-right: 6px;
  vertical-align: middle;
  animation: s9-cine-rec 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,61,61,0.6);
}
@keyframes s9-cine-rec { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.s9-cine__stage {
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 100px) 24px;
  z-index: 1;
}
.s9-cine__line {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  color: #efe6c8;
  margin: 0;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms var(--lcs-ease);
}
.s9-cine__line.is-in {
  opacity: 1;
  transform: translateY(0);
}
.s9-cine__line.is-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 600ms ease, transform 600ms var(--lcs-ease);
}

@media (prefers-reduced-motion: reduce) {
  .s9-rcpt__tape-line .caret,
  .s9-spec__char.is-morphing,
  .s9-drift__phrase,
  .s9-reel__svg path,
  .s9-reel__kern-a, .s9-reel__kern-v,
  .s9-reel__grid-wrap > span,
  .s9-reel__ink,
  .s9-reel__lines > span,
  .s9-reel__palette > span,
  .s9-cine__rec { animation: none !important; }
  .s9-cine__line { transition: none; opacity: 1; transform: none; }
}
