/* Dubme — cinematic investor site
   Deep-tech factory × media. Restraint, motion, type. */

:root {
  --bg: #05070A;
  --navy: #0B1830;
  --cyan: #1FD8C4;
  --steel: #AEC0D6;
  --label: #7F93AD;
  --white: #F4F7FA;
  --gold: #C9A56A;
  --line: rgba(174, 192, 214, 0.12);
  --serif: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --wide: 1280px;
  --header: 4.35rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header) + 0.85rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--steel);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

#os,
#distribution,
#production,
#factory,
#signal,
#output,
#channels,
#news,
#contact {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ——— Grain (always on, including reduced motion) ——— */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 10, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 26px;
  width: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.nav-burger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.15rem;
}
.site-nav a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--label);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: var(--white); }
.site-nav a.nav-cta { color: var(--cyan); }
.site-nav a.nav-cta:hover { color: var(--white); }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

/* ——— Hero ——— */
.hero {
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 2rem) 0 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, transparent 30%, rgba(5, 7, 10, 0.45) 100%),
    linear-gradient(to bottom, rgba(5, 7, 10, 0.4) 0%, transparent 22%, transparent 70%, rgba(5, 7, 10, 0.88) 100%);
}

.hero-inner {
  width: min(100% - (var(--pad) * 2), var(--wide));
  margin: 0 auto auto;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
  z-index: 3;
}

canvas.hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6.4vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0;
}
.hero h1 .line {
  display: block;
}
.hero h1 .amp {
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

.hero-sub {
  margin: 1.6rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  font-weight: 300;
  color: var(--steel);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-top: 2.6rem;
}
.cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid var(--cyan);
  padding: 0.15rem 0 0.4rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta:hover,
.cta:focus-visible { color: var(--cyan); }
.cta-ghost {
  border-bottom-color: rgba(174, 192, 214, 0.3);
  color: var(--steel);
}
.cta-ghost:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Load rise */
.hero h1 .line {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.28s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.44s; }
.hero-sub {
  opacity: 0;
  transform: translateY(0.9rem);
  animation: rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.68s forwards;
}
.hero-cta.line-later {
  opacity: 0;
  transform: translateY(0.7rem);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Language ticker */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.ticker-track span {
  flex: none;
  padding: 0.95rem 1.65rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--label);
  opacity: 0.55;
  white-space: nowrap;
}
.ticker-track span:nth-child(odd) {
  color: var(--cyan);
  opacity: 0.38;
  letter-spacing: 0.32em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— The machine ——— */
.machine {
  position: relative;
  padding: clamp(6.5rem, 16vw, 11rem) var(--pad);
  overflow: hidden;
  background: var(--bg);
}
.machine::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(52vw, 460px);
  height: min(52vw, 460px);
  background: url("/assets/rings.png") center / contain no-repeat;
  opacity: 0.055;
  transform: translate(-50%, -50%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.045; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.08; }
}

.whisper {
  margin: 0 auto 4.5rem;
  text-align: center;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.01em;
}

.machine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(100%, var(--wide));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.pillar {
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}
.pillar:first-child {
  border-right: 1px solid var(--line);
}
.pillar h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.pillar p {
  margin: 1.15rem 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.ghost {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(31, 216, 196, 0.5);
}
.ghost img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ——— Signal ——— */
.signal {
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad);
  background: #070b12;
  border-block: 1px solid var(--line);
}
.signal-row {
  width: min(100%, 1400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.stat {
  text-align: center;
  padding: 0.4rem 0.75rem;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.2vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin: 0 0 0.7rem;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--label);
}

/* ——— Output / Babel Alpha slate ——— */
.output {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: var(--bg);
  overflow: hidden;
}
.babel-head {
  width: min(100% - (var(--pad) * 2), var(--wide));
  margin: 0 auto 2.6rem;
  text-align: center;
}
.babel-logo {
  margin: 0 auto 1.25rem;
  font-family: "Bebas Neue", "Oswald", Impact, sans-serif;
  font-size: clamp(2.7rem, 8.2vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--white);
}
.babel-logo span {
  color: #c41212;
}
.babel-line {
  margin: 0 auto 0.55rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
}
.babel-sub {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}
.slate {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.slate-row {
  overflow: hidden;
  margin-bottom: 1.35rem;
}
.slate-row:last-child { margin-bottom: 0; }
.slate-track {
  display: flex;
  width: max-content;
  animation: slate 78s linear infinite;
}
.slate-row-rev .slate-track {
  animation-duration: 94s;
  animation-direction: reverse;
}
.slate:hover .slate-track,
.slate.is-off .slate-track {
  animation-play-state: paused;
}
.slate-set {
  display: flex;
  gap: 0.85rem;
  padding-inline: 0.425rem;
}
@keyframes slate {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.show {
  margin: 0;
  width: clamp(9.6rem, 16vw, 13.5rem);
  flex: none;
}
.show .frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
}
.show img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  opacity: 0.92;
  will-change: transform;
}
.show:hover img,
.show:focus-within img {
  transform: scale(1.1);
  opacity: 1;
}
.show figcaption {
  margin: 0.65rem 0.1rem 0;
}
.show cite {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.show span {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label);
}


/* ——— Section eyebrows + order (AI OS · Distribution · Production) ——— */
.anchor { display: block; position: relative; height: 0; overflow: hidden; }
.eyebrow {
  margin: 0 auto 2.2rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  position: relative;
  z-index: 1;
}
.machine > .eyebrow { margin-bottom: 1.6rem; }
.production { border-top: 1px solid var(--line); }
.distribution .channels {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ——— Babel Channels grid ——— */
.channels {
  margin-top: clamp(3.2rem, 7vw, 5.6rem);
  padding: clamp(3.4rem, 8vw, 5.4rem) 0 0;
  border-top: 1px solid var(--line);
}
.channels-head {
  margin-bottom: 2.4rem;
}
.babel-logo.channels-logo span {
  color: var(--steel);
}
.channel-grid {
  width: min(100% - (var(--pad) * 2), var(--wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}
.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  min-height: 9.15rem;
  padding: 1.2rem 0.65rem 1.05rem;
  background: var(--navy);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.channel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--cyan);
}
.channel img {
  width: 44px;
  height: 44px;
  flex: none;
}
.channel-name {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}
.channel-name-long {
  letter-spacing: 0.08em;
  max-width: 12.5ch;
}
.channel-plat {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}
a.channel {
  transition: border-color 0.25s ease, background 0.25s ease;
}
a.channel:hover,
a.channel:focus-visible {
  border-color: rgba(31, 216, 196, 0.32);
  background: #0d1c38;
}
a.channel:hover .channel-name,
a.channel:focus-visible .channel-name {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel { min-height: 8.6rem; padding: 1.05rem 0.5rem 0.95rem; }
  .channel-name { letter-spacing: 0.1em; }
  .channel-name-long { letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  a.channel { transition: none; }
}

/* ——— Close ——— */
.close {
  padding: clamp(5.5rem, 12vw, 9rem) var(--pad) clamp(5rem, 10vw, 8rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(11, 24, 48, 0.55), transparent 62%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(100%, 720px);
  margin: 0 auto clamp(4.5rem, 9vw, 6.5rem);
}
.founder {
  margin: 0;
}
.founder img {
  display: block;
  width: min(100%, 280px);
  height: min(100%, 280px);
  object-fit: cover;
  object-position: center 40%;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: #05070A;
  image-rendering: auto;
}
.founder h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
}
.founder p {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.close h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 auto 1.6rem;
  max-width: 14ch;
  font-weight: 400;
}
.close .mail {
  display: inline-block;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.close .mail:hover { color: var(--cyan); }
.close .hero-cta {
  justify-content: center;
  margin-top: 2.2rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-bar {
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding: 1.3rem var(--pad) 1.55rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--label);
}

/* Funders band */
.funders {
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 3.6rem) var(--pad) clamp(2.2rem, 4vw, 3rem);
  text-align: center;
}
.site-footer .funders-label {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 clamp(1.8rem, 3.4vw, 2.5rem);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--label);
  white-space: nowrap;
}
.funders-label::before,
.funders-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174, 192, 214, 0.22));
}
.funders-label::after { background: linear-gradient(90deg, rgba(174, 192, 214, 0.22), transparent); }
.funders-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.6rem, 3.3vw, 3rem);
}
.funder { flex: 0 0 auto; }
.funder img {
  width: auto;
  height: var(--fh, 34px);
  max-width: none;
}
/* Monochrome marks: official negatives or white derivatives, tinted steel */
.f-gob img, .f-hub img {
  opacity: 0.66;
  transition: opacity 0.25s ease;
}
.f-gob:hover img, .f-hub:hover img { opacity: 1; }
.f-gob { --fh: 38px; }
.f-box { --fh: 31px; }
.f-hub { --fh: 31px; }
.funders-label span { margin-right: -0.26em; }
.funders-dot { opacity: 0.6; }
/* Colour marks kept unaltered (seal rules) on a neutral white chip */
.f-chip {
  background: #F4F7FA;
  border-radius: 6px;
  padding: 5px 7px;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.f-chip img { --fh: 32px; }
.site-footer .funders-legal {
  margin-top: clamp(1.6rem, 3vw, 2.1rem);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--label);
}

@media (max-width: 1120px) {
  .funders-row { flex-wrap: wrap; row-gap: 1.6rem; }
}
@media (max-width: 560px) {
  .funders-row { gap: 1.25rem 1.6rem; }
  .f-gob { --fh: 30px; }
  .f-box { --fh: 24px; }
  .f-hub { --fh: 25px; }
  .f-chip img { --fh: 28px; }
  .site-footer .funders-label { letter-spacing: 0.2em; gap: 0.8rem; }
}

/* ——— News ——— */
.news {
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background: var(--bg);
}
.news-head {
  width: min(100%, var(--wide));
  margin: 0 auto clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}
.news-head h2 {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--white);
}
.news-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--wide));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.news-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 24, 48, 0.42), rgba(11, 24, 48, 0.12));
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.news-card a:hover,
.news-card a:focus-visible {
  border-color: rgba(31, 216, 196, 0.45);
  background: linear-gradient(180deg, rgba(11, 24, 48, 0.7), rgba(11, 24, 48, 0.2));
  transform: translateY(-2px);
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}
.news-tag { color: var(--cyan); }
.news-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--white);
}
.news-card p {
  margin: 0 0 1.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--steel);
}
.news-src {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--label);
}
.news-go { color: var(--cyan); transition: transform 0.25s ease; }
.news-card a:hover .news-go { transform: translate(2px, -2px); }
/* Featured lead story: full-width, two-column */
.news-card--feature { grid-column: 1 / -1; }
.news-card--feature a {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "meta meta" "head dek" "head src";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(31, 216, 196, 0.08), transparent 60%), linear-gradient(180deg, rgba(11, 24, 48, 0.6), rgba(11, 24, 48, 0.18));
}
.news-card--feature .news-meta { grid-area: meta; }
.news-card--feature h3 { grid-area: head; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -0.025em; }
.news-card--feature p { grid-area: dek; margin: 0.3rem 0 1.4rem; font-size: 1rem; }
.news-card--feature .news-src { grid-area: src; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--feature a { display: flex; }
  .news-card--feature h3 { margin-bottom: 0.9rem; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card a, .news-go { transition: none; }
}

/* ——— Living diagrams ——— */
.viz {
  position: relative;
  pointer-events: none;
  overflow: hidden;
}
.viz canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


.machine > .ghost {
  margin-top: clamp(1.9rem, 4.2vw, 3rem);
}

/* ——— Reveal ——— */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.05s ease, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.signal-row .stat:nth-child(2) { transition-delay: 0.08s; }
.signal-row .stat:nth-child(3) { transition-delay: 0.14s; }
.signal-row .stat:nth-child(4) { transition-delay: 0.2s; }
.signal-row .stat:nth-child(5) { transition-delay: 0.26s; }
.slate { transition-delay: 0s; }
.founders .founder:nth-child(2) { transition-delay: 0.12s; }

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .machine-grid,
  .founders { grid-template-columns: 1fr; }
  .pillar:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.75rem;
    margin-bottom: 2.75rem;
  }
  .signal-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; }
  .stat:nth-child(4),
  .stat:nth-child(5) { border-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid var(--line); }
  .show { width: clamp(8.4rem, 38vw, 11.5rem); }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 7, 10, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.1rem;
    backdrop-filter: blur(16px);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
  }
  .site-nav a::after { display: none; }
  .nav-burger { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-burger span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .founder img { width: min(100%, 240px); height: min(100%, 240px); }
}

@media (max-width: 560px) {
  .signal-row { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; padding: 1.25rem 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(2) { border-top: 0; border-left: 1px solid var(--line) !important; }
  .stat:nth-child(4) { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .stat:nth-child(5) { grid-column: 1 / -1; border-left: 0 !important; }
  .hero-cta { gap: 1.2rem; }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .show img { transform: none; will-change: auto; }
  .machine::before { animation: none; }
  .slate { mask-image: none; -webkit-mask-image: none; overflow: visible; }
  .slate-track {
    animation: none !important;
    flex-wrap: wrap;
    width: min(100% - (var(--pad) * 2), 1400px);
    margin-inline: auto;
    justify-content: center;
  }
  .slate-set { flex-wrap: wrap; justify-content: center; padding: 0; }
  .slate-set[aria-hidden="true"] { display: none; }
  .slate-row { margin-bottom: 0; }
}

/* ——— Distribution: model explainer ——— */
#partner, #portal { scroll-margin-top: calc(var(--header) + 0.5rem); }
.model,
.portal,
.partner {
  width: min(100% - (var(--pad) * 2), var(--wide));
  margin-inline: auto;
}
.model {
  text-align: center;
  padding-bottom: clamp(3.6rem, 8vw, 5.6rem);
  margin-bottom: clamp(3.4rem, 8vw, 5.4rem);
  border-bottom: 1px solid var(--line);
}
.model-title {
  margin: 0 auto 1rem;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
}
.model-lede {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--steel);
}
.model-steps {
  list-style: none;
  margin: clamp(2.6rem, 5vw, 3.6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
  text-align: left;
}
.model-steps::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 1.6rem;
  right: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 216, 196, 0.6), rgba(174, 192, 214, 0.18) 50%, rgba(31, 216, 196, 0.6));
}
.model-step {
  position: relative;
  padding: 0 clamp(1rem, 2.4vw, 2rem) 0 clamp(1rem, 2.4vw, 1.6rem);
}
.model-step + .model-step { border-left: 1px solid var(--line); }
.model-step:nth-child(2) { transition-delay: 0.1s; }
.model-step:nth-child(3) { transition-delay: 0.2s; }
.model-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(31, 216, 196, 0.55);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  position: relative;
  z-index: 1;
}
.model-step h3 {
  margin: 1.3rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}
.model-step p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--steel);
}
.model-tags {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.model-tags li {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(174, 192, 214, 0.2);
  background: var(--navy);
}
.model-plats li {
  color: var(--white);
  border-color: rgba(31, 216, 196, 0.35);
}
.model-band {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.model-band p {
  margin: 0;
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.model-band strong { color: var(--cyan); font-weight: 500; }
.model-band-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 216, 196, 0.5));
  position: relative;
  overflow: hidden;
}
.model-band-line + p + .model-band-line { background: linear-gradient(90deg, rgba(31, 216, 196, 0.5), transparent); }
.model-band-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: flowpulse 3.6s ease-in-out infinite;
}
@keyframes flowpulse { to { left: 100%; } }

/* ——— Distribution: partner portal ——— */
.portal {
  margin-top: clamp(4rem, 9vw, 6.4rem);
  padding-top: clamp(3.4rem, 8vw, 5.4rem);
  border-top: 1px solid var(--line);
}
.portal-head { width: 100%; margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem); }
.eyebrow-steel { color: var(--steel); }
.portal-note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}

/* ——— Distribution: partner request ——— */
.partner {
  margin-top: clamp(4rem, 9vw, 6.4rem);
  padding-top: clamp(3.4rem, 8vw, 5.4rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.eyebrow-left { text-align: left; margin-left: 0; margin-bottom: 1.2rem; }
.partner-copy .model-title { margin-left: 0; text-align: left; }
.partner-copy .model-lede { margin-left: 0; }
.partner-alt { margin: 1.6rem 0 0; font-size: 0.86rem; color: var(--label); }
.partner-alt a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--cyan); padding-bottom: 0.1rem; }
.partner-alt a:hover { color: var(--cyan); }
.partner-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: rgba(11, 24, 48, 0.55);
  border: 1px solid rgba(174, 192, 214, 0.14);
  border-radius: 10px;
}
.partner-form label { display: grid; gap: 0.45rem; min-width: 0; }
.partner-form label > span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}
.pf-wide { grid-column: 1 / -1; }
.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--bg);
  border: 1px solid rgba(174, 192, 214, 0.2);
  border-radius: 6px;
  padding: 0.72rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.partner-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.partner-form select:invalid { color: var(--label); }
.partner-form textarea { resize: vertical; min-height: 6.5rem; }
.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus { border-color: var(--cyan); }
.pf-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.pf-submit {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pf-submit:hover,
.pf-submit:focus-visible { background: var(--white); }
.pf-status { margin: 0; font-size: 0.82rem; color: var(--steel); }
.pf-status a { color: var(--cyan); }

@media (max-width: 900px) {
  .partner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .model-steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .model-steps::before { top: 1.15rem; bottom: 1.15rem; left: 1.15rem; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(31, 216, 196, 0.6), rgba(174, 192, 214, 0.18)); }
  .model-step { padding: 0 0 0 3.4rem; }
  .model-step + .model-step { border-left: 0; }
  .model-num { position: absolute; left: 0; top: 0; }
  .model-step h3 { margin-top: 0.35rem; }
  .model-band { gap: 0.8rem; }
  .model-band p { flex: 1 1 auto; white-space: normal; text-align: center; letter-spacing: 0.18em; line-height: 1.7; }
  .model-band-line { flex: 0 0 1.6rem; }

  .partner-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .model-band-line::after { animation: none; }
}
.partner-copy .model-title { max-width: 16ch; }
@media (min-width: 901px) { .partner-copy .model-title { max-width: none; } }

/* ——— Partner portal (pro) ——— */
.pp-tabs {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto 1.2rem;
  padding: 0.3rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(174, 192, 214, 0.14);
  border-radius: 999px;
  background: rgba(11, 24, 48, 0.6);
}
.pp-tab {
  font: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.pp-tab:hover { color: var(--white); }
.pp-tab.is-on { color: var(--bg); background: var(--cyan); }
.pp-stage { position: relative; }
.pp-fit {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(174, 192, 214, 0.16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(31, 216, 196, 0.05);
  background: #070d1b;
  display: none;
}
.pp-fit.is-on { display: block; animation: ppfade 0.35s ease; }
@keyframes ppfade { from { opacity: 0; } to { opacity: 1; } }
.pp-app {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  display: grid;
  grid-template-columns: 196px 1fr;
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #DCE5F0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: #070d1b;
  text-align: left;
  letter-spacing: 0;
}
.pp-app * { box-sizing: border-box; }
.pp-app h4, .pp-app h5, .pp-app p { margin: 0; }
.pp-app ul, .pp-app ol { list-style: none; margin: 0; padding: 0; }
/* sidebar */
.pp-side {
  background: #0A1428;
  border-right: 1px solid rgba(174, 192, 214, 0.1);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.pp-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 18px; border-bottom: 1px solid rgba(174, 192, 214, 0.08); margin-bottom: 12px; }
.pp-brand img { width: 74px; height: auto; }
.pp-brand span { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #1FD8C4; border: 1px solid rgba(31, 216, 196, 0.35); border-radius: 4px; padding: 2px 5px; }
.pp-nav { display: grid; gap: 2px; }
.pp-nav li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #8FA2BB; font-size: 12.5px; }
.pp-nav li.is-on { background: rgba(31, 216, 196, 0.1); color: #F4F7FA; box-shadow: inset 2px 0 0 #1FD8C4; }
.pp-nav li.is-on svg { color: #1FD8C4; }
.pp-nav em { margin-left: auto; font-style: normal; font-size: 10px; background: rgba(201, 165, 106, 0.18); color: #E2C48E; border-radius: 9px; padding: 1px 6px; }
.pp-side-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 8px 0; border-top: 1px solid rgba(174, 192, 214, 0.08); }
.pp-side-foot b { display: block; font-weight: 500; color: #F4F7FA; font-size: 12px; }
.pp-side-foot span { font-size: 10.5px; color: #7F93AD; }
.pp-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #05070A; background: linear-gradient(135deg, #1FD8C4, #7B83EB); }
/* topbar */
.pp-main { display: flex; flex-direction: column; min-width: 0; }
.pp-top { height: 50px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid rgba(174, 192, 214, 0.1); background: #08101f; }
.pp-crumbs { font-size: 12.5px; color: #8FA2BB; white-space: nowrap; }
.pp-crumbs i { font-style: normal; margin: 0 6px; color: #4A5B73; }
.pp-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 250px; height: 30px; padding: 0 10px; border-radius: 6px; background: #0B1830; border: 1px solid rgba(174, 192, 214, 0.12); color: #6F829C; font-size: 11.5px; }
.pp-search kbd { margin-left: auto; font: inherit; font-size: 10px; color: #7F93AD; border: 1px solid rgba(174, 192, 214, 0.18); border-radius: 4px; padding: 0 4px; }
.pp-ctl { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(174, 192, 214, 0.16); background: #0B1830; color: #DCE5F0; font-size: 11.5px; white-space: nowrap; }
.pp-ctl svg { color: #7F93AD; }
.pp-caret { width: 6px; height: 6px; border-right: 1.5px solid #7F93AD; border-bottom: 1.5px solid #7F93AD; transform: rotate(45deg) translateY(-2px); margin-left: 3px; }
.pp-btn { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; background: #1FD8C4; color: #05070A; font-weight: 600; font-size: 11.5px; }
/* page */
.pp-page { flex: 1; min-height: 0; padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pp-ph { display: flex; align-items: flex-end; justify-content: space-between; }
.pp-ph h4 { font-family: "Sora", sans-serif; font-weight: 500; font-size: 17px; color: #F4F7FA; letter-spacing: -0.01em; }
.pp-ph p { font-size: 11.5px; color: #7F93AD; margin-top: 2px; }
.pp-seg { display: flex; border: 1px solid rgba(174, 192, 214, 0.14); border-radius: 6px; overflow: hidden; }
.pp-seg span { padding: 5px 10px; font-size: 11px; color: #8FA2BB; }
.pp-seg span + span { border-left: 1px solid rgba(174, 192, 214, 0.14); }
.pp-seg .is-on { background: #12233F; color: #F4F7FA; }
.pp-card { background: #0B1830; border: 1px solid rgba(174, 192, 214, 0.1); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.pp-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 20px; }
.pp-ch h5 { font-size: 12.5px; font-weight: 600; color: #F4F7FA; }
.pp-link { font-size: 11px; color: #1FD8C4; }
.pp-more { color: #7F93AD; letter-spacing: 1px; }
.pp-leg { display: flex; gap: 14px; font-size: 11px; color: #AEC0D6; }
.pp-leg span { display: flex; align-items: center; gap: 6px; }
.pp-leg i { width: 8px; height: 8px; border-radius: 2px; }
.pp-leg b { font-weight: 600; color: #F4F7FA; margin-left: 2px; }
/* kpis */
.pp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pp-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pp-kpi { background: #0B1830; border: 1px solid rgba(174, 192, 214, 0.1); border-radius: 8px; padding: 11px 12px 10px; min-width: 0; }
.pp-k-l { font-size: 11px; color: #8FA2BB; white-space: nowrap; }
.pp-k-v { font-family: "Sora", sans-serif; font-size: 20px; font-weight: 500; color: #F4F7FA; margin: 4px 0 6px !important; letter-spacing: -0.01em; white-space: nowrap; }
.pp-k-s { font-size: 11px; color: #7F93AD; }
.pp-k-f { display: flex; align-items: center; gap: 6px; }
.pp-k-h { font-size: 10px; color: #6F829C; white-space: nowrap; }
.pp-k-f .pp-spark { margin-left: auto; }
.pp-d { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.pp-d.up { color: #3FDDA4; }
.pp-d.dn { color: #F07A7A; }
.pp-sum-hi { background: linear-gradient(180deg, rgba(31, 216, 196, 0.12), rgba(31, 216, 196, 0.03)), #0B1830; border-color: rgba(31, 216, 196, 0.4); }
.pp-sum-hi .pp-k-v { color: #1FD8C4; }
.pp-sum-date .pp-k-v { font-size: 18px; }
/* rows */
.pp-row2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; }
.pp-row3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
.pp-row2-tl { grid-template-columns: 630px minmax(0, 1fr); }
.pp-row2-rev { grid-template-columns: 590px minmax(0, 1fr); }
.pp-chart { display: block; max-width: 100%; height: auto; font-family: inherit; }
.pp-grid { stroke: rgba(174, 192, 214, 0.09); stroke-width: 1; }
.pp-tick { stroke: rgba(174, 192, 214, 0.25); }
.pp-cross { stroke: rgba(244, 247, 250, 0.35); stroke-dasharray: 3 3; }
.pp-ax { font-size: 10px; fill: #6F829C; }
.pp-ax-on { fill: #F4F7FA; font-weight: 600; }
.pp-bar-v { font-size: 10px; fill: #AEC0D6; }
.pp-tip { fill: #05070A; stroke: rgba(174, 192, 214, 0.25); }
.pp-tip-h { font-size: 10.5px; font-weight: 600; fill: #F4F7FA; }
.pp-tip-t { font-size: 10px; fill: #AEC0D6; }
.pp-tile { font-size: 7.5px; font-weight: 600; fill: rgba(220, 229, 240, 0.75); letter-spacing: 0.02em; }
.pp-tile-dk { fill: #05070A; }
.pp-dn { display: flex; justify-content: center; padding: 4px 0 8px; }
.pp-dn-v { font-family: "Sora", sans-serif; font-size: 15px; font-weight: 500; fill: #F4F7FA; }
.pp-dn-l { font-size: 10px; fill: #7F93AD; }
.pp-dleg { display: grid; gap: 7px; border-top: 1px solid rgba(174, 192, 214, 0.08); padding-top: 10px; }
.pp-dleg li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: 8px; font-size: 11.5px; color: #AEC0D6; }
.pp-dleg i { width: 8px; height: 8px; border-radius: 2px; }
.pp-dleg b { font-weight: 600; color: #F4F7FA; }
.pp-dleg em { font-style: normal; text-align: right; color: #7F93AD; }
/* tables */
.pp-t { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pp-t th { font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #6F829C; text-align: left; padding: 0 8px 7px; border-bottom: 1px solid rgba(174, 192, 214, 0.12); white-space: nowrap; }
.pp-t td { padding: 0 8px; height: 22px; border-bottom: 1px solid rgba(174, 192, 214, 0.06); color: #DCE5F0; white-space: nowrap; }
.pp-t th:first-child, .pp-t td:first-child { padding-left: 2px; }
.pp-t .n { text-align: right; }
.pp-t .r { text-align: right; width: 22px; color: #6F829C; }
.pp-t .b { font-weight: 600; color: #F4F7FA; }
.pp-t .neg { color: #AEC0D6; }
.pp-t th.is-sort { color: #1FD8C4; }
.pp-t-sm td { height: 21px; }
.pp-c-ctab .pp-t td { height: 21px; }
.pp-c-lang .pp-t th, .pp-c-lang .pp-t td { padding: 0 5px; }
.pp-t td small { color: #6F829C; margin-left: 8px; font-size: 10.5px; }
.pp-t .pp-sub td { color: #8FA2BB; }
.pp-t .pp-total td { font-weight: 600; color: #F4F7FA; border-top: 1px solid rgba(174, 192, 214, 0.2); border-bottom: 0; }
.pp-dim { color: #7F93AD !important; }
.pp-iso { display: inline-block; width: 22px; font-size: 9.5px; font-weight: 600; color: #7F93AD; letter-spacing: 0.04em; }
.pp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.pp-sh { display: flex; align-items: center; gap: 6px; }
.pp-sh i { display: block; height: 5px; width: calc(var(--w) * 0.34px); min-width: 2px; border-radius: 3px; background: #1FD8C4; opacity: 0.8; }
.pp-sh span { font-size: 10.5px; color: #AEC0D6; }
.pp-thumb { display: inline-block; width: 22px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; background: linear-gradient(135deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 55% 18%)); }
.pp-chip { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; line-height: 1.5; }
.pp-chip.ok { color: #3FDDA4; background: rgba(63, 221, 164, 0.12); }
.pp-chip.warn { color: #E2C48E; background: rgba(201, 165, 106, 0.16); }
.pp-chip.info { color: #9DA4F2; background: rgba(123, 131, 235, 0.16); }
.pp-chip.mute { color: #8FA2BB; background: rgba(174, 192, 214, 0.1); }
.pp-inv { display: flex; align-items: center; gap: 6px; color: #1FD8C4 !important; height: 22px; }
.pp-inv span { color: #8FA2BB; font-size: 10.5px; }
.pp-foot { font-size: 10.5px; color: #7F93AD; margin-top: 8px !important; }
.pp-foot b { color: #F4F7FA; font-weight: 600; }
.pp-pipe { display: grid; gap: 9px; margin-top: 2px; }
.pp-pipe li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11.5px; color: #AEC0D6; }
.pp-pipe b { color: #F4F7FA; font-weight: 600; }
.pp-pipe i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #1FD8C4 var(--w), rgba(174, 192, 214, 0.1) var(--w)); }
.pp-pipe li:nth-child(2) i { background: linear-gradient(90deg, #7B83EB var(--w), rgba(174, 192, 214, 0.1) var(--w)); }
.pp-pipe li:nth-child(3) i { background: linear-gradient(90deg, #C9A56A var(--w), rgba(174, 192, 214, 0.1) var(--w)); }
.pp-pipe li:nth-child(4) i { background: linear-gradient(90deg, #8FA2BB var(--w), rgba(174, 192, 214, 0.1) var(--w)); }
.pp-mini { display: grid; gap: 8px; margin-top: 2px; }
.pp-mini li { display: grid; grid-template-columns: 24px 92px 1fr 40px; align-items: center; gap: 6px; font-size: 11.5px; color: #DCE5F0; }
.pp-mini i { height: 5px; border-radius: 3px; width: var(--w); background: #1FD8C4; opacity: 0.8; }
.pp-mini b { text-align: right; font-weight: 600; }
.pp-chips, .pp-filt, .pp-tabs2 { display: flex; gap: 6px; }
.pp-chips span, .pp-filt span { font-size: 10.5px; color: #8FA2BB; border: 1px solid rgba(174, 192, 214, 0.14); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.pp-chips .is-on { color: #05070A; background: #1FD8C4; border-color: #1FD8C4; font-weight: 600; }
.pp-tbar { display: flex; justify-content: space-between; align-items: center; }
.pp-tabs2 span { font-size: 12px; color: #8FA2BB; padding: 6px 2px; margin-right: 14px; border-bottom: 2px solid transparent; }
.pp-tabs2 .is-on { color: #F4F7FA; border-color: #1FD8C4; }
.pp-tabs2 em { font-style: normal; font-size: 10px; color: #7F93AD; background: rgba(174, 192, 214, 0.1); border-radius: 8px; padding: 1px 6px; margin-left: 4px; }
.pp-c-cat { padding-top: 10px; }
.pp-t-cat td { height: 50px; }
.pp-tcell { display: flex; align-items: center; gap: 10px; }
.pp-thumb-lg { width: 54px; height: 32px; margin: 0; display: grid; place-items: center; position: relative; overflow: hidden; }
.pp-thumb-lg b { font-family: "Sora", sans-serif; font-size: 11px; font-weight: 600; color: rgba(244, 247, 250, 0.85); letter-spacing: 0.04em; }
.pp-tt b { display: block; font-weight: 600; color: #F4F7FA; font-size: 12px; }
.pp-tt small { margin: 0 !important; }
.pp-lang { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #AEC0D6; }
.pp-lb { width: 70px; height: 5px; border-radius: 3px; background: rgba(174, 192, 214, 0.12); overflow: hidden; }
.pp-lb i { display: block; height: 100%; width: var(--w); background: #1FD8C4; }

@media (max-width: 760px) {
  .pp-tabs { width: auto; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .pp-tabs::-webkit-scrollbar { display: none; }
  .pp-tab { padding: 0.58rem 0.8rem; font-size: 0.6rem; letter-spacing: 0.12em; }
  .pp-stage {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1);
    padding: 0 var(--pad) 0.5rem;
    scrollbar-width: none;
  }
  .pp-stage::-webkit-scrollbar { display: none; }
  .pp-fit, .pp-fit.is-on { display: block; flex: 0 0 90%; scroll-snap-align: center; animation: none; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-fit.is-on { animation: none; }
}
