/* Saiki Tech: Constellation (Tron) motion + neon styles.
   Add as assets/css/motion.css (replaces the Swiss file of the same name).
   RULES
   1. Every "hidden before animation" state lives under html.anim (added only on 768px+ screens
      with no prefers-reduced-motion). No-JS, phones and reduced-motion users see the full page.
   2. Blinking is gentle: glow level moves between ~0.6 and 1, never to black, never more than
      2 changes per second, and elements are never synchronised (WCAG 2.3.1).
   3. All ambient loops are CSS (cheap). JS only adds scroll- and pointer-driven effects. */

:root {
  --neon: #5CD6FF;           /* primary neon cyan */
  --neon-hi: #E8FBFF;        /* near-white core of a neon tube */
  --neon-soft: #9CCFE0;      /* muted body text on dark */
  --bg: #0A1626;
  --glow: 1;                 /* 0..1, animated per element by GSAP and by .is-blink */
}

/* ---------- Lenis (required by the library) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Page canvas: star dots (two parallax layers) ---------- */
body { background: var(--bg); }
.stars { position: fixed; left: 0; right: 0; top: -400px; bottom: -400px; z-index: -1; pointer-events: none; }
.stars-a { background-image: radial-gradient(circle, rgba(92,214,255,.38) 1px, transparent 1.4px); background-size: 90px 90px; }
.stars-b { background-image: radial-gradient(circle, rgba(82,159,239,.22) 1px, transparent 1.4px); background-size: 53px 53px; background-position: 27px 31px; }

/* ---------- Neon panel: transparent, glowing edge, optional corner brackets ---------- */
.neon-panel {
  position: relative; background: rgba(10,22,38,.5);
  border: 1px solid var(--neon); border-radius: 3px;
  box-shadow: 0 0 calc(18px * var(--glow)) rgba(92,214,255,calc(.4 * var(--glow))),
              inset 0 0 24px rgba(92,214,255,calc(.08 * var(--glow)));
  transition: box-shadow .25s ease, border-color .25s ease;
}
.neon-panel.is-clear { background: transparent; }
.brackets::before, .brackets::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; filter: drop-shadow(0 0 5px var(--neon)); }
.brackets::before { left: -1px; top: -1px; border-left: 3px solid var(--neon-hi); border-top: 3px solid var(--neon-hi); }
.brackets::after { right: -1px; bottom: -1px; border-right: 3px solid var(--neon-hi); border-bottom: 3px solid var(--neon-hi); }

/* ---------- Neon button / chip / label ---------- */
.neon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 14px 28px; color: var(--neon-hi); text-decoration: none;
  background: rgba(92,214,255,.10); border: 2px solid var(--neon); border-radius: 4px;
  font: 700 15px/1 'Space Grotesk', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(92,214,255,.9);
  box-shadow: 0 0 16px rgba(92,214,255,.55), inset 0 0 18px rgba(92,214,255,.25);
  overflow: hidden; transition: box-shadow .2s ease, background-color .2s ease, transform .12s ease;
}
.neon-btn:hover { background: rgba(92,214,255,.22); box-shadow: 0 0 30px rgba(92,214,255,.9), inset 0 0 26px rgba(92,214,255,.4); }
.neon-btn:active { transform: scale(.97); }
.neon-btn::after { /* light sweep on hover */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(232,251,255,.55), transparent); transform: skewX(-20deg);
}
.neon-btn:hover::after { animation: sweep .7s ease; }
.neon-btn.is-small { min-height: 44px; padding: 10px 18px; font-size: 13px; }

.chip {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--neon); border-radius: 2px;
  font: 500 12px 'JetBrains Mono', monospace; letter-spacing: .2em; color: var(--neon-hi);
  background: rgba(92,214,255,.07);
  box-shadow: 0 0 12px rgba(92,214,255,.35), inset 0 0 10px rgba(92,214,255,.12);
  transition: box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.chip:hover { background: rgba(92,214,255,.18); box-shadow: 0 0 22px rgba(92,214,255,.8), inset 0 0 14px rgba(92,214,255,.3); transform: translateY(-2px); }

.label-neon { font: 500 12px 'JetBrains Mono', monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--neon); text-shadow: 0 0 8px rgba(92,214,255,.8); }
.glow-text { text-shadow: 0 0 22px rgba(92,214,255,.45); }
.caret::after { content: '_'; margin-left: 2px; animation: caret 1s steps(1) infinite; }

/* ---------- Hover: neon panels come alive ---------- */
[data-neon]:hover, [data-neon]:focus-within { --glow: 1.5; border-color: var(--neon-hi); }
[data-neon]::selection { background: var(--neon); color: #04121e; }
/* the scan line lives in .scan-wrap so the corner brackets are never clipped */
.scan-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
[data-neon] .scan { /* a bright line that sweeps down the panel on hover */
  position: absolute; left: 0; right: 0; top: -2px; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--neon-hi), transparent); box-shadow: 0 0 14px var(--neon);
}
[data-neon]:hover .scan { animation: scan-down .9s ease-out; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(232,251,255,.22), transparent 45%); }
[data-tilt]:hover .glare { opacity: 1; }

/* ---------- Ambient life (all CSS, all gentle) ---------- */
.dot-pulse { animation: pulse 2.4s ease-in-out infinite; }
[data-blink].is-blink { animation: blink .7s ease-in-out; }
.flow { animation: dash-flow 1.6s linear infinite; }             /* marching dashes along connector lines */
.trail { position: absolute; height: 2px; background: linear-gradient(90deg, rgba(92,214,255,0), var(--neon));
  box-shadow: 0 0 12px var(--neon), 0 0 26px rgba(92,214,255,.7); }
.trail.rtl { background: linear-gradient(270deg, rgba(92,214,255,0), var(--neon)); }
.trail-head { position: absolute; width: 10px; height: 10px; background: var(--neon-hi); box-shadow: 0 0 14px 4px var(--neon); animation: pulse 1.8s ease-in-out infinite; }
.grid-floor { position: absolute; left: -10%; right: -10%; bottom: -20px; height: 210px;
  background-image: linear-gradient(rgba(92,214,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(92,214,255,.7) 1px, transparent 1px);
  background-size: 56px 42px; transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor-scroll 3.2s linear infinite; }

/* ---------- Cursor spotlight, click ping ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 280px; height: 280px; margin: -140px 0 0 -140px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(92,214,255,.07), rgba(92,214,255,0) 65%); mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.cursor-glow.is-on { opacity: 1; }
.ping { position: fixed; z-index: 70; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--neon-hi); border-radius: 50%;
  box-shadow: 0 0 14px var(--neon); pointer-events: none; }

/* ---------- Header / progress / back-to-top ---------- */
#site-header { transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, background-color .3s ease; }
#site-header.is-hidden { transform: translateY(-100%); }
#site-header.is-stuck { background: rgba(10,22,38,.78); box-shadow: 0 1px 0 rgba(92,214,255,.5), 0 0 22px rgba(92,214,255,.25); backdrop-filter: blur(8px); }
#scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: var(--neon); box-shadow: 0 0 12px var(--neon), 0 0 22px rgba(92,214,255,.7); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Split words (mask) ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sw-i { display: inline-block; will-change: transform; }
.sw-plain { display: inline-block; }

/* ---------- Initial states (animation only) ---------- */
html.anim [data-split], html.anim [data-hero-title], html.anim [data-statement-text] { visibility: hidden; }
html.anim [data-fade], html.anim [data-chip], html.anim [data-card] { opacity: 0; transform: translateY(24px); }
html.anim [data-node], html.anim [data-phase] { opacity: 0; --glow: 0; }
html.anim [data-beam] { transform: scaleY(0); transform-origin: top; }
html.anim [data-hero-globe] { will-change: transform, opacity; }

/* Phones (html.anim-m, set in motion-head.php): light fade + rise; the hero is never hidden */
html.anim-m [data-split], html.anim-m [data-fade], html.anim-m [data-chip], html.anim-m [data-card],
html.anim-m [data-showcase], html.anim-m [data-statement-text], html.anim-m [data-m] { opacity: 0; }

/* ---------- Keyframes ---------- */
@keyframes caret { 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes blink { 0%,100% { --glow: 1; } 20% { --glow: .6; } 40% { --glow: 1.6; } 60% { --glow: .8; } 80% { --glow: 1.3; } }
@keyframes sweep { to { left: 130%; } }
@keyframes scan-down { 0% { top: -2px; opacity: 0; } 15% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
@keyframes floor-scroll { to { background-position: 0 42px; } }
@property --glow { syntax: '<number>'; inherits: true; initial-value: 1; }

/* ---------- Focus (visible on dark, never removed) ---------- */
:focus-visible { outline: 3px solid var(--neon-hi); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(92,214,255,.35); }

/* ---------- Reduced motion safety net: keep the neon look, stop all movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .cursor-glow, .ping { display: none; }
}

/* Sliding hover highlight behind the nav links (positioned by motion.js) */
.nav-pill { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; border-radius: 3px;
  background: rgba(92,214,255,.16); box-shadow: inset 0 0 12px rgba(92,214,255,.35); }
[data-nav-pill] > a { position: relative; z-index: 1; }

/* Circuit trace down the page edge (built by motion.js, SCROLL mode only) */
.trace { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 0 5px rgba(92,214,255,.75)); }
.trace rect { filter: drop-shadow(0 0 6px #5CD6FF); }

/* Header on phones, tablets and reduced-motion (no scroll script): always a solid glass bar so content never shows through */
html:not(.anim) #site-header, #site-header.menu-open { background: rgba(10,22,38,.94); box-shadow: 0 1px 0 rgba(92,214,255,.5); backdrop-filter: blur(8px); }
.mnav-link { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font: 500 13px 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neon-soft); text-decoration: none; border-bottom: 1px solid rgba(92,214,255,.18); }
.mnav-link:last-of-type { border-bottom: 0; }
.mnav-link:hover, .mnav-link:focus-visible { color: var(--neon-hi); background: rgba(92,214,255,.12); }

html:not(.anim) { scroll-padding-top: 84px; }

/* Card internals wait for their turn in the card sequence (motion.js revealCard) */
html.anim [data-card] .shot, html.anim [data-card] .p-6 > * { opacity: 0; }

/* Showcase carousel pieces wait for the choreographed reveal (motion.js [data-showcase]) */
html.anim [data-showcase] .label-neon, html.anim [data-showcase] h3, html.anim [data-showcase] [data-sc-prev], html.anim [data-showcase] [data-sc-next],
html.anim [data-showcase] .sc-card, html.anim [data-showcase] .sc-card .p-4 > * { opacity: 0; }

/* Header pieces wait for the load sequence (motion.js headerIn) */
html.anim #site-header > .wrap > * { opacity: 0; }

/* ======================================================================
   Services grid + FAQ accordion (index.php, services.php, inc/service-grid.php)
   Hidden-until-revealed states live under html.anim / html.anim-m like everything above.
   ====================================================================== */
html.anim [data-svc] { opacity: 0; }

/* Service card */
.svc { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.25rem 1.5rem; overflow: visible; }
.svc-bg { position: absolute; right: 14px; top: 6px; font: 500 54px/1 'JetBrains Mono', monospace; color: transparent; -webkit-text-stroke: 1px rgba(92,214,255,.22);
  pointer-events: none; user-select: none; transition: -webkit-text-stroke-color .3s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.svc:hover .svc-bg { -webkit-text-stroke-color: rgba(92,214,255,.6); transform: translateY(4px); }
.svc-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: .25rem 0 .5rem; color: var(--neon);
  border: 1px solid rgba(92,214,255,.55); border-radius: 3px; background: rgba(92,214,255,.07);
  box-shadow: inset 0 0 14px rgba(92,214,255,.18); transition: color .25s ease, box-shadow .25s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.svc-ico svg { width: 26px; height: 26px; filter: drop-shadow(0 0 4px rgba(92,214,255,.7)); }
.svc:hover .svc-ico, .svc:focus-within .svc-ico { color: var(--neon-hi); box-shadow: 0 0 18px rgba(92,214,255,.65), inset 0 0 16px rgba(92,214,255,.35); transform: translateY(-2px); }
/* bottom light bar grows from the left on hover */
.svc-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--neon-hi), var(--neon) 60%, transparent); box-shadow: 0 0 12px var(--neon); transition: transform .55s cubic-bezier(.16,1,.3,1); }
.svc:hover .svc-line { transform: scaleX(1); }
/* corner brackets grow on hover (transform only) */
.svc.brackets::before, .faq-item.brackets::before, li.neon-panel.brackets::before { transform-origin: 0 0; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.svc.brackets::after, .faq-item.brackets::after, li.neon-panel.brackets::after { transform-origin: 100% 100%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.svc:hover::before, .svc:hover::after, .faq-item:hover::before, .faq-item:hover::after, .faq-item[open]::before, .faq-item[open]::after,
li.neon-panel.brackets:hover::before, li.neon-panel.brackets:hover::after { transform: scale(1.7); }
/* icon strokes draw themselves when the card lands */
html.anim [data-svc] .svc-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.anim [data-svc].is-in .svc-ico path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1) .25s; }

/* Light pulse travelling along a rail above the grid */
.svc-rail { position: relative; height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, rgba(92,214,255,.55) 15%, rgba(92,214,255,.55) 85%, transparent); }
.svc-rail span { position: absolute; inset: -1px 0; background: linear-gradient(90deg, transparent 42%, var(--neon-hi) 50%, transparent 58%); box-shadow: 0 0 10px var(--neon); animation: rail-run 5s ease-in-out infinite; }
@keyframes rail-run { from { transform: translateX(-60%); } to { transform: translateX(60%); } }

/* FAQ accordion on native <details name="faq"> (one open at a time, answers always in the DOM) */
.faq-item { padding: 0; --glow: .8; transition: box-shadow .3s ease, border-color .3s ease; }
.faq-item:hover { --glow: 1.2; }
.faq-item[open] { --glow: 1.5; border-color: var(--neon-hi); }
.faq-sum { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none; overflow: hidden; }
.faq-sum::-webkit-details-marker { display: none; }
.faq-sum::after { /* light sweep across the row on hover */
  content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(92,214,255,.16), transparent); transform: skewX(-20deg); }
.faq-sum:hover::after { animation: sweep .9s ease; }
.faq-num { flex: none; min-width: 3.2em; opacity: .75; }
.faq-q { flex: 1; margin: 0; }
.faq-item[open] .faq-q { text-shadow: 0 0 16px rgba(92,214,255,.5); }
.faq-ico { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--neon); border-radius: 2px; color: var(--neon-hi);
  box-shadow: 0 0 10px rgba(92,214,255,.4), inset 0 0 8px rgba(92,214,255,.15); transition: transform .45s cubic-bezier(.16,1,.3,1), background-color .25s ease; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; box-shadow: 0 0 6px var(--neon); }
.faq-ico::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.faq-ico::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.faq-item[open] .faq-ico { transform: rotate(135deg); background: rgba(92,214,255,.2); }
.faq-a { padding: 0 20px 20px calc(20px + 3.2em + 1rem); }
.faq-a p { margin: 0; max-width: 68ch; }
/* smooth open/close where ::details-content is supported (Chromium 131+); elsewhere it simply snaps */
@supports selector(::details-content) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .4s cubic-bezier(.16,1,.3,1), opacity .3s ease, content-visibility .4s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 560px) {
  .faq-num { display: none; }
  .faq-a { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none !important; }
  .svc-line, .faq-ico { transition: none !important; }
  .svc-rail span { opacity: 0; }
}

/* ======================================================================
   About page (about.php): hero orbit, step rail, stat numbers, terminal contact card, map pin
   ====================================================================== */
/* Hero orbit: three counter-rotating rings, each carrying a light dot (transform animation only) */
.about-orbit { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
@media (min-width: 1024px) { .about-orbit { width: min(100%, 440px); } }
.about-orbit::before { content: ''; position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(92,214,255,.2), rgba(92,214,255,0) 62%); }
.ao-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(92,214,255,.55); animation: ao-spin 36s linear infinite;
  box-shadow: 0 0 14px rgba(92,214,255,.25), inset 0 0 14px rgba(92,214,255,.1); }
.ao-r1 { inset: 0; }
.ao-r2 { inset: 15%; border-style: dashed; border-color: rgba(92,214,255,.45); animation-duration: 26s; animation-direction: reverse; }
.ao-r3 { inset: 30%; animation-duration: 18s; }
.ao-dot { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--neon-hi); box-shadow: 0 0 12px 3px var(--neon); }
.ao-r2 .ao-dot { top: auto; bottom: 0; margin: 0 0 -5px -5px; width: 8px; height: 8px; }
.ao-core { position: relative; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; text-align: center;
  font: 600 clamp(11px, 1.4vw, 15px)/1.2 'Space Grotesk', sans-serif; letter-spacing: .12em; color: var(--neon-hi); text-shadow: 0 0 10px var(--neon);
  border: 2px solid var(--neon); background: rgba(92,214,255,.07); box-shadow: 0 0 22px rgba(92,214,255,.65), inset 0 0 22px rgba(92,214,255,.3); }
.ao-tag { position: absolute; z-index: 1; padding: 6px 10px; font: 500 10px 'JetBrains Mono', monospace; letter-spacing: .2em; color: var(--neon-hi);
  background: rgba(10,22,38,.85); border: 1px solid var(--neon); border-radius: 2px; box-shadow: 0 0 10px rgba(92,214,255,.4); animation: ao-float 6s ease-in-out infinite; }
@keyframes ao-spin { to { transform: rotate(360deg); } }
@keyframes ao-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Process rail + step nodes (desktop grid only; nodes draw in when the step group lands) */
.about-rail { display: none; }
.step-node { display: none; }
@media (min-width: 1024px) {
  .about-rail { display: block; position: relative; height: 1px; margin: 0 calc(12.5% - .47rem) 30px; overflow: hidden; background: rgba(92,214,255,.6); box-shadow: 0 0 8px rgba(92,214,255,.5); }
  .about-rail span { position: absolute; inset: -1px 0; background: linear-gradient(90deg, transparent 42%, var(--neon-hi) 50%, transparent 58%); animation: rail-run 5s ease-in-out infinite; }
  .step-node { display: block; position: absolute; left: 50%; top: -31px; width: 1px; height: 30px; background: linear-gradient(rgba(92,214,255,.2), var(--neon)); transform-origin: top; pointer-events: none; }
  .step-node::after { content: ''; position: absolute; left: -4px; top: -5px; width: 9px; height: 9px; background: var(--neon-hi); border-radius: 50%; box-shadow: 0 0 10px 2px var(--neon); }
  html.anim .about-rail { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.65,0,.35,1); }
  html.anim .about-rail.is-in { transform: scaleX(1); }
  html.anim .step-node { transform: scaleY(0); }
  html.anim .step.is-in .step-node { transform: scaleY(1); transition: transform .6s cubic-bezier(.16,1,.3,1) .3s; }
}
.step .svc-bg { font-size: 64px; }

/* Stat tiles */
.stat-num { display: block; font: 700 clamp(2.5rem, 5vw, 3rem)/1.1 'Space Grotesk', sans-serif; color: var(--neon-hi); text-shadow: 0 0 18px rgba(92,214,255,.5); }

/* Terminal contact card */
.term { overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid rgba(92,214,255,.35); background: rgba(92,214,255,.06); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--neon); box-shadow: 0 0 6px rgba(92,214,255,.6); }
.term-bar span { margin-left: 10px; font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .2em; color: var(--neon-soft); }
.term-body { display: block; padding: 28px clamp(20px, 4vw, 40px) 32px; }
.term-row { display: flex; flex-direction: column; gap: 6px; }
.term-row dd { margin: 0; overflow-wrap: anywhere; }
.term-link { display: inline-block; padding-block: 8px; font: 500 clamp(1.05rem, 2.2vw, 1.35rem)/1.3 'JetBrains Mono', monospace; color: var(--neon-hi); text-decoration: none;
  border-bottom: 1px solid rgba(92,214,255,.5); text-shadow: 0 0 10px rgba(92,214,255,.5); transition: color .2s ease, border-color .2s ease, text-shadow .2s ease; }
.term-link:hover { border-color: var(--neon-hi); text-shadow: 0 0 16px var(--neon); }

/* Map pin card: radar rings pulse out from the pin (no map, no third-party scripts) */
.pin-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 280px; padding: 28px 20px; overflow: hidden; }
.pin-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(92,214,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(92,214,255,.14) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 72%); mask-image: radial-gradient(circle, #000 20%, transparent 72%); }
.pin { position: relative; display: grid; place-items: center; width: 110px; height: 110px; margin-bottom: 10px; color: var(--neon); }
.pin svg { position: relative; width: 64px; height: 64px; filter: drop-shadow(0 0 8px var(--neon)); animation: ao-float 4s ease-in-out infinite; }
.pin-ring { position: absolute; left: 50%; bottom: 8px; width: 90px; height: 90px; margin-left: -45px; border: 1px solid var(--neon); border-radius: 50%;
  opacity: 0; animation: pin-ping 2.4s ease-out infinite; }
@keyframes pin-ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ======================================================================
   Services page (services.php): platform stack hero, grouped cards, marquee, vertical process rail
   ====================================================================== */
/* Hero stack: layered blueprint of what gets built, each layer bobbing gently, a scan line sweeping down */
.stack { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 460px); margin-inline: auto; padding: 22px 18px;
  border: 1px solid rgba(92,214,255,.4); border-radius: 3px; overflow: hidden;
  background-image: linear-gradient(rgba(92,214,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(92,214,255,.09) 1px, transparent 1px);
  background-size: 28px 28px; box-shadow: 0 0 26px rgba(92,214,255,.2), inset 0 0 30px rgba(92,214,255,.08); }
.stack-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--neon-hi), transparent);
  box-shadow: 0 0 14px var(--neon); animation: stack-scan 6s ease-in-out infinite; }
.sk-row { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 10px; width: 100%; animation: ao-float 6s ease-in-out infinite; }
.sk-cell { display: grid; place-items: center; min-height: 54px; padding: 8px 6px; text-align: center; font: 500 11px/1.3 'JetBrains Mono', monospace; letter-spacing: .16em; color: var(--neon-hi);
  background: rgba(10,22,38,.85); border: 1px solid var(--neon); border-radius: 2px; box-shadow: 0 0 12px rgba(92,214,255,.4), inset 0 0 12px rgba(92,214,255,.14); }
.sk-wide { min-height: 60px; background: rgba(92,214,255,.1); }
.sk-base { min-height: 64px; font-size: 12px; letter-spacing: .3em; border-width: 2px; background: rgba(92,214,255,.16); text-shadow: 0 0 10px var(--neon); }
.sk-link { position: relative; flex: none; width: 1px; height: 26px; background: rgba(92,214,255,.6); overflow: visible; }
.sk-link::after { content: ''; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--neon-hi); box-shadow: 0 0 10px 2px var(--neon); animation: sk-up 2.4s ease-in infinite; }
@keyframes stack-scan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
@keyframes sk-up { 0% { transform: translateY(26px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }

/* Group heads and featured cards */
.grp-head { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.grp-no { flex: none; font: 500 clamp(52px, 9vw, 88px)/1 'JetBrains Mono', monospace; color: transparent; -webkit-text-stroke: 1px rgba(92,214,255,.5); text-shadow: 0 0 24px rgba(92,214,255,.25); user-select: none; }
.svc-feat { padding: 1.75rem 1.5rem 1.75rem; }
.svc-feat .svc-bg { font-size: 84px; right: 18px; top: 8px; }
.svc-feat .svc-ico { width: 64px; height: 64px; }
.svc-feat .svc-ico svg { width: 32px; height: 32px; }
@media (min-width: 640px) { .svc-feat { padding: 2.25rem 2rem; } }
/* faint blueprint grid fading in from the lower right of featured cards (own element, so it never clips the brackets) */
.svc-blueprint { position: absolute; inset: 0; pointer-events: none; opacity: .55; transition: opacity .4s ease;
  background-image: linear-gradient(rgba(92,214,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(92,214,255,.16) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000, transparent 62%); mask-image: radial-gradient(ellipse at 100% 100%, #000, transparent 62%); }
.svc-feat:hover .svc-blueprint { opacity: 1; }
.svc > .svc-ico, .svc > h3, .svc > p, .svc > .svc-no { position: relative; }

/* Platforms marquee (CSS only; the second list is a decorative duplicate) */
.mq { overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq-run 34s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.mq-set .chip { white-space: nowrap; }
@keyframes mq-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: auto; }
  .mq-set { flex-wrap: wrap; }
  .mq-set[aria-hidden="true"] { display: none; }
}

/* Vertical process rail: line draws down, nodes pop as each step lands */
.vflow { position: relative; }
.vrail { position: absolute; left: 15px; top: 24px; bottom: 24px; width: 1px; overflow: hidden; background: rgba(92,214,255,.6); box-shadow: 0 0 8px rgba(92,214,255,.5); }
.vrail span { position: absolute; left: -1px; right: -1px; top: 0; height: 22%; background: linear-gradient(transparent, var(--neon-hi), transparent); animation: vrail-run 4.5s ease-in-out infinite; }
@keyframes vrail-run { from { transform: translateY(-100%); } to { transform: translateY(450%); } }
.vflow ol { margin-left: 44px; }
.vstep { padding-left: 1.5rem; }
.vnode { position: absolute; left: -33px; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--neon-hi); box-shadow: 0 0 10px 2px var(--neon); pointer-events: none; }
.vnode::after { content: ''; position: absolute; left: 9px; top: 4px; width: 25px; height: 1px; background: var(--neon); }
html.anim .vrail { transform: scaleY(0); transform-origin: top; transition: transform 1.6s cubic-bezier(.65,0,.35,1); }
html.anim .vrail.is-in { transform: scaleY(1); }
html.anim .vnode { transform: scale(0); }
html.anim .vstep.is-in .vnode { transform: scale(1); transition: transform .5s cubic-bezier(.16,1,.3,1) .3s; }
@media (max-width: 479px) { .vflow ol { margin-left: 30px; } .vrail { left: 8px; } .vnode { left: -26px; } .vnode::after { width: 18px; } }
