/* ==========================================================================
   YONDA — design tokens
   Palette derived from the Yonda Purple deck and extended for AA contrast.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink:        #0A0514;   /* page */
  --ink-2:      #130A26;   /* panel */
  --ink-3:      #1C1035;   /* raised panel */
  --line:       #2E1B54;   /* hairline */
  --line-soft:  #221340;

  /* Brand */
  --violet:      #8B3DFF;  /* primary */
  --violet-lift: #A96BFF;  /* hover / accent text */
  --violet-deep: #4B1C8C;
  --tally:       #21E27A;  /* on-air green, from the distribution diagram */
  --tally-dim:   #0F7A41;

  /* Type colours — all checked against --ink / --ink-2 for WCAG 2.2 AA */
  --text:       #F3EFFF;   /* 16.4:1 on --ink */
  --text-mid:   #C3B6E0;   /* 9.1:1  on --ink */
  --text-dim:   #9184B3;   /* 5.3:1  on --ink — body-size minimum */

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gap:   clamp(1rem, 2.2vw, 1.75rem);
  --pad-y: clamp(4.5rem, 9vw, 8.5rem);
  --max:   1240px;

  /* Signature: the notched corner from the deck's frames */
  --notch: 22px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--violet-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--tally);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--violet); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 3.9rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.05rem, 0.99rem + 0.45vw, 1.2rem); color: var(--text-mid); line-height: 1.55; }
.muted { color: var(--text-dim); }
.hl { color: var(--violet-lift); }
.tight { max-width: none; }  /* founder ruling 2026-08-27: intro text spans the full content row */

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
@media (min-width: 48rem) { .wrap { width: min(100% - 4rem, var(--max)); } }

.band { padding-block: var(--pad-y); position: relative; }
.band--tint { background: var(--ink-2); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--tally); color: #04120A; padding: 0.75rem 1.25rem;
  font: 600 0.875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* Eyebrow — the broadcast channel-strip label. Used to carry real routing
   information (source IDs, output counts), never as decoration. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--violet-lift);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--violet);
  flex: none;
}
.eyebrow--tally { color: var(--tally); }
.eyebrow--tally::before { background: var(--tally); }

/* Notched panel — lifted from the deck's clipped-corner frames */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.panel--flat { background: var(--ink-3); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-lift); color: #14061F; }

.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--violet-lift); color: var(--text); background: rgba(139, 61, 255, 0.12); }

.btn--tally { background: var(--tally); color: #04120A; }
.btn--tally:hover { background: #4BF098; color: #04120A; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.arrow { font-family: var(--mono); font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 5, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}

.logo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: 1.4rem; letter-spacing: 0.01em;
  color: var(--text); text-decoration: none;
}
.logo svg { width: 30px; height: auto; }
.logo:hover { color: var(--text); }

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; align-items: center; gap: 1.75rem; }
}
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--violet); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--violet); }

.head-cta { display: none; }
@media (min-width: 62rem) { .head-cta { display: inline-flex; padding: 0.65rem 1.15rem; font-size: 0.875rem; } }

.burger {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); color: var(--text);
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.7rem 0.9rem; cursor: pointer; min-height: 44px;
}
@media (min-width: 62rem) { .burger { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1.25rem; }
.mobile-nav a {
  display: block; padding: 0.9rem 0; min-height: 44px;
  color: var(--text); text-decoration: none; font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================================================
   Hero + the multiviewer (signature element)
   ========================================================================== */

.hero { padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 82% 8%, rgba(139, 61, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 60% 50% at 5% 92%, rgba(75, 28, 140, 0.28), transparent 70%);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; }
}
.hero h1 span { color: var(--violet-lift); display: block; }

/* Multiviewer: one ingest source fanned out to many labelled outputs.
   This is a diagram of the routing, not a screenshot of the product. */
.mv {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-2), #0D0620);
  padding: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.mv__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: 500 0.65rem/1 var(--mono); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 0.25rem 0.75rem;
}
.mv__live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--tally); }
.mv__dot { width: 7px; height: 7px; background: var(--tally); border-radius: 50%; animation: tally 2.2s ease-in-out infinite; }
@keyframes tally { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.mv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mv__cell {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #170C2C;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  opacity: 0;
  animation: mvIn 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mv__cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.42), rgba(33, 226, 122, 0.06) 60%, transparent);
  opacity: 0.55;
}
.mv__cell::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.mv__cell span {
  position: absolute; left: 4px; bottom: 3px; z-index: 2;
  font: 500 0.5rem/1.25 var(--mono); letter-spacing: 0.05em;
  color: rgba(243, 239, 255, 0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}
.mv__cell--src {
  animation-delay: 0ms;
  grid-column: span 2; grid-row: span 2; aspect-ratio: auto;
  border-color: var(--tally-dim);
}
.mv__cell--src::before { background: linear-gradient(140deg, rgba(139, 61, 255, 0.7), rgba(33, 226, 122, 0.14)); opacity: 0.8; }
.mv__cell--src span { color: var(--tally); font-size: 0.6rem; }

@keyframes mvIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mv__cell { animation: none; opacity: 1; }
  .mv__dot { animation: none; }
}

.mv__foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0.25rem 0.1rem; border-top: 1px solid var(--line-soft); margin-top: 0.75rem;
  font: 500 0.65rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.mv__foot b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Client strip
   ========================================================================== */

.clients { border-block: 1px solid var(--line-soft); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.clients__label {
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 1.4rem; text-align: center;
}
.clients__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.6rem); align-items: center;
}
.clients__row li {
  font-family: var(--display); font-weight: 700; font-stretch: 118%;
  font-size: clamp(0.8rem, 0.6rem + 0.5vw, 1rem);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid);
}
.clients__row img { height: clamp(20px, 3vw, 28px); width: auto; opacity: 0.85; }
.clients__row { list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 34rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .stats--4 { grid-template-columns: repeat(4, 1fr); } .stats--3 { grid-template-columns: repeat(3, 1fr); } }

.stat { background: var(--ink-2); padding: clamp(1.4rem, 3vw, 2rem); }
.stat b {
  display: block; font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.5rem); line-height: 0.95;
  letter-spacing: -0.035em; color: var(--text); margin-bottom: 0.5rem;
}
.stat span { display: block; font-size: 0.9rem; color: var(--text-dim); line-height: 1.35; }
.stat--tally b { color: var(--tally); }

/* ==========================================================================
   Card grids
   ========================================================================== */

.grid { display: grid; gap: var(--gap); }
@media (min-width: 44rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 44rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(1.4rem, 2.6vw, 1.9rem); }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-mid); font-size: 0.965rem; }
.card__tag {
  font: 500 0.66rem/1 var(--mono); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--violet-lift); display: block; margin-bottom: 0.9rem;
}
a.card { text-decoration: none; color: inherit; transition: border-color 140ms ease, background-color 140ms ease; }
a.card:hover { border-color: var(--violet); background: var(--ink-3); }

/* Ordered process — numbering used only where sequence is real */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(3, 1fr); } .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.steps li { background: var(--ink-2); padding: clamp(1.4rem, 2.8vw, 2rem); }
.steps li > b {
  display: block; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em;
  color: var(--tally); margin-bottom: 1.1rem;
}
.steps h3 { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem); margin-bottom: 0.5rem; }
.steps p { font-size: 0.93rem; color: var(--text-mid); margin: 0; }

/* ==========================================================================
   Case studies
   ========================================================================== */

.case { border: 1px solid var(--line); background: var(--ink-2); margin-bottom: var(--gap); }
.case__head { padding: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.case__client {
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-lift); margin: 0 0 0.9rem;
}
.case h2, .case h3 { margin-bottom: 0.75rem; }
.case__body { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 54rem) { .case__body { grid-template-columns: repeat(2, 1fr); } }
.case__body h4 {
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tally); margin: 0 0 0.85rem;
}
.case__body p { color: var(--text-mid); font-size: 0.965rem; margin: 0; }
.case .stats { border: 0; border-top: 1px solid var(--line); }

/* Image slot — designed skeleton until a real capture is dropped in.
   See README: the launch check fails if any slot is still empty. */
.slot {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink-3);
  border: 1px dashed var(--line); display: grid; place-items: center;
  font: 500 0.68rem/1.6 var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-dim); text-align: center; padding: 1rem;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Audience / feature lists
   ========================================================================== */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 1.85rem; color: var(--text-mid); }
.ticks li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--tally); font-family: var(--mono); font-size: 0.9rem;
}
.ticks b { color: var(--text); font-weight: 600; }

/* Split section */
.split { display: grid; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: repeat(2, 1fr); } .split--wide { grid-template-columns: 1.15fr 1fr; } }
.split--flip > *:first-child { order: 2; }
@media (max-width: 59.99rem) { .split--flip > *:first-child { order: 0; } }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band { background: linear-gradient(135deg, var(--violet-deep), #22103F 55%, var(--ink-2)); border-block: 1px solid var(--line); }
.cta-band .wrap { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 60rem) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: 0.4rem; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font: 600 0.8rem/1.3 var(--body); color: var(--text); }
.field .hint { font-size: 0.82rem; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  background: var(--ink); border: 1px solid var(--line);
  padding: 0.8rem 0.9rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet-lift); }
.field--row { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .field--row { grid-template-columns: repeat(2, 1fr); } }

.form-status { display: none; padding: 0.9rem 1.1rem; border: 1px solid; font-size: 0.93rem; }
.form-status[data-state="sending"] { display: block; border-color: var(--line); color: var(--text-mid); }
.form-status[data-state="ok"] { display: block; border-color: var(--tally-dim); color: var(--tally); background: rgba(33, 226, 122, 0.08); }
.form-status[data-state="error"] { display: block; border-color: #B4443F; color: #FF9A95; background: rgba(180, 68, 63, 0.1); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.25rem 0; min-height: 48px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--tally); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.4rem; color: var(--text-mid); max-width: 68ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; background: var(--ink-2); }
.site-foot__grid { display: grid; gap: 2.25rem; }
@media (min-width: 54rem) { .site-foot__grid { grid-template-columns: 1.4fr repeat(2, 1fr); } }
.site-foot h4 {
  font: 600 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 1.1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-foot a { color: var(--text-mid); text-decoration: none; font-size: 0.94rem; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot__base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-dim);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.mt-3 { margin-top: clamp(2rem, 4vw, 3rem); }
.mb-3 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scroll reveal — opt-in, disabled for reduced motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Client logo wall — real marks, mono white, alpha PNG
   ========================================================================== */

.logowall { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logowall li {
  background: var(--ink-2); display: grid; place-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.75rem) 1rem; min-height: 92px;
}
.logowall img {
  /* every logo ships on the same 440x150 canvas, optically weight-matched,
     so a single height keeps the wall balanced */
  height: clamp(42px, 5.2vw, 58px); width: auto;
  opacity: 0.74; filter: brightness(0) invert(1);
  transition: opacity 160ms ease;
}
.logowall li:hover img { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logowall img { transition: none; } }
.logowall { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 34rem) { .logowall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 52rem) { .logowall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 72rem) { .logowall { grid-template-columns: repeat(6, 1fr); } }

/* Wordmark in header / footer */
.logo img { height: 24px; width: auto; display: block; }
.site-foot .logo img { height: 26px; }

/* ==========================================================================
   Case study — key art masthead
   ========================================================================== */

.case { overflow: hidden; position: relative; scroll-margin-top: 88px; }

.case__art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 6.9;
  background: var(--ink-3);
  overflow: hidden;
}
@media (max-width: 44rem) { .case__art { aspect-ratio: 4 / 3; } }
.case__art img { width: 100%; height: 100%; object-fit: cover; }
.case__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,5,20,0.97) 2%, rgba(10,5,20,0.86) 26%, rgba(10,5,20,0.35) 60%, rgba(10,5,20,0.05) 88%),
    linear-gradient(to right, rgba(10,5,20,0.82), rgba(10,5,20,0.05) 58%);
}
.case__mark { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.case__mark img {
  height: clamp(48px, 5.6vw, 68px); width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,0.65));
}
.case__mark span {
  font: 700 clamp(0.95rem, 0.8rem + 0.5vw, 1.2rem)/1 var(--display);
  letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}
.case__over {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.case__over h2 { margin: 0; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.6); max-width: 22ch; }
.case__over .case__client { margin-bottom: 0.7rem; color: var(--tally); }

.case__intro { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.case__intro .lede { margin: 0; max-width: none; }

/* Case study index cards */
.caseindex { display: grid; gap: var(--gap); }
@media (min-width: 44rem) { .caseindex { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .caseindex { grid-template-columns: repeat(3, 1fr); } }

a.casecard {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--ink-2);
  transition: border-color 160ms ease, transform 160ms ease;
}
a.casecard:hover { border-color: var(--violet); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.casecard:hover { transform: none; } }
.casecard__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.casecard__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.22,1,0.36,1); }
a.casecard:hover .casecard__art img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .casecard__art img { transition: none; } a.casecard:hover .casecard__art img { transform: none; } }
.casecard__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,5,20,0.9), rgba(10,5,20,0.1) 60%);
}
.casecard__mark { position: absolute; z-index: 2; left: 1.1rem; bottom: 1.1rem; }
.casecard__mark img { height: 40px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.7)); }
.casecard__mark span { font: 700 0.95rem/1 var(--display); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.casecard__body { padding: 1.25rem 1.35rem 1.5rem; }
.casecard__body h3 { margin-bottom: 0.35rem; }
.casecard__body .headline {
  font-family: var(--display); font-weight: 800; font-stretch: 118%;
  font-size: 1.85rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--tally); display: block; margin-bottom: 0.3rem;
}
.casecard__body p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* Framed figure for product imagery */
.shot { margin: 0; border: 1px solid var(--line); background: var(--ink-3); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 0.85rem 1.1rem; border-top: 1px solid var(--line);
  font: 500 0.68rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}

/* ==========================================================================
   Utility classes — these replace inline style attributes, which a
   `style-src 'self'` CSP blocks outright. Never reintroduce inline styles.
   ========================================================================== */

.pt-0        { padding-top: 0; }
.measure-36  { max-width: 36ch; }
.measure-60  { max-width: none; }
.measure-62  { max-width: none; }
.measure-64  { max-width: none; }
.measure-74  { max-width: none; }
.rolelabel   { margin: 0.4rem 0 0.9rem; }
.shot-stack  { margin: 0 0 1.2rem; }
.card--accent { border-color: var(--violet-deep); }
.clients__row--left { justify-content: flex-start; gap: 1.2rem 1.8rem; }
.fs-sm       { font-size: 0.92rem; }
.offscreen   { position: absolute; left: -9999px; }

/* ==========================================================================
   Shift ledger — "What changes" on /fractionalised-distribution/
   Broadcast (dim) -> network (lit), row by row. The >> arrow is the brand motif.
   ========================================================================== */

.shift { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.shift__head, .shift__row { display: grid; grid-template-columns: 1fr 4rem 1fr; align-items: center; background: var(--ink-2); }
.shift__head { background: var(--ink-3); }
.shift__head span { padding: 0.95rem 1.5rem; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.shift__head span:first-child { color: var(--text-dim); }
.shift__head span:last-child { color: var(--tally); }
.shift__was, .shift__now { padding: 1.2rem 1.5rem; font-size: 0.95rem; line-height: 1.55; }
.shift__was { color: var(--text-dim); }
.shift__now { color: var(--text-mid); }
.shift__now b { color: var(--text); }
.shift__arrow { display: flex; align-items: center; justify-content: center; color: var(--violet-lift); font: 700 0.85rem/1 var(--mono); letter-spacing: -0.05em; }
@media (max-width: 47.99rem) {
  .shift__head { display: none; }
  .shift__row { grid-template-columns: 1fr; }
  .shift__was { padding-bottom: 0.35rem; }
  .shift__arrow { justify-content: flex-start; padding: 0.15rem 1.5rem; }
  .shift__now { padding-top: 0.35rem; }
}

/* ==========================================================================
   Access-gate mock — /private-events/. Replaces a low-res screenshot with a
   crisp, token-native mock in the same idiom as the homepage multiviewer.
   ========================================================================== */

.shot--narrow { max-width: 56rem; margin-inline: auto; }

.gate { background: var(--ink-2); }
.gate__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line);
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; color: var(--text-dim); }
.gate__bar b { color: var(--tally); font-weight: 600; }
.gate__stage { position: relative; overflow: hidden; padding: clamp(2.2rem, 6vw, 3.6rem) 1.2rem; }
.gate__wm { position: absolute; inset: -50%; display: flex; flex-wrap: wrap; gap: 2.6rem 3.2rem;
  transform: rotate(-18deg); pointer-events: none;
  font: 600 0.62rem/1 var(--mono); letter-spacing: 0.22em; color: rgba(169, 107, 255, 0.10);
  align-content: space-between; justify-content: space-between; }
.gate__card { position: relative; max-width: 24rem; margin-inline: auto;
  background: var(--ink-3); border: 1px solid var(--line); padding: 1.5rem 1.6rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.gate__brand { font: 600 0.66rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-lift); margin: 0 0 1.1rem; }
.gate__field { margin-bottom: 0.85rem; }
.gate__field span { display: block; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.4rem; }
.gate__field i { display: block; font-style: normal; font-size: 0.88rem; color: var(--text-mid);
  background: var(--ink); border: 1px solid var(--line); padding: 0.6rem 0.75rem; }
.gate__field i.blank { color: var(--text-dim); letter-spacing: 0.3em; }
.gate__cta { display: inline-block; margin-top: 0.4rem; background: var(--violet); color: #fff;
  font-weight: 600; font-size: 0.88rem; padding: 0.6rem 1.1rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.gate__hint { margin: 1rem 0 0; font-size: 0.78rem; color: var(--text-dim); }
.gate__foot { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem;
  padding: 0.75rem 1.1rem; border-top: 1px solid var(--line);
  font: 500 0.68rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.gate__foot b { color: var(--text); font-weight: 600; }
