/* NouwaCore digital universe (gl-) — the homepage hero visual.
   Markup: partials/globe.blade.php · Renderer: assets/js/globe.js (raw WebGL)
   The sphere itself is graphite in both themes; everything around it follows the theme tokens.
   Nodes are HTML links; on phones they become a compact list under the globe. The HUD layer (code
   panels, status chips, code fragments, surface tags) is decorative and aria-hidden. */

.gl {
  position: relative;
  /* code is always Latin: keep a real monospace even where the page maps --nc-font-mono to Arabic */
  --gl-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
.gl-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;               /* vertical swipes always scroll the page */
}
.gl-canvas,
.gl-atmo,
.gl-fallback,
.gl-links,
.gl-hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gl-canvas { display: block; opacity: 0; transform: scale(0.94); transition: opacity 1200ms var(--nc-ease-out), transform 1600ms var(--nc-ease-cinema); }
.gl.is-ready .gl-canvas { opacity: 1; transform: none; }

/* halo around the solid sphere (the sphere fills ~80% of the stage) */
.gl-atmo {
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(10, 10, 11, 0.2) 76%, rgba(10, 10, 11, 0.05) 88%, transparent 100%),
    radial-gradient(closest-side at 66% 70%, rgba(161, 13, 24, 0.16), transparent 100%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1400ms var(--nc-ease-out), transform 1800ms var(--nc-ease-cinema);
  pointer-events: none;
}
:root[data-theme="dark"] .gl-atmo {
  background:
    radial-gradient(closest-side at 50% 50%, transparent 74%, rgba(161, 13, 24, 0.16) 82%, transparent 100%),
    radial-gradient(closest-side at 38% 34%, rgba(255, 255, 255, 0.07), transparent 100%),
    radial-gradient(closest-side at 66% 70%, rgba(161, 13, 24, 0.2), transparent 100%);
}
.gl.is-ready .gl-atmo { opacity: 1; transform: none; }

/* SVG connectors from each label to its anchor on the globe */
.gl-links { overflow: visible; pointer-events: none; opacity: 0; transition: opacity 700ms var(--nc-ease-out) 200ms; }
.gl.is-nodes .gl-links { opacity: 1; }
.gl-links line { stroke: var(--nc-border-strong); stroke-width: 1; stroke-dasharray: 2 4; transition: stroke 200ms, stroke-width 200ms, opacity 200ms; }
.gl-links line.is-active { stroke: var(--nc-red-500); stroke-width: 1.6; stroke-dasharray: none; }
.gl[data-active]:not([data-active="-1"]) .gl-links line:not(.is-active) { opacity: 0.35; }

/* ---- HUD: decorative software layer ---------------------------------------------------- */
.gl-hud { pointer-events: none; opacity: 0; transition: opacity 900ms var(--nc-ease-out) 300ms; --gx: 0; --gy: 0; }
.gl.is-nodes .gl-hud { opacity: 1; }

/* code fragments floating in front of the sphere (parallax by depth --d) */
.gl-frag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: calc(-50% + var(--gx) * var(--d) * 9px) calc(-50% + var(--gy) * var(--d) * 7px);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--gl-mono);
  font-size: calc(9px + var(--d) * 2.2px);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(10, 10, 11, 0.9);
  animation: gl-drift calc(6s + var(--d) * 2s) ease-in-out infinite alternate;
}
.gl-frag--red { color: rgba(255, 112, 100, 0.85); }
@keyframes gl-drift { from { transform: translateY(-3px); } to { transform: translateY(4px); } }

/* tags on infrastructure sites, positioned by globe.js as the surface turns */
.gl-tag {
  position: absolute;
  left: 0;
  top: 0;
  margin: -9px 0 0 12px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.62);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--gl-mono);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

/* status chips: decorative labels that light up with the matching service */
.gl-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--nc-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--nc-surface) 84%, transparent);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--nc-text-muted);
  font-family: var(--gl-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
  translate: calc(var(--gx) * -5px) calc(var(--gy) * -4px);
  transition: color 200ms, border-color 200ms;
}
.gl-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--nc-text-subtle, #92939A); transition: background-color 200ms, box-shadow 200ms; }
.gl-chip.is-on { border-color: rgba(161, 13, 24, 0.55); color: var(--nc-text); }
.gl-chip.is-on i { background: var(--nc-red-500); box-shadow: 0 0 0 3px rgba(161, 13, 24, 0.22); }
.gl-chip--top { left: 50%; top: 0.5%; transform: translateX(-50%); }
.gl-chip--top i { background: var(--nc-red-500); animation: gl-blink 2.4s ease-in-out infinite; }
.gl-chip--left { left: 1%; top: 31%; }
.gl-chip--right { right: 0.5%; top: 28%; }
.gl-chip--bottom { left: 47%; bottom: 0; }
@keyframes gl-blink { 50% { opacity: 0.35; } }

/* code panel: an illustrative snippet, syntax-coloured */
.gl-code {
  position: absolute;
  right: 0;
  top: 62.5%;
  width: min(272px, 42%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(14, 15, 17, 0.84);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -22px rgba(10, 10, 11, 0.7);
  color: #E9EAEE;
  overflow: hidden;
  translate: calc(var(--gx) * 7px) calc(var(--gy) * 5px);
}
.gl-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gl-code__file { color: #92939A; font-family: var(--gl-mono); font-size: 12px; }
.gl-chip--inline { position: static; translate: none; padding: 2px 7px; font-size: 12px; border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #92939A; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gl-chip--inline.is-on { color: #FFFFFF; }
.gl-code__lines { margin: 0; padding: 8px 10px 10px 0; list-style: none; counter-reset: ln; font-family: var(--gl-mono); font-size: 12px; line-height: 1.75; }
.gl-code__lines li { counter-increment: ln; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.gl-code__lines li::before { content: counter(ln); display: inline-block; width: 24px; padding-inline-end: 9px; text-align: end; color: rgba(255, 255, 255, 0.24); }
.gl-code__lines li:nth-child(2) { background: linear-gradient(90deg, rgba(161, 13, 24, 0.16), transparent 80%); box-shadow: inset 2px 0 0 var(--nc-red-500); }

/* syntax colours (code panel + terminal panel) */
.t-k { color: #E65C66; }
.t-s { color: #F4F4F6; }
.t-f { color: #C9CDD6; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.18); text-underline-offset: 2px; }
.t-n { color: #FF8C95; }
.t-c { color: #6F7178; font-style: italic; }

/* ---- Service nodes ----------------------------------------------------------------- */
.gl-nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.gl-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--nc-ease-out), transform 620ms var(--nc-ease-cinema);
  transition-delay: calc(var(--i) * 70ms);
}
.gl.is-nodes .gl-node { opacity: 1; transform: none; }
.gl-node[data-side="r"] { translate: -100% 0; }
.gl-node__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--nc-border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--nc-surface) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: var(--nc-shadow-sm);
  color: var(--nc-text);
  font-size: 0.75rem;
  font-weight: var(--nc-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms, background-color 180ms, box-shadow 220ms, transform 220ms var(--nc-ease-out), opacity 220ms;
}
.gl-node__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nc-surface-sunken);
  color: var(--nc-text);
  transition: background-color 180ms, color 180ms;
}
.gl-node__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gl-node__link:hover,
.gl-node.is-active .gl-node__link { border-color: var(--nc-red-500); box-shadow: 0 10px 30px -14px rgba(161, 13, 24, 0.6); transform: translateY(-1px); }
.gl-node.is-active .gl-node__ic { background: var(--nc-red-500); color: #FFFFFF; }
/* keyboard focus always shows, also on the active node (more specific than the active state) */
.gl .gl-node .gl-node__link:focus-visible { outline: none; border-color: var(--nc-red-500); box-shadow: var(--nc-ring), 0 10px 30px -14px rgba(161, 13, 24, 0.6); }
.gl[data-active]:not([data-active="-1"]) .gl-node:not(.is-active) .gl-node__link { opacity: 0.62; }
/* descriptions are read through aria-describedby; the info panel shows them on wide screens */
.gl-node__desc { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Info panel: a small terminal that follows the active service ------------------------ */
.gl-panel {
  position: absolute;
  left: 0;                           /* physical: the stage is laid out LTR in both languages */
  bottom: 0;
  z-index: 3;
  width: min(312px, 46%);
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--nc-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: var(--nc-shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--nc-ease-out) 400ms, transform 620ms var(--nc-ease-cinema) 400ms, border-color 200ms;
  pointer-events: none;
}
.gl.is-nodes .gl-panel { opacity: 1; transform: none; }
.gl-panel > p { margin: 0; padding-inline: 14px; }
.gl-panel__bar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #0E0F11; color: #92939A; font-family: var(--gl-mono); font-size: 12px; }
.gl-panel__lights { display: inline-flex; gap: 4px; }
.gl-panel__lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.gl-panel__lights i:first-child { background: var(--nc-red-500); }
.gl-panel__file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-panel__kicker { display: flex; align-items: center; gap: 6px; letter-spacing: 0.06em; }
.gl-panel__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.gl-panel__code {
  display: block;
  padding: 7px 12px 8px;
  background: #151619;
  color: #E9EAEE;
  font-family: var(--gl-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the bar and code carry dir=ltr; in Arabic foundation sets [dir=ltr] to the Latin sans, keep them mono */
.gl .gl-panel :is(.gl-panel__bar, .gl-panel__code) { font-family: var(--gl-mono); }
.gl-panel__code::before { content: '$ '; color: var(--nc-red-500); }
.gl-panel.is-on { border-color: rgba(161, 13, 24, 0.5); }
.gl-panel.is-on .gl-panel__dot { background: var(--nc-red-500); box-shadow: 0 0 0 3px rgba(161, 13, 24, 0.25); }
.gl-panel__title { margin-top: 10px !important; color: var(--nc-text); font-family: var(--nc-font-display); font-size: 1rem; font-weight: var(--nc-weight-semibold); letter-spacing: -0.01em; }
.gl-panel__text { margin: 4px 0 12px !important; color: var(--nc-text-muted); font-size: 0.75rem; line-height: 1.5; }
.gl-panel.is-on :is(.gl-panel__title, .gl-panel__text, .gl-panel__code) { animation: gl-in 380ms var(--nc-ease-out) both; }
@keyframes gl-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- Fallback (no WebGL): a solid graphite sphere with a dotted surface and two orbits ---- */
.gl-fallback { display: none; place-items: center; pointer-events: none; }
.gl.is-fallback .gl-fallback { display: grid; }
.gl.is-fallback .gl-canvas { display: none; }
.gl-fallback::before {
  content: '';
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px) 0 0 / 11px 11px,
    radial-gradient(circle at 34% 30%, #2A2C31, #151619 48%, #0A0A0B 80%);
  box-shadow: inset -18px -22px 40px rgba(161, 13, 24, 0.18), inset 10px 12px 30px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(10, 10, 11, 0.6);
  grid-area: 1 / 1;
}
.gl-fallback__ring { grid-area: 1 / 1; width: 90%; aspect-ratio: 1; border: 1px dashed var(--nc-border-strong); border-radius: 50%; transform: rotateX(68deg) rotateZ(18deg); }
.gl-fallback__ring--2 { width: 98%; transform: rotateX(72deg) rotateZ(-26deg); }
.gl.is-fallback .gl-tag { display: none; }

/* ---- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .gl-node__link { font-size: 0.75rem; padding-inline-end: 12px; }
  .gl-node__ic { width: 28px; height: 28px; }
  .gl-panel { width: min(290px, 50%); }
}
@media (max-width: 760px) {
  /* phones: the globe on top, a compact list of the five services underneath (no floating labels) */
  .gl-stage { aspect-ratio: auto; }
  .gl-canvas, .gl-atmo, .gl-fallback { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 0.82; }
  .gl-atmo, .gl-fallback { position: absolute; top: 0; }
  .gl-hud { inset: 0 0 auto; height: auto; aspect-ratio: 1 / 0.82; }
  .gl-links, .gl-panel, .gl-code, .gl-tag, .gl-chip--left, .gl-chip--right { display: none; }
  .gl-chip--bottom { left: 50%; transform: translateX(-50%); }
  .gl-frag { font-size: calc(8px + var(--d) * 1.6px); }
  .gl-nodes { position: relative; inset: auto; display: grid; gap: 8px; margin-top: 10px; pointer-events: auto; }
  .gl-node, .gl-node[data-side="r"] { position: relative; left: auto; top: auto; translate: none; }
  .gl-node__link { display: flex; width: 100%; white-space: normal; border-radius: 14px; padding: 8px 12px 8px 8px; font-size: 0.875rem; }
  .gl-node__desc { position: static; width: auto; height: auto; margin: 4px 0 0; overflow: visible; clip-path: none; white-space: normal; padding-inline-start: 50px; color: var(--nc-text-muted); font-size: 0.75rem; line-height: 1.45; }
  .gl[data-active]:not([data-active="-1"]) .gl-node:not(.is-active) .gl-node__link { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gl-canvas, .gl-atmo, .gl-links, .gl-node, .gl-panel, .gl-hud { transition: none; }
  .gl-frag, .gl-chip--top i { animation: none; }
  .gl-panel.is-on :is(.gl-panel__title, .gl-panel__text, .gl-panel__code) { animation: none; }
}

/* ---------------------------------------------------------------------------
   Project detail card (2026-11)
   Opens under the globe when one of the project nodes is clicked. Dark, like the
   sphere it comes from, so it reads as part of the globe rather than a page modal.
   --------------------------------------------------------------------------- */
.gl-card {
  position: absolute; z-index: 6;
  left: 50%; top: 52%;
  width: min(calc(100% - 32px), 400px);
  transform: translate(-50%, -8px);
  box-sizing: border-box;
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: rgba(14, 15, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 70px -24px rgba(8, 8, 9, 0.6);
  color: #F5F5F2;
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gl-card.is-on { opacity: 1; transform: translate(-50%, 0); }
.gl-card__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.gl-card__kind,
.gl-card__state {
  font-family: var(--nc-font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1.4;
}
.gl-card__kind { color: #E65C66; }
.gl-card__state {
  color: rgba(245, 245, 242, 0.72);
  padding-inline-start: 10px; position: relative;
}
.gl-card__state::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
  background: rgba(245, 245, 242, 0.45);
}
.gl-card__title {
  margin: 0 0 8px; font-family: var(--nc-font-display); font-weight: 600;
  font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; color: #fff;
}
.gl-card__text { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.6; color: rgba(245, 245, 242, 0.78); }
.gl-card__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.875rem; font-weight: 500; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.gl-card__go:hover { border-bottom-color: #E65C66; }
.gl-card__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gl-card__x {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: #F5F5F2;
}
.gl-card__x:hover { background: rgba(255, 255, 255, 0.16); }
.gl-card__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* the globe dims while a card is open so the card is the thing you read */
.gl.has-card .gl-stage { filter: saturate(0.6) brightness(0.9); transition: filter 220ms ease; }

/* ---------------------------------------------------------------------------
   Product peek (2026-11-11) — replaces the card that opened under the globe.
   Hovering or focusing a project node slides its product screen out BESIDE the node (toward the globe),
   with a short description; a click pins it (partials/globe.blade.php). Nodes near the top or bottom of
   the stage hang their card downward / upward so it stays inside the hero.
   --------------------------------------------------------------------------- */
.gl-peek {
  position: absolute; z-index: 6; width: clamp(260px, 24vw, 360px);
  display: grid; overflow: hidden; border-radius: 14px;
  background: #0E0F12; color: #F5F5F2; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(10, 10, 11, 0.7), 0 0 0 1px rgba(10, 10, 11, 0.06);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 240ms var(--nc-ease-out), transform 420ms var(--nc-ease-cinema), clip-path 460ms var(--nc-ease-cinema), visibility 0s linear 460ms;
}
/* left-hand nodes open to their right, right-hand nodes to their left: the card grows out of the node */
.gl-node[data-side="l"] .gl-peek { left: calc(100% + 14px); transform: translateX(-18px); clip-path: inset(0 100% 0 0 round 14px); }
.gl-node[data-side="r"] .gl-peek { right: calc(100% + 14px); transform: translateX(18px); clip-path: inset(0 0 0 100% round 14px); }
.gl-peek[data-v="t"] { top: 0; }
.gl-peek[data-v="m"] { top: 50%; translate: 0 -50%; }
.gl-peek[data-v="b"] { bottom: 0; }
.gl-node:hover, .gl-node:focus-within, .gl-node.is-peek { z-index: 7; }
.gl-node:hover .gl-peek,
.gl-node:focus-within .gl-peek,
.gl-node.is-peek .gl-peek {
  opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0 round 14px);
  transition: opacity 200ms var(--nc-ease-out), transform 420ms var(--nc-ease-cinema), clip-path 460ms var(--nc-ease-cinema), visibility 0s;
}
.gl-node.is-peek .gl-peek { pointer-events: auto; }
.gl-peek__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1A1B20; }
.gl-peek__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gl-peek__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.gl-peek__meta { display: flex; align-items: center; gap: 10px; font-family: var(--nc-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="ar"] .gl-peek__meta { font-family: var(--nc-font-text); letter-spacing: 0; text-transform: none; font-size: 0.75rem; }
.gl-peek__kind { color: #E65C66; }
.gl-peek__state { display: inline-flex; align-items: center; gap: 6px; color: rgba(245, 245, 242, 0.7); }
.gl-peek__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3FB950; }
.gl-peek__title { font-family: var(--nc-font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.gl-peek__text { font-size: 0.8125rem; line-height: 1.55; color: rgba(245, 245, 242, 0.74); }
.gl-peek:not([data-v="m"]) .gl-peek__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* phones: the nodes are a list; a tap opens the card full width under its row */
@media (max-width: 760px) {
  .gl-node[data-side] .gl-peek {
    position: relative; inset: auto; width: 100%; margin: 8px 0 0; transform: none;
    display: none; clip-path: none; opacity: 1; visibility: visible; transition: none;
  }
  .gl-node:hover .gl-peek, .gl-node:focus-within .gl-peek { display: none; }
  .gl-node.is-peek .gl-peek { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-peek, .gl-node .gl-peek { transition: opacity 120ms linear, visibility 0s; transform: none !important; clip-path: none !important; }
}


/* owner 2026-11-15: light site — no black panels in the globe scene */
.gl-code{background:rgba(255,255,255,.94)!important;border-color:var(--nc-border,#E4E2DC)!important;color:var(--nc-text,#0A0A0B)!important;box-shadow:0 18px 40px -26px rgba(10,10,11,.25)!important}
.gl-code__bar{border-bottom-color:var(--nc-border,#E4E2DC)!important}
.gl-code__file,.gl-chip--inline{color:var(--nc-text-muted,#6B6B70)!important}
.gl-chip--inline{border-color:var(--nc-border,#E4E2DC)!important;background:#F5F4F0!important}
.gl-chip--inline.is-on{color:var(--nc-red-500,#A10D18)!important}
.gl-code__lines li::before{color:rgba(10,10,11,.28)!important}
.gl-code .t-s{color:#0A0A0B!important}
.gl-code .t-f{color:#3A3A3F!important;text-decoration-color:rgba(10,10,11,.2)!important}
.gl-code .t-k{color:#A10D18!important}
.gl-panel__bar{background:#F1F0EC!important;color:var(--nc-text-muted,#6B6B70)!important;border-bottom:1px solid var(--nc-border,#E4E2DC)}
.gl-panel__lights i{background:rgba(10,10,11,.16)}
.gl-panel__dot{background:rgba(10,10,11,.3)}
.gl-card{background:#fff!important;border-color:var(--nc-border,#E4E2DC)!important;color:var(--nc-text,#0A0A0B)!important;box-shadow:0 30px 60px -30px rgba(10,10,11,.3)!important}
.gl-card__kind{color:#A10D18!important}
.gl-card__state{color:var(--nc-text-muted,#6B6B70)!important}
.gl-card__title{color:var(--nc-text,#0A0A0B)!important}
.gl-card__text{color:var(--nc-text-body,#3A3A3F)!important}
.gl-card__go{color:var(--nc-text,#0A0A0B)!important}
.gl-card__x{color:var(--nc-text,#0A0A0B)!important;border-color:var(--nc-border,#E4E2DC)!important;background:#F5F4F0!important}
