/* Layout concept: cinematic night-ops. Full-bleed film moments alternate with HUD-ruled content bands;
   type speaks in the STAGE films' voice (light / semibold uppercase), data in mono like a sim timecode. */
:root {
  --night: #060b14;
  --night-2: #09121f;
  --panel: #0d1829;
  --panel-2: #122138;
  --line: #1c2b42;
  --line-soft: rgba(143, 182, 230, 0.13);
  --ink: #eaf0f8;
  --ink-2: #b7c3d4;
  --mute: #8494ab;
  --blue: #1474c8;
  --blue-hover: #1b86e3;
  --blue-hi: #5aaef5;
  --signal: #92d8ff;
  --danger: #ff8b7d;
  --ok: #66d9a6;
  --shade: rgba(4, 8, 15, 0.72);

  --f-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --topbar-h: 68px;
  color-scheme: dark;
}

@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/barlow-300i.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--night);
}
[hidden] { display: none !important; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.dim { color: var(--mute); }
.selectable { user-select: all; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * 40px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal);
}
.tick { width: 28px; height: 1px; background: currentColor; display: inline-block; }
.display {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: 0.01em;
  margin-top: 18px;
}
.display .l, .film-t .l { font-weight: 300; display: block; color: var(--ink-2); }
.display .b, .film-t .b { font-weight: 600; display: block; color: var(--ink); }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 34em; }
.section-sub { color: var(--mute); max-width: 40em; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  padding: 13px 20px; min-height: 46px; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: 0.74rem; }
.btn-lg { padding: 16px 26px; min-height: 54px; font-size: 0.86rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: rgba(6, 11, 20, 0.35); color: var(--ink); border-color: rgba(234, 240, 248, 0.32); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.linklike:hover { color: var(--signal); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgba(6, 11, 20, 0.86); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line-soft); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--topbar-h); max-width: calc(var(--maxw) + 80px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .topbar-inner { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--signal); transition: right .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active, .nav a.current { color: var(--ink); }
.nav a.current::after { right: 0; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-soft); width: 40px; height: 38px; border-radius: 2px; cursor: pointer; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); content: ""; transition: transform .25s, opacity .25s; }
.menu-icon { top: 50%; }
.menu-icon::before { top: -6px; left: 0; right: 0; }
.menu-icon::after { top: 6px; left: 0; right: 0; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  display: grid; gap: 4px; background: rgba(6, 11, 20, 0.97); border-top: 1px solid var(--line-soft);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 22px max(16px, env(safe-area-inset-left, 0px));
}
.mobile-nav a:not(.btn) { color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 14px; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 520px) {
  .topbar-actions .btn-sm { display: none; }
  .brand img { height: 19px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(94vh, 900px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--topbar-h) + 64px) 104px;
  background: var(--night) url("../img/poster-hero.webp") center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.78) 0%, rgba(6, 11, 20, 0) 22%),
    linear-gradient(90deg, rgba(6, 11, 20, 0.88) 0%, rgba(6, 11, 20, 0.55) 42%, rgba(6, 11, 20, 0.05) 75%),
    linear-gradient(0deg, rgba(6, 11, 20, 1) 0%, rgba(6, 11, 20, 0) 38%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(146, 216, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 216, 255, 0.07) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-inner { position: relative; display: grid; gap: 26px; }
.hero-title { display: grid; gap: 14px; text-transform: uppercase; line-height: .95; }
.ht-1 {
  font-weight: 300; font-size: clamp(2.9rem, 9.2vw, 8rem); letter-spacing: 0.12em; margin-right: -0.12em;
  animation: track-in 1.6s cubic-bezier(.2,.7,.1,1) both;
}
.ht-2 {
  font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.75rem); letter-spacing: 0.42em; color: var(--signal);
  animation: rise 1.2s .35s cubic-bezier(.2,.7,.1,1) both;
}
.hero-lead { max-width: 38em; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); animation: rise 1.2s .5s cubic-bezier(.2,.7,.1,1) both; }
.hero-meta {
  margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0;
  border-top: 1px solid var(--line-soft); padding-top: 18px; max-width: 920px;
  animation: rise 1.2s .62s cubic-bezier(.2,.7,.1,1) both;
}
.hero-meta > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line-soft); min-width: 0; }
.hero-meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.hero-meta dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 500; }
.hero-products { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--ink-2); animation: rise 1.2s .56s cubic-bezier(.2,.7,.1,1) both; }
.hero-products li { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line-soft); }
.hero-products li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; animation: rise 1.2s .74s cubic-bezier(.2,.7,.1,1) both; }
.hud { position: absolute; display: flex; align-items: center; gap: 16px; color: var(--ink-2); z-index: 2; }
.hud-bl { left: max(16px, env(safe-area-inset-left, 0px)); bottom: 26px; flex-direction: column; align-items: flex-start; gap: 2px; }
.countdown { color: var(--signal); padding-right: 14px; border-right: 1px solid var(--line-soft); }
.hud-br { right: max(16px, env(safe-area-inset-right, 0px)); bottom: 22px; }
@media (min-width: 760px) { .hud-bl { left: max(40px, env(safe-area-inset-left, 0px)); } .countdown { color: var(--signal); padding-right: 14px; border-right: 1px solid var(--line-soft); }
.hud-br { right: max(40px, env(safe-area-inset-right, 0px)); } }
.hud-btn { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(6,11,20,.4); border: 1px solid rgba(234,240,248,.3); border-radius: 50%; cursor: pointer; }
.hud-btn:hover { border-color: var(--signal); }
.i-pause { width: 9px; height: 10px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.hud-btn[aria-pressed="true"] .i-pause { border: 0; width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@keyframes track-in { from { letter-spacing: 0.34em; opacity: .25; } to { letter-spacing: 0.12em; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) {
  .hero { padding-block: calc(var(--topbar-h) + 48px) 96px; min-height: min(100svh, 820px); }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .hero-meta > div { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hud-bl { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line-soft); background: var(--night); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); padding: 16px 28px; white-space: nowrap; position: relative; }
.ticker li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border: 1px solid var(--blue-hi); transform: translateY(-50%) rotate(45deg); opacity: .7; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ht-1, .ht-2, .hero-lead, .hero-products, .hero-meta, .hero-cta { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-alt { background: var(--night-2); border-block: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pillars { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillars li { padding: 26px 28px 8px 0; margin-right: 28px; position: relative; min-width: 0; }
.pillars li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); }
.pillar-k { display: block; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; margin-bottom: 10px; }
.pillars p { color: var(--mute); font-size: .98rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillars li { margin-right: 0; padding-right: 0; border-top: 1px solid var(--line); } .pillars li:first-child { border-top: 0; } }

/* Agenda */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.agenda li {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color .25s, padding .25s;
}
.agenda li:hover { background: linear-gradient(90deg, rgba(20, 116, 200, 0.10), transparent 70%); padding-left: 16px; }
.agenda-tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.agenda h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.agenda p { color: var(--mute); margin-top: 6px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) { .agenda li, .agenda li:hover { transition: none; padding-left: 0; } }
@media (max-width: 640px) { .agenda li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Frames ---------- */
.frame { position: relative; margin: 0; background: var(--panel); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 16px; height: 16px; border-color: var(--signal); border-style: solid; border-width: 0; pointer-events: none; }
.c1 { top: -6px; left: -6px; border-top-width: 1px; border-left-width: 1px; }
.c2 { top: -6px; right: -6px; border-top-width: 1px; border-right-width: 1px; }
.c3 { bottom: -6px; left: -6px; border-bottom-width: 1px; border-left-width: 1px; }
.c4 { bottom: -6px; right: -6px; border-bottom-width: 1px; border-right-width: 1px; }
.frame figcaption { position: absolute; left: 14px; bottom: 12px; color: var(--ink); background: rgba(6,11,20,.62); padding: 5px 9px; backdrop-filter: blur(4px); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--signal); }
.block-title { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); margin-bottom: 22px; }
.releases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.release-v { font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; line-height: 1; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.release-v span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.release-note { margin-bottom: 12px; }
.pill { display: inline-block; padding: 5px 9px; border: 1px solid var(--signal); color: var(--signal); }
.pill-dim { border-color: var(--line); color: var(--mute); }
.release-text { color: var(--ink-2); font-size: .97rem; }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.release li { color: var(--ink-2); font-size: .95rem; padding-left: 16px; position: relative; }
.release li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border: 1px solid var(--blue-hi); transform: rotate(45deg); }
.table-scroll { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.matrix th, .matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix thead th { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.matrix thead th:not(:first-child), .matrix td { text-align: center; width: 92px; }
.matrix tbody th { font-weight: 400; color: var(--ink-2); padding-left: 0; }
.matrix td.y { color: var(--signal); font-size: .8rem; }
.matrix td.n { color: var(--mute); font-size: .8rem; }
.ed-notes { margin: 22px 0 0; display: grid; gap: 14px; }
.ed-notes dt { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; }
.ed-notes dd { margin: 2px 0 0; color: var(--mute); font-size: .95rem; }
@media (max-width: 560px) { .releases { grid-template-columns: 1fr; } }

/* Before / after */
.compare { --pos: 50%; width: 100%; position: relative; overflow: hidden; aspect-ratio: 1200 / 425; background: var(--night-2); min-height: 220px; }
.compare > img, .compare-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--signal); transform: translateX(-.5px); pointer-events: none; }
.compare-handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--night); border: 1px solid var(--signal); color: var(--signal); font-size: .7rem; letter-spacing: .1em; padding: 7px 9px; white-space: nowrap; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input[type="range"]:focus-visible + .compare-handle, .compare:focus-within .compare-handle::after { outline: 2px solid var(--signal); outline-offset: 2px; }
.compare-label { position: absolute; top: 12px; background: rgba(6,11,20,.7); padding: 5px 9px; color: var(--ink); pointer-events: none; }
.compare-label.l { left: 12px; }
.compare-label.r { right: 12px; color: var(--signal); }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; gap: 18px; }
.pipe-main { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); align-items: stretch; }
.node {
  display: grid; gap: 4px; text-align: left; padding: 18px 18px 16px; cursor: pointer; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .25s, background-color .25s, transform .25s;
}
.node:hover { border-color: rgba(146, 216, 255, .45); }
.node[aria-selected="true"] { border-color: var(--signal); background: var(--panel-2); box-shadow: 0 0 0 1px var(--signal) inset, 0 18px 40px -24px rgba(146,216,255,.55); }
.node-n { color: var(--mute); font-size: .68rem; }
.node[aria-selected="true"] .node-n { color: var(--signal); }
.node-name { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.12rem; line-height: 1.15; }
.node-role { color: var(--mute); font-size: .88rem; }
.link { align-self: center; height: 1px; background: var(--line); position: relative; margin: 0 6px; }
.link::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--line); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.link.lit { background: linear-gradient(90deg, var(--blue-hi), var(--signal)); }
.link.lit::after { border-left-color: var(--signal); }
.pipe-feed { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; margin-left: calc(50% - 24px); position: relative; padding-top: 14px; }
.pipe-feed::before { content: ""; position: absolute; top: -18px; left: calc(25% - 8px); height: 32px; width: 1px; background: var(--line); }
.feed-label { color: var(--mute); }
@media (max-width: 960px) {
  .pipe-main { grid-template-columns: minmax(0,1fr); gap: 0; }
  .link { width: 1px; height: 22px; margin: 0 0 0 26px; }
  .link::after { right: auto; top: auto; bottom: -1px; left: -4px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid var(--line); border-bottom: 0; }
  .link.lit { background: linear-gradient(180deg, var(--blue-hi), var(--signal)); }
  .link.lit::after { border-top-color: var(--signal); border-left-color: transparent; }
  .pipe-feed { margin-left: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding-top: 4px; align-items: stretch; }
  .pipe-feed::before { display: none; }
  .feed-label { grid-column: 1 / -1; }
}

/* Featured product (home) */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(20px, 3vw, 36px); background: var(--panel); border: 1px solid var(--line); margin-bottom: 28px; }
.feature-media { aspect-ratio: 16 / 10; }
.feature-badge { position: absolute; left: 14px; top: 14px; background: rgba(6,11,20,.72); color: var(--signal); padding: 6px 10px; backdrop-filter: blur(4px); }
.feature-body { display: grid; gap: 16px; min-width: 0; }
.feature-name { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.feature-cta { padding-top: 4px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.node-lead { border-color: rgba(146, 216, 255, .55); background: var(--panel-2); }
.node-lead .node-n { color: var(--signal); }
.hero-products .lead-item { color: var(--signal); }
.prod-lead .prod-name { font-size: clamp(2.6rem, 5vw, 4.2rem); }

/* Pipeline as links (home) */
a.node { color: var(--ink); text-decoration: none; }
a.node:hover { border-color: var(--signal); background: var(--panel-2); color: var(--ink); }
a.node:hover .node-n { color: var(--signal); }
.pipeline .link { background: linear-gradient(90deg, var(--blue-hi), var(--signal)); }
.pipeline .link::after { border-left-color: var(--signal); }
@media (max-width: 960px) {
  .pipeline .link { background: linear-gradient(180deg, var(--blue-hi), var(--signal)); }
  .pipeline .link::after { border-left-color: transparent; border-top-color: var(--signal); }
}
.eco-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.eco-head .section-sub { margin-top: 0; }
@media (max-width: 860px) { .eco-head { grid-template-columns: 1fr; } }
.eco-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Products page ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--topbar-h) + clamp(56px, 9vw, 120px)) clamp(48px, 7vw, 88px); }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,11,20,.94) 0%, rgba(6,11,20,.72) 55%, rgba(6,11,20,.45) 100%), linear-gradient(0deg, var(--night) 0%, rgba(6,11,20,0) 40%); }
.page-head-inner { display: grid; gap: 22px; }
.page-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.page-title:focus { outline: none; }

.prod-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h)); z-index: 40; background: rgba(6, 11, 20, 0.9); backdrop-filter: blur(14px); border-block: 1px solid var(--line-soft); }
.prod-tabs-inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: calc(var(--maxw) + 80px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .prod-tabs-inner { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.prod-tabs-inner::-webkit-scrollbar { display: none; }
.prod-tabs a {
  flex: 0 0 auto; color: var(--mute); text-decoration: none; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 14px; position: relative; white-space: nowrap; transition: color .2s;
}
.prod-tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform .25s; }
.prod-tabs a:hover { color: var(--ink); }
.prod-tabs a.active { color: var(--ink); }
.prod-tabs a.active::after { transform: scaleX(1); }

.prod-list { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 120px); }
.prod {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbar-h) + 60px + env(safe-area-inset-top, 0px));
}
.prod:last-child { border-bottom: 0; }
.prod:nth-child(even) .prod-media { order: 2; }
.prod-media { aspect-ratio: 16 / 10; overflow: visible; }
.prod-media img { transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.frame.prod-media { overflow: visible; }
.prod-media-wide { aspect-ratio: 756 / 305; }
.prod-body { display: grid; gap: 16px; min-width: 0; }
.prod-kicker { color: var(--signal); }
.prod-name { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.prod-desc { color: var(--ink-2); font-size: 1.08rem; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line); color: var(--ink-2); }
.prod-ed { color: var(--mute); }
.compat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.compat-item { padding: 16px 16px 4px 0; margin-right: 16px; min-width: 0; }
.compat-item + .compat-item { padding-left: 16px; border-left: 1px solid var(--line); }
.compat-name { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; color: var(--signal); margin-bottom: 6px; }
.compat-item p:last-child { color: var(--mute); font-size: .92rem; }
@media (max-width: 560px) { .compat { grid-template-columns: 1fr; } .compat-item, .compat-item + .compat-item { padding: 14px 0 0; margin: 0; border-left: 0; } }
.prod-ed b { color: var(--ink); font-weight: 500; }
.media-play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(6,11,20,.7); border: 1px solid rgba(234,240,248,.4); color: var(--ink); padding: 10px 14px; border-radius: 2px;
  font-family: var(--f-display); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.media-play:hover { background: var(--blue); border-color: var(--blue); }
.prod-extra { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 8px; }
.prod-extra .releases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
.release-next { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.release-shot { aspect-ratio: 1200 / 924; }
@media (max-width: 860px) { .release-next { grid-template-columns: 1fr; } }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ed-grid .ed-notes { margin-top: 0; }
@media (max-width: 860px) { .prod-extra .releases, .ed-grid { grid-template-columns: 1fr; } }
.extra-block { background: var(--panel); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); min-width: 0; }
.prod-media-compare { display: grid; gap: 10px; aspect-ratio: auto; }
.compare-hint { font-size: .66rem; }
.prod-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 18px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at center, rgba(20,116,200,.22), transparent 70%), var(--night-2); padding: 24px; }
.flow-chip { font-family: var(--f-mono); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; padding: 16px 20px; border: 1px solid var(--line); color: var(--ink-2); background: var(--panel); white-space: nowrap; }
.flow-chip.strong { border-color: var(--signal); color: var(--signal); }
.flow-arrow { position: relative; width: 72px; height: 1px; background: linear-gradient(90deg, var(--line), var(--signal)); }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid var(--signal); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.flow-engines { flex-basis: 100%; text-align: center; color: var(--mute); }
@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; }
  .prod:nth-child(even) .prod-media { order: 0; }
  .prod-extra { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .releases { grid-template-columns: 1fr; } .flow-arrow { width: 40px; } }

.wp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 32px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--signal); background: linear-gradient(90deg, rgba(20,116,200,.16), rgba(20,116,200,0) 70%), var(--panel); }
.wp-mark { width: 64px; height: 80px; border: 1px solid var(--signal); color: var(--signal); display: grid; place-items: end center; padding-bottom: 10px; position: relative; }
.wp-mark::before { content: ""; position: absolute; top: -1px; right: -1px; width: 16px; height: 16px; background: var(--night); border-left: 1px solid var(--signal); border-bottom: 1px solid var(--signal); }
.wp-body { display: grid; gap: 8px; min-width: 0; }
.wp-k { color: var(--signal); }
.wp-title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.wp-body p:last-child { color: var(--mute); font-size: .95rem; }
@media (max-width: 760px) { .wp { grid-template-columns: 1fr; } .wp-mark { display: none; } }

/* ---------- Films ---------- */
.films { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20, 116, 200, 0.14), transparent 70%), var(--night); }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.film {
  position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: var(--panel);
  text-align: left; cursor: pointer; overflow: hidden; border-radius: 2px; min-width: 0;
  transition: border-color .3s;
}
.film:hover { border-color: rgba(146, 216, 255, .5); }
.film-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.film-media img, .film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.1,1), opacity .4s; }
.film-media video { opacity: 0; }
.film.previewing .film-media video { opacity: 1; }
.film:hover .film-media img { transform: scale(1.04); }
.film-meta { display: grid; gap: 8px; padding: 18px 20px 22px; }
.film-k { color: var(--signal); }
.film-t { font-family: var(--f-display); text-transform: uppercase; font-size: 1.15rem; line-height: 1.1; letter-spacing: .02em; }
.film-d { color: var(--mute); font-size: .95rem; }
.film-play {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6,11,20,.55); border: 1px solid rgba(234,240,248,.5); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .25s;
}
.film-play::after { content: ""; border-left: 12px solid var(--ink); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; margin-left: 4px; }
.film:hover .film-play { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.film-feature { grid-column: 1 / -1; display: grid; }
.film-feature .film-media { aspect-ratio: 21 / 9; }
.film-feature .film-meta {
  position: absolute; inset: 0; padding: clamp(20px, 4vw, 44px); align-content: end;
  background: linear-gradient(90deg, rgba(6,11,20,.9) 0%, rgba(6,11,20,.62) 42%, rgba(6,11,20,0) 68%), linear-gradient(0deg, rgba(6,11,20,.85) 0%, rgba(6,11,20,0) 55%); gap: 12px;
}
.film-feature .film-t { font-size: clamp(1.6rem, 3.6vw, 3rem); }
.film-feature .film-d { color: var(--ink-2); max-width: 36em; font-size: 1.02rem; }
.film-feature .film-play { top: auto; bottom: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); width: 64px; height: 64px; }
@media (max-width: 860px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-feature .film-media { aspect-ratio: 16 / 9; }
  .film-feature .film-meta { position: static; background: none; }
  .film-feature .film-play { top: 14px; bottom: auto; right: 14px; width: 46px; height: 46px; }
  .film-feature .film-d { color: var(--mute); }
}
@media (prefers-reduced-motion: reduce) { .film-media img, .film:hover .film-media img { transition: none; transform: none; } }

/* ---------- Infos ---------- */
.info-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.info-grid > div { padding: 26px 24px 0 0; min-width: 0; }
.info-grid dt { color: var(--signal); }
.info-grid dd { margin: 10px 0 0; font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.dd-sub { display: block; margin-top: 6px; font-size: .95rem; font-weight: 400; color: var(--mute); line-height: 1.5; }
.info-extra { margin-top: 32px; display: grid; gap: 12px; }
.info-contact { margin-top: 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; font-size: 1.1rem; }
.info-contact .mono { color: var(--signal); }
.map-link { color: var(--ink); text-decoration-color: var(--signal); }
.map-link:hover { color: var(--signal); }
@media (max-width: 860px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 12vw, 160px); text-align: left; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,11,20,.92) 0%, rgba(6,11,20,.62) 55%, rgba(6,11,20,.35) 100%); }
.cta-inner { display: grid; gap: 22px; justify-items: start; }
.cta-inner .display { margin-top: 0; }
.cta-inner p { color: var(--ink-2); font-size: 1.12rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--night); padding-top: 48px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: grid; gap: 14px; }
.footer-brand img { height: 22px; width: auto; }
.footer-links { display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.footer-links .mono { margin-right: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ---------- Registration ---------- */
.reg { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); min-height: 100vh; }
.reg-aside { position: relative; isolation: isolate; overflow: hidden; }
.reg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reg-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,11,20,.62) 0%, rgba(6,11,20,.82) 55%, rgba(6,11,20,.96) 100%); }
.reg-aside-inner {
  position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding-block: calc(var(--topbar-h) + 40px) 40px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: 24px;
}
@media (min-width: 1100px) { .reg-aside-inner { padding-left: max(56px, env(safe-area-inset-left, 0px)); padding-right: 48px; } }
.back { color: var(--ink-2); text-decoration: none; align-self: flex-start; }
.back:hover { color: var(--signal); }
.reg-title { display: grid; gap: 12px; text-transform: uppercase; margin-top: 18px; line-height: .95; }
.reg-title .ht-1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); animation: none; }
.reg-title .ht-2 { font-size: clamp(.9rem, 1.3vw, 1.1rem); animation: none; }
.reg-meta { margin: 0; display: grid; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.reg-meta dt { color: var(--signal); }
.reg-meta dd { margin: 4px 0 0; font-size: 1.08rem; font-weight: 500; }
.reg-privacy { color: var(--mute); font-size: .92rem; max-width: 30em; }
.reg-main { padding-block: calc(var(--topbar-h) + 40px) 72px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); background: var(--night); min-width: 0; }
@media (min-width: 1100px) { .reg-main { padding-left: 64px; padding-right: max(64px, env(safe-area-inset-right, 0px)); } }
.reg-main > * { max-width: 760px; }
@media (max-width: 960px) {
  .reg { grid-template-columns: 1fr; min-height: 0; }
  .reg-aside-inner { position: relative; min-height: 0; padding-block: calc(var(--topbar-h) + 24px) 28px; gap: 22px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .reg-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-main { padding-block: 32px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 560px) { .reg-meta { grid-template-columns: 1fr; gap: 10px; } }

.preview-note { border: 1px dashed rgba(146, 216, 255, .45); color: var(--signal); padding: 12px 14px; font-size: .9rem; margin-bottom: 28px; background: rgba(146, 216, 255, .05); }
.form { display: grid; gap: 34px; }
.form-head { display: grid; gap: 10px; }
.form-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.form-sub { color: var(--mute); }
.form-errors { border: 1px solid var(--danger); background: rgba(255, 139, 125, .07); padding: 16px 18px; color: var(--ink); }
.form-errors p { font-weight: 600; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.form-errors a { color: var(--danger); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
legend { display: flex; align-items: center; gap: 14px; padding: 0 0 16px; width: 100%; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.02rem; margin-bottom: 4px; }
.step { color: var(--signal); }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field[hidden] { display: none !important; }
.field label, .field .label { font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.req { color: var(--signal); }
.opt { color: var(--mute); font-weight: 400; font-size: .82rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: #2a3e5c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(146, 216, 255, .18); background: var(--panel-2); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: .86rem; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--mute); font-size: .84rem; }
.count { justify-self: end; font-size: .68rem; }
.chipset { display: flex; flex-wrap: wrap; gap: 10px; }
.chipset[aria-invalid="true"] .chip span, .chipset[aria-invalid="true"] .chip { border-color: var(--danger); }
.chip { position: relative; display: inline-flex; cursor: pointer; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); transition: border-color .2s, background-color .2s; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.chip > span, .chip { font-size: .92rem; }
.chip > span { padding: 10px 14px 10px 34px; position: relative; color: var(--ink-2); }
.chip::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); border: 1px solid var(--mute); border-radius: 2px; transition: background-color .2s, border-color .2s; }
.chip:has(input[type="radio"])::before { border-radius: 50%; }
.chip:hover { border-color: #2a3e5c; }
.chip:has(input:checked) { border-color: var(--blue-hi); background: rgba(20, 116, 200, .16); }
.chip:has(input:checked)::before { background: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 2px var(--panel-2); }
.chip:has(input:checked) > span { color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.consents { display: grid; gap: 14px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; color: var(--ink-2); font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
.form-legal { color: var(--mute); font-size: .88rem; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { display: grid; gap: 22px; justify-items: start; padding-top: 20px; }
.success:focus { outline: none; }
.success .display { margin-top: 0; }
.success-mark { width: 64px; height: 64px; border: 1px solid var(--ok); border-radius: 50%; position: relative; }
.success-mark::after { content: ""; position: absolute; left: 22px; top: 17px; width: 14px; height: 24px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.ok-ref { color: var(--mute); }
.ok-ref span:last-child { color: var(--ink); margin-left: 8px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(3, 6, 12, .88); backdrop-filter: blur(6px); }
.film-dialog { width: min(1180px, calc(100vw - 32px)); }
.film-dialog-inner, .privacy-inner { background: var(--night); border: 1px solid var(--line); }
.film-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.film-dialog-head .mono { color: var(--signal); }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.close { background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 2px; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.close:hover { border-color: var(--signal); color: var(--signal); }
.privacy-dialog { width: min(680px, calc(100vw - 32px)); }
.privacy-inner h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.privacy-body { padding: 22px 24px 28px; display: grid; gap: 12px; color: var(--ink-2); font-size: .97rem; max-height: min(70vh, 640px); overflow: auto; }
.privacy-body strong { color: var(--ink); font-weight: 600; }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--danger); color: #000; padding: 10px 16px; text-align: center; z-index: 99; }
.view[hidden] { display: none !important; }
