/* =====================================================================
   ETS PRESTIGE — CINEMATIC LAYER (v4, 2026-09-26)
   Loaded after prestige.css + prestige-content.css (header.php).
   New files only: nothing here edits styles.css or prestige.css.
   The homepage hero is intentionally untouched (concept-car hero stays).

   0  scene primitives (textures, lazy video, scrims)
   1  proof strip labels          6  academy 15-cell grid
   2  ledger + cost-of-change     7  expert witness band
   3  legacy timeline + book      8  industries heading fix
   4  instruments bench + widgets 9  shared inner-page bands (buyers)
   5  adoption band               10 dark mode · 11 mobile · 12 motion
   ===================================================================== */

/* ---------- 0. SCENE PRIMITIVES ---------- */
.cine-scene { position: relative; isolation: isolate; overflow: hidden; }
.cine-bg {
  position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; z-index: -2;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: var(--cine-bg-o, 0.2); pointer-events: none; will-change: transform;
}
.cine-bg--chladni { background-image: url("/assets/img/cine/tex-chladni.jpg"); }
.cine-bg--topographic { background-image: url("/assets/img/cine/tex-topographic.jpg"); }
.cine-bg--thermal { background-image: url("/assets/img/cine/tex-thermal.jpg"); }
.cine-bg--reaction { background-image: url("/assets/img/cine/tex-reaction-diffusion.jpg"); }
.cine-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: var(--cine-video-o, 0.36); filter: saturate(0.75) contrast(1.05); pointer-events: none;
}
.cine-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cine-js .cine-fade { opacity: 0; transition: opacity 0.9s var(--ets-ease-out); }
.cine-js .cine-fade.is-in { opacity: 1; }

/* Existing dark bands become texture hosts */
.why-cad-lies.ledger { isolation: isolate; }
.why-cad-lies.ledger .cine-bg { --cine-bg-o: 0.16; }
.chatets-hero.cx { position: relative; isolation: isolate; overflow: hidden; }
.chatets-hero.cx .cine-bg { --cine-bg-o: 0.14; background-position: 80% 50%; }

/* ---------- 1. PROOF STRIP ---------- */
.proof-label {
  text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #64748b; margin: 0 auto 1.4rem; padding: 0 1.25rem;
}
.proof-label b { color: #0f766e; font-weight: 600; }

/* ---------- 2. LEDGER + COST-OF-CHANGE CURVE ---------- */
.ledger-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: 2.75rem;
}
.ledger-top .ledger-head { margin-bottom: 0; max-width: none; }
.coc {
  margin: 0; padding: 1.25rem 1.25rem 1rem; border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-card); background: rgba(8, 14, 26, 0.6); backdrop-filter: blur(6px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.coc svg { display: block; width: 100%; height: auto; overflow: visible; }
.coc-grid line { stroke: rgba(148, 163, 184, 0.16); stroke-dasharray: 3 5; }
.coc-axis { stroke: rgba(148, 163, 184, 0.35); stroke-width: 1; }
.coc-line { fill: none; stroke: url(#cocStroke); stroke-width: 3; stroke-linecap: round; }
.coc-area { fill: url(#cocFill); }
.cine-js .coc-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s var(--ets-ease-out); }
.cine-js .coc-area, .cine-js .coc-pt { opacity: 0; transition: opacity 0.8s var(--ets-ease-out); }
.cine-js .coc.is-in .coc-line { stroke-dashoffset: 0; }
.cine-js .coc.is-in .coc-area { opacity: 1; transition-delay: 0.9s; }
.cine-js .coc.is-in .coc-pt--a { opacity: 1; transition-delay: 0.5s; }
.cine-js .coc.is-in .coc-pt--b { opacity: 1; transition-delay: 1.7s; }
.coc-pt--a circle { fill: #5eead4; } .coc-pt--b circle { fill: #fb7185; }
.coc-pt .halo { opacity: 0.22; }
.coc text { font-family: var(--font-mono); font-size: 11px; fill: #64748b; letter-spacing: 0.08em; }
.coc-legend { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.coc-legend li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.86rem; color: #94a3b8; line-height: 1.45; }
.coc-legend li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; transform: translateY(-0.05rem); }
.coc-legend li:first-child::before { background: #5eead4; box-shadow: 0 0 10px rgba(94, 234, 212, 0.6); }
.coc-legend li:last-child::before { background: #fb7185; box-shadow: 0 0 10px rgba(251, 113, 133, 0.6); }
.coc-legend b { font-family: var(--font-mono); font-weight: 600; color: #f1f5f9; }
.coc figcaption { font-size: 0.74rem; color: #5b6b80; line-height: 1.5; margin-top: 0.75rem; }

/* ---------- 3. LEGACY TIMELINE + THE BOOK ---------- */
.legacy-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 5rem);
  align-items: end; margin-bottom: 4rem;
}
.legacy-top .legacy-head { margin-bottom: 0; }
.legacy-book {
  margin: 0; display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 1.25rem; align-items: end;
  max-width: 25rem; padding: 1.25rem; border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-card); background: rgba(5, 9, 15, 0.62); backdrop-filter: blur(6px);
}
.legacy-book img {
  width: 138px; height: auto; border-radius: 3px; transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.legacy-book figcaption { font-size: 0.84rem; color: #94a3b8; line-height: 1.55; }
.legacy-book figcaption b { display: block; font-family: var(--font-family-heading); color: #f1f5f9; font-weight: 500; font-size: 1.02rem; line-height: 1.3; margin-bottom: 0.4rem; }
.legacy-book a { display: block; color: #5eead4; font-weight: 600; font-size: 0.84rem; margin-top: 0.55rem; text-decoration: none; }
.legacy-book a:hover { text-decoration: underline; }

/* ---------- 4. INSTRUMENTS BENCH + WIDGETS ---------- */
.bench {
  padding: var(--space-section) 0; color: #cbd5e1;
  background: radial-gradient(900px 500px at 12% 0%, rgba(0, 179, 166, 0.12), transparent 60%), #060b14;
}
.bench .cine-bg { --cine-bg-o: 0.34; background-size: min(980px, 80vw) auto; background-position: 108% 45%; }
.bench-scrim { background: linear-gradient(90deg, #060b14 28%, rgba(6, 11, 20, 0.7) 62%, rgba(6, 11, 20, 0.35) 100%); }
.bench-head { max-width: 48rem; margin-bottom: 2.25rem; }
.bench h2 { color: #fff; margin: 0 0 1rem; }
.bench-head > p:last-child { color: #94a3b8; font-size: var(--lede-size); line-height: 1.75; margin: 0; }
.bench-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.bench-tab {
  appearance: none; -webkit-appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.92rem/1 var(--font-family-base); color: #94a3b8; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.22); border-radius: var(--radius-pill); padding: 0.8rem 1.15rem;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.bench-tab small { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #5b6b80; }
.bench-tab:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, 0.45); }
.bench-tab[aria-selected="true"] { color: #fff; border-color: rgba(94, 234, 212, 0.55); background: rgba(0, 179, 166, 0.13); }
.bench-tab[aria-selected="true"] small { color: #5eead4; }
.bench-panel { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bench-panel[hidden] { display: none !important; }
.bench:not(.js-tabs) .bench-panel + .bench-panel { margin-top: 3.5rem; }
.bench-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5eead4; }
.bench-copy h3 { font-family: var(--font-family-heading); color: #fff; font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.2; margin: 0.7rem 0 0.9rem; letter-spacing: -0.015em; }
.bench-copy p { color: #94a3b8; line-height: 1.72; margin: 0 0 1.25rem; }
.bench-link { color: #5eead4; font-weight: 600; text-decoration: none; }
.bench-link:hover { text-decoration: underline; }

.wg {
  border-radius: var(--radius-card); background: rgba(11, 18, 32, 0.86); color: #cbd5e1; overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2); backdrop-filter: blur(8px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 90px -40px rgba(20, 184, 166, 0.35);
}
.wg-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14); background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b;
}
.wg-live { color: #5eead4; display: inline-flex; align-items: center; gap: 0.45rem; }
.wg-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 10px #5eead4; animation: wgPulse 2.2s ease-in-out infinite; }
@keyframes wgPulse { 50% { opacity: 0.35; } }
.wg-body { padding: 1.25rem; display: grid; gap: 1.1rem; }
.wg-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem 1.4rem; }
.wg-controls label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 0.4rem; font-size: 0.78rem; color: #94a3b8; }
.wg-controls output { font-family: var(--font-mono); font-size: 0.8rem; color: #f1f5f9; font-variant-numeric: tabular-nums; }
.wg-controls input[type="range"] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: #14b8a6; height: 1.25rem; cursor: pointer; }
.wg-controls select {
  grid-column: 1 / -1; width: 100%; height: 2.4rem; padding: 0 0.75rem; border-radius: 10px; cursor: pointer;
  background: #0b1322; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.28); font: 500 0.85rem var(--font-family-base);
}
.wg-read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(148, 163, 184, 0.14); border-radius: var(--radius-inner); overflow: hidden; }
.wg-read div { background: #0b1322; padding: 0.8rem 0.9rem; }
.wg-read dt { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin: 0 0 0.35rem; }
.wg-read dd { margin: 0; font-family: var(--font-mono); font-size: 1.12rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-read div:first-child dd { color: #5eead4; }
.wg-warn { font-size: 0.8rem; color: #fbbf24; margin: 0; min-height: 1.2em; }
.wg-fine { font-size: 0.74rem; line-height: 1.6; color: #64748b; margin: 0; }
.wg-beam-svg { display: block; width: 100%; height: auto; border-radius: var(--radius-inner); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)); border: 1px solid rgba(148, 163, 184, 0.1); }
.wg-beam-svg .wall { fill: url(#wgHatch); stroke: rgba(148, 163, 184, 0.4); }
.wg-beam-svg .ghost { fill: none; stroke: rgba(148, 163, 184, 0.22); stroke-dasharray: 4 5; }
.wg-beam-path { fill: none; stroke: #2dd4bf; stroke-linecap: butt; filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.45)); }
.wg-beam-load line, .wg-beam-load path { stroke: #fb7185; fill: #fb7185; }
.wg-beam-load text { font-family: var(--font-mono); font-size: 10px; fill: #fda4af; stroke: none; }

@property --v { syntax: "<number>"; inherits: true; initial-value: 0; }
.wg-dfm-body { grid-template-columns: 150px minmax(0, 1fr); align-items: center; column-gap: 1.5rem; }
.wg-dfm-body .wg-checks, .wg-dfm-body .wg-fine { grid-column: 1 / -1; }
.wg-dial {
  --v: 0; --dial-c: #14b8a6; width: 138px; height: 138px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--dial-c) calc(var(--v) * 1%), rgba(148, 163, 184, 0.14) 0);
  transition: --v 0.6s var(--ets-ease-out); box-shadow: 0 0 40px -12px var(--dial-c);
}
.wg-dial::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #0b1322; }
.wg-dial-in { position: relative; display: grid; justify-items: center; line-height: 1; }
.wg-dial-in b { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.wg-dial-in small { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin-top: 0.4rem; }
.wg-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.wg-checks li {
  display: grid; grid-template-columns: auto 8.2rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; font-size: 0.85rem;
  padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(148, 163, 184, 0.1);
}
.wg-checks i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #64748b; align-self: center; }
.wg-checks .k { color: #e2e8f0; font-weight: 600; }
.wg-checks .m { color: #94a3b8; }
.wg-checks li[data-s="pass"] i { background: #2dd4bf; box-shadow: 0 0 8px rgba(45, 212, 191, 0.6); }
.wg-checks li[data-s="warn"] i { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.wg-checks li[data-s="fail"] i { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.6); }
.wg-checks li[data-s="fail"] { border-color: rgba(251, 113, 133, 0.28); }

.wg-mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(148, 163, 184, 0.14); border-radius: var(--radius-inner); overflow: hidden; }
.wg-mat {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; cursor: pointer; text-align: left; display: grid; gap: 0.25rem;
  background: #0b1322; color: #e2e8f0; padding: 0.85rem 0.9rem; font: inherit; transition: background 0.2s, box-shadow 0.2s;
}
.wg-mat b { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.wg-mat span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.wg-mat:hover { background: #101a2c; }
.wg-mat[aria-pressed="true"] { background: rgba(0, 179, 166, 0.16); box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.55); }
.wg-mat[aria-pressed="true"] span { color: #5eead4; }
.wg-mat-detail { padding: 1rem 1.15rem; border-radius: var(--radius-inner); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(148, 163, 184, 0.14); min-height: 8.5rem; }
.wg-mat-detail h4 { font-family: var(--font-family-heading); color: #fff; font-size: 1.15rem; font-weight: 500; margin: 0 0 0.6rem; }
.wg-mat-detail p { margin: 0.3rem 0; font-size: 0.88rem; line-height: 1.55; color: #a3b1c2; display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.75rem; }
.wg-mat-detail p b { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; padding-top: 0.2rem; }

/* ---------- 5. ADOPTION BAND ---------- */
.adopt { padding: calc(var(--space-section) * 0.85) 0; background: #fff; }
.adopt .suite-ladder { margin-top: 0; }

/* ---------- 6. ACADEMY: 14 tracks + catalog cell = 15 (5x3 / 3x5 / 2x7+1) ---------- */
.ac-grid.ac-grid--v4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ac-track--fs { background: #0a1220; }
.ac-track--fs:hover { background: #111c2e; }
.ac-track--fs .ac-name { color: #fff; }
.ac-track--fs .ac-code { color: #5eead4; border-color: rgba(94, 234, 212, 0.4); }
.ac-track--all { background: linear-gradient(135deg, #0e9f95, #007c89); }
.ac-track--all:hover { background: linear-gradient(135deg, #14b8a6, #0e7490); }
.ac-track--all .ac-name { color: #fff; font-weight: 600; }
.ac-track--all .ac-n { color: rgba(255, 255, 255, 0.82); }
.ac-track--all .ac-code { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ---------- 7. EXPERT WITNESS BAND ---------- */
.ew { padding: var(--space-section) 0 calc(var(--space-section) * 0.7); background: #04070c; color: #cbd5e1; }
.ew .cine-video { --cine-video-o: 0.46; }
.ew-scrim {
  background: linear-gradient(90deg, #04070c 0%, rgba(4, 7, 12, 0.93) 38%, rgba(4, 7, 12, 0.5) 100%),
              linear-gradient(180deg, #04070c 0%, transparent 22%, transparent 78%, #04070c 100%);
}
.ew-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ew h2 { color: #fff; margin: 0 0 1.25rem; font-size: var(--h2-size-band); line-height: 1.08; }
.ew-lede { font-size: var(--lede-size); line-height: 1.75; color: #a3b1c2; margin: 0 0 2rem; }
.ew-checks { list-style: none; padding: 0; margin: 0 0 2.25rem; border-top: 1px solid rgba(148, 163, 184, 0.16); }
.ew-checks li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); font-size: 0.93rem; line-height: 1.55; color: #b6c3d4; }
.ew-checks li span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5eead4; padding-top: 0.22rem; }
.ew-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--btn-gap); }
.ew .btn-outline { color: #e2e8f0; background: rgba(255, 255, 255, 0.04); border-color: rgba(226, 232, 240, 0.28); }
.ew .btn-outline:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.ew-files { position: relative; height: clamp(440px, 40vw, 560px); }
.ew-file {
  position: absolute; margin: 0; background: #f3f0e8; padding: 10px 10px 36px; border-radius: 3px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.55s var(--ets-ease-out), box-shadow 0.55s var(--ets-ease-out), opacity 0.9s var(--ets-ease-out);
}
.ew-file img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; filter: contrast(1.03) saturate(0.9); }
.ew-file figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 11px; display: flex; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #334155;
}
.ew-file figcaption b { color: #b91c1c; font-weight: 600; }
.ew-file--a { width: 50%; left: 0; top: 8%; transform: rotate(-4deg); z-index: 1; }
.ew-file--b { width: 47%; right: 1%; top: 0; transform: rotate(3deg); z-index: 2; }
.ew-file--c { width: 49%; left: 24%; bottom: 0; transform: rotate(-1.2deg); z-index: 3; }
.ew-file:hover { transform: rotate(0deg) scale(1.04); z-index: 5; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 1); }
.ew-fine { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #475569; margin: 2.5rem 0 0; }

/* ---------- 8. INDUSTRIES ---------- */
.markets-home .ets-eyebrow, .markets-home h2, .markets-home .markets-home-sub { text-align: center; margin-left: auto; margin-right: auto; }
.markets-home .markets-home-sub { max-width: 46rem; }

/* ---------- 9. SHARED INNER-PAGE BANDS ---------- */
.buyers { padding: var(--space-section) 0; background: var(--ets-tint); border-top: 1px solid var(--hair-dark); }
.buyers-head { max-width: 48rem; margin: 0 auto 2.75rem; text-align: center; }
.buyers-head h2 { margin: 0 0 1rem; color: #0b1220; }
.buyers-head > p:last-child { color: #475569; font-size: var(--lede-size); line-height: 1.72; margin: 0; }
.buyers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-card-gap); }
.buyer { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ets-card-border); border-radius: var(--radius-card); padding: var(--space-card); transition: transform 0.35s var(--ets-ease-out), box-shadow 0.35s, border-color 0.35s; }
.buyer:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -30px rgba(15, 23, 42, 0.3); border-color: rgba(0, 124, 137, 0.35); }
.buyer-role { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-mid); }
.buyer h3 { font-size: 1.18rem; line-height: 1.3; margin: 0.65rem 0 0.65rem; color: #0b1220; font-weight: 600; }
.buyer p { font-size: 0.9rem; line-height: 1.62; color: #475569; margin: 0 0 1.1rem; flex: 1; }
.buyer a { font-weight: 600; color: #0f766e; text-decoration: none; font-size: 0.92rem; }
.buyer a:hover { text-decoration: underline; }
.cine-band { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-section) 0; background: #070e1a; color: #cbd5e1; }
.cine-band h2 { color: #fff; }
.cine-band p { color: #94a3b8; }

/* ---------- 10. DARK MODE (html.theme-dark) ---------- */
.theme-dark .suite, .theme-dark .adopt, .theme-dark .experts, .theme-dark .markets-home { background: #0b111c; }
.theme-dark .buyers { background: #0d1420; border-color: rgba(148, 163, 184, 0.12); }
.theme-dark .suite-head h2, .theme-dark .experts-head h2, .theme-dark .markets-home h2, .theme-dark .ac-head h2,
.theme-dark .buyers-head h2, .theme-dark .buyer h3, .theme-dark .expert-card h3, .theme-dark .suite-ladder li strong,
.theme-dark .market-home-card h3 { color: #f1f5f9; }
.theme-dark .suite-head > p:last-child, .theme-dark .experts-lede, .theme-dark .expert-card > p:not(.expert-price),
.theme-dark .suite-ladder li, .theme-dark .suite-ladder-cta p, .theme-dark .markets-home-sub, .theme-dark .buyer p,
.theme-dark .buyers-head > p:last-child, .theme-dark .ac-head > p, .theme-dark .market-home-card p { color: #94a3b8; }
.theme-dark .expert-card, .theme-dark .buyer, .theme-dark .market-home-card { background: #131b29; border-color: rgba(148, 163, 184, 0.16); }
.theme-dark .suite-ladder { background: #111827; border-color: rgba(148, 163, 184, 0.14); }
.theme-dark .homepage-marquee--clients { background: #0b111c; border-color: rgba(148, 163, 184, 0.12); }
.theme-dark .homepage-marquee__item--client { background: rgba(255, 255, 255, 0.92) !important; border-radius: 10px; }
.theme-dark .homepage-marquee--quotes { background: #0d1420; }
.theme-dark .homepage-marquee__item--quote { background: #131b29 !important; border-color: rgba(148, 163, 184, 0.16) !important; }
.theme-dark .homepage-marquee__quote { color: #e2e8f0; }
.theme-dark .proof-label { color: #94a3b8; }
.theme-dark .proof-label b, .theme-dark .buyer a, .theme-dark .expert-cta, .theme-dark .suite-cta { color: #5eead4; }

/* ---------- 11. MOBILE (768 / 390) ---------- */
@media (max-width: 1099px) { .ac-grid.ac-grid--v4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .buyers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ledger-top, .legacy-top, .bench-panel, .ew-grid { grid-template-columns: minmax(0, 1fr); }
  .legacy-book { max-width: none; }
  .wg-read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-files { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .ew-file { position: relative; width: auto; left: auto; right: auto; top: auto; bottom: auto; padding: 6px 6px 26px; }
  .ew-file--a { transform: rotate(-2deg); } .ew-file--b { transform: rotate(1.5deg); } .ew-file--c { transform: rotate(-1deg); }
  .ew-file figcaption { left: 7px; right: 7px; bottom: 7px; font-size: 0.5rem; }
  .ew-file figcaption span { display: none; }
}
@media (max-width: 640px) {
  .ac-grid.ac-grid--v4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid--v4 .ac-track--all { grid-column: 1 / -1; }
  .ac-grid--v4 .ac-track { padding: 1rem 0.9rem; column-gap: 0.7rem; }
  .ac-grid--v4 .ac-name { font-size: 0.9rem; }
  .ac-grid--v4 .ac-code { width: 1.9rem; height: 1.9rem; font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .buyers-grid { grid-template-columns: minmax(0, 1fr); }
  .wg-body { padding: 1rem; }
  .wg-controls { grid-template-columns: minmax(0, 1fr); }
  .wg-dfm-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .wg-dfm-body .wg-controls, .wg-dfm-body .wg-checks, .wg-dfm-body .wg-fine { width: 100%; }
  .wg-checks li { grid-template-columns: auto minmax(0, 1fr); }
  .wg-checks .m { grid-column: 2; }
  .wg-mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wg-mat-detail p { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .bench-tab { flex: 1 1 auto; justify-content: center; padding: 0.75rem 0.8rem; }
  .bench-tab small { display: none; }
  .legacy-book { grid-template-columns: 92px minmax(0, 1fr); }
  .legacy-book img { width: 92px; }
  .ew-checks li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .ew-actions .btn { width: 100%; }
}

/* ---------- 12. MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .cine-js .coc-line { stroke-dashoffset: 0 !important; transition: none !important; }
  .cine-js .coc-area, .cine-js .coc-pt, .cine-js .cine-fade { opacity: 1 !important; transition: none !important; }
  .cine-bg { transform: none !important; }
  .wg-live::before { animation: none; }
  .wg-dial, .ew-file, .buyer { transition: none; }
}

/* v4 extras */
.bench:not(.js-tabs) .bench-tabs { display: none; }
.wg-controls .wg-wide { grid-column: 1 / -1; }

/* v4 fix 2 */
.ew-checks li p { margin: 0; }
.ledger-top .ledger-eyebrow { letter-spacing: 0.12em; line-height: 1.6; }
.suite-status { white-space: nowrap; }
@media (min-width: 1200px) { .suite-card:last-child .suite-status { white-space: normal; } }

/* v4 inner heroes */
.chatets-splash-hero, .eb-hero, .uap-hero, .pf-hero, .mk-hero, .mk-index-hero, .future-hero, .dr-hero, .retainer-hero, .academy-hero, .ai-hero, .ev-hero { position: relative; isolation: isolate; overflow: hidden; }
.chatets-splash-hero::after, .eb-hero::after, .uap-hero::after, .pf-hero::after, .mk-hero::after, .mk-index-hero::after, .future-hero::after, .dr-hero::after, .retainer-hero::after, .academy-hero::after, .ai-hero::after, .ev-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-position: 72% 50%; background-size: cover; mix-blend-mode: screen; opacity: 0.3; -webkit-mask-image: radial-gradient(120% 90% at 75% 50%, #000 20%, transparent 78%); mask-image: radial-gradient(120% 90% at 75% 50%, #000 20%, transparent 78%); }
.chatets-splash-hero > .container, .eb-hero > .container, .uap-hero > .container, .pf-hero > .container, .mk-hero > .container, .mk-index-hero > .container, .future-hero > .container, .dr-hero > .container, .retainer-hero > .container, .academy-hero > .container, .ai-hero > .container, .ev-hero > .container { position: relative; z-index: 1; }
.chatets-splash-hero::after { background-image: url("/assets/img/cine/tex-reaction-diffusion.jpg"); }
.eb-hero::after { background-image: url("/assets/img/cine/tex-thermal.jpg"); }
.uap-hero::after { background-image: url("/assets/img/cine/tex-chladni.jpg"); }
.pf-hero::after { background-image: url("/assets/img/cine/tex-topographic.jpg"); }
.mk-hero::after { background-image: url("/assets/img/cine/tex-topographic.jpg"); }
.mk-index-hero::after { background-image: url("/assets/img/cine/tex-topographic.jpg"); }
.future-hero::after { background-image: url("/assets/img/cine/tex-chladni.jpg"); }
.dr-hero::after { background-image: url("/assets/img/cine/tex-thermal.jpg"); }
.retainer-hero::after { background-image: url("/assets/img/cine/tex-topographic.jpg"); }
.academy-hero::after { background-image: url("/assets/img/cine/tex-chladni.jpg"); }
.ai-hero::after { background-image: url("/assets/img/cine/tex-reaction-diffusion.jpg"); }
.ev-hero::after { background-image: url("/assets/img/cine/tex-thermal.jpg"); }
.bench-panel .wg { width: 100%; }
.chatets-cta + .buyers, .buyers + .cta-section { border-top: 0; }

/* v4 fix 3: dark-mode suite cards keep the list tight (legacy .theme-dark .card rules stretch li) */
.theme-dark .suite-card ul { align-content: start; }
.theme-dark .suite-card li { color: #94a3b8; }
.theme-dark .suite-card:last-child { background: #04070c; border-color: rgba(94,234,212,.28); }
.suite-card ul { align-content: start; }

/* v4 fix 4 */
@media (max-width: 560px) { .coc text { font-size: 17px; } .coc-pt .halo { r: 18; } .ledger-eyebrow { font-size: .66rem; } }
