/* Opraite — site v2 ("OS").
 *
 * A fixed WebGL field behind everything, giant wide type, glass, a 3D orbital
 * map of the platform, pinned scenes and a horizontal module rail.
 * Motion is opt-in (`html.anim`); with it off, every section is complete,
 * static and readable.
 */

:root {
  --ink-0: #03080f;
  --ink-1: #07121f;
  --ink-2: #0b1c30;
  --ink-3: #123859;
  --white: #ffffff;
  --on-dark: #eaf3fb;
  --on-dark-soft: #a9bdd1;
  --sky: #27a6ed;
  --sky-hi: #7fd0ff;
  --plasma: #7c5cff;
  --mint: #3ee6b5;
  --amber: #ffb454;
  --line-dark: rgba(157, 195, 230, 0.18);
  --glass: rgba(9, 22, 38, 0.58);

  --font-display: 'Lato', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Lato', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(39, 166, 237, 0.22), transparent 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(124, 92, 255, 0.18), transparent 70%),
    var(--ink-0);
  background-attachment: fixed;
}
html.booting {
  overflow: hidden;
}
body {
  margin: 0;
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
em {
  font-style: normal;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sky);
  color: #03121f;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--sky-hi);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grad {
  background: linear-gradient(100deg, #7fd0ff 0%, #27a6ed 35%, #7c5cff 70%, #7fd0ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen {
  to { background-position: -220% 0; }
}

/* ═══ the field behind everything ═══════════════════════════════════════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(39, 166, 237, 0.22), transparent 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(124, 92, 255, 0.18), transparent 70%),
    var(--ink-0);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.pagebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.pagebar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--plasma));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ═══ custom cursor (fine pointers only) ════════════════════════════════════ */
.cursor {
  display: none;
}
html.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  pointer-events: none;
}
html.has-cursor.anim,
html.has-cursor.anim a,
html.has-cursor.anim button {
  cursor: none;
}
/* the booking assistant opens in the browser's top layer, above the page and above the custom
   cursor: while it is open the real pointer comes back, everywhere (dialog, its backdrop, buttons) */
html.dialog-open,
html.dialog-open *,
html.dialog-open *::backdrop {
  cursor: auto !important;
}
html.dialog-open .demo-dialog button,
html.dialog-open .demo-dialog a,
html.dialog-open .demo-dialog select {
  cursor: pointer !important;
}
html.dialog-open .demo-dialog input[type='text'] {
  cursor: text !important;
}
html.dialog-open .cursor {
  opacity: 0;
}
.c-dot,
.c-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.c-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}
.c-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 208, 255, 0.7);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.cursor.hot .c-ring {
  width: 74px;
  height: 74px;
  background: rgba(127, 208, 255, 0.16);
  border-color: var(--sky-hi);
}

/* ═══ boot ═════════════════════════════════════════════════════════════════ */
.loader {
  display: none;
}
html.booting .loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--ink-0);
}
.loader-inner {
  width: min(420px, 80vw);
}
.loader-tag {
  color: var(--sky-hi);
}
.loader-num {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.022em;
  display: flex;
  align-items: baseline;
}
.loader-num i {
  font-style: normal;
  font-size: 0.32em;
  color: var(--sky);
  margin-left: 6px;
}
.loader-bar {
  height: 2px;
  margin-top: 14px;
  background: rgba(157, 195, 230, 0.18);
}
.loader-bar b {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--plasma));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.loader-log {
  margin-top: 12px;
  color: var(--on-dark-soft);
  min-height: 1.2em;
}

/* ═══ nav ══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 100;
  width: min(1240px, calc(100vw - 24px));
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 8px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(5, 14, 24, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-140%);
}
.brand img {
  width: auto;
  height: 28px;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(127, 208, 255, 0.1);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.lang button {
  min-width: 40px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.lang button.active {
  background: #fff;
  color: #03121f;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sky);
  color: #03121f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 0 0 rgba(39, 166, 237, 0.5);
}
.pill:hover {
  background: var(--sky-hi);
  box-shadow: 0 0 40px 2px rgba(39, 166, 237, 0.55);
}

/* ═══ buttons ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.3s, border-color 0.25s, color 0.25s;
}
.btn i {
  font-style: normal;
  transition: transform 0.3s var(--ease);
}
.btn:hover i {
  transform: translateX(5px);
}
.btn-primary {
  background: linear-gradient(110deg, #27a6ed, #5aa8ff 55%, #7c5cff);
  background-size: 160% 100%;
  color: #02101c;
  box-shadow: 0 10px 40px -10px rgba(39, 166, 237, 0.7);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 56px -8px rgba(124, 92, 255, 0.75);
}
.btn-ghost {
  border-color: var(--line-dark);
  background: rgba(9, 22, 38, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--sky-hi);
}

/* ═══ type ═════════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sky-hi);
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}
.h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 em {
  background: linear-gradient(100deg, #7fd0ff, #27a6ed 50%, #b69cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lead {
  margin-top: 22px;
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  color: var(--on-dark-soft);
}
.glass {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% { opacity: 0.25; }
}

/* motion is opt-in: these exist only under html.anim */
html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

/* ═══ hero ═════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(120px, 17vh, 170px) var(--gutter) clamp(56px, 8vh, 96px);
  display: flex;
  align-items: center;
}
.hud {
  position: absolute;
  z-index: 2;
  color: var(--on-dark-soft);
  opacity: 0.8;
}
.hud b {
  color: var(--sky-hi);
  font-weight: 500;
}
.hud-tl { left: var(--gutter); top: 104px; }
.hud-tr { right: var(--gutter); top: 104px; }
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
}
.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.15vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-title .ln {
  display: block;
  white-space: nowrap;
}
.hero-title .ln .ch {
  display: inline-block;
  will-change: transform;
}
.hero-title .ln.grad {
  background: none;
  animation: none;
  color: var(--sky-hi);
  -webkit-text-fill-color: currentColor;
}
.hero-title .ln.grad .ch {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(100deg, #7fd0ff 0%, #27a6ed 45%, #8a6cff 100%);
}
.hero-lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--on-dark-soft);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.orbit-wrap {
  position: relative;
  width: 116%;
  margin-left: -8%;
}
.orbit {
  width: 100%;
  aspect-ratio: 1;
  touch-action: pan-y;
}
.orbit-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -4px;
  translate: -50% 0;
  white-space: nowrap;
  color: var(--on-dark-soft);
  font-size: 0.64rem;
}
.hero-foot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 28px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--on-dark-soft);
  font-size: 0.66rem;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue i {
  position: relative;
  width: 46px;
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--sky-hi);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  to { left: 110%; }
}

/* ═══ live now ═════════════════════════════════════════════════════════════ */
.live {
  overflow-x: clip;
  padding: clamp(80px, 14vh, 170px) 0 clamp(40px, 8vh, 90px);
}
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
}
.live-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.live-copy > * {
  grid-column: 1;
}
.live-copy > .live-badge {
  justify-self: start;
}
.live-copy > .feed {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: end;
  margin-top: 0;
  justify-self: end;
  width: 100%;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(62, 230, 181, 0.45);
  border-radius: 999px;
  background: rgba(62, 230, 181, 0.08);
  color: var(--mint);
}
.live-badge .dot {
  margin-right: 10px;
}
.live-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.live-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.live-points li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky-hi) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303121f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 12px no-repeat;
}
.feed {
  margin-top: 32px;
  max-width: 30rem;
  padding: 16px 20px 8px;
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-dark-soft);
  font-size: 0.62rem;
}
.feed-head .dot {
  margin-right: 8px;
}
#feedList {
  margin-top: 8px;
  min-height: 188px;
}
#feedList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.94rem;
}
#feedList li time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
#feedList li.fresh {
  animation: feedIn 0.7s var(--ease) both;
}
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-14px); background: rgba(62, 230, 181, 0.18); }
  to { opacity: 1; transform: none; background: transparent; }
}
.devices {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 1 / 0.64;
  container-type: inline-size;
  perspective: 1600px;
}
.dev {
  position: absolute;
  will-change: transform;
}
.dev .screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f6f9fc;
}
.dev .screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* a caption on each device: whose view it is */
.dev-tag {
  position: absolute;
  left: 0;
  bottom: 100%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: clamp(6px, 0.9cqw, 12px);
  padding: 0.55em 1em 0.55em 0.8em;
  border: 1px solid rgba(127, 208, 255, 0.45);
  border-radius: 999px;
  background: rgba(5, 14, 24, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: clamp(0.56rem, 1.05cqw, 0.72rem);
  white-space: nowrap;
  pointer-events: none;
}
.dev-tag::before {
  content: '';
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.phone-x .dev-tag {
  left: auto;
  right: 0;
}

/* desktop: the admin */
.monitor {
  left: 8%;
  top: 0;
  width: 82%;
  aspect-ratio: 16 / 10;
  padding: 0.5cqw;
  border-radius: 1.6cqw;
  background: #1a2b3f;
  box-shadow: 0 5cqw 9cqw -3cqw rgba(0, 0, 0, 0.85), 0 0 8cqw -2cqw rgba(39, 166, 237, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.monitor .screen {
  border-radius: 1.2cqw;
}
.m-stand {
  position: absolute;
  left: 40%;
  top: 51%;
  width: 20%;
  height: 4.4%;
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(to bottom, #1a2b3f, #0b1522);
  z-index: 0;
}

/* tablet: the reception */
.tablet {
  left: 0;
  bottom: 0;
  width: 47%;
  aspect-ratio: 1180 / 820;
  padding: 0.9cqw;
  border-radius: 2.2cqw;
  background: #16253a;
  box-shadow: 0 4cqw 8cqw -2cqw rgba(0, 0, 0, 0.9), 0 0 7cqw -2cqw rgba(124, 92, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 3;
}
.tablet .screen {
  border-radius: 1.5cqw;
}

/* phone: the player (a neutral frame: no notch, no island, just a pin-hole) */
.phone-x {
  right: 0;
  bottom: 2%;
  width: 20%;
  aspect-ratio: 390 / 844;
  padding: 0.9cqw;
  border-radius: 3.4cqw;
  background: linear-gradient(160deg, #22344d, #0a1422 60%);
  box-shadow: 0 4cqw 8cqw -2cqw rgba(0, 0, 0, 0.9), 0 0 7cqw -1cqw rgba(62, 230, 181, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  z-index: 4;
}
.phone-x .screen {
  border-radius: 2.6cqw;
}
.phone-x .cam {
  position: absolute;
  left: 50%;
  top: 1.8cqw;
  z-index: 2;
  width: 0.8cqw;
  height: 0.8cqw;
  translate: -50% 0;
  border-radius: 50%;
  background: #03080f;
  box-shadow: 0 0 0 0.22cqw #17273b;
}

/* ═══ manifesto ════════════════════════════════════════════════════════════ */
.manifesto {
  padding: clamp(90px, 16vh, 200px) 0;
}
.m-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
}
.m-text {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.m-text .w {
  display: inline-block;
  margin-right: 0.24em;
}
.m-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: center;
}
.m-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.m-links line {
  stroke: rgba(127, 208, 255, 0.45);
  stroke-width: 0.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.m-app {
  --k: 1;
  position: absolute;
  left: calc(50% + (var(--x) - 50%) * var(--k));
  top: calc(50% + (var(--y) - 50%) * var(--k));
  width: clamp(44px, 9%, 58px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  rotate: calc(var(--r) * var(--k));
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(12, 30, 50, 0.85);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.m-app svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--sky-hi);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  translate: -50% -50%;
  padding: 18px 28px;
  border: 1px solid var(--sky);
  border-radius: 999px;
  background: #02101c;
  box-shadow: 0 0 60px rgba(39, 166, 237, 0.4);
}
.m-core img {
  display: block;
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
.m-sectors li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  translate: -50% -50%;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(9, 22, 38, 0.92);
  color: var(--on-dark);
  font-size: 0.64rem;
}
html:not(.anim) .m-apps {
  display: none;
}

/* ═══ platform (pinned) ════════════════════════════════════════════════════ */
.plat {
  position: relative;
}
.plat-pin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 96px var(--gutter) 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.steps {
  margin-top: 38px;
  display: grid;
  gap: 4px;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--line-dark);
  opacity: 0.4;
  transition: opacity 0.4s, border-color 0.4s;
}
.step.is-active {
  opacity: 1;
  border-color: var(--sky);
}
.step .n {
  color: var(--sky-hi);
  padding-top: 6px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: -0.015em;
}
.step p {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--on-dark-soft);
  transition: max-height 0.5s var(--ease), margin 0.5s var(--ease);
}
.step.is-active p {
  max-height: 6em;
  margin-top: 8px;
}
.plat-bar {
  height: 2px;
  margin-top: 26px;
  background: var(--line-dark);
}
.plat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--plasma));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.plat-stage {
  position: relative;
  height: min(72vh, 640px);
  perspective: 1400px;
}
.stage-tag {
  position: absolute;
  right: 6px;
  top: -34px;
  z-index: 3;
  color: var(--on-dark-soft);
  font-size: 0.64rem;
}
.plat-big {
  position: absolute;
  right: -2%;
  bottom: -4%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 16vw, 15rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 208, 255, 0.28);
  pointer-events: none;
}
.plat-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateZ(-160px) rotateY(14deg) scale(0.92);
  filter: blur(14px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease), visibility 0s 0.7s;
}
.plat-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease), visibility 0s;
}
html:not(.anim) .plat-stage {
  height: auto;
  display: grid;
  gap: 20px;
}
html:not(.anim) .plat-scene {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  min-height: 320px;
}
html:not(.anim) .step p {
  max-height: none;
  margin-top: 8px;
}
html:not(.anim) .step {
  opacity: 1;
}
html:not(.anim) .plat-pin {
  min-height: 0;
  padding-block: 100px;
}

/* scene 01 */
.dash {
  width: min(100%, 560px);
  padding: 26px;
}
.crumb {
  color: var(--on-dark-soft);
  font-size: 0.66rem;
}
.crumb b {
  color: #fff;
  font-weight: 500;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.kpi {
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
}
.kpi .mono {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.6rem;
}
.kpi strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.022em;
}
.kpi strong i {
  font-style: normal;
  color: var(--sky-hi);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin-top: 26px;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(39, 166, 237, 0.25), var(--sky-hi));
  transform-origin: 50% 100%;
}
.spark {
  width: 100%;
  height: 70px;
  margin-top: 16px;
  overflow: visible;
}
.spark path {
  fill: none;
  stroke: var(--plasma);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* scene 02 */
.hubbox {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 600 / 420;
}
.hubbox svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hub-cap {
  position: absolute;
  translate: -50% -50%;
  color: var(--on-dark);
  font-size: 0.62rem;
  white-space: nowrap;
}
.hc-core { left: 50%; top: 50%; color: #fff; }
.hc-a { left: 15%; top: 36%; }
.hc-b { left: 15%; top: 66%; }
.hc-c { left: 85%; top: 31%; }

/* scene 03 */
.chipbox {
  overflow: hidden;
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
}
.chip-core {
  position: relative;
  z-index: 2;
  padding: 18px 28px;
  border: 1px solid var(--sky);
  border-radius: 999px;
  background: #02101c;
  box-shadow: 0 0 60px rgba(39, 166, 237, 0.4);
}
.chip-core img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.chip {
  position: absolute;
  left: var(--l, 50%);
  top: var(--t, 50%);
  padding: 10px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(14, 34, 56, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
html:not(.anim) .chip {
  transform: translate(-50%, -50%);
}
.chip:nth-of-type(1) { --l: 30%; --t: 14%; }
.chip:nth-of-type(2) { --l: 70%; --t: 17%; }
.chip:nth-of-type(3) { --l: 14%; --t: 40%; }
.chip:nth-of-type(4) { --l: 86%; --t: 42%; }
.chip:nth-of-type(5) { --l: 17%; --t: 70%; }
.chip:nth-of-type(6) { --l: 83%; --t: 68%; }
.chip:nth-of-type(7) { --l: 50%; --t: 86%; }

/* scene 04 */
.agentbox {
  width: min(100%, 460px);
  padding: 26px;
}
.checks {
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(10, 26, 44, 0.7);
  font-weight: 500;
}
.checks i {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--sky-hi) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303121f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center / 14px no-repeat;
}

/* ═══ agents ═══════════════════════════════════════════════════════════════ */
.agents {
  padding: clamp(90px, 16vh, 200px) 0;
}
.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
}
.aic {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}
.aic li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 6px 0 6px 18px;
  border-left: 2px solid var(--line-dark);
}
.aic li:first-child {
  border-left-color: var(--sky);
}
.aic .n {
  grid-row: 1 / 3;
  color: var(--sky-hi);
  padding-top: 5px;
}
.aic h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}
.aic p {
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}
.console {
  overflow: hidden;
  min-height: 460px;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}
.console-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(157, 195, 230, 0.28);
}
.console-bar span {
  margin-left: auto;
  color: var(--on-dark-soft);
  font-size: 0.64rem;
}
.console-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 28px;
}
.msg {
  max-width: 84%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 0.98rem;
  line-height: 1.45;
  min-height: 1.45em;
}
.msg:empty {
  display: none;
}
.msg.me {
  align-self: flex-end;
  background: linear-gradient(110deg, #27a6ed, #5aa8ff);
  color: #02101c;
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.msg.bot {
  align-self: flex-start;
  border: 1px solid var(--line-dark);
  background: rgba(14, 34, 56, 0.85);
  border-bottom-left-radius: 5px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices span {
  padding: 10px 16px;
  border: 1px solid var(--sky);
  border-radius: 999px;
  color: var(--sky-hi);
  font-size: 0.88rem;
  font-weight: 500;
}
.choices span.picked {
  background: var(--sky);
  color: #02101c;
}
.done {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
}
.done svg {
  width: 20px;
  height: 20px;
}
html.anim .console-body .choices,
html.anim .console-body .done {
  opacity: 0;
}

/* tilt cards share one spotlight + 3D tilt */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(127, 208, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tilt:hover::after {
  opacity: 1;
}

/* ═══ film ═════════════════════════════════════════════════════════════════ */
.film {
  position: relative;
  height: 230svh;
}
.film-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.film-box {
  position: relative;
  width: min(100vw - 2 * var(--gutter), (100svh - 48px) * 16 / 9);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ink-1);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.85);
}
html:not(.anim) .film-box {
  width: 100%;
}
html:not(.anim) .film {
  height: auto;
  padding: 60px var(--gutter);
}
html:not(.anim) .film-pin {
  position: relative;
  height: auto;
}
.film-box video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* ═══ stats ════════════════════════════════════════════════════════════════ */
.stats {
  padding: clamp(80px, 14vh, 170px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
}
.stat {
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.big {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: -0.022em;
}
.stat .mono {
  display: block;
  margin-top: 14px;
  color: var(--on-dark-soft);
}

/* ═══ modules ══════════════════════════════════════════════════════════════ */
.modules {
  padding-top: clamp(40px, 8vh, 100px);
}
.modules-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 64px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.modules-head > div {
  max-width: 46rem;
}
.hpin {
  position: relative;
  overflow-x: clip;
  padding-bottom: 30px;
}
.htrack {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px var(--gutter);
}
.card {
  position: relative;
  flex: none;
  width: clamp(290px, 27vw, 400px);
  min-height: min(62vh, 520px);
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.card.foundation {
  width: clamp(320px, 33vw, 480px);
}
.card .idx {
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 60%, transparent);
  text-transform: none;
}
.card .ico {
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 18%, rgba(3, 8, 15, 0.6));
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.card h3 {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.card.foundation h3 {
  margin-top: 70px;
}
.card p {
  margin-top: 12px;
  color: var(--on-dark-soft);
}
.card .tag,
.f-list .tag {
  align-self: flex-start;
  margin-top: 20px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag.live {
  color: var(--mint);
  border-color: rgba(62, 230, 181, 0.4);
}
.tag.progress {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.4);
}
.f-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.f-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
}
.f-list img {
  grid-row: 1 / 3;
}
.f-list strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.f-list small {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.88rem;
}
.f-list .tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
}
.card.cta {
  background: linear-gradient(150deg, var(--sky), #5a6bff 70%, var(--plasma));
  border-color: transparent;
  color: #02101c;
}
.card.cta p {
  color: rgba(2, 16, 28, 0.78);
}
.card.cta .idx {
  -webkit-text-stroke-color: rgba(2, 16, 28, 0.4);
}
.card.cta .btn-primary {
  align-self: flex-start;
  margin-top: 24px;
  background: #02101c;
  color: #fff;
  box-shadow: none;
}
.hprogress {
  height: 2px;
  margin: 24px var(--gutter) 0;
  background: var(--line-dark);
}
.hprogress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--plasma));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ═══ team ═════════════════════════════════════════════════════════════════ */
.team {
  position: relative;
  padding: clamp(80px, 14vh, 170px) 0 clamp(80px, 14vh, 170px);
  overflow: hidden;
}
.team-word {
  position: absolute;
  left: 50%;
  top: 4%;
  translate: -50% 0;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(9rem, 30vw, 32rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 208, 255, 0.14);
  pointer-events: none;
  user-select: none;
}
.team .wrap {
  position: relative;
  z-index: 1;
}
.team-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-bottom: clamp(36px, 6vh, 70px);
}
.team-head > div {
  max-width: 44rem;
}
.team-grid {
  --g: clamp(12px, 1.4vw, 22px);
  --cols: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g);
}
.team-grid .tcard {
  width: calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols));
}
.tcard {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(9, 22, 38, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.tcard:hover {
  border-color: var(--sky);
  box-shadow: 0 30px 80px -30px rgba(39, 166, 237, 0.55);
}
.tcard figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0b2a55;
}
.tcard figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 8, 15, 0.7), transparent 45%);
  pointer-events: none;
}
.tcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease), filter 0.5s;
  filter: saturate(0.92);
}
.tcard:hover img {
  transform: scale(1.1);
  filter: saturate(1.1);
}
.mono-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.028em;
  color: rgba(234, 243, 251, 0.92);
  background:
    linear-gradient(to right, rgba(157, 195, 230, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(157, 195, 230, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(90% 80% at 30% 20%, #1a4e93, #0b2a55 70%);
}
.tinfo {
  position: relative;
  padding: 14px 16px 18px;
}
.tn {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--sky-hi);
  opacity: 0.7;
  font-size: 0.62rem;
}
.tinfo h3 {
  padding-right: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.tinfo p {
  margin-top: 6px;
  color: var(--on-dark-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}
/* ═══ final ════════════════════════════════════════════════════════════════ */
.final {
  position: relative;
  padding: clamp(110px, 20vh, 240px) 0 clamp(120px, 20vh, 220px);
  overflow: hidden;
}
.wordmark {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  z-index: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 26vw, 28rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 208, 255, 0.22);
  pointer-events: none;
  user-select: none;
}
.final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px clamp(24px, 6vw, 96px);
}
.final-grid .final-title {
  grid-column: 1 / -1;
}
.final-title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.final-title em {
  background: linear-gradient(100deg, #7fd0ff, #27a6ed 45%, #b69cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.final-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.mail {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  text-decoration: none;
  color: #fff;
}
.mail:hover {
  border-color: var(--sky-hi);
}
.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.social img {
  width: 20px;
  height: auto;
  opacity: 0.9;
}
.addr {
  margin-top: 26px;
  font-style: normal;
}
.addr .mono {
  display: block;
  margin-bottom: 8px;
  color: var(--on-dark-soft);
  font-size: 0.64rem;
}
.addr a {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-dark);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s;
}
.addr a:hover {
  color: var(--sky-hi);
}
.addr svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--sky-hi);
}
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(220px, 24vw, 330px);
  aspect-ratio: 1;
  text-decoration: none;
  will-change: transform;
}
.orb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}
.orb text {
  font-family: var(--font-mono);
  font-size: 11.4px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  fill: var(--sky-hi);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.orb-core {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sky), #5a6bff 70%, var(--plasma));
  color: #02101c;
  text-align: center;
  box-shadow: 0 0 80px -6px rgba(39, 166, 237, 0.7);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.orb-core b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  max-width: 7ch;
}
.orb-core i {
  font-style: normal;
  font-size: 1.6rem;
}
.orb:hover .orb-core {
  transform: scale(1.08);
  box-shadow: 0 0 120px 0 rgba(124, 92, 255, 0.8);
}
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 30px;
  background: rgba(3, 8, 15, 0.7);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  color: var(--on-dark-soft);
}
.foot-row nav {
  display: flex;
  gap: 22px;
}
.foot-row a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.foot-row a:hover {
  color: #fff;
}

/* ═══ responsive ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .team-grid {
    --cols: 4;
  }
  .orbit-wrap {
    width: 100%;
    margin-left: 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    align-items: flex-start;
  }
  .orbit-wrap {
    max-width: 560px;
    justify-self: center;
  }
  .hero-title {
    font-size: clamp(2.2rem, 7.4vw, 4.6rem);
  }
  .hud-tr { display: none; }
  .hero-hint { visibility: hidden; }
  .orbit-hint { display: block; }
  .m-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-stage {
    max-width: 480px;
  }
  .live-copy {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-copy > .feed {
    grid-column: 1;
    grid-row: auto;
    margin-top: 32px;
  }
  .devices {
    aspect-ratio: 1 / 0.84;
  }
  .agents-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .team-grid {
    --cols: 3;
  }
  .final-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .nav-links {
    display: none;
  }
  .plat-pin {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    padding-top: 84px;
  }
  .plat-left .h2 {
    font-size: clamp(1.45rem, 6.2vw, 2.2rem);
    margin-top: 8px;
  }
  .steps {
    margin-top: 12px;
  }
  .step {
    display: none;
    padding: 4px 0 4px 14px;
  }
  .step.is-active {
    display: grid;
  }
  html:not(.anim) .step {
    display: grid;
  }
  .plat-bar {
    margin-top: 12px;
  }
  .plat-stage {
    height: min(52svh, 460px);
  }
  .plat-stage {
    margin-top: 22px;
  }
  .stage-tag {
    top: -22px;
  }
  .kpis {
    gap: 8px;
  }
  .dash {
    padding: 18px;
  }
  .bars {
    height: 96px;
    margin-top: 16px;
  }
  .spark {
    height: 44px;
  }
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat {
    display: flex;
    align-items: baseline;
    gap: 18px;
  }
  .stat .mono {
    margin-top: 0;
  }
  .htrack {
    flex-direction: column;
    width: 100%;
  }
  .card,
  .card.foundation {
    width: 100%;
    min-height: 0;
  }
  .card h3 {
    margin-top: 40px;
  }
  .hprogress {
    display: none;
  }
  .film {
    height: 190svh;
  }
}
@media (max-width: 560px) {
  .team-grid {
    --cols: 2;
  }
  .tinfo {
    padding: 12px 12px 14px;
  }
  .tinfo p {
    font-size: 0.76rem;
  }
  .nav {
    padding-left: 14px;
    gap: 8px;
  }
  .brand img {
    height: 22px;
  }
  .pill {
    padding: 0 14px;
    font-size: 0.82rem;
  }
  .lang button {
    min-width: 34px;
  }
  .hud-tl { top: 86px; }
  .hero-title .ln {
    white-space: normal;
  }
  .btn {
    min-height: 52px;
    padding: 0 24px;
  }
  .film-box {
    border-radius: 14px;
  }
  .hero-foot {
    display: none;
  }
  .m-core {
    padding: 11px 16px;
  }
  .m-core img {
    height: 17px;
  }
  .m-app {
    width: 38px;
    border-radius: 11px;
  }
  .m-sectors li {
    padding: 6px 10px;
    font-size: 0.54rem;
    letter-spacing: 0.06em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .grad,
  .orb svg,
  .dot,
  .scroll-cue i::after {
    animation: none;
  }
}


.agent-icon-sm {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(39, 166, 237, 0.16);
  color: var(--sky-hi);
}
.agent-icon-sm svg {
  width: 16px;
  height: 16px;
}

/* ═══ the demo dialog (ported unchanged in behaviour, restyled) ══════════ */
.demo-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: var(--ink-1);
  color: var(--on-dark);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.demo-dialog::backdrop {
  background: rgba(4, 13, 23, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.demo-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: demoIn 0.26s var(--ease) both;
}
@keyframes demoIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-dialog[open],
  .demo-msg {
    animation: none;
  }
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-dark);
  flex-shrink: 0;
}
.demo-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.demo-head-left span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.demo-close {
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #cfe6f8;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.demo-close svg {
  width: 16px;
  height: 16px;
}
.demo-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.demo-log {
  flex: 1;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-line;
  animation: demoRise 0.2s ease both;
}
@keyframes demoRise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.demo-msg.bot {
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.demo-msg.user {
  background: var(--sky);
  color: #03121f;
  font-weight: 600;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.demo-msg.err {
  border: 1px solid #e07a7a;
  color: #ffd7d7;
  align-self: flex-start;
  font-size: 0.84rem;
}
.demo-foot {
  border-top: 1px solid var(--line-dark);
  padding: 14px;
  flex-shrink: 0;
}
.demo-form {
  display: flex;
  gap: 8px;
}
.demo-form[hidden] {
  display: none;
}
.demo-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(127, 208, 255, 0.25);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: 500 0.95rem var(--font-body);
}
.demo-form input::placeholder {
  color: #7d93a8;
}
.demo-form input:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.demo-form button {
  border: 0;
  background: var(--sky);
  color: #03121f;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 20px;
  font: 800 0.9rem var(--font-body);
  cursor: pointer;
  flex-shrink: 0;
}
.demo-form button:disabled {
  opacity: 0.4;
  cursor: default;
}
.demo-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.demo-choices[hidden] {
  display: none;
}
.demo-choices button {
  border: 1px solid rgba(127, 208, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  font: 600 0.88rem var(--font-body);
}
.demo-choices button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(127, 208, 255, 0.55);
}
.demo-choices button:disabled {
  opacity: 0.4;
  cursor: default;
}
.demo-choices button.selected {
  background: var(--sky);
  border-color: var(--sky);
  color: #03121f;
  font-weight: 800;
}
.demo-choices button.selected::before {
  content: '✓ ';
}
.demo-choices button.demo-choices-done {
  background: transparent;
  border-style: dashed;
  font-weight: 800;
}
.demo-done {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: #8ee7b8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 0;
}
.demo-done[hidden] {
  display: none;
}
.demo-done svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .demo-dialog {
    width: calc(100vw - 24px);
    max-height: min(82vh, 580px);
  }
}

