/* ═══════════════════════════════════════════════════════════
   INSAN-AI COMMUNITY PORTAL — single-screen "neural console"
   The Aurora Mech Arm is the interface: nav channels are served
   as holographic panels. Cyan-on-black neural UI language.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* INSAN-AI: bright cyan on deep black (from the brand logo) */
  --bg:        #070a0e;
  --bg-2:      #0c1218;
  --panel:     #0d141b;
  --ink:       #eaf7f9;
  --ink-soft:  #86a4ab;
  --azure:     #22cdd9;   /* primary — brand cyan */
  --azure-hot: #00ebf8;   /* neon cyan for glows */
  --gold:      #37e0cf;   /* secondary — teal-mint (logo gradient) */
  --gold-hot:  #6ff3e4;
  --rgb-line:   120, 205, 217;   /* light cyan-grey borders on dark */
  --rgb-glow-1: 0, 235, 248;
  --rgb-glow-2: 55, 224, 207;
  --rgb-neon:   0, 235, 248;
  --rgb-neon-2: 55, 224, 207;
  --rgb-deep:   34, 205, 217;
  --rgb-paper:  13, 20, 27;      /* dark panel surface */
  --rgb-bg:     7, 10, 14;
  --rgb-bg2:    12, 18, 24;
  --muted:     rgba(234, 247, 249, .34);   /* faint text on dark chrome */
  --blink-c:   #00ebf8;
  --line:      rgba(var(--rgb-line), 0.16);
  --line-soft: rgba(var(--rgb-line), 0.08);
  --glow-azure: 0 0 10px rgba(var(--rgb-glow-1), .55), 0 0 32px rgba(var(--rgb-glow-1), .28);
  --glow-gold:  0 0 10px rgba(var(--rgb-glow-2), .55), 0 0 32px rgba(var(--rgb-glow-2), .28);
  --font-display: "Michroma", sans-serif;
  --font-body: "Chakra Petch", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --cut: 16px;
  --nav-h: 62px;
  --status-h: 34px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--azure); color: #fff; }
.mono { font-family: var(--font-mono); }
.blink { color: var(--blink-c); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ── Backdrop ──────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 56px 100%,
    radial-gradient(1200px 700px at 78% -10%, rgba(var(--rgb-glow-1), .10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(var(--rgb-glow-2), .09), transparent 60%),
    var(--bg);
}
/* scan sweep animates transform (composited) — animating
   background-position would repaint the full screen every frame
   and stutter against the WebGL canvas */
.grid-bg::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: -900px; bottom: -900px;
  background: repeating-linear-gradient(180deg,
    transparent 0, rgba(var(--rgb-glow-1), .04) 450px, transparent 900px);
  animation: scan 9s linear infinite;
  will-change: transform;
}
@keyframes scan { to { transform: translateY(900px); } }

.noise {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.85 0 0 0 0 0.92 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 44px);
  background: rgba(var(--rgb-bg), .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.nav__div { width: 1px; height: 34px; background: var(--line); }
.nav__2030 { height: 48px; width: auto; display: block; }
.nav__word { font-family: var(--font-display); font-size: 15px; letter-spacing: .1em; }
.nav__logo { display: block; height: 24px; width: auto; margin-bottom: 3px; }
.nav__word em { color: var(--azure); font-style: normal; }
.nav__word span { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .34em; color: var(--ink-soft); }

.nav__links { display: flex; gap: clamp(16px, 3vw, 44px); }
.nav__links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: 8px 2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.nav__links a::before {
  content: attr(data-i); position: absolute; top: -4px; right: -15px;
  font-family: var(--font-mono); font-size: 8.5px; color: var(--gold);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--azure); box-shadow: var(--glow-azure);
  transition: width .25s ease;
}
.nav__links a:hover { color: var(--azure); text-shadow: 0 0 12px rgba(var(--rgb-glow-1),.4); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--azure); }

.nav__status { font-size: 10px; letter-spacing: .2em; color: var(--ink-soft); }

/* Arabic accents — bilingual HUD */
.ar {
  display: block;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 8.5px; font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  text-align: center;
  margin-top: 1px;
  text-transform: none;
}
.ar-inline {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 400; font-style: normal;
  letter-spacing: 0;
}

/* ── STAGE ─────────────────────────────────────────────────── */
.stage {
  position: fixed;
  top: var(--nav-h); bottom: var(--status-h); left: 0; right: 0;
}
#titanCanvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#titanCanvas:active { cursor: grabbing; }

.corner { position: absolute; width: 30px; height: 30px; pointer-events: none; z-index: 5; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--azure); box-shadow: var(--glow-azure); }
.corner::before { width: 100%; height: 2px; }
.corner::after { width: 2px; height: 100%; }
.corner--tl { top: 12px; left: 12px; }
.corner--tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner--bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner--br { bottom: 12px; right: 12px; transform: scale(-1); }

.stage__readout {
  position: absolute; top: 22px; left: 26px; z-index: 5;
  font-size: 10px; line-height: 1.9; letter-spacing: .14em;
  color: var(--ink-soft);
  background: rgba(var(--rgb-paper), .72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 8px 12px;
  pointer-events: none;
}
.stage__readout b { color: var(--azure); margin-right: 8px; }
.stage__readout--bl { top: auto; left: auto; bottom: 18px; left: 26px; }

/* ── HUD reticle ─────────────────────────────────────────────
   the native cursor is ALWAYS visible; the reticle is a decorative
   HUD ring that rides along with it over the stage */
.reticle {
  position: absolute; z-index: 12;
  width: 0; height: 0;
  pointer-events: none;
  display: none;
}
.reticle.is-on { display: block; }
/* corner ticks just outside the ring — the native cursor stays center */
.reticle i { position: absolute; background: var(--azure); box-shadow: 0 0 6px rgba(var(--rgb-neon), .8); }
.reticle i:first-child  { width: 8px; height: 1.5px; left: -25px; top: -0.75px; }
.reticle i:last-of-type { width: 1.5px; height: 8px; left: -0.75px; top: -25px; }
.reticle::before {
  content: ""; position: absolute;
  width: 34px; height: 34px; left: -17px; top: -17px;
  border: 1px solid rgba(var(--rgb-glow-1), .5);
  border-radius: 50%;
}
.reticle span {
  position: absolute; left: 14px; top: 12px;
  font-size: 8.5px; letter-spacing: .1em;
  color: var(--azure);
  white-space: nowrap;
}

/* ── HOME OVERLAY ──────────────────────────────────────────── */
.home {
  position: absolute; z-index: 6;
  left: clamp(20px, 4vw, 60px); top: 50%;
  transform: translateY(-50%);
  max-width: min(46vw, 640px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.home.is-hidden { opacity: 0; transform: translateY(-50%) translateX(-36px); }

.home__meta { font-size: 11px; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 20px; }
.home__sep { color: var(--gold); margin: 0 8px; }

.home__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.04;
  letter-spacing: .02em;
  user-select: none;
  margin-bottom: 22px;
}
.home__line { display: block; white-space: nowrap; }
.home__line--indent { padding-left: clamp(20px, 3.5vw, 70px); }
.home__line .ltr {
  display: inline-block;
  color: rgba(var(--rgb-deep), calc(var(--p, 0) * .9));
  -webkit-text-stroke: 1.6px var(--ink);
  text-shadow:
    0 0 calc(var(--p, 0) * 14px) rgba(var(--rgb-neon-2), calc(var(--p, 0) * .8)),
    0 0 calc(var(--p, 0) * 44px) rgba(var(--rgb-neon-2), calc(var(--p, 0) * .45));
  transform: translateY(calc(var(--p, 0) * -5px));
  transition: transform .18s ease;
  animation: ltr-in .7s cubic-bezier(.2, .85, .25, 1) both;
  animation-delay: calc(var(--i) * 45ms + 300ms);
}
.home__line .ltr--space { padding: 0 .18em; }
@keyframes ltr-in {
  from { opacity: 0; transform: translateY(.35em) rotateX(50deg); }
  to   { opacity: 1; transform: translateY(0); }
}

.home__lede { max-width: 44ch; font-size: clamp(14px, 1.3vw, 17px); color: #cbe6ea; line-height: 1.7; text-shadow: 0 1px 18px rgba(4, 10, 14, .85), 0 0 4px rgba(4, 10, 14, .6); }
.home__lede strong { color: #fff; text-shadow: 0 0 14px rgba(0, 235, 248, .45); }
.home__hint {
  margin-top: 26px;
  font-size: 10.5px; letter-spacing: .26em; color: var(--azure);
  text-shadow: 0 0 14px rgba(var(--rgb-glow-1), .5);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse { 50% { opacity: .35; } }

/* ── CLAW ANCHOR + LEADER ──────────────────────────────────── */
.anchor {
  position: absolute; z-index: 7;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 2px solid var(--azure-hot);
  transform: rotate(45deg);
  box-shadow: var(--glow-azure), inset 0 0 6px rgba(var(--rgb-neon), .6);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.anchor.is-on { opacity: 1; }
.anchor::after {
  content: ""; position: absolute; inset: -8px;
  border: 1px solid rgba(var(--rgb-glow-1), .45);
  animation: anchor-ping 1.8s ease-out infinite;
}
@keyframes anchor-ping {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.leader {
  position: absolute; z-index: 7;
  height: 1.5px;
  background: linear-gradient(90deg, var(--azure-hot), rgba(var(--rgb-neon), .25));
  box-shadow: 0 0 8px rgba(var(--rgb-neon), .5);
  transform-origin: 0 50%;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.leader.is-on { opacity: 1; }

/* ── HOLO PANELS ───────────────────────────────────────────── */
.holo {
  position: absolute; z-index: 8;
  left: 0; top: 0;
  width: min(400px, 92vw);
  max-height: calc(100% - 40px);
  overflow: hidden auto;
  background: rgba(var(--rgb-paper), .84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--rgb-glow-1), .5);
  box-shadow: 0 24px 60px rgba(var(--rgb-line), .16), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 28px rgba(var(--rgb-glow-1), .12);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: 18px 22px 22px;
  visibility: hidden;
}
.holo::before { /* scanline sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(var(--rgb-glow-1), .045) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
.holo.is-on {
  visibility: visible;
  animation: holo-in .5s cubic-bezier(.2, .9, .25, 1) both;
}
/* NOTE: no transform in these keyframes — JS drives position via
   inline transform, which an animation transform would override */
@keyframes holo-in {
  0%   { opacity: 0; clip-path: polygon(var(--cut) 0, 100% 0, 100% 0, 100% 0, 0 0, 0 var(--cut)); }
  35%  { opacity: 1; }
  60%  { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
  72%  { opacity: .55; }
  100% { opacity: 1; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
}

.holo__head {
  display: flex; justify-content: space-between;
  font-size: 9.5px; letter-spacing: .22em; color: var(--gold);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px; margin-bottom: 12px;
}
.holo__head b { color: var(--azure); }

.holo__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .05em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--azure);
  text-shadow: 0 0 18px rgba(var(--rgb-glow-1), .35);
  margin-bottom: 14px;
}

.holo__list { list-style: none; }
.holo__list li {
  display: flex; gap: 12px;
  padding: 9px 4px;
  border-top: 1px solid var(--line-soft);
  transition: background .2s ease, padding-left .2s ease;
}
.holo__list li:hover { background: rgba(var(--rgb-glow-1), .06); padding-left: 10px; }
.holo__list li > span { font-size: 9.5px; letter-spacing: .12em; color: var(--azure); padding-top: 4px; flex: none; }
.holo__list li.is-gold > span { color: var(--gold); }
.holo__list b { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; margin-bottom: 2px; }
.holo__list p { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.holo__list i { display: block; font-style: normal; font-size: 9px; letter-spacing: .18em; color: var(--azure); margin-top: 4px; }

.holo__rows { display: flex; flex-direction: column; }
.holo__rows a {
  display: grid; grid-template-columns: 58px 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: background .2s ease, padding-left .25s ease;
}
.holo__rows a:hover { background: rgba(var(--rgb-glow-1), .06); padding-left: 12px; }
.holo__rows span { font-size: 9px; letter-spacing: .24em; color: var(--gold); }
.holo__rows b { font-family: var(--font-display); font-size: 12px; font-weight: 400; letter-spacing: .02em; word-break: break-word; }
#panel-contact { width: min(440px, 92vw); }
.holo__rows i { font-style: normal; font-size: 18px; color: var(--azure); transition: transform .25s ease; }
.holo__rows a:hover i { transform: translateX(6px); }
.holo__rows a:hover b { color: var(--azure); }
.holo__foot { margin-top: 14px; font-size: 9px; letter-spacing: .18em; color: var(--ink-soft); }

/* ── MANIPULATOR DRAWER ────────────────────────────────────── */
.ctrl { position: absolute; right: 0; bottom: 18px; z-index: 9; display: flex; align-items: flex-end; }
.ctrl__tab {
  writing-mode: vertical-rl;
  font-size: 9px; letter-spacing: .22em;
  background: rgba(var(--rgb-paper), .85);
  border: 1px solid var(--line); border-right: none;
  color: var(--ink-soft);
  padding: 12px 5px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.ctrl__tab:hover { color: var(--azure); border-color: var(--azure); }
.ctrl__body {
  width: 0; overflow: hidden;
  background: rgba(var(--rgb-paper), .88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), padding .35s ease;
  padding: 12px 0;
}
.ctrl.is-open .ctrl__body { width: 236px; padding: 12px 14px; }
.ctrl.is-open .ctrl__tab { color: var(--azure); border-color: var(--azure); }

.ctrl__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; letter-spacing: .2em; color: var(--gold);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px; margin-bottom: 8px;
  white-space: nowrap;
}
.ctrl__pose {
  font-size: 8.5px; letter-spacing: .1em;
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 3px 6px; cursor: pointer;
  transition: all .2s ease;
}
.ctrl__pose.is-on { border-color: var(--azure); color: var(--azure); box-shadow: 0 0 10px rgba(var(--rgb-glow-1),.25); }
.ctrl__pose:hover { border-color: var(--azure); color: var(--azure); }

.joint { display: grid; grid-template-columns: 66px 1fr 36px; align-items: center; gap: 8px; padding: 4px 0; }
.joint__name { font-size: 8.5px; letter-spacing: .1em; color: var(--ink-soft); white-space: nowrap; }
.joint__val { font-size: 9px; color: var(--azure); text-align: right; }

.joint input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--azure-hot));
  outline: none; cursor: pointer;
}
.joint input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: var(--panel);
  border: 2px solid var(--azure);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(var(--rgb-glow-1), .5);
}
.joint input[type="range"]::-webkit-slider-thumb:hover { background: var(--azure); }
.joint input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 0;
  background: var(--panel); border: 2px solid var(--azure);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(var(--rgb-glow-1), .5);
}

/* ── LOADER ────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  /* fully opaque dark boot screen with a tech grid + cyan core glow */
  background:
    radial-gradient(58% 58% at 50% 42%, rgba(0, 235, 248, .12), transparent 62%),
    linear-gradient(rgba(120, 205, 217, .05) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(120, 205, 217, .05) 1px, transparent 1px) 0 0 / 46px 100%,
    #060a0e;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__core { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 4px; }
.loader__arc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--azure);
  border-right-color: var(--gold);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 34px rgba(var(--rgb-glow-1), .28);
}
.loader__arc::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px solid transparent; border-bottom-color: rgba(var(--rgb-glow-1), .55);
  animation: spin 1.7s linear infinite reverse;
}
.loader__logo { width: 48px; height: 48px; filter: drop-shadow(0 0 12px rgba(0, 235, 248, .65)); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .72; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.05); } }
.loader__brand { font-size: 12px; letter-spacing: .42em; color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { font-size: 11px; letter-spacing: .26em; color: var(--ink-soft); }
.loader__term {
  width: min(420px, 80%);
  min-height: 118px;
  font-size: 10px; line-height: 1.9; letter-spacing: .08em;
  color: var(--azure);
  text-align: left;
}
.loader__term div { animation: term-in .12s steps(2) both; }
.loader__term div b { color: var(--gold); font-weight: 600; }
@keyframes term-in { from { opacity: 0; } }
.loader__bar { width: min(320px, 60%); height: 3px; background: var(--line-soft); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--azure), var(--azure-hot)); box-shadow: var(--glow-azure); transition: width .2s ease; }

/* ── STATUS BAR ────────────────────────────────────────────── */
.status {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: var(--status-h);
  display: flex; align-items: center; gap: 22px;
  background: #05080b;
  border-top: 1px solid var(--line-soft);
  padding: 0 16px;
  font-size: 10px; letter-spacing: .16em;
  color: rgba(234, 247, 249, .5);
  overflow: hidden;
}
.status__left { display: flex; gap: 22px; white-space: nowrap; align-items: center; }
.status__left b { color: var(--azure-hot); margin-right: 5px; }
.status__hint { color: var(--muted); }
.status__snd { cursor: pointer; color: var(--azure-hot); user-select: none; transition: opacity .2s ease; }
.status__snd.is-off { color: var(--muted); }
.status__theme { display: inline-flex; gap: 8px; align-items: center; user-select: none; }
.status__theme button {
  background: none; border: none; padding: 0;
  font: inherit; letter-spacing: inherit; cursor: pointer;
  color: var(--muted);
  transition: color .2s ease;
}
.status__theme button:hover { color: var(--azure-hot); }
.status__theme button.is-on { color: var(--azure-hot); text-shadow: 0 0 8px rgba(var(--rgb-neon), .6); }
.status__track .mono, .status__track span { font-family: var(--font-mono), "Noto Kufi Arabic", sans-serif; }
.status__tick { flex: 1; overflow: hidden; }
.status__track { display: flex; white-space: nowrap; animation: tick 30s linear infinite; }
.status__track span {
  font-size: 10px; letter-spacing: .28em;
  color: var(--azure-hot);
  text-shadow: 0 0 12px rgba(var(--rgb-neon), .6);
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home { max-width: 82vw; }
  .nav__status { display: none; }
  .status__hint { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 54px; --status-h: 30px; }

  .nav { padding: 0 12px; gap: 8px; }
  .nav__brand { gap: 8px; }
  .nav__div { height: 24px; }
  .nav__2030 { height: 34px; }
  .nav__word { display: none; }   /* logo only on mobile — frees room for the links */
  .nav__logo { height: 30px; margin-bottom: 0; }
  .nav__links { gap: 13px; }
  .nav__links a { font-size: 9px; letter-spacing: .06em; padding: 6px 0; }
  .nav__links a::before { display: none; } /* channel numbers — no room */

  /* hero copy docks under the nav so the arm stays clear */
  .home {
    left: 16px; right: 16px; top: 18px;
    max-width: none;
    transform: none;
  }
  .home.is-hidden { transform: translateX(-24px); }
  .home__meta { font-size: 9px; margin-bottom: 12px; }
  .home__title { font-size: clamp(30px, 9.4vw, 44px); margin-bottom: 12px; }
  .home__lede { font-size: 13px; max-width: none; }
  .home__hint { font-size: 9px; letter-spacing: .18em; margin-top: 14px; }

  .stage__readout { display: none; }
  .corner { width: 20px; height: 20px; }

  /* holo panels become a bottom sheet (positioned by JS) */
  .holo { width: min(400px, 94vw); max-height: 46vh; padding: 14px 16px 16px; }
  .holo__title { font-size: 18px; text-shadow: 0 0 5px rgba(var(--rgb-glow-1), .22); -webkit-text-stroke-width: 1px; }
  .holo__list p { font-size: 11.5px; }

  .holo__rows a { grid-template-columns: 48px 1fr auto; gap: 8px; }
  .holo__rows b { font-size: 10.5px; }

  .ctrl { bottom: 10px; }
  .ctrl.is-open .ctrl__body { width: min(236px, 74vw); }

  .status { gap: 12px; padding: 0 10px; font-size: 9px; }
  .status__left { gap: 12px; }
  .status__left span:nth-child(2),
  .status__left span:nth-child(3) { display: none; } /* ROT / FPS */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── RECORD POPUP (work case files, CMS-fed) ──────────────── */
.pop { position: fixed; inset: 0; z-index: 60; display: none; }
.pop.is-open { display: block; }
.pop__scrim {
  position: absolute; inset: 0;
  background: rgba(var(--rgb-line), .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pop__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 94vw); max-height: 86vh;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(var(--rgb-paper), .97);
  border: 1px solid var(--azure);
  box-shadow: var(--glow-azure);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: 18px 22px 24px;
  animation: popIn .22s ease;
}
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -47%); } }
.pop__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: .2em; color: var(--azure);
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px;
}
.pop__x { background: none; border: none; cursor: pointer; color: var(--ink-soft); font: inherit; }
.pop__x:hover { color: var(--azure); }
.pop__title { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; margin-bottom: 14px; }
.pop__body section { margin-bottom: 16px; }
.pop__body b { display: block; color: var(--azure); font-size: 14px; margin-bottom: 4px; }
.pop__body p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.pop__body img {
  display: block; max-width: 100%; margin-top: 10px;
  border: 1px solid var(--line);
}
.pop__body video { display: block; width: 100%; margin-top: 10px; border: 1px solid var(--line); }
.holo__rec { cursor: pointer; }
.holo__rec:hover b { color: var(--azure); }
.holo__rec i { color: var(--gold); }

/* ── contact showreel (CMS uploads/) ─────────────────────── */
.holo__reel { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.holo__reel-label { font-size: 9px; letter-spacing: .22em; color: var(--azure); margin-bottom: 8px; }
.holo__reel video { width: 100%; display: block; border: 1px solid var(--line); background: #000; }

/* ── hidden HUD chrome (per client request) ──────────────────
   model/telemetry cards + channel hint kept in DOM (JS still
   updates them) but not shown */
.stage__readout { display: none !important; }
.home__hint { display: none !important; }

/* ── CORNER COMMS FEED (top-right) → showreel lightbox ──────── */
.feed {
  position: absolute; top: 30px; right: 30px; z-index: 8;
  width: 244px; padding: 0;
  display: flex; flex-direction: column;
  background: rgba(var(--rgb-paper), .86);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feed:hover { transform: translateY(-2px); border-color: var(--azure); box-shadow: var(--glow-azure); }
.feed:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

.feed__bar {
  display: flex; align-items: center; gap: 6px;
  font-size: 8.5px; letter-spacing: .16em; color: var(--azure);
  padding: 7px 9px; border-bottom: 1px solid var(--line-soft);
}
.feed__bar b { margin-left: auto; color: var(--ink-soft); font-weight: 400; }
.feed__dot { font-size: 8px; color: var(--azure-hot); }

.feed__screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.feed__screen img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .25s ease, transform .4s ease; }
.feed:hover .feed__screen img { opacity: 1; transform: scale(1.04); }

/* sweeping scan line over the still */
.feed__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, rgba(var(--rgb-neon), .28), transparent);
  animation: feedscan 3.4s linear infinite; pointer-events: none;
}
@keyframes feedscan { 0% { transform: translateY(-40%); } 100% { transform: translateY(300%); } }

.feed__play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: #fff; background: rgba(var(--rgb-glow-1), .82);
  border-radius: 50%; box-shadow: 0 0 0 6px rgba(var(--rgb-glow-1), .22);
  transition: transform .25s ease, background .25s ease;
}
.feed:hover .feed__play { transform: scale(1.12); background: var(--azure); }
.feed__play svg { margin-left: 2px; }

.feed__cta { padding: 6px 9px 8px; font-size: 8px; letter-spacing: .14em; color: var(--ink-soft); }
.feed:hover .feed__cta { color: var(--azure); }

/* ── SHOWREEL LIGHTBOX ──────────────────────────────────────── */
.reel-lb { position: fixed; inset: 0; z-index: 70; display: none; }
.reel-lb.is-open { display: block; }
.reel-lb__scrim {
  position: absolute; inset: 0;
  background: rgba(var(--rgb-line), .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel-lb__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1000px, 92vw);
  background: rgba(var(--rgb-paper), .98);
  border: 1px solid var(--azure); box-shadow: var(--glow-azure);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: 14px; animation: popIn .22s ease;
}
.reel-lb__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: .18em; color: var(--azure);
  margin-bottom: 12px; padding: 0 4px;
}
.reel-lb__head .feed__dot { color: var(--azure-hot); }
.reel-lb__x { background: none; border: none; cursor: pointer; color: var(--ink-soft); font: inherit; letter-spacing: .18em; }
.reel-lb__x:hover { color: var(--azure); }
.reel-lb video { width: 100%; display: block; border: 1px solid var(--line); background: #000; max-height: 76vh; }

/* mobile: the big corner card won't fit, so collapse the same
   button into a compact play pill anchored bottom-left (clear of
   the MANUAL CTRL drawer on the right and the hero copy up top) */
@media (max-width: 900px) {
  .feed {
    top: auto; right: auto;
    left: 12px; bottom: calc(var(--status-h) + 12px);
    width: auto; max-width: 62vw;
    flex-direction: row-reverse; align-items: center; gap: 8px;
    padding: 6px 13px 6px 6px;
    clip-path: none; border-radius: 24px;
    background: rgba(var(--rgb-paper), .93);
  }
  .feed:hover { transform: none; }
  .feed__bar { border: none; padding: 0; white-space: nowrap; font-size: 9px; }
  .feed__bar b { display: none; }
  .feed__cta { display: none; }
  .feed__screen {
    width: 32px; height: 32px; flex: none;
    aspect-ratio: 1 / 1; border-radius: 50%;
    background: none; overflow: visible;
  }
  .feed__screen img, .feed__scan { display: none; }
  .feed__play {
    position: static; inset: auto; width: 32px; height: 32px;
    box-shadow: 0 0 0 4px rgba(var(--rgb-glow-1), .2);
  }
}

/* ── company profile download button (contact panel) ───────── */
.holo__dl {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--azure);
  color: var(--azure); text-decoration: none;
  font-size: 10px; letter-spacing: .18em;
  background: rgba(var(--rgb-glow-1), .05);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.holo__dl b { font-weight: 600; letter-spacing: .12em; opacity: .8; }
.holo__dl svg { transition: transform .25s ease; }
.holo__dl:hover { background: var(--azure); color: #fff; box-shadow: var(--glow-azure); }
.holo__dl:hover svg { transform: translateY(2px); }

/* ═══════════ INSAN-AI additions ═══════════ */
/* Indonesian bilingual accents (mirror the old .ar) */
.id {
  display: block; font-family: var(--font-mono);
  font-size: 8px; font-weight: 400; letter-spacing: .04em;
  color: var(--gold); text-align: center; margin-top: 1px; text-transform: none;
}
.id-inline { font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; }
.nav__word em { color: var(--azure); font-style: normal; }

/* brand logo on dark nav */
.nav__logo { display: block; height: 34px; width: auto; filter: drop-shadow(0 0 8px rgba(var(--rgb-glow-1), .35)); }
.nav__word { font-family: var(--font-display); font-size: 15px; letter-spacing: .12em; }
.nav__word span { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .28em; color: var(--ink-soft); }

/* hero CTA buttons */
.home__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .16em;
  padding: 12px 20px; text-decoration: none; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--primary { background: var(--azure); color: #04211f; box-shadow: var(--glow-azure); }
.btn--primary:hover { background: var(--azure-hot); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--azure); color: var(--azure); }
.btn--ghost:hover { background: rgba(var(--rgb-glow-1), .1); color: var(--azure-hot); transform: translateY(-2px); }

/* panel "more" link + blog row links */
.holo__more {
  display: inline-block; margin-top: 14px;
  font-size: 10px; letter-spacing: .18em; color: var(--azure);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.holo__more:hover { border-color: var(--azure); }
.holo__reclink { display: grid; grid-template-columns: 34px 1fr; gap: 12px; text-decoration: none; color: inherit; }
.holo__reclink:hover b { color: var(--azure); }
.holo__reclink i { color: var(--gold); font-style: normal; }

/* instagram feed grid inside the connect panel */
.holo__ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.holo__ig:empty { display: none; }
.holo__ig-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); position: relative; }
.holo__ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; opacity: .85; }
.holo__ig-item:hover img { transform: scale(1.08); opacity: 1; }

/* webinar popup extras */
.pop__submeta { font-size: 10px; letter-spacing: .12em; color: var(--azure); margin-bottom: 12px; }
.pop__cta {
  display: inline-block; margin-top: 6px; padding: 11px 22px;
  background: var(--azure); color: #04211f; text-decoration: none;
  font-size: 11px; letter-spacing: .16em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .2s ease;
}
.pop__cta:hover { background: var(--azure-hot); }

/* hide the hero CTA buttons on mobile (space is tight) */
@media (max-width: 640px) { .home__cta { display: none; } }

/* ── HAND CONTROL (webcam) ─────────────────────────────────── */
.status__hand { cursor: pointer; color: var(--muted); user-select: none; transition: color .2s ease; }
.status__hand:hover { color: var(--azure-hot); }
.status__hand.is-on { color: var(--azure-hot); text-shadow: 0 0 8px rgba(var(--rgb-neon), .6); }

.handcam {
  position: absolute; left: 26px; bottom: 22px; z-index: 9;
  width: 244px; background: rgba(var(--rgb-paper), .92);
  border: 1px solid var(--azure); box-shadow: var(--glow-azure);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.handcam__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; letter-spacing: .16em; color: var(--azure);
  padding: 7px 10px; border-bottom: 1px solid var(--line-soft);
}
.handcam__head .blink { color: var(--azure-hot); font-size: 8px; }
.handcam__x { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; line-height: 1; }
.handcam__x:hover { color: var(--azure); }
.handcam__cam { display: block; width: 100%; height: auto; background: #05080b; }
.handcam__hud {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); padding: 7px 10px;
}
.handcam__grip i { color: var(--azure-hot); font-style: normal; }
@media (max-width: 640px) { .status__hand { display: none; } .handcam { left: 12px; bottom: 12px; width: 190px; } }
