/* ═══════════════════════════════════════════════
   GRAVITY — styles.css
   Whole-page pinned storyboard.
   Palette: deep navy · blue · sparse blurple
   ═══════════════════════════════════════════════ */

:root {
  --bg:           #0d1b2e;
  --bg-navy:      #102240;
  --blue-deep:    #163450;
  --blue-brand:   #2d6494;
  --blue-mid:     #3a7fbf;
  --blue-sky:     #4a9fd5;
  --blue-light:   #89cff0;
  --blue-pale:    #c6e8f8;
  --white:        #f5f9ff;
  --white-dim:    #8ca8c5;
  --black:        #080b14;
  --blurple:      #5865f2;
  --font-h:  'Space Grotesk', sans-serif;
  --font-b:  'Inter', sans-serif;
  --font-tech: 'Chakra Petch', 'Space Grotesk', sans-serif;   /* HUD / circuit labels */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* No scroll-snap / smooth-scroll: GSAP owns all scroll behaviour. */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); background: var(--bg); color: var(--white); overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Snappier touch: kill the 300ms tap delay and the grey tap-flash on controls. */
button, a, .dot, .mb-node, .btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ─── Ambient background ─────────────────────── */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.22; }

/* ─── Preloader ──────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark { font-family: var(--font-h); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--blue-light); }
.preloader__track { width: min(260px, 60vw); height: 2px; background: rgba(74,159,213,0.18); border-radius: 2px; overflow: hidden; }
.preloader__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue-brand), var(--blue-sky), var(--blue-light)); transition: width 0.25s linear; }
.preloader__status { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--white-dim); font-variant-numeric: tabular-nums; text-align: center; max-width: 80vw; line-height: 1.6; }
.preloader__status code, .board-fallback code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue-light); background: rgba(74,159,213,0.12); padding: 0.12em 0.45em; border-radius: 4px; }

/* ─── Progress rail ──────────────────────────── */
.progress-dots { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.6rem; z-index: 200; }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--blue-brand); background: transparent; cursor: pointer; transition: all 0.3s var(--ease); opacity: 0.5; padding: 0; }
.dot:hover { opacity: 0.85; transform: scale(1.3); }
.dot.active { background: var(--blue-sky); border-color: var(--blue-sky); box-shadow: 0 0 10px var(--blue-sky); opacity: 1; transform: scale(1.5); }

/* ═══════════════════════════════════════════════
   STAGE — single pinned container for the whole site
   ═══════════════════════════════════════════════ */
#stage { position: relative; width: 100%; height: 100vh; overflow: hidden; z-index: 1; }

.panel {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.panel__inner { width: 100%; max-width: 1200px; padding: 5rem 2.5rem 3rem; margin: 0 auto; position: relative; z-index: 2; }
.panel__inner--column { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.panel__inner--split  { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.panel--phone   { background: radial-gradient(ellipse 60% 80% at 35% 45%, rgba(45,100,148,0.16) 0%, transparent 70%), var(--bg); }
.panel--danger  { background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(88,101,242,0.06) 0%, transparent 70%), var(--bg); }
.panel--intro   { background: radial-gradient(ellipse 70% 70% at 60% 50%, rgba(45,100,148,0.15) 0%, transparent 70%), var(--bg); }
.panel--connect { background: #05080f; }
.panel--price   { background: #000000; }
.panel--hub     { background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(22,52,80,0.7) 0%, var(--bg) 70%); }

/* ─── Phone panel ────────────────────────────── */
#board-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel--phone::after {
  background: linear-gradient(0deg, rgba(13,27,46,0.30) 0%, transparent 22%, transparent 55%, rgba(8,11,20,0.78) 100%);
}

/* Coded feed seated onto the phone screen (request 3) */
.screen-layer {
  position: absolute; left: 0; top: 0;
  z-index: 2;                /* under the legibility wash, over the canvas */
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}
.screen-clip {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 7% / 5%;
  background: #04060c;
  box-shadow: inset 0 0 0 1px rgba(137,207,240,0.05), inset 0 0 24px rgba(0,0,0,0.6);
}
.screen-feed { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.screen-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5em 0.7em 0.35em; font-size: 0.62em; color: #aebfd2; font-weight: 600;
}
.screen-statusbar .dots { letter-spacing: 0.12em; }
.screen-feedhead {
  display: flex; align-items: center; gap: 0.5em; padding: 0.3em 0.7em 0.55em;
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.8em;
}
.screen-feedhead .logo { color: #fff; font-size: 1.1em; }
.screen-feedhead .tab { color: #6f8197; font-size: 0.78em; }
.screen-feedhead .tab.is-on { color: #fff; border-bottom: 1.5px solid var(--blue-sky); padding-bottom: 0.15em; }

.s-post { padding: 0.6em 0.7em; border-bottom: 1px solid rgba(255,255,255,0.06); }
.s-post.is-you { background: rgba(74,159,213,0.08); box-shadow: inset 2px 0 0 var(--blue-sky); }
.s-head { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.45em; }
.s-av { width: 1.55em; height: 1.55em; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.5em; font-weight: 700; color: #fff; }
.s-name { font-size: 0.66em; font-weight: 600; color: #dce8f5; }
.s-handle { font-size: 0.6em; color: #6f8197; }
.s-text { font-size: 0.64em; line-height: 1.5; color: #c4d2e2; }
.s-media { width: 100%; height: 6.2em; border-radius: 0.5em; margin-top: 0.5em; }
.s-acts { display: flex; gap: 1.1em; margin-top: 0.55em; color: #7c90a6; font-size: 0.58em; }
.screen-off { position: absolute; inset: 0; background: #000; opacity: 0; }
.screen-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.05) 100%);
  mix-blend-mode: screen;
}

/* Phone caption — single point */
.board-caption {
  position: absolute; left: clamp(1.5rem, 6vw, 6rem); right: clamp(1.5rem, 6vw, 6rem);
  top: clamp(2.5rem, 7vh, 5rem); z-index: 4; pointer-events: none; max-width: 720px;
}
.board-caption__eyebrow { font-family: var(--font-h); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-sky); margin-bottom: 0.6rem; display: block; }
.board-caption__title { font-family: var(--font-h); font-weight: 700; line-height: 1.1; font-size: clamp(2rem, 5vw, 4rem); color: var(--white); letter-spacing: -0.02em; }
.board-caption__title em { font-style: italic; color: var(--blue-light); }

.board-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-dim); transition: opacity 0.5s ease; pointer-events: none; }
.board-cue.is-hidden { opacity: 0; }
.board-cue__wheel { width: 22px; height: 34px; border: 1.5px solid rgba(137,207,240,0.5); border-radius: 12px; position: relative; }
.board-cue__wheel::before { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; background: var(--blue-light); border-radius: 2px; transform: translateX(-50%); animation: cueDrop 1.6s var(--ease) infinite; }
@keyframes cueDrop { 0% { opacity: 0; transform: translate(-50%,0);} 30% { opacity: 1;} 70% { opacity: 1; transform: translate(-50%,12px);} 100% { opacity: 0; transform: translate(-50%,12px);} }

.board-fallback { position: absolute; inset: 0; z-index: 9; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; background: rgba(13,27,46,0.94); }
.board-fallback.is-shown { display: flex; }
.board-fallback h3 { font-family: var(--font-h); color: var(--blue-light); font-size: 1.2rem; }
.board-fallback p { color: var(--white-dim); max-width: 460px; line-height: 1.7; font-size: 0.9rem; }

/* ─── Headlines & text ───────────────────────── */
.headline { font-family: var(--font-h); font-weight: 700; line-height: 1.12; color: var(--white); }
.headline--danger  { font-size: clamp(2rem, 4.5vw, 3.8rem); text-align: center; max-width: 820px; }
.headline--intro   { font-size: clamp(2.2rem, 5vw, 4rem); }
.headline--connect { font-size: clamp(2rem, 4vw, 3.4rem); text-align: center; }
.headline--price   { font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-align: center; max-width: 700px; }
.headline strong   { color: var(--blue-sky); font-style: italic; }
.gradient-text { background: linear-gradient(90deg, var(--blue-sky), var(--blue-light), var(--blurple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtext { margin-top: 1.2rem; font-size: 1rem; color: var(--white-dim); line-height: 1.7; max-width: 440px; }
.split-left { display: flex; flex-direction: column; justify-content: center; }
.split-right { display: flex; justify-content: center; }

/* ─── Clean structural placeholders ──────────── */
.ph { width: 100%; max-width: 620px; }
.ph__frame {
  position: relative; aspect-ratio: 16 / 10;
  border: 1.5px dashed rgba(74,159,213,0.35); border-radius: 14px;
  background: repeating-linear-gradient(45deg, rgba(74,159,213,0.025) 0 12px, transparent 12px 24px), rgba(22,52,80,0.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 1.5rem;
}
.ph__wire { width: clamp(70px, 26%, 120px); color: rgba(137,207,240,0.45); }
.ph__wire svg { width: 100%; height: auto; display: block; }
.ph__kind { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--blue-sky); text-transform: uppercase; }
.ph__desc { font-size: 0.78rem; color: var(--white-dim); max-width: 90%; text-align: center; line-height: 1.6; }
.ph__corner { position: absolute; width: 9px; height: 9px; border: 1.5px solid rgba(74,159,213,0.5); }
.ph__corner--tl { top:-1px; left:-1px; border-right:0; border-bottom:0; }
.ph__corner--tr { top:-1px; right:-1px; border-left:0; border-bottom:0; }
.ph__corner--bl { bottom:-1px; left:-1px; border-right:0; border-top:0; }
.ph__corner--br { bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* ─── Panel 3 — hand spins the web globe ─── */
.panel--intro { overflow: hidden; }

/* Procedural orbital background — behind the copy (z2) and graphic (z3). */
#intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }

/* Organic, human-like body motion for the WHOLE graphic (hand + globe move
   together, pivoting from the wrist) — composes on top of the globe's own
   ±8° balancing rock and the APNG spin for layered, lifelike movement.
   Sits inside #intro-stage, which GSAP owns for the pop-up/retreat transform. */
.intro-graphic {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  animation: intro-sway 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes intro-sway {
  0%   { transform: translate(0%, 0%)      rotate(0deg); }
  20%  { transform: translate(-0.8%, -1.4%) rotate(-1.3deg); }
  45%  { transform: translate(0.9%, -0.4%)  rotate(1.1deg); }
  70%  { transform: translate(-0.5%, -1.6%) rotate(-0.7deg); }
  100% { transform: translate(0%, 0%)      rotate(0deg); }
}

/* Graphic container — anchored to the PANEL (not the padded inner) so the
   wrist can sit flush against the panel's bottom edge. No centring transform
   here: GSAP owns transform (yPercent) for the pop-up / retreat, and the
   children centre themselves. It stays VISIBLE by default; the timeline (when
   it runs) hides it with gsap.set() then pops it up — so if the storyboard
   can't build (e.g. opened over file://) the graphic still shows. */
.intro-stage {
  position: absolute; bottom: 0; left: auto; right: 8%;
  width: min(42vw, 420px); height: 90%;
  z-index: 3; pointer-events: none; will-change: transform;
}

/* Wrist locked flush to the panel bottom. hand.png is a tall portrait
   (404×1017) so it's sized by HEIGHT and never overflows its width. */
.intro-hand {
  position: absolute; left: 50%; bottom: 0;
  height: 66%; width: auto; transform: translateX(-50%);
  display: block; z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(8,11,20,0.55));
}

/* Globe layered ABOVE the hand (z 3 > hand's 2), with its BOTTOM edge pinned to
   the fingertip line. The hand's top sits at `.intro-hand` height (66%) up from
   the stage bottom, so anchoring the globe at bottom:66% rests it on the finger.
   Keep this value equal to .intro-hand height; nudge ~2% lower for slight overlap. */
.intro-globe-wrap {
  position: absolute; left: 52%; bottom: 63%; top: auto; width: 64%;
  transform: translateX(-50%); z-index: 3;
  filter: drop-shadow(0 22px 55px rgba(74,159,213,0.30));
}
/* Eased back-and-forth balancing motion (NO 360 spin). Pivot near the
   contact point so it teeters like a ball resting on a fingertip. */
.intro-globe-rocker {
  position: relative; display: block;
  transform-origin: 50% 96%;
  animation: intro-rock 4s ease-in-out infinite alternate;
}
.intro-globe { width: 100%; height: auto; display: block; }

/* Tight glow bound STRICTLY inside the sphere: clipped to the circle and
   faded out well before the rim, with a soft shimmer pulse. */
.intro-glow {
  position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 44%,
    rgba(255,176,82,0.55) 0%,
    rgba(255,120,24,0.26) 38%,
    rgba(255,90,0,0) 70%);
  animation: intro-shimmer 3.2s ease-in-out infinite alternate;
}

@keyframes intro-rock    { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes intro-shimmer { from { opacity: 0.45; } to { opacity: 0.95; } }

/* Cloud bridge into the connect void */
.intro-clouds { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 30vh; z-index: 2; pointer-events: none; line-height: 0; }
.intro-clouds svg { width: 100%; height: 100%; display: block; }

/* ─── Panel 4 — fullscreen 3D space scene ────── */
#network-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
  background: #05080f;                 /* matches the Three.js clear colour */
  touch-action: none;                  /* swipes are handled by the scene, not the page */
  -webkit-user-select: none; user-select: none;
}
#network-canvas.is-interactive { cursor: grab; }
#network-canvas.is-dragging { cursor: grabbing; }
.connect-overlay {
  position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center; padding: 0 1.5rem;
  pointer-events: none;                /* never blocks globe dragging */
}
.connect-overlay .headline { filter: drop-shadow(0 3px 16px rgba(0,0,0,0.85)) drop-shadow(0 1px 4px rgba(0,0,0,0.7)); }
.connect-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(168,212,238,0.6);
}

/* ─── Pricing ────────────────────────────────── */
.price-row { display: flex; align-items: center; gap: 2rem; }
.price-card { background: rgba(22,52,80,0.35); border: 1px solid rgba(45,100,148,0.5); border-radius: 18px; padding: 2rem 2.25rem; text-align: left; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 230px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(45,100,148,0.25); }
.price-card--featured { border-color: var(--blue-sky); background: rgba(74,159,213,0.09); box-shadow: 0 0 36px rgba(74,159,213,0.12); }
.price-card__badge { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-sky); margin-bottom: 0.75rem; font-family: var(--font-h); }
.price-card--featured .price-card__badge { color: var(--blue-light); }
.price-card__amount { font-family: var(--font-h); font-size: 3.5rem; font-weight: 700; color: var(--blue-sky); line-height: 1; margin-bottom: 1rem; }
.price-card--featured .price-card__amount { color: var(--blue-light); }
.price-card__meta { display: flex; flex-direction: column; gap: 0.4rem; }
.price-card__delivery { font-size: 0.8rem; color: var(--white); }
.price-card__feature { font-size: 0.75rem; color: var(--white-dim); padding-left: 0.75rem; position: relative; }
.price-card__feature::before { content: '–'; position: absolute; left: 0; color: var(--blue-brand); }
/* Monospace "or" terminal splitter — thin vertical baseline, text floats mid-line. */
.price-divider {
  position: relative; flex: 0 0 auto; align-self: center;
  height: 8rem;                                    /* h-32 */
  border-left: 1px solid rgba(255, 255, 255, 0.10); /* border-l border-white/10 */
}
.price-divider__or {
  position: absolute; left: 0; top: 50%;
  transform: translate(-50%, -50%);                /* dead-centre on the line midpoint */
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Code', monospace;
  font-size: 0.85rem; text-transform: lowercase; letter-spacing: 0.02em;
  color: #ffffff; padding: 0 0.4rem;
  /* Stays razor-sharp as the blue shader waves pass behind it. */
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 0 0 8px #00f0ff;
}

/* ─── Hub ────────────────────────────────────── */
.hub { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; }
.hub__center { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; opacity: 0; transform: scale(0.9); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.hub__center.in { opacity: 1; transform: scale(1); }
.hub__logo { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(74,159,213,0.55)); animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-7px);} }
.hub__name { font-family: var(--font-h); font-size: 2.2rem; font-weight: 700; color: var(--blue-light); letter-spacing: -0.02em; }
.hub__tagline { font-size: 0.9rem; color: var(--white-dim); letter-spacing: 0.06em; }
.hub__circuits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.hub__nodes { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hub__node { position: absolute; display: flex; align-items: center; gap: 0.6rem; opacity: 0; transform: translate(-50%,-50%) scale(0.85); transition: opacity 0.5s var(--ease), transform 0.5s var(--spring); pointer-events: auto; cursor: default; }
.hub__node.in { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hub__node:hover .hub__node-title { color: var(--blue-light); }
.hub__node-pip { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-sky); border: 2px solid var(--blue-light); box-shadow: 0 0 8px var(--blue-sky), 0 0 16px rgba(74,159,213,0.3); flex-shrink: 0; }
.hub__node-content { display: flex; flex-direction: column; gap: 1px; }
.hub__node-title { font-family: var(--font-h); font-size: 0.88rem; font-weight: 600; color: var(--white); white-space: nowrap; transition: color 0.2s; }
.hub__node-desc { font-size: 0.68rem; color: var(--white-dim); white-space: nowrap; }
.cpath { fill: none; stroke: var(--blue-brand); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cdot { fill: var(--blue-sky); }
.cglint { fill: none; stroke: var(--blue-sky); stroke-width: 2; opacity: 0.5; }

/* GSAP toggles inline opacity; this is just the resting style for reveals. */
.reveal { will-change: transform, opacity; }

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-brand); border-radius: 2px; }

/* ─── No-GSAP / fallback: linear scroll, everything visible ─── */
body.no-gsap #stage { height: auto; overflow: visible; }
body.no-gsap .panel { position: relative; min-height: 100vh; opacity: 1 !important; visibility: visible !important; }
body.no-gsap .reveal { opacity: 1 !important; transform: none !important; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .panel__inner--split { grid-template-columns: 1fr; gap: 2rem; }
  .split-right { display: none; }
  /* Panel 3: type stacks at the top, graphic centred and docked to the bottom. */
  .panel--intro { align-items: flex-start; }
  .panel--intro .panel__inner { padding-top: 4.5rem; text-align: center; }
  .panel--intro .subtext { margin-left: auto; margin-right: auto; }
  .intro-stage { left: 0; right: 0; width: min(78vw, 300px); margin: 0 auto; height: 58%; }
  .intro-clouds { height: 20vh; }
}
@media (max-width: 640px) {
  .price-row { flex-direction: column; gap: 1rem; }
  .price-divider { height: 0; width: 8rem; border-left: none; border-top: 1px solid rgba(255,255,255,0.10); }
  .price-divider__or { left: 50%; top: 0; }
  .hub__node-title { font-size: 0.72rem; }
  .hub__node-desc  { font-size: 0.58rem; }

  /* Roomier text margins on small screens. */
  .panel__inner { padding: 4rem 1.4rem 2.5rem; }

  /* Bigger progress dots with a generous invisible tap area (~29px). */
  .progress-dots { right: max(0.5rem, env(safe-area-inset-right)); gap: 1.15rem; }
  .dot { width: 11px; height: 11px; }
  .dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
}

/* ─── Mobile paged mode (class toggled by JS for the discrete swipe nav) ───
   On phones the page does NOT scroll natively — a controller turns swipes into
   one-step transitions between panel states. So we lock native scrolling and
   size the stage to the *visible* viewport (dvh — with no scrolling the URL
   bar stays put, so there's no more dead-scroll at the top). The globe takes
   no touch (a swipe is always "advance the story"), so it only renders and
   auto-spins, and its "drag to rotate" hint is hidden. PC is unaffected — the
   .mobile-paged class is only added on phones. */
body.mobile-paged { overflow: hidden; overscroll-behavior: none; height: 100dvh; }
body.mobile-paged #stage { height: 100dvh; touch-action: none; }
body.mobile-paged .hub { height: 100%; }
body.mobile-paged .mb  { height: 100%; }
body.mobile-paged #network-canvas { pointer-events: none; touch-action: auto; }
body.mobile-paged .connect-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .board-cue__wheel::before { animation: none; }
}

/* --- Vertex pop-ups (live commercial activity on the globe) --- */
.vpop-host { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.vpop {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  opacity: 0; will-change: transform, opacity;
}
.vpop__dot {
  position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 7px var(--blue-sky), 0 0 16px rgba(74,159,213,0.55);
}
.vpop__stem {
  position: absolute; left: 0; bottom: 2px; width: 1px; height: 18px;
  background: linear-gradient(180deg, rgba(74,159,213,0), rgba(74,159,213,0.75));
}
.vpop__bubble {
  position: absolute; left: 0; bottom: 22px; transform: translateX(-50%);
  white-space: nowrap; display: flex; flex-direction: column; gap: 1px;
  padding: 0.4rem 0.72rem;
  background: rgba(5,9,16,0.92);
  border: 1px solid rgba(74,159,213,0.55); border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(74,159,213,0.08), 0 6px 22px rgba(0,0,0,0.55), 0 0 18px rgba(74,159,213,0.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vpop__bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(5,9,16,0.92);
  border-right: 1px solid rgba(74,159,213,0.55);
  border-bottom: 1px solid rgba(74,159,213,0.55);
}
.vpop__title {
  font-family: var(--font-h); font-size: 0.78rem; font-weight: 600;
  color: var(--white); letter-spacing: -0.01em; line-height: 1.15;
}
.vpop__sub {
  font-family: var(--font-b); font-size: 0.62rem; font-weight: 500;
  color: var(--blue-light); letter-spacing: 0.02em; opacity: 0.82; line-height: 1.2;
}

/* --- Panel 1 dynamic background: drifting luminous energy field --- */
.phone-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.phone-aurora::before {
  content: ''; position: absolute; left: 50%; top: 44%; width: 170vmax; height: 170vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    rgba(45,100,148,0.09), rgba(74,159,213,0.04), rgba(88,101,242,0.07),
    rgba(45,100,148,0.03), rgba(74,159,213,0.09), rgba(45,100,148,0.09));
  filter: blur(48px); opacity: 0.5;
  animation: auroraSpin 70s linear infinite;
}
.phone-aurora span {
  position: absolute; border-radius: 50%; filter: blur(72px);
  mix-blend-mode: screen; will-change: transform, opacity;
}
.phone-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: 6%; top: 16%;
  background: radial-gradient(circle, rgba(74,159,213,0.50), transparent 66%);
  animation: auroraDrift1 26s var(--ease) infinite alternate;
}
.phone-aurora span:nth-child(2) {
  width: 38vw; height: 38vw; right: 4%; top: 28%;
  background: radial-gradient(circle, rgba(45,100,148,0.55), transparent 66%);
  animation: auroraDrift2 33s var(--ease) infinite alternate;
}
.phone-aurora span:nth-child(3) {
  width: 30vw; height: 30vw; left: 28%; bottom: 6%;
  background: radial-gradient(circle, rgba(88,101,242,0.34), transparent 66%);
  animation: auroraDrift3 40s var(--ease) infinite alternate;
}
@keyframes auroraSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes auroraDrift1 {
  from { transform: translate(0,0) scale(1);    opacity: 0.65; }
  to   { transform: translate(12%,14%) scale(1.18); opacity: 1; }
}
@keyframes auroraDrift2 {
  from { transform: translate(0,0) scale(1.1);  opacity: 0.55; }
  to   { transform: translate(-14%,8%) scale(0.92); opacity: 0.95; }
}
@keyframes auroraDrift3 {
  from { transform: translate(0,0) scale(0.95); opacity: 0.45; }
  to   { transform: translate(10%,-12%) scale(1.2);  opacity: 0.85; }
}

/* ═══════════════════════════════════════════════
   PANEL 6 — CPU-CORE MOTHERBOARD (final panel)
   Pure-black fiberglass plate · charcoal traces ·
   engraved stencil typography · neon power-up.
   These rules override the legacy SVG-hub styling.
   ═══════════════════════════════════════════════ */
.panel--hub { background: #000000; }

.mb { position: relative; width: 100%; height: 100vh; overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 46%; }

/* The tilting 3D plate — canvas, chips and core share this transform so they
   parallax together. JS drives its rotateX/rotateY from the cursor. */
.mb__scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }

.mb__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; background: #000000; }

/* Cinematic colour grade — sits above the board, below the popup. */
.mb__grade { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.mb__grade::before {                       /* vignette: pull focus to the core */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 78% 78% at 50% 46%, transparent 42%, rgba(0,0,0,0.62) 100%);
}
.mb__grade::after {                        /* faint drifting scanlines */
  content: ''; position: absolute; inset: -2px; opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(0,240,255,0.05) 0 1px, transparent 1px 3px);
  animation: mbScan 8s linear infinite; mix-blend-mode: screen;
}
@keyframes mbScan { to { transform: translateY(3px); } }

/* ─── CPU Core — locked dead-centre of the viewport ─── */
.mb__core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateZ(58px);   /* floats above the board */
  z-index: 5; width: 184px; height: 184px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.9s var(--ease);
}
.mb__core.in { opacity: 1; }
.mb__core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0,240,255,0.32);
  box-shadow: 0 0 26px rgba(0,240,255,0.18), inset 0 0 26px rgba(0,240,255,0.08);
  animation: mbCoreSpin 18s linear infinite;
}
.mb__core-ring--inner { inset: 26px; border-color: rgba(0,240,255,0.16); animation-direction: reverse; animation-duration: 26s; box-shadow: none; }
.mb__core-logo {
  position: relative; z-index: 2; width: 104px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(0,240,255,0.45));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes mbCoreSpin { to { transform: rotate(360deg); } }

/* ─── IC microchip packages (the 5 text nodes) ─── */
.mb__nodes { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.mb-node {
  position: absolute; transform: translate(-50%, -50%) translateZ(28px);   /* chips raised on pads */
  display: block; pointer-events: auto; cursor: pointer;
  padding: 0.7rem 1.15rem;
  max-width: min(40vw, 360px);
  background: #090d16;                          /* solid dark matte IC package */
  border: 1px solid #1e293b;                   /* ultra-thin slate-800 edge */
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.65), 0 8px 26px rgba(0,0,0,0.55);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
/* Silver DIP leads down each side of the package. */
.mb-node::before, .mb-node::after {
  content: ''; position: absolute; top: 9px; bottom: 9px; width: 3px;
  background: repeating-linear-gradient(180deg, #475569 0 4px, transparent 4px 9px);
}
.mb-node::before { left: -3px; }
.mb-node::after  { right: -3px; }
.mb-node:hover { border-color: #334155; }
.mb-node.is-locked {
  border-color: #00f0ff;
  box-shadow: 0 0 0 1px rgba(0,240,255,0.55), 0 0 22px rgba(0,240,255,0.32), 0 8px 26px rgba(0,0,0,0.55);
}

/* Silkscreen-style component label — technical, uppercase, white. */
.mb-node__label {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);    /* a touch smaller */
  letter-spacing: 0.07em;                        /* stamped, technical spacing */
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--blue-light);                      /* ice-blue, on-theme */
  text-align: center;
}

/* Status light directly beneath the chip — JS drives opacity for the flicker.
   Absolutely positioned so it never grows the package bounding box. */
.mb-node__light {
  position: absolute; left: 50%; top: calc(100% + 11px); transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #00f0ff; opacity: 0.12;
  box-shadow: 0 0 6px rgba(0,240,255,0.35);
}
.mb-node.is-locked .mb-node__light {
  opacity: 1 !important;                        /* solid, non-blinking lock */
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 24px rgba(0,240,255,0.85), 0 0 44px rgba(0,240,255,0.5);
}

/* ─── Override content popup ─── */
.mb-popup {
  position: absolute; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mb-popup.is-open { display: flex; }
.mb-popup__card {
  position: relative;
  width: min(520px, 88vw);
  background: #020617;                          /* midnight-blue backdrop */
  border: 1px solid #3b82f6;                    /* razor-thin luminous border */
  border-radius: 16px;
  padding: 2.1rem 2.2rem;
  box-shadow: 0 0 44px rgba(59,130,246,0.40), inset 0 0 32px rgba(59,130,246,0.08), 0 30px 60px rgba(0,0,0,0.6);
  transform: scale(0.9); opacity: 0;
  transition: transform 0.38s var(--spring), opacity 0.3s var(--ease);
}
.mb-popup.is-open .mb-popup__card { transform: scale(1); opacity: 1; }
.mb-popup__close {
  position: absolute; top: 0.85rem; right: 1rem;
  width: 30px; height: 30px; line-height: 1;
  font-size: 1.4rem; color: #3b82f6;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.mb-popup__close:hover { color: #bff8ff; background: rgba(59,130,246,0.12); }
.mb-popup__eyebrow {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #3b82f6; margin-bottom: 0.5rem;
}
.mb-popup__title {
  font-family: var(--font-tech); font-weight: 700;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white); margin-bottom: 0.8rem;
}
.mb-popup__body { font-size: 0.92rem; line-height: 1.65; color: var(--white-dim); }
.mb-popup__body + .mb-popup__body { margin-top: 0.8rem; }

/* ── FormSubmit contact form (themed to the popup card) ── */
.mb-popup__form { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.mb-popup__form[hidden] { display: none; }            /* honour the hidden attr over display:flex */
.mb-popup__form .form-group { margin: 0; }
.mb-popup__form .form-row { display: flex; gap: 0.75rem; }
.mb-popup__form .col { flex: 1; min-width: 0; }
.mb-popup__form .form-control {
  width: 100%; box-sizing: border-box;
  background: rgba(8,12,22,0.85); color: var(--white);
  border: 1px solid rgba(59,130,246,0.35); border-radius: 8px;
  padding: 0.7rem 0.85rem; font-family: var(--font-b); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mb-popup__form .form-control::placeholder { color: rgba(160,180,205,0.55); }
.mb-popup__form .form-control:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.mb-popup__form textarea.form-control { resize: vertical; min-height: 110px; }
.mb-popup__form .btn {
  cursor: pointer; border: 0; border-radius: 8px;
  padding: 0.8rem 1.2rem; font-size: 0.9rem;
  font-family: var(--font-tech); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 22px rgba(37,99,235,0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.mb-popup__form .btn-block { width: 100%; }
.mb-popup__form .btn:hover { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(37,99,235,0.5); }
.mb-popup__form .btn:active { transform: translateY(1px); }
@media (max-width: 640px) { .mb-popup__form .form-row { flex-direction: column; } }

@media (max-width: 640px) {
  .mb-node { max-width: 46vw; padding: 0.5rem 0.8rem; }
  .mb-node__label { font-size: clamp(0.8rem, 3.9vw, 1.1rem); letter-spacing: 0.04em; }
  .mb__core { width: 150px; height: 150px; }
  .mb__core-logo { width: 86px; height: 86px; }

  /* Popup: scroll the whole overlay (anchored to the top) so the contact form
     and its submit button are always reachable on short screens. */
  .mb-popup { align-items: flex-start; padding: 1rem 0.9rem; }
  .mb-popup__card { width: 100%; padding: 1.7rem 1.3rem; }
  /* 16px form fields stop iOS Safari from auto-zooming the page on focus. */
  .mb-popup__form .form-control { font-size: 16px; }
}

/* ═══════════════════════════════════════════════
   PANEL 5 — EVENT-HORIZON PRICING
   Reskinned black-hole background + centre logo +
   glassmorphic pricing cards with spinning borders.
   ═══════════════════════════════════════════════ */
.bh-canvas {                                   /* full-bleed background shader */
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; background: #000000;
}
/* Headline + cards float above the shader; push them to the edges so the
   black hole owns the centre. (Scoped to the price panel.) */
.panel--price .panel__inner--column {
  height: 100%; justify-content: space-between;
  padding-top: 9vh; padding-bottom: 9vh;
}
.panel--price .headline--price {
  color: #ffffff; letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 24px rgba(0,240,255,0.18);
}

/* ── Glassmorphic cards — frosted glass, shader rays bleed through ── */
/* Wrapper establishes the shared 3D context. */
.panel--price .price-row { transform-style: preserve-3d; }

.panel--price .price-card {
  position: relative;
  background: rgba(3, 7, 18, 0.45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: none;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  /* Permanent, static 3D tilt — no JS, GPU-accelerated. Left card angles
     inward to the right; children + spinning border inherit the matrix. */
  transform: perspective(1200px) rotateY(12deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}
/* Keep the tilt locked on hover — only the glow responds. */
.panel--price .price-card:hover { box-shadow: 0 22px 60px rgba(0,240,255,0.18); }
.panel--price .price-card--featured {
  background: rgba(8, 20, 46, 0.5);
  transform: perspective(1200px) rotateY(-12deg);  /* right card angles inward to the left */
}
.panel--price .price-card__amount,
.panel--price .price-card--featured .price-card__amount { color: #00f0ff; }
.panel--price .price-card__badge { color: #7dd3fc; }

/* Spinning 1.5px gradient boundary — cyber-blue fading into slate. */
@property --bh-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.panel--price .price-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--bh-angle),
    #00f0ff 0deg, #1e293b 90deg, #334155 180deg, #1e293b 270deg, #00f0ff 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: bhBorderSpin 5s linear infinite;
  pointer-events: none;
}
.panel--price .price-card--featured::before { animation-duration: 3.6s; }
@keyframes bhBorderSpin { to { --bh-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .panel--price .price-card::before { animation: none; }
}
@media (max-width: 640px) {
  .panel--price .price-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  /* Drop the 3D Y-tilt on phones — stacked, skewed cards were hard to read. */
  .panel--price .price-card,
  .panel--price .price-card--featured { transform: none; }
}

/* ═══════════════════════════════════════════════
   PANEL 2 — INSTAGRAM BREAKDOWN  (#instagram-breakdown-panel)
   Zero-DOM canvas plunge into a 250,000-feed Instagram glyph, crossfade
   to a pixel-accurate post, then a gravity shatter that reveals a
   green/blue WebGL code-rain.

   PERFORMANCE NOTE: the 250,000 feeds are NOT drawn per frame. They are
   baked ONCE into an offscreen texture (script.js initInstagramZoom) and
   blitted as a single image each frame; crisp 64px sprites are overlaid
   only for the few viewport-visible cells while zoomed in (LOD culling).
   Only the .panel--danger background below is an override.
   ═══════════════════════════════════════════════ */
.panel--danger {
  background:
    radial-gradient(ellipse 70% 55% at 22% 18%, rgba(254,218,117,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 75% 65% at 82% 26%, rgba(214,41,118,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 95% 80% at 50% 108%, rgba(131,58,180,0.20) 0%, transparent 62%),
    #05060d;
}

/* PHASE 1 — the zero-DOM zoom theater: a single full-bleed canvas. */
#instagram-zoom-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; display: block; background: transparent;
  pointer-events: none;
}

/* Rezmason-style code-rain — above the panel's black fill, below the feed.
   JS ramps its opacity in only as the post tumbles away. */
#rezmason-matrix-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; display: block; opacity: 0; background: #000;
  pointer-events: none;
}

/* Part-A statement that rides the plunge (above the canvas, fades with scrub). */
.ig-zoom-caption {
  position: absolute; left: 0; right: 0; bottom: 13vh; z-index: 4;
  margin: 0 auto; max-width: 900px; padding: 0 1.5rem; text-align: center;
  pointer-events: none; opacity: 0;
  font-family: var(--font-h); font-weight: 700; line-height: 1.18;
  font-size: clamp(1.5rem, 4vw, 3rem); letter-spacing: -0.02em;
  color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.7);
}

/* ── PHASE 2 — pixel-accurate Instagram post (Pixsellz-style) ── */
#figma-instagram-feed {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.ig-post { position: relative; width: min(380px, 86vw); font-family: var(--font-b); color: var(--white); }
.ui-header, .ui-photo, .ui-action-icons, .ui-text-strings { will-change: transform, opacity; }

.ui-header {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem;
  background: #0a0e17; border: 1px solid rgba(255,255,255,0.08); border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.ui-header__av {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4a9fd5, #5865f2);
  box-shadow: 0 0 0 2px #0a0e17, 0 0 0 3.5px rgba(74,159,213,0.55);
}
.ui-header__av svg { width: 17px; height: 17px; fill: #fff; }
.ui-header__id { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.ui-header__name { font-size: 0.85rem; font-weight: 600; color: #fff; }     /* real weight */
.ui-header__sub  { font-size: 0.68rem; font-weight: 400; color: var(--white-dim); }
.ui-header__more { width: 20px; height: 20px; fill: #fff; }

.ui-photo {
  position: relative; aspect-ratio: 1 / 1;
  background:
    #0a0e17
    url('https://images.unsplash.com/photo-1672777368863-0d3946b57d95?q=80&w=987&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')
    center / cover no-repeat;
  border-left: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08);
}
.ui-photo__tag {
  position: absolute; top: 0.6rem; left: 0.6rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(8,11,20,0.6); padding: 0.2em 0.5em; border-radius: 4px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.ui-action-icons {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.85rem 0.4rem; background: #0a0e17;
  border-left: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08);
}
.ui-action-icons__left { display: flex; gap: 0.9rem; }
.ui-ic {
  width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ui-action-icons__save { margin-left: auto; }

.ui-text-strings {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.2rem 0.85rem 0.85rem; background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.08); border-top: 0; border-radius: 0 0 10px 10px;
}
.ui-text-strings__likes   { font-size: 0.78rem; font-weight: 600; color: #fff; }
.ui-text-strings__caption { font-size: 0.78rem; line-height: 1.45; color: #c4d2e2; }
.ui-text-strings__caption b { color: #fff; font-weight: 600; }

/* PHASE 3 — when GSAP adds .is-telemetry the text block goes monospace,
   loses its post chrome and the headline types out in ice-blue. */
.ui-text-strings.is-telemetry {
  background: transparent; border-color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Code', monospace;
}
.ui-text-strings.is-telemetry .ui-text-strings__likes,
.ui-text-strings.is-telemetry .ui-text-strings__caption { display: none; }
.ui-text-strings__tele {
  font-family: ui-monospace, SFMono-Regular, Menlo, 'Cascadia Code', monospace;
  font-size: clamp(0.92rem, 2vw, 1.3rem); line-height: 1.55;
  color: #00f0ff; letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(0,240,255,0.5), 0 0 2px rgba(0,240,255,0.9);
}
.ui-caret {
  display: none; width: 0.6em; height: 1.05em; margin-left: 0.06em; vertical-align: -0.16em;
  background: #00f0ff; box-shadow: 0 0 10px rgba(0,240,255,0.7);
  animation: uiCaret 1s steps(1) infinite;
}
.ui-text-strings.is-telemetry .ui-caret { display: inline-block; }
@keyframes uiCaret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ui-caret { animation: none; }
}
