/* Nexa page — builds on site.css (paper, glass, type). */

/* Geist is the Nexa typeface: a neutral grotesk with real numerals, next to Space Grotesk's
   quirkier one. Page-scoped on purpose — only nexa.html loads this file, so the rest of the
   site keeps Space Grotesk until the same pass reaches it. */
:root, [data-theme="light"], [data-theme="dark"] {
  --grotesk: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nx { max-width: 1140px; margin: 0 auto; padding: 0 clamp(22px, 4.5vw, 56px); }

/* hero */
.nx-hero { padding: clamp(44px, 8vh, 88px) 0 0; }
.trio {
  font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.trio .ln { display: block; overflow: hidden; padding-bottom: 0.13em; margin-bottom: -0.13em; }
.trio .ln > span {
  display: inline-block;
  transform: translateY(130%);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
.trio .muted { color: var(--ink-40); }
.trio em { color: var(--accent); }
.nx-sub {
  margin-top: clamp(26px, 4vh, 40px);
  max-width: 50ch;
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--ink-60);
}
.nx-sub b { color: var(--ink); font-weight: 600; }
.nx-sub em { color: var(--accent); }
/* orchestrates — logo + name pairs, monochrome ink, color on hover */
.orch { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 22px; margin-top: 26px; }
.orch-below { margin-top: clamp(28px, 5vh, 48px); }
.orch-label {
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-40); margin-right: 4px;
}
.orch-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-copy); font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink-60); transition: color 0.3s ease;
}
.orch-item img {
  height: 16px; width: auto;
  opacity: var(--logo-op);
  filter: var(--logo-filter); /* solid ink (light) / solid white (dark) — adapts per theme */
  transition: opacity 0.3s ease, filter 0.3s ease;
}
/* One shared height is not one shared size: measured against their own viewBoxes
   (getBBox), most of these marks fill 95-100% of their box, but Anthropic fills 70% and
   OpenCode 62%, so at height:16px they drew 11.3px and 10px of ink next to everyone else's
   ~16px and read as shrunken. These land both at a 14px cap - just under the square marks,
   because one is wide and the other is tall, and a matched cap would make them shout. */
.orch-item img[src*="anthropic"] { height: 20px; }
.orch-item img[src*="opencode"] { height: 22px; }
/* Kimi and Grok fill 75% of their box — same correction, same ~14px of ink. */
.orch-item img[src*="kimi"], .orch-item img[src*="grok"] { height: 19px; }
.orch-item:hover { color: var(--ink); }
.orch-item:hover img { opacity: 1; filter: none; }

/* ---------- video player (hero right column) ---------- */
.video-player {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 0;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--hairline) 80%, transparent);
  background: #05080d; box-shadow: none;
}
.video-player::after { display: none; }
.video-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #03060a; }
.video-canvas { position: absolute; inset: 0; overflow: hidden; }
.hero-play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.5); color: #fff; background: rgba(8,12,18,.42);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer;
  transition: transform .25s ease, background .25s ease, opacity .25s ease;
  display: grid; place-items: center;
}
.hero-play .pp { display: inline-flex; line-height: 0; } .hero-play .pp svg { width: 28px; height: 28px; display: block; }
.hero-play .i-play { transform: translateX(2px); }
.hero-play:hover { transform: scale(1.06); background: rgba(12,18,28,.58); }
.video-player.is-playing .hero-play { opacity: 0; pointer-events: none; }
.i-pause, .is-playing .i-play, .i-mute, .is-muted .i-sound { display: none; }
.is-playing .i-pause, .is-muted .i-mute { display: block; }
.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto auto auto minmax(80px,1fr) auto auto auto auto auto; gap: 2px; align-items: center;
  padding: 28px 12px 10px; border: 0;
  background: linear-gradient(to top, rgba(3,7,12,.58), rgba(3,7,12,.1) 55%, transparent);
  transition: opacity .3s ease;
}
.video-player.is-playing .video-controls { opacity: 0; }
.video-player.is-playing:hover .video-controls,
.video-player.is-playing:focus-within .video-controls,
.video-player.is-playing:has(.vmenu.open) .video-controls { opacity: 1; }
.video-controls button {
  height: 30px; border: 0; border-radius: 8px; background: transparent;
  color: #fff; font: 600 var(--fs-small) var(--grotesk); cursor: pointer; padding: 0 7px;
}
.video-controls .ctl-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; padding: 0; }
.video-controls .pp { display: inline-flex; } .video-controls svg { width: 16px; height: 16px; }
.video-controls button:hover { background: rgba(255,255,255,.14); }
.video-time { color: rgba(255,255,255,.82); font-size: var(--fs-small); white-space: nowrap; padding: 0 4px; }
.video-seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: var(--r-pill); cursor: pointer;
  background: linear-gradient(to right, var(--accent-fixed) var(--seek, 0%), rgba(255,255,255,.24) var(--seek, 0%));
}
.video-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-fixed); border: 0; cursor: pointer; }
.video-seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-fixed); border: 0; cursor: pointer; }
.vmenu { position: relative; display: inline-flex; }
.vmenu-btn { min-width: 48px; display: inline-flex; align-items: center; justify-content: center; }
.vmenu.open .vmenu-btn { background: rgba(255,255,255,.14); }
.vmenu-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); display: none; flex-direction: column; gap: 2px;
  min-width: 96px; padding: 6px; border-radius: var(--r-sm); border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 6;
}
[data-theme="dark"] .vmenu-pop { background: rgba(8,13,20,.95); border-color: var(--hairline); }
.vmenu.open .vmenu-pop { display: flex; }
.vmenu-pop button { height: auto; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; color: var(--ink-60); font-weight: 600; }
.vmenu-pop button:hover { background: var(--accent-soft); color: var(--ink); }
.vmenu-pop button[aria-selected="true"] { background: var(--accent); color: var(--accent-on); }
/* Guide rail (horizontal, always-on) lives in nexa-video-rail.css — the old vertical
   drawer rules were removed there rather than overridden, so nothing repaints it back. */
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #03060a; border-radius: inherit; }
.video-player:fullscreen { width: 100%; height: 100%; border-radius: 0; }
/* section scaffolding */
.nx-sec { padding: clamp(80px, 13vh, 150px) 0 0; }
.nx-label {
  display: flex; align-items: baseline; gap: 14px;
  font-size: var(--fs-body); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-40);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.nx-h2 {
  margin-top: 26px;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.nx-h2 em { color: var(--accent); }

/* download — boarding rows */
.dl { margin-top: clamp(36px, 6vh, 56px); display: flex; flex-direction: column; gap: 14px; }
.dl-row.glass {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 26px;
  border-radius: var(--r-lg);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 var(--glass-spec), inset 0 -1px 0 var(--glass-spec-2);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.dl-row > .lens { display: none; }
.dl-row:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 var(--glass-spec),
    inset 0 -1px 0 var(--glass-spec-2),
    0 0 0 1px var(--accent-soft);
}
.dl-row .os { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.01em; flex: none; width: auto; min-width: 110px; white-space: nowrap; }
.dl-row .arch { font-size: var(--fs-lead); color: var(--ink-40); flex: 1; }
.dl-row .soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-body); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-60);
}
.dl-row .soon .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.dl-note { margin-top: 24px; font-size: var(--fs-lead); color: var(--ink-40); }
.dl-note em { color: var(--ink-60); }

/* Purely a bottom spacer - it holds no content, and at 150px it read as the page having
   run out rather than ended. Trimmed; the section rhythm above it is left alone. */
.nx-end { margin-top: clamp(56px, 8vh, 96px); }

@media (max-width: 820px) {
  .dl-row .arch { display: none; }
}
@media (max-width: 620px) {
  .video-controls { grid-template-columns: repeat(3, 1fr); }
  .video-seek, .video-time { grid-column: 1 / -1; }
  .hero-play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-rail, .video-card { transition: none; }
}
