/* ==========================================================================
   Orbit: the second Prestige Worldwide theme.
   Mission control for a product studio — deep-space navy, neon-cyan HUD
   chrome, Space Grotesk headlines, scanlines, orbital map, warp transitions.
   Without JavaScript (or with reduced motion) every page is complete and
   still: the HUD stays, the motion simply doesn't run.
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg2: #0a0f20;
  --fg: #e9f1ff;
  --mut: #8292b8;
  --cy: #5df2ff;
  --vi: #8b7bff;
  --accent: #5df2ff;
  --rule: rgba(130, 160, 255, 0.16);
  --panel: linear-gradient(180deg, rgba(120, 160, 255, 0.055), rgba(120, 160, 255, 0.02));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(16px, 3.2vw, 52px);
  --max: 1640px;
  --t0: 0.4s;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: 0.002em;
  background:
    radial-gradient(90% 60% at 70% -10%, rgba(93, 140, 255, 0.12), transparent 60%),
    radial-gradient(60% 40% at 10% 110%, rgba(139, 123, 255, 0.08), transparent 65%),
    linear-gradient(var(--rule) 0 0) left 50% top 0 / 1px 100% no-repeat,
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--cy); color: #05070f; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; border-radius: 2px; }

.frame { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.lbl { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); }
p.lbl, .lbl { margin: 0; }
.ic { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.1em; }
.nowrap { white-space: nowrap; }
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.ul:hover { color: var(--cy); }
.show-sm { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
}
@media (max-width: 1020px) { .hide-md { display: none !important; } }
.skip { position: fixed; left: 12px; top: -64px; z-index: 120; padding: 10px 16px; background: var(--cy); color: #05070f; font-weight: 600; transition: top 0.3s var(--ease); }
.skip:focus { top: 12px; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: o-ping 2.4s ease-out infinite; }
.dot-ok { background: #51ffa8; box-shadow: 0 0 8px #51ffa8; --ping: rgba(81, 255, 168, 0.5); }
.dot-bad { background: #ff5d7a; box-shadow: 0 0 8px #ff5d7a; --ping: rgba(255, 93, 122, 0.5); }

/* Corner brackets: one overlay span draws all four corners. */
.brkt { position: relative; }
.b-c {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --bc: rgba(93, 242, 255, 0.4);
  background:
    linear-gradient(var(--bc), var(--bc)) 0 0 / 14px 1.5px,
    linear-gradient(var(--bc), var(--bc)) 0 0 / 1.5px 14px,
    linear-gradient(var(--bc), var(--bc)) 100% 0 / 14px 1.5px,
    linear-gradient(var(--bc), var(--bc)) 100% 0 / 1.5px 14px,
    linear-gradient(var(--bc), var(--bc)) 0 100% / 14px 1.5px,
    linear-gradient(var(--bc), var(--bc)) 0 100% / 1.5px 14px,
    linear-gradient(var(--bc), var(--bc)) 100% 100% / 14px 1.5px,
    linear-gradient(var(--bc), var(--bc)) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
  transition: --bc 0.4s, opacity 0.4s;
}

.panel { position: relative; padding: clamp(18px, 2vw, 28px); background: var(--panel); border: 1px solid var(--rule); transition: border-color 0.5s var(--ease), transform 0.6s var(--ease), background 0.5s; }
.panel:hover { border-color: rgba(93, 242, 255, 0.35); }
.panel h3 { margin-top: 14px; font-size: clamp(19px, 1.5vw, 24px); }
.panel > p:not(.lbl) { margin-top: 10px; font-size: 15.5px; color: var(--mut); }

/* ── keyframes ────────────────────────────────────────────────────────── */

@keyframes o-fade { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes o-fade-down { from { opacity: 0; transform: translate3d(0, -12px, 0); } }
@keyframes o-ping { 0% { box-shadow: 0 0 0 0 var(--ping, rgba(93, 242, 255, 0.45)); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes o-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes o-sweep { 0% { top: -12%; opacity: 0; } 12% { opacity: 0.9; } 88% { opacity: 0.9; } 100% { top: 108%; opacity: 0; } }
@keyframes o-flicker { 0%, 100% { opacity: 1; } 8% { opacity: 0.35; } 16% { opacity: 0.9; } 26% { opacity: 0.5; } 38% { opacity: 1; } }
@keyframes o-warp-out-l { to { transform: translate3d(-101%, 0, 0); } }
@keyframes o-warp-out-r { to { transform: translate3d(101%, 0, 0); } }
@keyframes o-warp-in-l { from { transform: translate3d(-101%, 0, 0); } to { transform: none; } }
@keyframes o-warp-in-r { from { transform: translate3d(101%, 0, 0); } to { transform: none; } }
@keyframes o-grow-x { from { transform: scaleX(0); } }

/* ── fixed chrome: scanlines, HUD corners ─────────────────────────────── */

/* Full-page deep-space backdrop: twinkling stars, drifting galaxies and
   shooting stars, drawn by orbit.js. Without JS it is simply invisible and
   the body's own gradients carry the look. */
.space { position: fixed; left: 0; top: 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }

.scan {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(231, 240, 255, 0.016) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.hud { position: fixed; inset: 10px; z-index: 89; pointer-events: none; opacity: 0.55; }
.hud i { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(93, 242, 255, 0.55); }
.hud i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hud i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.hud i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.hud i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
@media (max-width: 900px) { .hud { display: none; } }

/* ── warp page transition ─────────────────────────────────────────────── */

.warp { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; pointer-events: none; }
.warp > span { position: absolute; left: 0; width: 100%; height: 34%; background: linear-gradient(90deg, #070b18, #0b1226); border-block: 1px solid rgba(93, 242, 255, 0.25); }
.warp > span:nth-child(1) { top: 0; animation: o-warp-out-l 0.7s var(--ease-io) 0.1s both; }
.warp > span:nth-child(2) { top: 33%; animation: o-warp-out-r 0.7s var(--ease-io) 0.16s both; }
.warp > span:nth-child(3) { top: 66%; height: 34.2%; animation: o-warp-out-l 0.7s var(--ease-io) 0.22s both; }
.warp-label { position: relative; margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cy); opacity: 0; }
.warp-label b { font-weight: 700; color: var(--fg); }
html.leaving .warp > span:nth-child(1) { animation: o-warp-in-l 0.5s var(--ease-io) both; }
html.leaving .warp > span:nth-child(2) { animation: o-warp-in-r 0.5s var(--ease-io) 0.06s both; }
html.leaving .warp > span:nth-child(3) { animation: o-warp-in-l 0.5s var(--ease-io) 0.12s both; }
html.leaving .warp-label { opacity: 1; transition: opacity 0.2s 0.3s; animation: o-flicker 0.9s steps(1) 0.3s; }

/* ── crosshair cursor ─────────────────────────────────────────────────── */

.xhair { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform; }
.xh-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border: 1px solid rgba(93, 242, 255, 0.8); border-radius: 50%; transition: transform 0.45s var(--ease), border-color 0.3s; }
.xh-dot::before, .xh-dot::after { content: ''; position: absolute; background: rgba(93, 242, 255, 0.8); }
.xh-dot::before { left: 50%; top: -6px; width: 1px; height: 4px; box-shadow: 0 30px 0 rgba(93, 242, 255, 0.8); }
.xh-dot::after { top: 50%; left: -6px; height: 1px; width: 4px; box-shadow: 30px 0 0 rgba(93, 242, 255, 0.8); }
.xh-tag { position: absolute; left: 16px; top: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: rgba(93, 242, 255, 0.75); white-space: nowrap; }
.xhair.is-link .xh-dot { transform: scale(1.8); border-color: var(--cy); }
@media (hover: none), (pointer: coarse) { .xhair { display: none; } }

/* ── header ───────────────────────────────────────────────────────────── */

.hd { position: fixed; inset: 0 0 auto; z-index: 70; transition: transform 0.7s var(--ease), background-color 0.4s, box-shadow 0.4s; }
.hd.is-scrolled { background: rgba(5, 7, 15, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }
.hd.is-hidden { transform: translate3d(0, -100%, 0); }
.hd-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: 70px; animation: o-fade-down 0.9s var(--ease) calc(var(--t0) + 0.2s) backwards; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.logo b { font-weight: 300; }
.logo svg { width: 26px; height: 26px; color: var(--cy); filter: drop-shadow(0 0 6px rgba(93, 242, 255, 0.5)); transition: transform 1.2s var(--ease); }
.logo:hover svg { transform: rotate(1turn); }
.hd-tag { padding-left: 14px; border-left: 1px solid var(--rule); }
.hd-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 15px; font-weight: 500; }
.hd-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; white-space: nowrap; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--cy); box-shadow: 0 0 8px var(--cy); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.hd-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd-nav .ic { width: 13px; height: 13px; }
.hd-clock { color: var(--cy); font-variant-numeric: tabular-nums; }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: var(--accent);
  color: #05070f;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: translate 0.7s var(--ease), filter 0.4s var(--ease), background-color 0.4s;
}
.btn:hover { filter: brightness(1.15) saturate(1.1); }
.btn .ic { transition: transform 0.5s var(--ease); }
.btn:hover .ic { transform: translate3d(3px, 0, 0); }
.btn-ghost { background: rgba(93, 242, 255, 0.07); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(93, 242, 255, 0.35); }
.btn-ghost:hover { background: rgba(93, 242, 255, 0.14); filter: none; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: clamp(110px, 16vh, 170px) clamp(24px, 4vh, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(28px, 4vw, 72px); }
.boot { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--rule); background: rgba(93, 242, 255, 0.04); color: var(--fg); animation: o-fade-down 0.9s var(--ease) var(--t0) backwards; }
.hero-title { margin-top: clamp(22px, 3vh, 36px); font-size: clamp(40px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.12s) backwards; }
.hero-title em, .contact-big em, .p-title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--cy), var(--vi) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(93, 242, 255, 0.28));
}
.lede { max-width: 36em; margin-top: clamp(18px, 2.6vh, 28px); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--mut); animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.24s) backwards; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 40px); animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.36s) backwards; }
.orbit-wrap { position: relative; animation: o-fade 1.4s var(--ease) calc(var(--t0) + 0.3s) backwards; }
.orbit-stage { position: relative; }
.orbit-stage canvas { display: none; }
.orbit-stage.is-live { aspect-ratio: 1 / 0.84; }
.orbit-stage.is-live canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* Satellites. Without JavaScript they are a plain list of project links;
   with it, each becomes a label that rides its satellite. */
.orbit-sats { display: flex; flex-wrap: wrap; gap: 8px; }
.sat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--rule); background: rgba(93, 242, 255, 0.04); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); }
.sat i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.orbit-stage.is-live .orbit-sats { display: block; position: absolute; inset: 0; pointer-events: none; }
.orbit-stage.is-live .sat { position: absolute; left: 0; top: 0; display: block; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto; will-change: transform; transition: opacity 0.35s; }
.orbit-stage.is-live .sat i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: transparent; box-shadow: none; cursor: pointer; }
.orbit-stage.is-live .sat span {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  padding: 3px 7px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.3;
  color: var(--c);
  background: rgba(5, 7, 15, 0.66);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.orbit-stage.is-live .sat:hover span,
.orbit-stage.is-live .sat:focus-visible span,
.orbit-stage.is-live .sat[aria-expanded='true'] span { background: var(--c); color: #05070f; border-color: var(--c); }
.orbit-stage.is-live .sat:focus-visible { outline: none; }
.orbit-stage.is-live .sat:focus-visible i { outline: 2px solid var(--c); outline-offset: -6px; }
.orbit-stage.is-live .sat.is-hidden { pointer-events: none; }

/* Mission card */
.orbit-card {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: 50;
  width: min(94%, 410px);
  padding: 14px 14px 16px;
  background: rgba(7, 11, 24, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--c, #5df2ff) 45%, transparent);
  box-shadow: 0 0 46px -14px color-mix(in srgb, var(--c, #5df2ff) 70%, transparent), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.orbit-card.is-top { top: 3%; bottom: auto; transform: translate(-50%, -12px) scale(0.97); }
.orbit-card.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }
.orbit-card[hidden] { display: none; }
.orbit-card .b-c { --bc: color-mix(in srgb, var(--c, #5df2ff) 85%, transparent); }
.oc-close { position: absolute; right: 6px; top: 4px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--mut); font-size: 22px; line-height: 1; cursor: pointer; }
.oc-close:hover { color: var(--fg); }
.oc-top { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-right: 34px; }
.oc-status { display: inline-flex; align-items: center; gap: 7px; color: var(--c); }
.oc-status .dot { background: var(--c); box-shadow: 0 0 8px var(--c); --ping: color-mix(in srgb, var(--c) 45%, transparent); }
.oc-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 12px; }
.oc-shot { width: 116px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--rule); }
.orbit-card h3 { font-size: 21px; line-height: 1.1; }
.oc-tag { margin-top: 5px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.oc-kind { margin-top: 12px; }
.oc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.oc-actions .btn { height: 40px; padding: 0 15px; font-size: 13.5px; }
@media (max-width: 640px) {
  .orbit-stage.is-live .sat span { font-size: 9px; padding: 2px 5px; }
  .oc-body { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .oc-shot { width: 92px; }
  .orbit-card h3 { font-size: 18px; }
}

/* ── ticker ───────────────────────────────────────────────────────────── */

.ticker { overflow: hidden; border-block: 1px solid var(--rule); background: rgba(10, 15, 32, 0.5); }
.ticker-track { display: flex; width: max-content; animation: o-marquee 48s linear infinite; }
.ticker-group { display: flex; align-items: center; }
.ticker-group a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s, background-color 0.3s; }
.ticker-group a .dot { background: var(--c); box-shadow: 0 0 8px var(--c); animation: none; }
.ticker-group a b { font-weight: 400; color: var(--c); }
.ticker-group a:hover { background: rgba(93, 242, 255, 0.06); color: var(--cy); }
.tick-sep { color: var(--rule); font-family: var(--mono); font-size: 12px; }

/* ── section heads ────────────────────────────────────────────────────── */

.sec-head { margin-bottom: clamp(30px, 4vw, 64px); }
.sec-head h2 { margin-top: 16px; font-size: clamp(32px, 4.2vw, 72px); line-height: 1; letter-spacing: -0.03em; }

/* ── index + monitor ──────────────────────────────────────────────────── */

.index { padding-block: clamp(90px, 11vw, 170px) clamp(70px, 9vw, 140px); }
.idx-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 64px); align-items: start; }
.rows { border-top: 1px solid var(--rule); }
.row { border-bottom: 1px solid var(--rule); }
.row > a { position: relative; display: grid; grid-template-columns: clamp(34px, 3.4vw, 56px) minmax(0, 1fr) auto 40px; align-items: center; gap: 18px; padding: clamp(16px, 2vw, 26px) 10px; transition: background-color 0.4s var(--ease), padding 0.5s var(--ease); }
.row > a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); transform: scaleY(0); transition: transform 0.45s var(--ease); }
.row-num { font-variant-numeric: tabular-nums; }
.row-name { min-width: 0; font-size: clamp(24px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; transition: color 0.3s; }
.row-meta { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); white-space: nowrap; }
.row-status { display: inline-flex; align-items: center; gap: 8px; }
.row-status .dot { background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); --ping: color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.row-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.row-arrow .ic { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform 0.5s var(--ease); }
.row > a:hover, .row > a:focus-visible { background: rgba(93, 242, 255, 0.045); padding-left: 22px; }
.row > a:hover::before, .row > a:focus-visible::before { transform: scaleY(1); }
.row > a:hover .row-name { color: var(--cy); text-shadow: 0 0 22px rgba(93, 242, 255, 0.35); }
.row > a:hover .row-arrow { background: var(--cy); border-color: var(--cy); color: #05070f; }
.row > a:hover .row-arrow .ic { transform: rotate(0deg); }
.row-thumb { display: none; }

.monitor { position: sticky; top: 96px; padding: 10px; background: var(--panel); border: 1px solid var(--rule); }
.mon-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0f20; }
.mon-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.25s steps(3); }
.mon-screen img.is-on { opacity: 1; }
.mon-screen.flick img.is-on { animation: o-flicker 0.35s steps(1); }
.mon-sweep { position: absolute; left: 0; right: 0; top: -12%; height: 10%; background: linear-gradient(180deg, transparent, rgba(93, 242, 255, 0.14), transparent); animation: o-sweep 4.5s linear infinite; pointer-events: none; }
.mon-cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 2px; }
.mon-name { color: var(--fg); }
.mon-sig { color: var(--cy); }
@media (max-width: 1020px) {
  .idx-grid { grid-template-columns: minmax(0, 1fr); }
  .monitor { display: none; }
  .row > a { grid-template-columns: 28px minmax(0, 1fr) 92px; gap: 6px 14px; }
  .row-num { grid-row: 1 / span 2; align-self: start; padding-top: 0.5em; }
  .row-name { grid-column: 2; font-size: clamp(22px, 5.6vw, 34px); }
  .row-meta { grid-column: 2; flex-wrap: wrap; gap: 4px 12px; white-space: normal; }
  .row-arrow { display: none; }
  .row-thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 92px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--rule); }
}

/* ── flight deck ──────────────────────────────────────────────────────── */

.deck { padding-block: clamp(70px, 9vw, 140px) 0; }
.deck-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.deck-count { font-variant-numeric: tabular-nums; }
.deck-count b { font-weight: 700; color: var(--cy); }
.deck-track { display: flex; gap: clamp(14px, 1.8vw, 28px); padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.deck-track::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: min(78vw, 540px); scroll-snap-align: start; padding: 12px 12px 18px; background: var(--panel); border: 1px solid var(--rule); transition: border-color 0.5s, transform 0.2s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.dcard:hover { border-color: rgba(93, 242, 255, 0.4); }
.dcard > a { display: block; }
.dcard-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #0a0f20; }
.dcard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease), filter 0.5s; }
.dcard:hover .dcard-shot img { transform: scale(1.04); }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(93, 242, 255, 0.18), transparent 60%); transition: opacity 0.4s; }
.dcard:hover .glare, .holo:hover .glare { opacity: 1; }
.dcard-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dcard h3 { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: clamp(22px, 2vw, 30px); }
.dcard h3::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.dcard > a > p { margin-top: 6px; font-size: 15.5px; color: var(--mut); }
.dcard-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--cy); opacity: 0.75; transition: opacity 0.3s, gap 0.4s var(--ease); }
.dcard:hover .dcard-go { opacity: 1; gap: 12px; }
.deck-bar { position: relative; height: 2px; margin-top: clamp(24px, 3vw, 40px); background: var(--rule); overflow: hidden; }
.deck-bar > span { position: absolute; inset: 0; background: var(--cy); box-shadow: 0 0 10px var(--cy); transform-origin: left; transform: scaleX(0.125); }

/* ── studio / transmission ────────────────────────────────────────────── */

.studio { padding-block: clamp(100px, 13vw, 200px) clamp(60px, 8vw, 120px); }
.statement { margin-top: 24px; max-width: 24em; font-size: clamp(25px, 3.2vw, 52px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; }
.statement .w { transition: opacity 0.25s linear, text-shadow 0.25s linear; }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(56px, 7vw, 110px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(56px, 7vw, 110px); }
.stat { padding-top: 20px; border-top: 1px solid var(--rule); }
.stat dt { font-size: clamp(64px, 8.5vw, 150px); line-height: 0.95; font-weight: 300; letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(93, 242, 255, 0.25); }
.stat dd { margin: 12px 0 0; }

/* ── contact ──────────────────────────────────────────────────────────── */

.contact { padding-block: clamp(70px, 9vw, 150px) clamp(90px, 11vw, 170px); }
.contact-big { display: block; width: fit-content; max-width: 100%; margin-top: 24px; font-size: clamp(40px, 8.4vw, 160px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.contact-big::after { content: ''; display: block; height: 2px; margin-top: 0.12em; background: linear-gradient(90deg, var(--cy), var(--vi)); box-shadow: 0 0 12px rgba(93, 242, 255, 0.5); transform: scaleX(0); transform-origin: right; transition: transform 0.9s var(--ease); }
.contact-big:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: clamp(40px, 5vw, 80px); }
.contact-foot > p { max-width: 30em; font-size: clamp(16px, 1.25vw, 19px); color: var(--mut); }
.contact-foot .ul { color: var(--fg); }
.magnet { display: grid; place-items: center; flex: none; width: clamp(120px, 11vw, 170px); aspect-ratio: 1; background: rgba(93, 242, 255, 0.06); border: 1px solid rgba(93, 242, 255, 0.35); color: var(--cy); font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; transition: translate 0.7s var(--ease), background-color 0.4s, color 0.4s; }
.magnet .b-c { --bc: rgba(93, 242, 255, 0.8); }
.magnet:hover { background: var(--cy); color: #05070f; }
.magnet > span { transition: translate 0.7s var(--ease); }

/* ── footer ───────────────────────────────────────────────────────────── */

.ft { padding-block: clamp(60px, 8vw, 120px) 26px; border-top: 1px solid var(--rule); background: linear-gradient(180deg, transparent, rgba(10, 15, 32, 0.7)); overflow: hidden; }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.ft-list { display: grid; gap: 2px; margin-top: 16px; }
.ft-list a { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15.5px; transition: color 0.3s, gap 0.4s var(--ease); }
.ft-list a i { flex: none; width: 6px; height: 6px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ft-list a span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mut); }
.ft-list a:hover { color: var(--cy); gap: 14px; }
.ft-copy { margin-top: 16px; font-size: 15.5px; color: var(--mut); }
.ft-copy .ul { color: var(--fg); }
.ft-sig { margin-top: 12px; }
.ft-mark { margin-top: clamp(56px, 8vw, 130px); font-size: clamp(56px, 8vw, 132px); line-height: 0.9; letter-spacing: -0.02em; font-weight: 600; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(233, 241, 255, 0.28); user-select: none; }
.ft-mark span { transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s; }
.ft-mark:hover span:first-child { color: var(--cy); -webkit-text-stroke-color: transparent; }
.ft-mark:hover span:last-child { color: var(--vi); -webkit-text-stroke-color: transparent; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.ft-ok { display: inline-flex; align-items: center; gap: 9px; color: #51ffa8; }
.ft-echo i { font-style: italic; opacity: 0.6; }

/* ── project pages ────────────────────────────────────────────────────── */

.p-hero { padding-top: clamp(116px, 17vh, 180px); padding-bottom: clamp(36px, 5vw, 72px); }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; animation: o-fade-down 0.9s var(--ease) var(--t0) backwards; }
.p-title { margin-top: clamp(20px, 3.4vw, 44px); font-size: clamp(44px, 8.4vw, 150px); line-height: 0.98; letter-spacing: -0.035em; animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.1s) backwards; }
.p-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px clamp(28px, 5vw, 100px); margin-top: clamp(28px, 4.4vw, 64px); padding-top: 26px; border-top: 1px solid var(--rule); animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.22s) backwards; }
.p-tag { max-width: 16em; font-size: clamp(21px, 2.1vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.p-summary { max-width: 38em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--mut); }
.p-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.p-shot { padding-block: clamp(14px, 2vw, 32px); }
.holo { padding: 10px; background: var(--panel); border: 1px solid var(--rule); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-color 0.5s; will-change: transform; }
.holo:hover { border-color: rgba(93, 242, 255, 0.4); }
.holo-bar { display: flex; justify-content: space-between; gap: 14px; padding: 4px 4px 12px; }
.holo-bar span { display: inline-flex; align-items: center; gap: 8px; }
.holo-bar .dot { --ping: color-mix(in srgb, var(--accent) 45%, transparent); }
.holo img { width: 100%; }
.holo .mon-sweep { animation-duration: 6s; }

.p-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding-block: clamp(44px, 6vw, 90px); }
.fact p { margin-top: 10px !important; font-size: clamp(16px, 1.2vw, 20px) !important; line-height: 1.35; color: var(--fg) !important; font-weight: 500; }

.p-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 22px clamp(20px, 3.4vw, 56px); padding-block: clamp(36px, 5.5vw, 100px) clamp(70px, 9.5vw, 150px); }
.p-story .statement { margin-top: 0; max-width: 26em; font-size: clamp(23px, 2.7vw, 44px); }
.p-story-rest { max-width: 62em; margin-top: clamp(30px, 4vw, 56px); columns: 2; column-gap: clamp(22px, 2.8vw, 48px); font-size: 16px; color: var(--mut); }
.p-story-rest p + p { margin-top: 1em; }
@media (max-width: 900px) { .p-story { grid-template-columns: minmax(0, 1fr); } .p-story-rest { columns: 1; } }

.p-features { padding-block: 0 clamp(70px, 9.5vw, 150px); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.feat-n { color: var(--cy); }

.p-steps { padding-block: 0 clamp(70px, 9.5vw, 150px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 32px clamp(20px, 2.6vw, 44px); padding-top: 42px; }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule); }
.steps::after { background: var(--cy); box-shadow: 0 0 10px var(--cy); transform-origin: left; transform: scaleX(var(--sp, 1)); }
.steps li { position: relative; }
.steps li::before { content: ''; position: absolute; left: 0; top: -42px; width: 13px; height: 13px; background: var(--bg); border: 1px solid var(--cy); transform: rotate(45deg); transition: background-color 0.45s, box-shadow 0.45s; }
.steps li.is-on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
.step-n { display: block; color: var(--cy); }
.steps h3 { margin-top: 12px; font-size: clamp(20px, 1.7vw, 27px); }
.steps p { max-width: 28em; margin-top: 10px; font-size: 15.5px; color: var(--mut); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 0; padding-left: 36px; }
  .steps::before, .steps::after { left: 6px; right: auto; top: 4px; bottom: 4px; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--sp, 1)); }
  .steps li::before { left: -36px; top: 2px; }
}

.p-live { padding-block: 0 clamp(80px, 10vw, 160px); }
.p-live-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 44px clamp(28px, 5vw, 100px); padding: clamp(24px, 3.4vw, 56px); background: var(--panel); border: 1px solid var(--rule); }
.p-live-phone { display: flex; justify-content: center; }
.phone { width: min(100%, 280px); padding: 9px; border-radius: 40px; background: #0d1326; box-shadow: 0 0 0 1px rgba(93, 242, 255, 0.25), 0 0 60px rgba(93, 242, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.8); will-change: transform; }
.phone img { width: 100%; border-radius: 32px; }
.p-live-link { display: block; width: fit-content; max-width: 100%; margin-top: 18px; font-size: clamp(30px, 4.2vw, 76px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; overflow-wrap: anywhere; transition: color 0.3s, text-shadow 0.3s; }
.p-live-link:hover { color: var(--cy); text-shadow: 0 0 30px rgba(93, 242, 255, 0.4); }
.p-live-link .ic { width: 0.55em; height: 0.55em; }

.next { position: relative; display: block; overflow: hidden; padding-block: clamp(22px, 3vw, 42px); border-top: 1px solid var(--rule); isolation: isolate; transition: color 0.45s var(--ease); }
.next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: translate3d(0, 101%, 0); transition: transform 0.6s var(--ease); }
.next:hover { color: #05070f; }
.next:hover::before { transform: none; }
.next-track { display: flex; width: max-content; animation: o-marquee 26s linear infinite; }
.next-group { display: flex; align-items: center; gap: 0.4em; padding-right: 0.4em; font-size: clamp(44px, 7vw, 130px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; white-space: nowrap; }
.next-group i { font-style: normal; font-weight: 300; color: var(--mut); transition: color 0.45s; }
.next-group b { font-family: var(--mono); font-size: 0.22em; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cy); transition: color 0.45s; }
.next:hover .next-group i, .next:hover .next-group b { color: inherit; }

.lost { min-height: 84vh; padding-top: clamp(140px, 22vh, 240px); padding-bottom: 120px; }
.lost .p-summary { max-width: 34em; margin-top: 28px; animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.22s) backwards; }
.lost .p-links { animation: o-fade 1.1s var(--ease) calc(var(--t0) + 0.34s) backwards; }

/* ── scroll reveals (orbit.js adds .rv only below the fold) ───────────── */

[data-reveal].rv, [data-reveal='panel'].rv { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-reveal].rv:not(.in) { opacity: 0; transform: translate3d(0, 42px, 0); }
[data-reveal='panel'].rv:not(.in) { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.985); }
[data-reveal='panel'].rv:not(.in) .b-c { opacity: 0; }
[data-reveal='panel'] .b-c { transition: opacity 0.8s var(--ease) calc(var(--d, 0s) + 0.3s); }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .orbit-wrap { width: 100%; max-width: 560px; margin-inline: auto; }
  .panels, .stats, .ft-cols, .feats { grid-template-columns: minmax(0, 1fr); }
  .p-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-intro { grid-template-columns: minmax(0, 1fr); }
  .p-live-in { grid-template-columns: minmax(0, 1fr); }
  .p-live-phone { order: 2; }
}
@media (min-width: 641px) and (max-width: 1020px) {
  .panels, .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hd-in { height: 62px; gap: 14px; }
  .logo { font-size: 15px; }
  .hd-nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 96px; }
  .hero-title { font-size: clamp(34px, 10.4vw, 44px); }
  .contact-foot { flex-direction: column; align-items: flex-start; }
  .p-facts { grid-template-columns: minmax(0, 1fr); }
  .ft-mark { font-size: 16.5vw; white-space: normal; line-height: 1; }
  .ft-mark span { display: block; width: fit-content; }
  .btn { height: 48px; padding: 0 20px; }
}

/* ── reduced motion: everything visible and still ─────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .warp, .xhair, .mon-sweep { display: none !important; }
  .ticker { overflow-x: auto; }
  .ticker-track, .next-track { animation: none !important; }
  .dot { animation: none; }
}
