:root {
  --bg: #020202;
  --surface: rgba(10, 14, 24, 0.72);
  --surface-strong: rgba(6, 9, 16, 0.9);
  --border: rgba(148, 187, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.5);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --gold: #f5c97a;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.55;
}
img { max-width: 100%; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(16px, 4vw, 44px);
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
  white-space: nowrap;
}
.brand__logo { width: 30px; height: 30px; border-radius: 50%; }

/* ------------------------------------------------------------ live-site language pill + fullscreen menu */
.header-controls { display: flex; align-items: center; gap: 10px; }
.lang-wrap { position: relative; }
.language, .menu-trigger {
  position: relative;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font: 800 12px/1 'Inter', sans-serif;
  letter-spacing: 0.18em;
  transition: border-color 0.2s, background 0.2s;
}
.language:hover, .menu-trigger:hover { border-color: var(--border-glow); background: rgba(56, 189, 248, 0.08); }
.language { min-width: 76px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: 104px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 9, 16, 0.94);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.language-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.language-menu a { padding: 9px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font: 700 11.5px/1 'Inter', sans-serif; letter-spacing: 0.12em; }
.language-menu a:hover, .language-menu a:focus-visible, .language-menu a[aria-current="true"] { color: var(--accent); background: rgba(56, 189, 248, 0.1); outline: none; }
.menu-trigger { min-width: 118px; padding: 0 44px 0 18px; display: inline-flex; align-items: center; }
.menu-trigger i { position: absolute; right: 16px; top: 50%; width: 16px; height: 1px; background: currentColor; transition: transform 0.35s; transform: translateY(-3px); }
.menu-trigger i:last-child { transform: translateY(3px); }
.menu-trigger[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.menu-trigger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.menu-trigger span { transition: opacity 0.2s; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: calc(var(--header-h) + 16px) 0 24px;
  overflow-y: auto;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 80px) 32px);
  background: rgba(3, 6, 12, 0.97);
  backdrop-filter: blur(20px);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.7s;
}
.menu-overlay.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 80px) 32px); transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1); }
.menu-overlay nav { position: relative; z-index: 2; display: grid; gap: 4px; width: min(900px, 84vw); }
.menu-overlay nav a {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s, padding-left 0.3s;
}
.menu-overlay nav a:hover { color: var(--accent); padding-left: 10px; }
.menu-overlay nav small { color: var(--gold); font: 600 13px/1 'JetBrains Mono', ui-monospace, monospace; }
.menu-overlay nav span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(28px, min(4.6vw, 7.2vh), 62px); line-height: 1.08; letter-spacing: -0.04em; }
.menu-orbit {
  position: absolute;
  width: min(70vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(56, 189, 248, 0.06);
  pointer-events: none;
}
.menu-meta { position: relative; z-index: 2; margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-align: center; }
body.menu-open { overflow: hidden; }

.motion-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(6, 9, 16, 0.75);
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

/* ------------------------------------------------------------ shared atoms */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font: 600 14px/1 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 14px; font-size: 12.5px; }
.btn-primary { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35); }
.btn-gold { background: linear-gradient(135deg, #f5c97a, #d97706); color: #171207; box-shadow: 0 10px 28px rgba(245, 201, 122, 0.25); }
.btn-glass { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(12px); }
.btn-glass:hover { border-color: var(--border-glow); }

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s;
}
.glass-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }

.section { position: relative; padding: clamp(40px, 6vh, 72px) 0; }
.section-index {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); margin: 0 0 14px; max-width: 560px; }
.section h2, .work h2, .videos h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ hero (pinned) */
.hero { position: relative; height: 250vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
#stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 72% at 0% 0%, rgba(2, 2, 2, 0.9) 0%, rgba(2, 2, 2, 0.55) 48%, rgba(2, 2, 2, 0) 82%),
    linear-gradient(0deg, rgba(2, 2, 2, 0.6) 0%, rgba(2, 2, 2, 0) 12%);
}
/* Box the movement is fitted into (read by app.js) */
.hero__stage {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  bottom: 6px;
  left: calc(max(16px, (100vw - 1240px) / 2) + 300px);
  right: 12px;
  pointer-events: none;
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + clamp(28px, 7vh, 72px));
}
.hero__copy > * { max-width: 540px; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
h1 {
  margin: 0 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h1 .grad {
  background: linear-gradient(125deg, #7dd3fc 0%, #38bdf8 35%, #c4b5fd 70%, #f5c97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead-copy { font-size: clamp(15px, 1.15vw, 17px); color: var(--muted); margin: 0 0 22px; max-width: 460px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.scroll-cue { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }

/* ------------------------------------------------------------ two scrolling bands */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.9);
  transform: rotate(-1.5deg) scale(1.02);
  margin-top: -14px;
}
.marquee__track { display: flex; width: max-content; animation: band-scroll 26s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; white-space: nowrap; }
.marquee span { font-family: 'Outfit', sans-serif; font-size: clamp(1.3rem, 2.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.marquee i { color: var(--gold); font-style: normal; }

.references { position: relative; z-index: 2; padding: 36px 0 30px; }
.references h2 {
  text-align: center;
  font: 700 12px/1 'Inter', sans-serif;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 16px;
}
.ref-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ref-track { display: flex; width: max-content; animation: band-scroll 30s linear infinite reverse; }
.ref-group { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 16px 0 0; }
.ref-group li {
  display: grid;
  place-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  height: 62px;
  min-width: 160px;
}
.ref-group img { max-height: 34px; max-width: 128px; width: auto; height: auto; }
@keyframes band-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ vision */
.vision__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.loop-media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #05070d; }
.vision__visual .loop-media { border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ systems */
.systems__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.system-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-eyebrow { font: 700 11px/1.3 'Inter', sans-serif; letter-spacing: 0.12em; color: var(--accent); }
.card-orb { width: 96px; height: 96px; border-radius: 24px; overflow: hidden; background: rgba(56, 189, 248, 0.08); border: 1px solid var(--border); }
.card-orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.system-card h3 { font-family: 'Outfit', sans-serif; font-size: 20px; line-height: 1.2; margin: 0; }
.system-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ services */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.service-item { padding: 28px 26px 30px 0; border-bottom: 1px solid var(--border); }
.service-item + .service-item { padding-left: 26px; border-left: 1px solid var(--border); }
.serv-no { font: 700 13px/1 'Outfit', sans-serif; color: var(--gold); letter-spacing: 0.1em; }
.service-item h3 { font-family: 'Outfit', sans-serif; font-size: 22px; line-height: 1.2; margin: 14px 0 10px; }
.service-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ apps: 3D glass orbit */
.work { overflow: hidden; }
.work__intro h2 { margin-bottom: 10px; }
.work__intro p { margin: 0; color: var(--muted); max-width: 640px; }
.orbit {
  --card-w: 230px;
  --card-h: 300px;
  position: relative;
  height: calc(var(--card-h) + 120px);
  margin-top: 0;
  perspective: 1700px;
  perspective-origin: 50% 18%;
}
.orbit__scene {
  position: absolute;
  left: 50%;
  top: 70px;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  transform: rotateX(-9deg);
}
.orbit__ring {
  --radius: 320px;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.orbit__floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1100px, 92vw);
  height: 130px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 48% at 50% 50%, rgba(56, 189, 248, 0.22), rgba(167, 139, 250, 0.1) 45%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.orbit-card {
  --depth: 1;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--angle)) translateZ(var(--radius));
  text-decoration: none;
  color: var(--text);
}
.orbit-card__face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
/* Glass: layered translucent gradient, inner highlight rim, soft coloured glow */
.orbit-card__front {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(200deg, rgba(56, 189, 248, 0.16), rgba(167, 139, 250, 0.1) 60%, rgba(10, 14, 24, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  filter: brightness(calc(0.5 + var(--depth) * 0.5));
  transition: border-color 0.4s, box-shadow 0.4s;
  -webkit-box-reflect: below 14px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.16));
}
.orbit-card__back {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(12, 18, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: brightness(calc(0.75 + (1 - var(--depth)) * 0.35));
}
.orbit-card__back img { width: 46%; border-radius: 22%; opacity: 0.85; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.orbit-card__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: glass-sweep 6.5s ease-in-out infinite;
  pointer-events: none;
}
.orbit-card:nth-child(2n) .orbit-card__shine { animation-delay: -2.2s; }
.orbit-card:nth-child(3n) .orbit-card__shine { animation-delay: -4.1s; }
@keyframes glass-sweep { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.orbit-card.is-front .orbit-card__front {
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 46px rgba(56, 189, 248, 0.32),
    0 26px 70px rgba(0, 0, 0, 0.5);
}
.orbit-card:hover .orbit-card__front { border-color: rgba(245, 201, 122, 0.7); }
.orbit-card__no { font: 700 12px/1 'Outfit', sans-serif; color: var(--gold); letter-spacing: 0.14em; }
.orbit-card__front img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.orbit-card h3 { font-family: 'Outfit', sans-serif; font-size: 21px; margin: 2px 0 0; }
.orbit-card p { margin: 0; color: #cbd5e1; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.orbit-card b { margin-top: auto; color: var(--accent); font-size: 18px; }

/* ------------------------------------------------------------ metrics */
.metrics { padding: 8px 0 !important; }
.metrics__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { text-align: center; padding: 16px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.metric strong { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--accent); }
.metric span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ channels: 3D glass coverflow */
.videos { overflow: hidden; }
.videos h2 { text-align: center; }
.coverflow {
  --card-w: 330px;
  position: relative;
  margin-top: 10px;
}
.coverflow__track {
  position: relative;
  height: 610px;
}
.channel-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--card-w);
  margin-left: calc(var(--card-w) / -2);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(200deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.1) 60%, rgba(10, 14, 24, 0.6)),
    rgba(9, 13, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 28px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.channel-card.is-active {
  cursor: default;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 50px rgba(56, 189, 248, 0.28), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.channel-card__shine {
  position: absolute;
  inset: -40% -70%;
  z-index: 3;
  background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, 0.18) 50%, transparent 57%);
  transform: translateX(-60%);
  animation: glass-sweep 7s ease-in-out infinite;
  pointer-events: none;
}
.channel-card__cover { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; }
.channel-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform 0.6s; }
.channel-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 16, 0.85));
}
.channel-card.is-active .channel-card__cover:hover img { transform: scale(1.05); }
.channel-card__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.channel-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.channel-card__head { display: flex; align-items: center; gap: 12px; margin-top: -40px; position: relative; z-index: 2; }
.channel-card__avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); background: #0a0f18; }
.channel-card h3 { font-family: 'Outfit', sans-serif; font-size: 22px; margin: 18px 0 0; }
.channel-card__body > p { margin: 0; color: #cbd5e1; font-size: 13.5px; }
.channel-card__feature { padding: 11px 12px; border-radius: 14px; background: rgba(2, 2, 2, 0.45); border: 1px solid rgba(255, 255, 255, 0.1); }
.channel-card__feature h4 { margin: 0 0 5px; font-size: 13.5px; line-height: 1.35; }
.channel-card__feature p { margin: 0; color: var(--muted); font-size: 12px; }
.channel-card .btn { align-self: flex-start; margin-top: auto; }

.coverflow__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 6px; }
.coverflow__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
}
.coverflow__arrow:hover { transform: scale(1.08); border-color: var(--border-glow); }
.coverflow__dots { display: flex; gap: 8px; }
.coverflow__dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: width 0.3s, background 0.3s; }
.coverflow__dots button[aria-selected="true"] { width: 26px; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ------------------------------------------------------------ contact & footer */
.contact__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact__title { font-size: clamp(44px, 7vw, 96px) !important; line-height: 0.95 !important; font-weight: 800; }
.contact__art .loop-media { border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.site-footer { border-top: 1px solid var(--border); background: rgba(4, 6, 12, 0.95); padding: 40px 0 26px; font-size: 13.5px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-links span:not(.footer-label) { color: var(--muted); }
.footer-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }


/* ------------------------------------------------------------ contact: live app orbit around the MT logo */
.eco-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 22% 30%, rgba(99, 102, 241, 0.32), transparent 42%),
    radial-gradient(circle at 80% 72%, rgba(56, 189, 248, 0.26), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.35), transparent 62%),
    linear-gradient(160deg, #060b1a, #020308 70%);
}
.eco-orbit__glow { position: absolute; left: 50%; top: 52%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(125, 211, 252, 0.35), transparent 68%); filter: blur(8px); }
.eco-orbit__ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 82%;
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(103, 232, 249, 0.6);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45), inset 0 0 18px rgba(34, 211, 238, 0.25);
}
.eco-orbit__core {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: grid;
  place-items: center;
  border-radius: 24%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 40px rgba(125, 211, 252, 0.35), 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}
.eco-orbit__core img { width: 82%; height: auto; border-radius: 22%; }
.eco-orbit__app {
  position: absolute;
  left: 0;
  top: 0;
  width: 17%;
  aspect-ratio: 1;
  padding: 1.1%;
  border-radius: 24%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.eco-orbit__app img { display: block; width: 100%; height: 100%; border-radius: 21%; }


/* ------------------------------------------------------------ light theme (default for new visitors, like the live site) */
.theme-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(6, 9, 16, 0.75);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.motion-fab { right: 78px; }

[data-theme="light"] {
  --bg: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(37, 99, 235, 0.45);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --gold: #b45309;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.82); }
[data-theme="light"] .brand { color: var(--text); }
[data-theme="light"] .language,
[data-theme="light"] .menu-trigger { color: var(--text); border-color: rgba(15, 23, 42, 0.2); background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .language-menu { background: rgba(255, 255, 255, 0.97); }
[data-theme="light"] .menu-overlay { background: rgba(243, 246, 251, 0.97); }
[data-theme="light"] .menu-overlay nav a { color: var(--text); }
[data-theme="light"] .theme-fab,
[data-theme="light"] .motion-fab { background: rgba(255, 255, 255, 0.85); border-color: rgba(2, 132, 199, 0.35); }

/* Light hero: keyed (transparent) frames over a soft studio backdrop */
[data-theme="light"] .hero__sticky {
  background:
    radial-gradient(ellipse 55% 60% at 72% 58%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.12), transparent 45%),
    linear-gradient(160deg, #eef3fa 0%, #e3eaf4 100%);
}
[data-theme="light"] #stage-canvas { filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.22)); }
[data-theme="light"] .stage-scrim {
  background: radial-gradient(ellipse 58% 72% at 0% 0%, rgba(238, 243, 250, 0.85) 0%, rgba(238, 243, 250, 0.45) 48%, rgba(238, 243, 250, 0) 82%);
}
[data-theme="light"] h1 .grad { background-image: linear-gradient(125deg, #0284c7 0%, #2563eb 40%, #7c3aed 75%, #b45309 100%); }

[data-theme="light"] .marquee { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .marquee span { color: var(--text); }
[data-theme="light"] .ref-group li { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); border: 1px solid var(--border); }

[data-theme="light"] .orbit-card__front {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(241, 245, 255, 0.6) 100%),
    linear-gradient(200deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.12));
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 #fff, 0 22px 50px rgba(15, 23, 42, 0.14);
  -webkit-box-reflect: below 14px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.25));
}
[data-theme="light"] .orbit-card.is-front .orbit-card__front { border-color: rgba(2, 132, 199, 0.55); box-shadow: inset 0 1px 0 #fff, 0 0 40px rgba(56, 189, 248, 0.25), 0 24px 60px rgba(15, 23, 42, 0.16); }
[data-theme="light"] .orbit-card { color: var(--text); }
[data-theme="light"] .orbit-card p { color: #334155; }
[data-theme="light"] .orbit-card__back { background: linear-gradient(155deg, rgba(255, 255, 255, 0.85), rgba(226, 232, 240, 0.7)); border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .orbit__floor { background: radial-gradient(ellipse 50% 48% at 50% 50%, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.08) 45%, transparent 72%); }

[data-theme="light"] .channel-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.9)),
    #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 #fff, 0 26px 60px rgba(15, 23, 42, 0.14);
  color: var(--text);
}
[data-theme="light"] .channel-card.is-active { border-color: rgba(2, 132, 199, 0.5); box-shadow: 0 0 44px rgba(56, 189, 248, 0.22), 0 28px 70px rgba(15, 23, 42, 0.16); }
[data-theme="light"] .channel-card__cover::after { background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.85)); }
[data-theme="light"] .channel-card__body > p { color: #334155; }
[data-theme="light"] .channel-card__feature { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .coverflow__arrow { color: var(--text); border-color: rgba(15, 23, 42, 0.15); background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .coverflow__dots button { background: rgba(15, 23, 42, 0.2); }

[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .footer-links a { color: var(--text); }


/* ------------------------------------------------------------ motion preferences */
.paused .marquee__track, .paused .ref-track, .paused .orbit-card__shine, .paused .channel-card__shine { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .ref-track, .orbit-card__shine, .channel-card__shine { animation: none; }
  /* Without motion, let visitors scroll the strips themselves (same fallback as references-v1.css) */
  .marquee__group[aria-hidden="true"], .ref-group[aria-hidden="true"] { display: none; }
  .marquee, .ref-viewport { overflow-x: auto; mask-image: none; }
  .channel-card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .systems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { height: 220vh; }
  /* Movement in the upper band, copy directly underneath — no dead gap */
  .hero__stage { top: calc(var(--header-h) + 6px); left: 6px; right: 6px; bottom: auto; height: 36svh; }
  .hero__copy { padding-top: calc(var(--header-h) + 36svh + 14px); }
  .stage-scrim {
    background: linear-gradient(180deg, rgba(2, 2, 2, 0) 0%, rgba(2, 2, 2, 0) 42%, rgba(2, 2, 2, 0.82) 58%, rgba(2, 2, 2, 0.95) 100%);
  }
  .vision__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service-item, .service-item + .service-item { padding: 22px 0; border-left: 0; }
  .orbit { --card-w: 168px; --card-h: 232px; height: calc(var(--card-h) + 110px); perspective: 1100px; }
  .orbit__scene { top: 46px; }
  .orbit-card__front { padding: 14px; gap: 7px; border-radius: 18px; }
  .orbit-card__face { border-radius: 18px; }
  .orbit-card__front img { width: 44px; height: 44px; border-radius: 12px; }
  .orbit-card h3 { font-size: 16px; }
  .orbit-card p { font-size: 11.5px; -webkit-line-clamp: 4; }
  .coverflow { --card-w: min(300px, 78vw); }
  .coverflow__track { height: 600px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .site-header { padding: 0 12px; }
  .brand span { font-size: 14px; }
  .language { min-width: 64px; padding: 0 10px; }
  .menu-trigger { min-width: 0; padding: 0 40px 0 14px; }
  .motion-fab { right: 62px; bottom: 14px; width: 40px; height: 40px; }
  .theme-fab { right: 14px; bottom: 14px; width: 40px; height: 40px; font-size: 16px; }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  .lead-copy { font-size: 14.5px; margin-bottom: 16px; }
  .systems__grid, .metrics__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ ring arrows + short mobile viewports */
.orbit__nav { position: absolute; left: 50%; bottom: 6px; z-index: 5; display: flex; gap: 14px; transform: translateX(-50%); }
.orbit__arrow { width: 40px; height: 40px; font-size: 20px; }

@media (max-width: 960px) and (max-height: 720px) and (orientation: portrait) {
  .hero__stage { height: 28svh; }
  .hero__copy { padding-top: calc(var(--header-h) + 28svh + 8px); }
  .eyebrow-pill { margin-bottom: 10px; font-size: 11px; }
  h1 { font-size: clamp(28px, 8.5vw, 36px); margin-bottom: 10px; }
  .lead-copy { font-size: 13.5px; margin-bottom: 12px; }
}
/* Landscape phones: movement on the right, copy on the left so nothing is clipped */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 600px) {
  .hero__stage { top: calc(var(--header-h) + 6px); left: 50%; right: 6px; bottom: 6px; height: auto; }
  .hero__copy { padding-top: calc(var(--header-h) + 12px); }
  .hero__copy > * { max-width: 46%; }
  .eyebrow-pill { display: none; }
  h1 { font-size: clamp(22px, 7vh, 30px); margin-bottom: 8px; }
  .lead-copy { font-size: 12.5px; margin-bottom: 10px; }
  .stage-scrim { background: linear-gradient(90deg, rgba(2, 2, 2, 0.92) 0%, rgba(2, 2, 2, 0.6) 45%, rgba(2, 2, 2, 0) 60%); }
}
@media (max-width: 960px) and (max-height: 620px) and (orientation: portrait) {
  .hero__stage { height: 22svh; }
  .hero__copy { padding-top: calc(var(--header-h) + 22svh + 6px); }
  h1 { font-size: clamp(26px, 8vw, 30px); }
  .lead-copy { font-size: 13px; }
}
/* Narrow phones (≤380px): shrink brand and header controls so the menu stays fully visible */
@media (max-width: 380px) {
  .site-header { gap: 6px; padding: 0 10px; }
  .brand { gap: 6px; letter-spacing: 0.02em; }
  .brand__logo { width: 26px; height: 26px; }
  .brand span { font-size: 12px; }
  .header-controls { gap: 6px; }
  .language, .menu-trigger { height: 36px; font-size: 10.5px; letter-spacing: 0.08em; }
  .language { min-width: 0; padding: 0 8px; gap: 4px; }
  .menu-trigger { padding: 0 30px 0 10px; }
  .menu-trigger i { right: 10px; width: 13px; }
}

@media (max-width: 960px) {
  [data-theme="light"] .stage-scrim {
    background: linear-gradient(180deg, rgba(238, 243, 250, 0) 0%, rgba(238, 243, 250, 0) 42%, rgba(238, 243, 250, 0.85) 58%, rgba(238, 243, 250, 0.95) 100%);
  }
}
@media (max-width: 960px) and (orientation: landscape) and (max-height: 600px) {
  [data-theme="light"] .stage-scrim { background: linear-gradient(90deg, rgba(238, 243, 250, 0.92) 0%, rgba(238, 243, 250, 0.6) 45%, rgba(238, 243, 250, 0) 60%); }
}
