/* =====================================================================================================================
   neon-theme.css: a TEMPORARY, just-for-fun redesign of the homepage (sandbox/neon-home.html only).
   The real site never loads this file.

   What it changes:
     - The neon grid animation (neon-bg.js) fills the screen behind the hero.
     - Every logo turns pure white, with a soft pink glow.
     - The header, menu bar, dropdowns and phone menu become dark frosted glass with white text.
     - The hero panel becomes clear glass, so the grid shows through.
   Everything below the hero keeps its normal look and simply scrolls up over the grid.

   Every rule starts with html.neon and uses !important where the site's own styles do, so it always wins.
   To undo: delete this file and neon-home.html. Nothing else depends on them.
   ===================================================================================================================== */

html.neon { --neon-glass: rgba(255, 255, 255, .12); --neon-blur: blur(14px) saturate(170%); --neon-line: rgba(255, 255, 255, .22); --neon-pink: rgba(255, 70, 190, .55); }
html.neon body { background: #000; }

/* The animation canvas: fixed behind everything. The page content sits above it. */
#neon-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
html.neon main, html.neon footer { position: relative; z-index: 1; }

/* ---------- White logos ----------
   The pictures are swapped for all-white versions (made from the real logos): a white rounded square with the
   天 character cut out, so the neon shows through it. */
html.neon .brand-logo,
html.neon .footer-logo { content: url("horizontal-white.png"); }
html.neon .hero-logo { content: url("logo-white.png"); }
html.neon .brand-logo,
html.neon .hero-logo,
html.neon .footer-logo { filter: drop-shadow(0 0 12px var(--neon-pink)) !important; }

/* ---------- The header: no background at all, just the logo, the glass menu bar and the language button ---------- */
html.neon .ticker { display: none !important; }
html.neon .site-header:not(#_):not(#__) {
  --nav-ink: #ffffff;
  --nav-ink-strong: #ffffff;
  --nav-line: var(--neon-line);
  --nav-accent: #ff4fbf;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.neon .site-header:not(#_):not(#__)::before { display: none !important; }
html.neon .site-header .site-nav a { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* The menu bar */
/* No bar behind the menu: the words float on the grid. */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul {
  background: transparent !important;
  border-color: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: none !important;
}
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul::before { display: none !important; }
/* The glass block only appears while the mouse is over the menu (it normally rests on the current page too). */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul:not(:hover):not(:focus-within) .nav-glow { opacity: 0 !important; }
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li > .sub-toggle { color: rgba(255, 255, 255, .7) !important; }
/* The block that glides to the hovered item */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .nav-glow {
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)) !important;
  border-color: rgba(255, 255, 255, .35) !important;
  box-shadow: 0 0 18px -4px var(--neon-pink), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}
html.neon .site-header:not(.nav-ready):not(#_):not(#__) .site-nav > ul > li > a[aria-current="page"] {
  background: transparent !important; box-shadow: none !important;
}
html.neon .site-header:not(.nav-ready):not(#_):not(#__) .site-nav > ul > li > a:hover {
  background: rgba(255, 255, 255, .14) !important; box-shadow: inset 0 0 0 1px var(--neon-line) !important;
}
/* The current page is marked by a thin pink line under it instead. */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li > a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #ff4fbf !important;
}

/* Dropdown panels and their little pointer */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub {
  background: rgba(18, 10, 42, .72) !important;
  border-color: var(--neon-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 24px 48px -16px rgba(0, 0, 0, .7) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important; backdrop-filter: blur(18px) saturate(170%) !important;
}
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .has-sub::after {
  background: rgba(18, 10, 42, .9) !important; border-color: var(--neon-line) !important;
}
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub a:hover,
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub a:focus-visible,
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub a[aria-current="page"] {
  background: rgba(255, 255, 255, .1) !important; box-shadow: inset 0 0 0 1px var(--neon-line) !important; color: #fff !important;
}

/* Phones: the Menu pill and the fold-out panel */
html.neon .site-header:not(#_):not(#__) .nav-toggle {
  background: var(--neon-glass) !important; border-color: var(--neon-line) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}
html.neon .site-header:not(#_):not(#__) .nav-toggle-icon::before,
html.neon .site-header:not(#_):not(#__) .nav-toggle-icon::after,
html.neon .site-header:not(#_):not(#__) .nav-toggle-icon > span { background: #fff !important; }
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav {
  background: rgba(18, 10, 42, .82) !important; border-color: var(--neon-line) !important;
}
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav li,
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav li.has-sub > .sub-toggle { border-color: rgba(255, 255, 255, .12) !important; }
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav ul.sub a { color: rgba(255, 255, 255, .75) !important; }
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav li.has-sub > .sub-toggle { color: rgba(255, 255, 255, .7) !important; }
html.neon .site-header.nav-mobile:not(#_):not(#__) .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1) !important; }

/* The language button: the same white glass as the menu bar, white text and arrow */
html.neon .lang-current {
  background: var(--neon-glass) !important; border: 1px solid rgba(255, 255, 255, .32) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -12px rgba(0, 0, 0, .6) !important;
  -webkit-backdrop-filter: var(--neon-blur) !important; backdrop-filter: var(--neon-blur) !important;
}
html.neon .lang-current .lang-code { color: #fff !important; }
html.neon .lang-current .lang-caret,
html.neon .lang-current .lang-caret path { stroke: #fff !important; }
/* Its drop-down list of languages: dark glass, white text */
html.neon .lang-menu {
  background: rgba(18, 10, 42, .78) !important; border: 1px solid var(--neon-line) !important;
  -webkit-backdrop-filter: var(--neon-blur) !important; backdrop-filter: var(--neon-blur) !important;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7) !important;
}
html.neon .lang-menu button { color: #fff !important; background: transparent !important; }
html.neon .lang-menu button:hover,
html.neon .lang-menu button[aria-pressed="true"] { background: rgba(255, 255, 255, .12) !important; }
html.neon .lang-menu .lang-check path { stroke: #fff !important; }

/* ---------- The hero: the grid shows through clear glass ---------- */
html.neon .hero { background: transparent !important; min-height: calc(100vh - 80px); }
html.neon .hero-slides,
html.neon .hero-wash,
html.neon .hero-stripes { display: none !important; }
/* No panel behind the hero text either: it floats straight over the grid. (A blur here also drained the colour.) */
html.neon .hero-card {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
/* White text. The site sets -webkit-text-fill-color, which beats color, so both are set. */
html.neon .hero-card h1,
html.neon .hero-card .hero-lead,
html.neon .hero-card h1 * {
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
html.neon .hero-card h1 { text-shadow: 0 0 28px rgba(255, 80, 200, .55), 0 2px 12px rgba(0, 0, 0, .5); }
html.neon .hero-card .hero-lead { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }

/* =====================================================================================================================
   MUSIC VIDEO EFFECTS (neon-fx.js)
   ===================================================================================================================== */

/* The particle overlay: above the page content, below the header, and never catches clicks. */
#neon-particles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }

/* Kinetic headline: each word is its own box so it can scale and shake on its own. */
html.neon .hero-card h1.kx .kx-word {
  display: inline-block;
  color: var(--kx-color, #fff) !important; -webkit-text-fill-color: var(--kx-color, #fff) !important;
  /* RGB split: a cyan copy to the left and a pink copy to the right, like a TV out of alignment */
  text-shadow: -3px 0 rgba(176, 77, 255, .75), 3px 0 rgba(255, 43, 214, .75), 0 0 30px var(--kx-color, #fff);
  transition: color .12s, -webkit-text-fill-color .12s;
  will-change: transform;
}
html.neon .hero-card h1.kx .kx-word.kx-hidden { opacity: 0; }

/* A word lands: big, blurred and see-through, then slams down to its normal size. */
html.neon .hero-card h1.kx .kx-word.kx-punch { animation: kx-punch .42s cubic-bezier(.2, 1.5, .35, 1) both; }
/* ...with a flash: as it lands it flares bright white for a split second, then cools to its colour. */
@keyframes kx-punch {
  0%   { opacity: 0; transform: scale(2.2) skewX(-8deg); filter: blur(10px) brightness(1); }
  30%  { opacity: 1; filter: blur(0) brightness(2.6) drop-shadow(0 0 18px #fff); }
  55%  { transform: scale(.92) skewX(2deg); filter: brightness(1.3); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Resting: white, with a slow breathing glow and a gentle RGB split. */
html.neon .hero-card h1.kx .kx-word.kx-glow { animation: kx-breathe 2.6s ease-in-out infinite; }
@keyframes kx-breathe {
  0%, 100% { text-shadow: -2px 0 rgba(176, 77, 255, .6), 2px 0 rgba(255, 43, 214, .6), 0 0 18px rgba(255, 80, 200, .5); }
  50%      { text-shadow: -4px 0 rgba(176, 77, 255, .8), 4px 0 rgba(255, 43, 214, .8), 0 0 40px rgba(255, 80, 200, .8); }
}

/* A glitch: the word jumps, slices and splits for a moment. */
html.neon .hero-card h1.kx .kx-word.kx-glitch { animation: kx-glitch .45s steps(1) both; }
@keyframes kx-glitch {
  0%   { transform: translate(0); clip-path: none; }
  15%  { transform: translate(-6px, 2px) skewX(12deg); clip-path: inset(10% 0 55% 0); text-shadow: -8px 0 #b04dff, 8px 0 #ff2bd6; }
  30%  { transform: translate(5px, -3px); clip-path: inset(50% 0 12% 0); }
  45%  { transform: translate(-3px, 0) skewX(-10deg); clip-path: inset(25% 0 35% 0); text-shadow: 6px 0 #ff2bd6, -6px 0 #b04dff; }
  60%  { transform: translate(4px, 1px); clip-path: none; }
  100% { transform: none; clip-path: none; }
}

/* The message reel sits exactly on top of the headline, in the same big lettering. */
html.neon .hero-card { position: relative; }
html.neon .hero-card .kx-reel {
  position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; column-gap: .28em;
  font-family: inherit; font-size: clamp(1.75rem, 5.06vw, 2.6rem); font-weight: 800; line-height: 1.15; text-transform: uppercase;
  padding-inline: max(var(--gutter, 16px), calc((100% - 736px) / 2));
}
html.neon .hero-card h1.kx { transition: opacity .25s; }
html.neon .hero-card h1.kx.kx-away { opacity: 0; }
html.neon .hero-card .kx-reel .kx-word {
  display: inline-block; font-size: 1.35em;
  color: var(--kx-color, #fff); -webkit-text-fill-color: var(--kx-color, #fff);
  text-shadow: -3px 0 rgba(176, 77, 255, .75), 3px 0 rgba(255, 43, 214, .75), 0 0 30px var(--kx-color, #fff);
}
html.neon .hero-card .kx-reel .kx-word.kx-hidden { opacity: 0; }
html.neon .hero-card .kx-reel .kx-word.kx-punch { animation: kx-punch .42s cubic-bezier(.2, 1.5, .35, 1) both; }
html.neon .hero-card .kx-reel .kx-word.kx-glitch { animation: kx-glitch .45s steps(1) both; }

/* Fizzle: the word flickers like a neon tube losing power, drifts up a touch and burns out (embers come from neon-fx.js). */
html.neon .hero-card h1.kx .kx-word.kx-fizzle,
html.neon .hero-card .kx-reel .kx-word.kx-fizzle { animation: kx-fizzle .55s ease-out both; }
@keyframes kx-fizzle {
  0%   { opacity: 1;   filter: brightness(1.9); transform: none; }
  15%  { opacity: .5;  }
  30%  { opacity: .9;  transform: translateY(-1px); }
  50%  { opacity: .35; filter: brightness(1.2) blur(1px); }
  65%  { opacity: .6;  }
  100% { opacity: 0;   filter: brightness(.6) blur(4px); transform: translateY(-6px) scale(1.04); }
}

/* ---------- The hero button ("Deploy Your Future"): white with dark purple text ----------
   (Extra :not(#…) parts make this rule stronger than the site's own button styles.) */
html.neon { --neon-ink: #2e0b57; --neon-purple: #6d28d9; --neon-purple-dark: #4c1d95; }
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___) {
  background: #ffffff !important;
  color: var(--neon-ink) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 28px rgba(255, 43, 214, .45), 0 10px 30px -10px rgba(46, 11, 87, .8) !important;
}
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___) .hg-text { color: var(--neon-ink) !important; -webkit-text-fill-color: var(--neon-ink) !important; }
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___):hover {
  background: #f6efff !important;
  box-shadow: 0 0 0 1px #fff, 0 0 42px rgba(255, 43, 214, .7), 0 14px 34px -10px rgba(46, 11, 87, .9) !important;
}
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___) .hg-icon { background: var(--neon-ink) !important; box-shadow: 0 0 10px rgba(255, 43, 214, .5) !important; }
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___) .hg-svg,
html.neon .hero-cta-glass .hg-btn:not(#_):not(#__):not(#___) .hg-svg path { fill: #ffffff !important; }

/* ---------- "Ask Tanaka" chat: white and purple instead of white and red ---------- */
html.neon .tk-launch { color: var(--neon-ink); background: #fff; border: 1.5px solid var(--neon-purple); box-shadow: 0 0 22px rgba(176, 77, 255, .45); }
html.neon .tk-launch:hover { background: var(--neon-purple); color: #fff; border-color: var(--neon-purple); box-shadow: 0 0 30px rgba(176, 77, 255, .7); }
html.neon .tk-launch:focus-visible { outline-color: var(--neon-purple); }
html.neon .tk-orb { box-shadow: 0 0 0 2px var(--neon-purple); }

/* The "online" light: a pink-to-orange dot that pulses, with a ring rippling out from it. */
html.neon .tk-dot,
html.neon .tk-ava::after {
  background: radial-gradient(circle at 35% 35%, #ffd0a0, #ff2bd6 45%, #ff2bd6 100%) !important;
  border-color: #fff !important;
  animation: neon-online 1.6s ease-in-out infinite;
}
@keyframes neon-online {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 160, .75), 0 0 8px rgba(255, 43, 214, .9); transform: scale(1); }
  50%  { box-shadow: 0 0 0 7px rgba(255, 90, 160, 0), 0 0 14px rgba(255, 43, 214, 1); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 160, 0), 0 0 8px rgba(255, 43, 214, .9); transform: scale(1); }
}

/* Inside the chat panel: purple everywhere the red accent used to be. */
html.neon .tk-hbtn:focus-visible { outline-color: var(--neon-purple); }
html.neon .tk-intro-cap em { color: var(--neon-purple); }
html.neon .tk-row.me .tk-bub { background: var(--neon-purple); }
html.neon .tk-bub a, html.neon .tk-links a { color: var(--neon-purple); }
html.neon .tk-row.me .tk-bub a { color: #fff; }
html.neon .tk-links a:hover { border-color: var(--neon-purple); color: var(--neon-purple-dark); }
html.neon .tk-typing i { background: var(--neon-purple); }
html.neon .tk-chips button:hover, html.neon .tk-chips button.human:hover { border-color: var(--neon-purple); color: var(--neon-purple); }
html.neon .tk-chips button:focus-visible { outline-color: var(--neon-purple); }
html.neon .tk-input textarea:focus { border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(109, 40, 217, .18); }
html.neon .tk-send { background: var(--neon-purple); }
html.neon .tk-send:hover { background: var(--neon-purple-dark); }
html.neon .tk-send:focus-visible { outline-color: var(--neon-purple); }
html.neon .tk-foot button { color: var(--neon-purple); }
html.neon .tk-foot button:hover { color: var(--neon-purple-dark); }
html.neon .tk-form textarea:focus { border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(109, 40, 217, .18); }
html.neon .tk-form .tk-check input { accent-color: var(--neon-purple); }
html.neon .tk-err { color: var(--neon-purple-dark); }
html.neon .tk-form-actions button { background: var(--neon-purple); border-color: var(--neon-purple); }
html.neon .tk-form-actions button:hover { background: var(--neon-purple-dark); border-color: var(--neon-purple-dark); }
html.neon .tk-form-actions .tk-copy { background: #fff; color: var(--neon-purple); border-color: #e5e5ea; }
html.neon .tk-form-actions .tk-copy:hover { border-color: var(--neon-purple); color: var(--neon-purple-dark); }

/* People who asked for less motion: the online light stays still. */
@media (prefers-reduced-motion: reduce) {
  html.neon .tk-dot, html.neon .tk-ava::after { animation: none; }
}

/* ---------- Tanaka as a purple robot: every picture of him is swapped for tanaka-robot.svg ---------- */
html.neon img[src*="tanaka.svg"] { content: url("tanaka-robot.svg"); }
html.neon .tk-orb, html.neon .tk-ava, html.neon .tk-badge-lg { background: #2e0b57; box-shadow: 0 0 0 2px #a855f7, 0 0 14px rgba(168, 85, 247, .6) !important; }

/* ---------- The header over WHITE content (neon-header.js adds .neon-light while white is underneath) ----------
   Logo: all black with a light gray outer glow. Menu and language button: dark text. Everything fades between looks. */
html.neon .brand-logo, html.neon .site-header .site-nav a, html.neon .lang-current { transition: filter .45s ease, color .45s ease, background-color .45s ease, text-shadow .45s ease; }
html.neon.neon-light .brand-logo {
  filter: brightness(0) drop-shadow(0 0 5px rgba(215, 215, 222, .95)) drop-shadow(0 0 14px rgba(200, 200, 208, .75)) !important;
}
html.neon.neon-light .site-header:not(#_):not(#__) { --nav-ink: #15101f; --nav-ink-strong: #000000; }
html.neon.neon-light .site-header .site-nav a { text-shadow: 0 0 8px rgba(235, 235, 240, .95); }
html.neon.neon-light .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li > .sub-toggle { color: #15101f !important; }
html.neon.neon-light .lang-current {
  background: rgba(255, 255, 255, .7) !important; color: #15101f !important; border-color: rgba(21, 16, 31, .18) !important;
  box-shadow: 0 0 12px rgba(200, 200, 208, .7) !important;
}
html.neon.neon-light .lang-current .lang-code { color: #15101f !important; }
html.neon.neon-light .lang-current .lang-caret, html.neon.neon-light .lang-current .lang-caret path { stroke: #15101f !important; }
html.neon.neon-light .site-header:not(#_):not(#__) .nav-toggle { background: rgba(255, 255, 255, .7) !important; color: #15101f !important; border-color: rgba(21, 16, 31, .18) !important; }
html.neon.neon-light .site-header:not(#_):not(#__) .nav-toggle-icon::before,
html.neon.neon-light .site-header:not(#_):not(#__) .nav-toggle-icon::after,
html.neon.neon-light .site-header:not(#_):not(#__) .nav-toggle-icon > span { background: #15101f !important; }

/* ---------- The shooting game (neon-game.js) ---------- */
/* A crosshair over the hero, so it feels like aiming; links and buttons keep their normal pointer. */
html.neon .hero { cursor: crosshair; }
html.neon .hero a, html.neon .hero button { cursor: pointer; }
/* The neon-fx click shockwave already fires on every click; it doubles as the laser's impact ring. */

/* The score panel, top right under the header. */
.neon-hud {
  position: fixed; right: 16px; top: 88px; z-index: 60; min-width: 150px; padding: 10px 12px 8px;
  font: 700 .78rem/1.3 Oswald, "Arial Narrow", sans-serif; letter-spacing: .14em; color: #fff;
  background: rgba(18, 10, 42, .55); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 22px rgba(176, 77, 255, .35);
  transition: opacity .3s, transform .3s;
}
.neon-hud.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.neon-hud-row { display: flex; justify-content: space-between; gap: 14px; }
.neon-hud-row span { opacity: .7; }
.neon-hud-row b { color: #fff; text-shadow: 0 0 10px #ff2bd6; font-weight: 800; }
.neon-hud-row.best b { color: #ff6ec7; text-shadow: 0 0 10px #ff2bd6; }
.neon-hud.bump { animation: hud-bump .35s ease-out; }
@keyframes hud-bump { 40% { transform: scale(1.08); box-shadow: 0 0 34px rgba(255, 43, 214, .7); } }
.neon-hud button {
  margin-top: 8px; width: 100%; padding: 6px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; letter-spacing: .2em;
}
.neon-hud button:hover { background: rgba(255, 43, 214, .35); }
.neon-hud.is-paused { box-shadow: 0 0 0 2px #ff2bd6; }
.neon-hud-tip { margin: 6px 0 0; font-size: .65rem; opacity: .65; text-align: center; letter-spacing: .1em; }
@media (max-width: 700px) { .neon-hud { top: auto; bottom: 86px; right: 10px; min-width: 120px; font-size: .7rem; } }

/* =====================================================================================================================
   READABILITY: keeping the hero text clear with all the animation going on
   1. Layers: the sparks and the game draw BEHIND the page content (the floor, sun and city already are).
   2. A soft dark oval behind the hero text, darkest in the middle and fading out, so the neon still shows round it.
   3. A dark outer glow under every headline word, message word and the lead text (under the neon glow, not instead of it).
   ===================================================================================================================== */
#neon-particles { z-index: 1 !important; }
html.neon main, html.neon footer { z-index: 2 !important; }

html.neon .hero-card { isolation: isolate; }
html.neon .hero-card::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: min(980px, 110%); height: 130%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(8, 2, 24, .62) 0%, rgba(8, 2, 24, .42) 38%, rgba(8, 2, 24, 0) 70%);
}

/* The dark halo, defined once and added underneath each text glow. */
html.neon { --dark-halo: 0 2px 4px rgba(8, 2, 24, .9), 0 0 18px rgba(8, 2, 24, .85), 0 0 42px rgba(8, 2, 24, .7); }
html.neon .hero-card h1.kx .kx-word,
html.neon .hero-card .kx-reel .kx-word {
  text-shadow: -3px 0 rgba(176, 77, 255, .7), 3px 0 rgba(255, 43, 214, .7), 0 0 26px var(--kx-color, #fff), var(--dark-halo);
}
@keyframes kx-breathe {
  0%, 100% { text-shadow: -2px 0 rgba(176, 77, 255, .55), 2px 0 rgba(255, 43, 214, .55), 0 0 16px rgba(255, 80, 200, .45), var(--dark-halo); }
  50%      { text-shadow: -3px 0 rgba(176, 77, 255, .75), 3px 0 rgba(255, 43, 214, .75), 0 0 32px rgba(255, 80, 200, .7), var(--dark-halo); }
}
html.neon .hero-card .hero-lead { text-shadow: var(--dark-halo) !important; font-weight: 600; }
html.neon .hero-logo { filter: drop-shadow(0 0 12px var(--neon-pink)) drop-shadow(0 0 22px rgba(8, 2, 24, .8)) !important; }

/* Score panel on phones and narrow windows: a slim one-line bar under the header, over the sky, clear of the text. */
@media (max-width: 760px) {
  .neon-hud { top: 72px; bottom: auto; left: 10px; right: auto; min-width: 0; display: flex; align-items: center; gap: 10px;
              padding: 5px 8px 5px 10px; font-size: .66rem; border-radius: 999px; }
  .neon-hud-row { gap: 4px; }
  .neon-hud-tip { display: none; }
  .neon-hud button { margin: 0; width: auto; padding: 3px 8px; border-radius: 999px; font-size: .6rem; letter-spacing: .12em; }
}

/* =====================================================================================================================
   ARCADE PIECES (neon-game.js, neon-audio.js)
   ===================================================================================================================== */
.neon-hud-row.shields b { color: #ff6ec7; letter-spacing: .1em; }
.neon-hud-row.power b, .neon-hud-row.power span { color: #ff6ec7; opacity: 1; }

/* Boss health bar, top centre. */
.neon-bossbar { position: fixed; left: 50%; top: 84px; z-index: 60; width: min(420px, 70vw); transform: translateX(-50%); text-align: center;
                font: 800 .72rem Oswald, sans-serif; letter-spacing: .3em; color: #fff; text-shadow: 0 0 10px #ff2bd6; transition: opacity .3s; }
.neon-bossbar.is-hidden { opacity: 0; }
.neon-bossbar i { display: block; height: 10px; margin-top: 4px; border-radius: 6px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4); overflow: hidden; }
.neon-bossbar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff2bd6, #ffb347); box-shadow: 0 0 12px #ff2bd6; transition: width .2s; }

/* Big centre banner: LEVEL 2, BOSS DEFEATED, INSANE MODE... */
.neon-banner { position: fixed; left: 50%; top: 30%; z-index: 61; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
               font: 900 clamp(1.6rem, 5vw, 3.4rem) Oswald, sans-serif; letter-spacing: .08em; color: #fff; white-space: nowrap;
               text-shadow: 0 0 20px #ff2bd6, 0 0 40px #b04dff, 0 2px 10px rgba(8, 2, 24, .9); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.neon-banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Service tip, bottom centre: what the thing you just shot means for a business. */
.neon-tip { position: fixed; left: 50%; bottom: 22px; z-index: 61; max-width: min(560px, 86vw); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
            padding: 10px 16px; border-radius: 12px; background: rgba(18, 10, 42, .82); border: 1px solid rgba(255, 179, 71, .5); color: #fff;
            font: 600 .95rem/1.35 Lato, system-ui, sans-serif; text-align: center; box-shadow: 0 0 24px rgba(255, 43, 214, .3); transition: opacity .3s, transform .3s; }
.neon-tip.on { opacity: 1; transform: translate(-50%, 0); }
.neon-tip b { font-family: Oswald, sans-serif; letter-spacing: .12em; color: #ff6ec7; margin-right: 6px; }

/* Achievement toast, top centre. */
.neon-toast { position: fixed; left: 50%; top: 130px; z-index: 62; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
              padding: 10px 18px; border-radius: 14px; background: linear-gradient(135deg, #2e0b57, #4c1d95); border: 1px solid #ffb347; color: #fff;
              font: 800 1rem Oswald, sans-serif; letter-spacing: .06em; box-shadow: 0 0 30px rgba(255, 179, 71, .45); transition: opacity .3s, transform .4s cubic-bezier(.2, 1.6, .4, 1); text-align: center; }
.neon-toast small { display: block; font-size: .62rem; letter-spacing: .3em; color: #ff6ec7; }
.neon-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Tanaka's speech bubble, just above his chat button. */
.neon-bubble { position: fixed; right: 24px; bottom: 96px; z-index: 901; max-width: 240px; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
               background: #fff; color: #2e0b57; font: 700 .9rem/1.3 Lato, system-ui, sans-serif; box-shadow: 0 0 22px rgba(176, 77, 255, .55);
               opacity: 0; transform: translateY(10px) scale(.9); transform-origin: 100% 100%; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.neon-bubble.on { opacity: 1; transform: none; }

/* Game over + top 10. */
.neon-over { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; background: rgba(8, 2, 24, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.neon-over[hidden] { display: none; }
.neon-over-box { width: min(380px, 90vw); padding: 26px 24px; border-radius: 20px; text-align: center; color: #fff; background: linear-gradient(160deg, #2e0b57, #14052b);
                 border: 1px solid rgba(255, 43, 214, .5); box-shadow: 0 0 50px rgba(255, 43, 214, .4); font-family: Oswald, sans-serif; letter-spacing: .08em; }
.neon-over-box h2 { margin: 0; font-size: 2.6rem; color: #fff; text-shadow: 0 0 20px #ff2bd6; }
.neon-over-score b { color: #ff6ec7; font-size: 1.4rem; }
.neon-over-box form { display: flex; gap: 8px; justify-content: center; align-items: end; margin: 12px 0; }
.neon-over-box label { display: grid; gap: 4px; font-size: .7rem; letter-spacing: .25em; }
.neon-over-box input { width: 90px; padding: 8px; text-align: center; text-transform: uppercase; font: 800 1.2rem Oswald, sans-serif; letter-spacing: .3em; border-radius: 8px; border: 1px solid #b04dff; background: #14052b; color: #fff; }
.neon-over-box button { padding: 9px 16px; border-radius: 999px; border: 0; background: #fff; color: #2e0b57; font: 800 .85rem Oswald, sans-serif; letter-spacing: .15em; cursor: pointer; }
.neon-over-box ol { text-align: left; margin: 10px auto 16px; padding-left: 28px; max-width: 220px; font-size: .95rem; }
.neon-over-box li { display: flex; justify-content: space-between; } .neon-over-box li b { color: #ff6ec7; }

/* The 🔊 sound button, bottom left. */
.neon-sound { position: fixed; left: 16px; bottom: 18px; z-index: 900; padding: 9px 14px; border-radius: 999px; cursor: pointer;
              border: 1px solid rgba(255, 255, 255, .35); background: rgba(18, 10, 42, .6); color: #fff; font: 800 .75rem Oswald, sans-serif; letter-spacing: .18em;
              -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 16px rgba(176, 77, 255, .35); }
.neon-sound.is-on { border-color: #ff2bd6; box-shadow: 0 0 22px rgba(255, 43, 214, .7); }

/* Nuke: one soft pink-white wash over the screen (a single flash, not repeated). */
html.neon-nuke body::after { content: ""; position: fixed; inset: 0; z-index: 940; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 43, 214, .25)); animation: neon-nuke .45s ease-out forwards; }
@keyframes neon-nuke { to { opacity: 0; } }
/* Insane mode: the page tints itself through colours slowly. */
html.neon-insane #neon-bg { filter: saturate(1.6) contrast(1.1); }

@media (max-width: 760px) {
  .neon-bossbar { top: 104px; }
  .neon-toast { top: 150px; }
  .neon-bubble { right: 14px; bottom: 80px; max-width: 200px; font-size: .8rem; }
  .neon-tip { bottom: 76px; font-size: .82rem; }
}

/* ---------- Weapon bar (bottom centre): click a weapon, or press 1–6 ---------- */
.neon-weapons { position: fixed; left: 50%; bottom: 14px; z-index: 62; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px;
                border-radius: 16px; background: rgba(18, 10, 42, .62); border: 1px solid rgba(255, 255, 255, .22);
                -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 22px rgba(176, 77, 255, .35); transition: opacity .3s; }
.neon-weapons button { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 64px; padding: 6px 8px 5px; border-radius: 11px; cursor: pointer;
                       border: 1px solid transparent; background: transparent; color: #fff; font: 800 .58rem/1 Oswald, sans-serif; letter-spacing: .12em; }
.neon-weapons button .ico { font-size: 1.15rem; line-height: 1.2; color: var(--wc); text-shadow: 0 0 10px var(--wc); }
.neon-weapons button kbd { position: absolute; top: 3px; left: 5px; font: 700 .55rem Oswald, sans-serif; opacity: .55; }
.neon-weapons button:hover { background: rgba(255, 255, 255, .08); }
.neon-weapons button.on { border-color: var(--wc); background: rgba(255, 255, 255, .1); box-shadow: 0 0 14px var(--wc), inset 0 0 10px rgba(255, 255, 255, .08); }
.neon-hud.is-hidden ~ .neon-weapons, html.neon-scrolled .neon-weapons { opacity: 0; pointer-events: none; }
/* The service tip sits above the weapon bar. */
.neon-tip { bottom: 92px !important; }
@media (max-width: 760px) {
  .neon-weapons { bottom: 8px; gap: 2px; padding: 4px; max-width: calc(100vw - 16px); }
  .neon-weapons button { min-width: 0; padding: 5px 6px 4px; }
  .neon-weapons button .nm { display: none; }
  .neon-weapons button kbd { display: none; }
  .neon-sound { bottom: 70px; }
  .neon-tip { bottom: 70px !important; }
}

/* Weapon bar, take two: a vertical column on the left edge, so it never covers the headline or the Deploy button. */
.neon-weapons { left: 12px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; gap: 4px; padding: 5px; }
.neon-weapons button { min-width: 70px; }
.neon-tip { bottom: 14px !important; }
@media (max-width: 760px) {
  .neon-weapons { left: 6px; top: 46%; bottom: auto; max-width: none; }
  .neon-weapons button { padding: 6px 7px; }
  .neon-tip { bottom: 70px !important; }
}
/* Phones: the weapon bar becomes a slim row of icons in the bottom-left corner (beside the Ask Tanaka button). */
@media (max-width: 760px) {
  .neon-weapons { left: 8px; top: auto; bottom: 8px; transform: none; flex-direction: row; gap: 2px; padding: 3px; }
  .neon-weapons button { min-width: 0; padding: 5px 6px; }
  .neon-weapons button .ico { font-size: 1.05rem; }
  .neon-sound { bottom: 58px; left: 8px; }
  .neon-tip { bottom: 104px !important; }
}
@media (max-width: 760px) {
  .neon-weapons { bottom: 54px; }       /* above the sound button, clear of the Ask Tanaka button */
  .neon-sound { bottom: 10px; }
  .neon-tip { bottom: 104px !important; }
}

/* ======================================================================================================
   BLACK CONTENT AREAS (for now): the white and light-gray sections below the hero turn black, with white
   text and headings. Cards and the contact form become dark panels; links turn lilac so they stay readable.
   Buttons keep their own colours.
   ====================================================================================================== */
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer) {
  background: rgb(12, 4, 30) !important;
  color: #fff !important;
}
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer)
  :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, small, strong, em, b, span, figcaption, blockquote, legend, address):not(.btn *):not(.hg-btn *) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Cards and the form: dark panels with a faint edge. */
html.neon:not(#_):not(#__) :is(.service-card, .contact-form, .tse-finder__form) {
  background: rgb(22, 10, 50) !important;
  border: 1px solid rgba(215, 170, 255, 0.14) !important;
  box-shadow: none !important;
}
html.neon:not(#_):not(#__) :is(.services, .feature, .contact, .site-footer) .service-pic { background: rgb(22, 10, 50) !important; }
/* Form fields: dark, white text, lighter placeholder. */
html.neon:not(#_):not(#__) :is(.contact, .site-footer) :is(input, select, textarea) {
  background: #17131f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
html.neon:not(#_):not(#__) :is(.contact, .site-footer) :is(input, textarea)::placeholder { color: rgba(255, 255, 255, 0.5) !important; -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important; }
html.neon:not(#_):not(#__) :is(.contact, .site-footer) select option { background: #17131f; color: #fff; }
/* Links (not buttons) turn lilac. */
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer) a:not(.btn):not(.hg-btn),
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer) a:not(.btn):not(.hg-btn) * {
  color: #d7b8ff !important;
  -webkit-text-fill-color: #d7b8ff !important;
}
/* Dividers and borders that were dark-on-white become faint white lines. */
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer) :is(hr, .footer-meta) { border-color: rgba(255, 255, 255, 0.12) !important; }
/* The footer search's results and "No results" box. */
html.neon:not(#_):not(#__) .tse-finder :is(.tse-finder__empty, [class*="tse-finder__result"], [class*="tse-finder__list"]) { background: #17131f !important; }

/* ======================================================================================================
   SHOOTABLE HEADLINE LETTERS (neon-game.js): a hit letter spins away and shrinks, then explodes; a few seconds
   later it spins back in. --dir (1 or -1), --dx and --dy are set per letter so each one flies off differently.
   ====================================================================================================== */
html.neon .kx-letter { display: inline-block; }
html.neon .kx-letter.kx-shot { animation: kx-spin-away .45s cubic-bezier(.3, 0, .8, .4) forwards; }
@keyframes kx-spin-away {
  0%   { transform: none; opacity: 1; }
  35%  { transform: translate(calc(var(--dx, 0) * .3px), calc(var(--dy, 0) * .3px)) rotate(calc(var(--dir, 1) * 300deg)) scale(1.6); opacity: 1;
         color: #fff; -webkit-text-fill-color: #fff; }
  100% { transform: translate(calc(var(--dx, 0) * 1px), calc(var(--dy, 0) * 1px)) rotate(calc(var(--dir, 1) * 900deg)) scale(.15); opacity: 0; }
}
html.neon .kx-letter.kx-gone { opacity: 0; }
html.neon .kx-letter.kx-back { animation: kx-spin-back .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes kx-spin-back {
  0%   { transform: rotate(calc(var(--dir, 1) * -360deg)) scale(0); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
/* Service pictures: the site blends them with "darken" (which hid their white backgrounds on white cards); on
   black cards that turns them black, so show them normally: black and white, slightly dimmed, rounded corners. */
html.neon:not(#_):not(#__) .services .service-pic {
  mix-blend-mode: normal !important;
  filter: grayscale(1) brightness(.85) contrast(1.05) !important;
  border-radius: 10px;
}

/* ======================================================================================================
   CORE DEFENSE (neon-rts.js): the strategy game in the Mt Fuji strip. The strip becomes full height; the game
   canvas covers it; small glass panels sit on top. While playing, the strip's own heading is hidden.
   ====================================================================================================== */
html.neon .parallax.rts-zone { height: 100vh !important; min-height: 560px !important; }
html.neon .rts-zone .parallax-copy { visibility: hidden !important; }   /* the game's own title panel replaces it */
html.neon .rts-zone.rts-on .parallax-copy { opacity: 0; }
html.neon .rts { position: absolute; inset: 0; z-index: 3; font-family: Lato, system-ui, sans-serif; color: #fff; user-select: none; -webkit-user-select: none; }
html.neon .rts-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.neon .rts-on .rts-canvas { touch-action: none; cursor: crosshair; }
html.neon .rts [hidden] { display: none !important; }
html.neon .rts button { font: 700 12px/1 Oswald, sans-serif; letter-spacing: .08em; color: #fff; cursor: pointer;
  background: rgba(30, 14, 52, .78); border: 1px solid rgba(215, 170, 255, .35); border-radius: 8px; padding: 9px 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.neon .rts button:hover:not([disabled]) { border-color: #ff2bd6; box-shadow: 0 0 14px rgba(255, 43, 214, .45); }
html.neon .rts button[disabled] { opacity: .45; cursor: not-allowed; }
html.neon .rts-top { position: absolute; top: 76px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
html.neon .rts-top > * { pointer-events: auto; }
html.neon .rts-res { margin-left: auto; display: flex; gap: 14px; font: 700 13px/1 Oswald, sans-serif; letter-spacing: .08em;
  background: rgba(14, 6, 26, .78); border: 1px solid rgba(215, 170, 255, .3); border-radius: 10px; padding: 10px 14px; }
html.neon .rts-credits { color: #ff8af0; } html.neon .rts-wave { color: #ffb347; }
html.neon .rts-mini { position: absolute; left: 16px; bottom: 62px; width: 208px; height: 120px; border: 1px solid rgba(215, 170, 255, .4); border-radius: 8px; box-shadow: 0 0 18px rgba(176, 77, 255, .35); cursor: pointer; }
html.neon .rts-panel { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 260px));
  background: rgba(14, 6, 26, .82); border: 1px solid rgba(215, 170, 255, .3); border-radius: 12px; padding: 12px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html.neon .rts-sel b { font: 700 14px/1.2 Oswald, sans-serif; letter-spacing: .08em; margin-right: 10px; }
html.neon .rts-sel span { font-size: 13px; color: rgba(255, 255, 255, .75); }
html.neon .rts-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
html.neon .rts-btns button b { color: #7dffb2; margin-right: 4px; }
html.neon .rts-btns button i { font-style: normal; color: #ff8af0; margin-left: 6px; }
html.neon .rts-queue { margin-top: 10px; display: flex; gap: 6px; min-height: 22px; align-items: center; }
html.neon .rts-q { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: rgba(176, 77, 255, .35); font: 700 11px Oswald, sans-serif; }
html.neon .rts-dim { font-size: 12px; color: rgba(255, 255, 255, .5); }
html.neon .rts-prog { height: 3px; background: rgba(255, 255, 255, .1); border-radius: 2px; margin-top: 8px; overflow: hidden; }
html.neon .rts-prog b { display: block; height: 100%; width: 0; background: #7dffb2; }
html.neon .rts-touch { position: absolute; right: 16px; bottom: 150px; display: flex; flex-direction: column; gap: 8px; }
html.neon .rts-msg { position: absolute; top: 132px; left: 50%; transform: translateX(-50%); font: 700 16px Oswald, sans-serif; letter-spacing: .1em;
  text-shadow: 0 0 12px #ff2bd6, 0 2px 6px #000; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; }
html.neon .rts-msg.on { opacity: 1; }
html.neon .rts-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); text-align: center;
  background: rgba(14, 6, 26, .8); border: 1px solid rgba(215, 170, 255, .35); border-radius: 16px; padding: 26px 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(176, 77, 255, .35); }
html.neon .rts-intro h3 { font: 700 clamp(26px, 4vw, 40px)/1.05 Oswald, sans-serif; text-transform: uppercase; margin: 6px 0 10px; color: #fff; -webkit-text-fill-color: #fff; }
html.neon .rts-intro p { color: rgba(255, 255, 255, .85); -webkit-text-fill-color: rgba(255, 255, 255, .85); margin: 0 0 14px; font-size: 15px; }
html.neon .rts-kicker { font: 700 12px Oswald, sans-serif !important; letter-spacing: .18em; color: #ff8af0 !important; -webkit-text-fill-color: #ff8af0 !important; }
html.neon .rts-intro .rts-play { font-size: 16px; padding: 13px 28px; background: #fff; color: #3b0a6b; border: 0; margin: 4px; }
html.neon .rts-intro .rts-help { font-size: 12px; color: rgba(255, 255, 255, .55) !important; -webkit-text-fill-color: rgba(255, 255, 255, .55) !important; margin: 14px 0 0; }
@media (max-width: 760px) {
  html.neon .rts-top { top: 64px; left: 10px; right: 10px; }
  html.neon .rts-res { gap: 8px; font-size: 11px; padding: 8px 10px; flex-wrap: wrap; }
  html.neon .rts-mini { width: 140px; height: 81px; left: 10px; bottom: 64px; }
  html.neon .rts-panel { left: 10px; right: 10px; transform: none; width: auto; bottom: 152px; padding: 10px; }
  html.neon .rts-panel .rts-sel span { display: none; }
  html.neon .rts-btns button { padding: 8px 9px; font-size: 11px; }
  html.neon .rts-touch { right: 10px; bottom: 64px; flex-direction: row; }
  html.neon .rts-msg { top: 112px; font-size: 13px; }
}
html.neon .rts-zone.rts-on .parallax-copy, html.neon .rts-zone.rts-on .parallax-copy * { visibility: hidden !important; }
html.neon:not(#_):not(#__) .rts-intro h3 { color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 0 18px rgba(255, 43, 214, .55) !important; }

/* Page background: deep space purple instead of black (behind every section, and the bits between them). */
html.neon:not(#_):not(#__) body { background-color: rgb(12, 4, 30) !important; }   /* not on <main>: it would cover the animated canvases */

/* ======================================================================================================
   GAMIFIED CONTENT: everything below the hero looks like the game's own screens (the GAME OVER panel):
   purple glass panels with a pink edge glow, glowing uppercase Oswald headings, orange "score" labels,
   white pill buttons and glowing inputs. neon-quest.js adds the STAGE tags, the quest HUD and XP toasts.
   ====================================================================================================== */
html.neon {
  --gx-panel: linear-gradient(160deg, #2a0850, #0a0212 75%);
  --gx-edge: rgba(255, 43, 214, 0.45);
  --gx-glow: 0 0 0 1px rgba(255, 43, 214, 0.18), 0 0 38px rgba(176, 77, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --gx-glow-hot: 0 0 0 1px rgba(255, 43, 214, 0.5), 0 0 54px rgba(255, 43, 214, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* The sections: deep space purple with a faint game grid and a soft glow from the top. */
html.neon:not(#_):not(#__) :is(.services, .feature, .contact, .site-footer) {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(176, 77, 255, 0.16), transparent 70%),
    linear-gradient(rgba(176, 77, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(176, 77, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    #030006 !important;
  position: relative;
}
/* Panels: the GAME OVER box. */
html.neon:not(#_):not(#__) :is(.service-card, .contact-form, .feature-body, .contact-intro, .site-footer .fw) {
  background: var(--gx-panel) !important;
  border: 1px solid var(--gx-edge) !important;
  border-radius: 20px !important;
  box-shadow: var(--gx-glow) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html.neon:not(#_):not(#__) :is(.feature-body, .contact-intro, .site-footer .fw) { padding: clamp(22px, 2.6vw, 34px) !important; }
html.neon:not(#_):not(#__) :is(.service-card, .feature-body):hover { transform: translateY(-4px); box-shadow: var(--gx-glow-hot) !important; }
/* Headings glow like "GAME OVER". */
html.neon:not(#_):not(#__) :is(.feature-body, .contact-intro) h2,
html.neon:not(#_):not(#__) .site-footer .fw-title,
html.neon:not(#_):not(#__) .site-footer .fw-title a {
  font-family: Oswald, sans-serif !important; text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 0 22px #ff2bd6, 0 0 2px rgba(255, 255, 255, 0.6) !important;
}
html.neon:not(#_):not(#__) .service-card h3 {
  font-family: Oswald, sans-serif !important; text-transform: uppercase; letter-spacing: 0.1em !important;
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.7) !important;
}
/* Small labels: spaced-out caps in "score" orange, like YOUR INITIALS. */
html.neon:not(#_):not(#__) :is(.services, .feature, .contact, .site-footer) .eyebrow,
html.neon:not(#_):not(#__) .contact-form label, html.neon:not(#_):not(#__) .contact-form label * {
  font: 700 0.72rem/1.4 Oswald, sans-serif !important; letter-spacing: 0.25em !important; text-transform: uppercase;
}
html.neon:not(#_):not(#__) :is(.services, .feature, .contact, .site-footer) .eyebrow { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; }
/* Lists read like the leaderboard: one row each, pink marker, faint divider. */
html.neon:not(#_):not(#__) .feature-list { list-style: none !important; padding: 0 !important; }
html.neon:not(#_):not(#__) .feature-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
html.neon:not(#_):not(#__) .feature-list li::before { content: "◆" !important; position: static !important; transform: none !important; width: auto !important; height: auto !important; background: none !important; color: #ff6ec7; -webkit-text-fill-color: #ff6ec7; font-size: 0.7em; flex: none; }
html.neon:not(#_):not(#__) .feature-list li { padding-left: 0 !important; }
/* Buttons: white pills with dark purple text (PLAY AGAIN). */
html.neon:not(#_):not(#__) .services .service-card a.btn-more.btn-more,
html.neon:not(#_):not(#__) .contact .contact-form .btn.btn-primary.btn-primary {
  display: inline-block; align-self: flex-start; padding: 10px 18px !important; border-radius: 999px !important; border: 0 !important;
  background: #fff !important; color: #2e0b57 !important; -webkit-text-fill-color: #2e0b57 !important;
  font: 800 0.8rem/1 Oswald, sans-serif !important; letter-spacing: 0.15em !important; text-transform: uppercase; text-decoration: none !important;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18); transition: transform 0.2s, box-shadow 0.2s;
}
html.neon:not(#_):not(#__) .services .service-card a.btn-more.btn-more * { color: #2e0b57 !important; -webkit-text-fill-color: #2e0b57 !important; }
html.neon:not(#_):not(#__) .services .service-card a.btn-more.btn-more:hover,
html.neon:not(#_):not(#__) .contact .contact-form .btn.btn-primary.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 26px rgba(255, 43, 214, 0.55); }
/* Inputs: the initials box. */
html.neon:not(#_):not(#__) .contact-form :is(input, select, textarea) {
  background: #14052b !important; border: 1px solid #b04dff !important; border-radius: 10px !important;
  font-family: Oswald, sans-serif; letter-spacing: 0.04em;
}
html.neon:not(#_):not(#__) .contact-form :is(input, select, textarea):focus { outline: none !important; box-shadow: 0 0 0 3px rgba(176, 77, 255, 0.45), 0 0 18px rgba(255, 43, 214, 0.35) !important; }
/* Footer news and blog rows: leaderboard rows. */
html.neon:not(#_):not(#__) .site-footer .fw-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 10px; }
html.neon:not(#_):not(#__) .site-footer .fw-meta, html.neon:not(#_):not(#__) .site-footer .fw-meta * { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem !important; }

/* ---- STAGE tags (neon-quest.js puts one at the top of each section) ---- */
html.neon .gx-stage {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 0 auto clamp(18px, 2.4vw, 30px); padding-top: clamp(26px, 3vw, 40px); font: 700 0.75rem/1 Oswald, sans-serif; letter-spacing: 0.3em; color: #fff; text-transform: uppercase;
}
html.neon .gx-stage span { color: #ff6ec7; }
html.neon .gx-stage b { font-size: 1rem; text-shadow: 0 0 16px #ff2bd6; letter-spacing: 0.2em; }
html.neon .gx-stage i { font-style: normal; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); letter-spacing: 0.2em; font-size: 0.65rem; }
html.neon .gx-stage.is-cleared i { border-color: #7dffb2; color: #7dffb2; box-shadow: 0 0 14px rgba(125, 255, 178, 0.35); }
html.neon .gx-stage::before, html.neon .gx-stage::after { content: ""; height: 1px; width: min(120px, 14vw); background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.7)); }
html.neon .gx-stage::after { transform: scaleX(-1); }

/* ---- Quest HUD: top right once you scroll past the hero (where the arcade HUD sits in the hero) ---- */
html.neon .gx-hud {
  position: fixed; top: 78px; right: 16px; z-index: 60; width: 210px; padding: 12px 14px; border-radius: 14px; color: #fff;
  background: var(--gx-panel); border: 1px solid var(--gx-edge); box-shadow: var(--gx-glow);
  font: 700 0.7rem/1.5 Oswald, sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
html.neon .gx-hud.on { opacity: 1; transform: none; }
html.neon .gx-hud .gx-row { display: flex; justify-content: space-between; }
html.neon .gx-hud .gx-row b { color: #ff6ec7; }
html.neon .gx-hud .gx-bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
html.neon .gx-hud .gx-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b04dff, #ff2bd6, #ff6ec7); box-shadow: 0 0 12px #ff2bd6; transition: width 0.6s cubic-bezier(.2, 1.2, .4, 1); }
html.neon .gx-hud .gx-dots { display: flex; gap: 5px; margin-top: 6px; }
html.neon .gx-hud .gx-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
html.neon .gx-hud .gx-dots i.on { background: #7dffb2; box-shadow: 0 0 8px rgba(125, 255, 178, 0.7); }
/* ---- XP toast ---- */
html.neon .gx-toast {
  position: fixed; left: 50%; top: 92px; z-index: 70; transform: translate(-50%, -14px) scale(0.96); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 16px; text-align: center; color: #fff; background: var(--gx-panel); border: 1px solid var(--gx-edge); box-shadow: var(--gx-glow-hot);
  font: 700 0.75rem/1.4 Oswald, sans-serif; letter-spacing: 0.25em; text-transform: uppercase; transition: opacity 0.3s, transform 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
html.neon .gx-toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
html.neon .gx-toast b { display: block; font-size: 1.15rem; letter-spacing: 0.12em; text-shadow: 0 0 18px #ff2bd6; }
html.neon .gx-toast em { font-style: normal; color: #ff6ec7; }
@media (max-width: 760px) {
  html.neon .gx-hud { top: 64px; right: 10px; width: 150px; padding: 9px 10px; font-size: 0.6rem; }
  html.neon .gx-toast { top: 120px; width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  html.neon:not(#_):not(#__) :is(.service-card, .feature-body):hover { transform: none; }
}
/* Feature sections lay out side by side (flex row): let the STAGE tag take a whole row above them. */
html.neon:not(#_):not(#__) .feature { flex-wrap: wrap !important; }
html.neon .gx-stage { flex: 0 0 100%; width: 100%; }
@media (max-width: 760px) {
  html.neon .gx-hud { width: 124px; padding: 7px 9px; }
  html.neon .gx-hud .gx-dots { display: none; }
  html.neon .gx-stage::before, html.neon .gx-stage::after { display: none; }
  html.neon .gx-stage { gap: 8px; letter-spacing: 0.2em; }
}

/* ---- Station Defense game window: while playing, the game fills the whole browser window ---- */
html.neon.rts-takeover, html.neon.rts-takeover body { overflow: hidden !important; }
html.neon.rts-takeover .parallax.rts-zone {
  position: fixed !important; inset: 0 !important; width: 100vw !important; max-width: none !important;
  height: 100vh !important; height: 100dvh !important; min-height: 0 !important; margin: 0 !important; z-index: 5000 !important;
}
html.neon.rts-takeover :is(.site-header, .gx-hud, .gx-toast, .tk-root, .neon-weapons, .neon-hud, .neon-banner, .neon-bubble, .neon-tip, .neon-bossbar, #neon-beasts, #neon-game, #neon-geo, #neon-particles) { visibility: hidden !important; }
html.neon.rts-takeover main { z-index: 5000 !important; }
html.neon.rts-takeover .neon-sound { z-index: 5001 !important; }
html.neon.rts-takeover .rts-top, html.neon .rts-zone:fullscreen .rts-top { top: 14px; }
html.neon .rts-zone:fullscreen { width: 100vw !important; height: 100vh !important; margin: 0 !important; }
html.neon .rts-top .rts-full { margin-left: 8px; }
@media (max-width: 760px) { html.neon.rts-takeover .rts-top { top: 10px; } }

/* Ask Tanaka (the chat button and panel) is switched off for now, on every page. Delete this rule to bring it back. */
html.neon .tk-root, html.neon .neon-bubble, html.neon .chat-card { display: none !important; }

/* Buttons: text centred both ways (the site gives them a fixed height, so lay the label out with flexbox). */
html.neon:not(#_):not(#__) .services .service-card a.btn-more.btn-more,
html.neon:not(#_):not(#__) .contact .contact-form .btn.btn-primary.btn-primary {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; line-height: 1 !important; padding-top: 0 !important; padding-bottom: 0 !important;
  min-height: 44px; height: 44px !important;
}

/* Plain site background: one flat purple behind everything (no grid lines, no glow bands). */
html.neon:not(#_):not(#__) :is(.band, .services, .feature, .contact, .site-footer) { background: rgb(12, 4, 30) !important; background-image: none !important; }

/* Service card pictures: 30% smaller (70% of the card's width), centred. Extra :not(#)s beat the site's own #services rule. */
html.neon:not(#_):not(#__):not(#___) #services .service-card > .service-pic {
  width: 70% !important; align-self: center !important; margin-left: auto !important; margin-right: auto !important;
}

/* Service card text and button line up with the picture: same 70% width, same left edge. */
html.neon:not(#_):not(#__):not(#___) #services .service-card > p {
  width: 70% !important; margin-left: auto !important; margin-right: auto !important; align-self: center !important;
}
html.neon:not(#_):not(#__):not(#___) #services .service-card > .btn-more { align-self: flex-start !important; margin-left: 15% !important; }

/* Feature sections: the text panel and the photo are even: two equal columns, same height, tops and bottoms lined up.
   (The photo's scroll motion is turned off so it can't drift out of line; its picture still fills the frame.) */
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: clamp(24px, 3vw, 44px) !important;
  align-items: stretch !important; max-width: 1180px; margin-left: auto !important; margin-right: auto !important;
}
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > .feature-body { order: 1; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > .feature-figure {
  order: 2; position: relative !important; width: auto !important; max-width: none !important; height: auto !important; min-height: 100%;
  margin: 0 !important; float: none !important; transform: none !important; top: auto !important; left: auto !important; right: auto !important;
  border-radius: 20px !important; overflow: hidden !important;
}
html.neon:not(#_):not(#__):not(#___) .feature.feature--left .feature-inner > .feature-figure { order: 0; }
@media (max-width: 860px) {
  html.neon:not(#_):not(#__):not(#___) .feature .feature-inner { grid-template-columns: 1fr !important; }
  html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > .feature-figure { order: 0; min-height: 0; aspect-ratio: 16 / 10; }
}
/* Pin both to the same row (decorative extras inside the section must not take a grid slot). */
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > .feature-body { grid-row: 1 !important; grid-column: 1 !important; }
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > .feature-figure { grid-row: 1 !important; grid-column: 2 !important; }
html.neon:not(#_):not(#__):not(#___) .feature.feature--left .feature-inner > .feature-body { grid-column: 2 !important; }
html.neon:not(#_):not(#__):not(#___) .feature.feature--left .feature-inner > .feature-figure { grid-column: 1 !important; }
html.neon:not(#_):not(#__):not(#___) .feature .feature-inner::before, html.neon:not(#_):not(#__):not(#___) .feature .feature-inner::after { display: none !important; }
@media (max-width: 860px) {
  html.neon:not(#_):not(#__):not(#___) .feature .feature-inner > :is(.feature-body, .feature-figure) { grid-column: 1 !important; grid-row: auto !important; }
}

/* ======================================================================================================
   UNDERCITY (neon-arpg.js): the dungeon crawler in the "Built, then made better" strip. Same game-window
   behaviour as Station Defense: full height in the page, the whole browser window while playing.
   ====================================================================================================== */
html.neon .parallax.arpg-zone { height: 100vh !important; min-height: 560px !important; }
html.neon .arpg-zone .parallax-copy { visibility: hidden !important; }
html.neon .arpg { position: absolute; inset: 0; z-index: 3; font-family: Lato, system-ui, sans-serif; color: #fff; user-select: none; -webkit-user-select: none; }
html.neon .arpg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.neon .arpg-on .arpg-canvas { touch-action: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M3 2l7 18 2.5-7.5L20 10z' fill='%23ffd84a' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 3 2, crosshair; }
html.neon .arpg [hidden] { display: none !important; }
html.neon .arpg button { font: 700 12px/1 Oswald, sans-serif; letter-spacing: .08em; color: #fff; cursor: pointer;
  background: rgba(30, 14, 52, .82); border: 1px solid rgba(215, 170, 255, .35); border-radius: 8px; padding: 9px 12px; }
html.neon .arpg button:hover { border-color: #ff2bd6; box-shadow: 0 0 14px rgba(255, 43, 214, .45); }
html.neon .arpg-top { position: absolute; top: 76px; left: 16px; right: 16px; display: flex; gap: 8px; align-items: flex-start; pointer-events: none; }
html.neon .arpg-top > * { pointer-events: auto; }
html.neon .arpg-info { margin-left: auto; display: flex; gap: 14px; font: 700 13px/1 Oswald, sans-serif; letter-spacing: .1em; background: rgba(14, 6, 26, .8); border: 1px solid rgba(215, 170, 255, .3); border-radius: 10px; padding: 10px 14px; margin-right: 166px; }
html.neon .arpg-gold { color: #ffd84a; } html.neon .arpg-lvl { color: #8fd8ff; }
html.neon .arpg-mini { position: absolute; top: 76px; right: 16px; width: 150px; height: 150px; border: 1px solid rgba(215, 170, 255, .35); border-radius: 10px; }
/* Bottom HUD: life and mana gauges either side of the skill bar, XP along the bottom. */
html.neon .arpg-hud { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 12px; padding: 10px 14px 16px;
  background: rgba(10, 4, 22, .82); border: 1px solid rgba(215, 170, 255, .3); border-radius: 16px; box-shadow: 0 0 30px rgba(176, 77, 255, .3); }
html.neon .arpg-gauge { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .25); background: #0c0418; }
html.neon .arpg-gauge b { position: absolute; left: 0; right: 0; bottom: 0; transition: height .15s; }
html.neon .arpg-hp b { background: linear-gradient(180deg, #ff6e8a, #a0123c); box-shadow: 0 0 18px #ff2b6a inset; }
html.neon .arpg-mp b { background: linear-gradient(180deg, #8fd8ff, #2a3cc0); box-shadow: 0 0 18px #4a7bff inset; }
html.neon .arpg-gauge span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px Oswald, sans-serif; text-shadow: 0 1px 3px #000; }
html.neon .arpg-bar { display: flex; gap: 6px; }
html.neon .arpg-bar button { position: relative; width: 56px; height: 56px; padding: 4px; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
html.neon .arpg-bar button i { position: absolute; top: 3px; left: 5px; font: 700 10px Oswald, sans-serif; font-style: normal; color: #ffd84a; }
html.neon .arpg-bar button small { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font: 700 9px Oswald, sans-serif; letter-spacing: .06em; color: rgba(255, 255, 255, .8); }
html.neon .arpg-bar button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cd, 0) * 100%); background: rgba(0, 0, 0, .6); }
html.neon .arpg-bar button.low { opacity: .55; }
html.neon .arpg-xp { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
html.neon .arpg-xp b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b04dff, #ffd84a); }
html.neon .arpg-msg { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); font: 700 18px Oswald, sans-serif; letter-spacing: .12em; text-shadow: 0 0 14px #ff2bd6, 0 2px 6px #000; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; }
html.neon .arpg-msg.on { opacity: 1; }
html.neon .arpg-tip { position: absolute; right: 16px; bottom: 120px; width: 260px; padding: 12px 14px; border-radius: 12px; background: rgba(10, 4, 22, .92); border: 1px solid rgba(215, 170, 255, .35); font-size: 13px; }
html.neon .arpg-tip b { display: block; font: 700 15px Oswald, sans-serif; letter-spacing: .04em; }
html.neon .arpg-tip small { text-transform: uppercase; letter-spacing: .15em; font-size: 10px; color: rgba(255, 255, 255, .6); }
html.neon .arpg-tip p { margin: 6px 0 0; color: #d7c4ff; } html.neon .arpg-tip em { display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .5); }
html.neon .arpg-sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: 80%; overflow: auto; padding: 20px 22px;
  background: linear-gradient(160deg, #2e0b57, #14052b); border: 1px solid rgba(255, 43, 214, .45); border-radius: 18px; box-shadow: 0 0 40px rgba(176, 77, 255, .4); }
html.neon .arpg-sheet h4 { margin: 0 0 12px; font: 700 20px Oswald, sans-serif; letter-spacing: .1em; text-shadow: 0 0 16px #ff2bd6; }
html.neon .arpg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 12px; font-size: 13px; }
html.neon .arpg-stats b { color: #ffd84a; float: right; }
html.neon .arpg-slot { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
html.neon .arpg-slot small { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; color: #ff6ec7; }
html.neon .arpg-slot b { display: block; font: 700 15px Oswald, sans-serif; } html.neon .arpg-slot span { color: #d7c4ff; }
html.neon .arpg-note { font-size: 12px; color: rgba(255, 255, 255, .6); }
html.neon .arpg-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(580px, calc(100% - 32px)); text-align: center;
  background: rgba(14, 6, 26, .82); border: 1px solid rgba(215, 170, 255, .35); border-radius: 16px; padding: 26px 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 40px rgba(176, 77, 255, .35); }
html.neon:not(#_):not(#__) .arpg-intro h3 { font: 700 clamp(26px, 4vw, 40px)/1.05 Oswald, sans-serif; text-transform: uppercase; margin: 6px 0 10px; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 0 18px rgba(255, 43, 214, .6) !important; }
html.neon .arpg-intro p { color: rgba(255, 255, 255, .85); margin: 0 0 14px; font-size: 15px; }
html.neon .arpg-kicker { font: 700 12px Oswald, sans-serif !important; letter-spacing: .18em; color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; }
html.neon .arpg-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
html.neon .arpg-intro .arpg-play { font-size: 15px; padding: 13px 24px; background: #fff; color: #2e0b57; border: 0; display: inline-flex; align-items: center; justify-content: center; }
html.neon .arpg-intro .arpg-play.arpg-alt { background: rgba(30, 14, 52, .85); color: #fff; border: 1px solid rgba(215, 170, 255, .4); }
html.neon .arpg-intro .arpg-help { font-size: 12px; color: rgba(255, 255, 255, .55) !important; margin: 14px 0 0; }
/* While playing, the game fills the whole window. */
html.neon.arpg-takeover, html.neon.arpg-takeover body { overflow: hidden !important; }
html.neon.arpg-takeover .parallax.arpg-zone { position: fixed !important; inset: 0 !important; width: 100vw !important; max-width: none !important; height: 100vh !important; height: 100dvh !important; min-height: 0 !important; margin: 0 !important; z-index: 5000 !important; }
html.neon.arpg-takeover :is(.site-header, .gx-hud, .gx-toast, .tk-root, .neon-weapons, .neon-hud, .neon-banner, .neon-bubble, .neon-tip, .neon-bossbar, #neon-beasts, #neon-game, #neon-geo, #neon-particles) { visibility: hidden !important; }
html.neon.arpg-takeover main { z-index: 5000 !important; }
html.neon.arpg-takeover .neon-sound { z-index: 5001 !important; }
html.neon.arpg-takeover .arpg-top, html.neon .arpg-zone:fullscreen .arpg-top { top: 14px; }
html.neon.arpg-takeover .arpg-mini, html.neon .arpg-zone:fullscreen .arpg-mini { top: 14px; }
@media (max-width: 760px) {
  html.neon .arpg-top { top: 64px; left: 10px; right: 10px; }
  html.neon .arpg-info { margin-right: 0; gap: 8px; font-size: 11px; padding: 8px 10px; }
  html.neon .arpg-mini { display: none; }
  html.neon .arpg-hud { bottom: 64px; gap: 6px; padding: 8px 8px 14px; max-width: calc(100% - 16px); }
  html.neon .arpg-gauge { width: 46px; height: 46px; }
  html.neon .arpg-bar button { width: 44px; height: 46px; font-size: 16px; }
  html.neon .arpg-tip { right: 10px; left: 10px; width: auto; bottom: 150px; }
  html.neon .arpg-msg { font-size: 14px; top: 104px; }
}

/* Station Defense: zoom buttons (right edge, middle) */
html.neon .rts-zoom { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
html.neon .rts-zoom button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  font: 700 24px/1 Oswald, sans-serif; color: #fff; background: rgba(14, 6, 26, .78); border: 1px solid rgba(215, 170, 255, .4);
  border-radius: 10px; cursor: pointer; box-shadow: 0 0 14px rgba(176, 77, 255, .3); }
html.neon .rts-zoom button:hover { border-color: #ff8af0; box-shadow: 0 0 18px rgba(255, 43, 214, .5); }
@media (max-width: 760px) { html.neon .rts-zoom { right: 10px; top: 40%; } html.neon .rts-zoom button { width: 40px; height: 40px; } }

/* =====================================================================================================================
   PURPLE, BLACK AND PINK: black pages, purple-to-black panels, hot pink accents, buttons and glows.
   ===================================================================================================================== */
html.neon { --neon-purple: #8b2cf5; --neon-purple-dark: #4c1d95; --neon-pink: rgba(255, 43, 214, .6); --gx-edge: rgba(255, 43, 214, .55); }
:root.neon { --red: #ff2bd6; --shu: #ff2bd6; --red-deep: #c4169f; --red-dark: #8e0f73; }
html.neon:not(#_):not(#__) .site-header { background: rgba(0, 0, 0, .78) !important; border-bottom: 1px solid rgba(255, 43, 214, .35) !important; }
html.neon:not(#_):not(#__) :is(.band, .svc-hero, .svc-cta) {
  background: radial-gradient(ellipse 50% 90% at 50% 40%, rgba(255, 43, 214, .28), transparent 70%), linear-gradient(90deg, #12001f 0%, #3b0a6b 45%, #12001f 100%) !important;
}
html.neon:not(#_):not(#__) :is(.btn-primary, .btn-more) { background: linear-gradient(135deg, #ff2bd6, #a020f0) !important; border-color: #ff2bd6 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 0 22px rgba(255, 43, 214, .45) !important; }
html.neon:not(#_):not(#__) :is(.btn-primary, .btn-more):hover { background: linear-gradient(135deg, #ff5ee0, #b23cff) !important; box-shadow: 0 0 34px rgba(255, 43, 214, .7) !important; }
html.neon:not(#_):not(#__) :is(.eyebrow, .eyebrow *) { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; }
html.neon:not(#_):not(#__) main a:not(.btn):not([class*="btn"]):hover { color: #ff6ec7 !important; }
html.neon ::selection { background: #ff2bd6; color: #fff; }

/* Service icons (img/services/icons/*.webp, transparent neon line art): centred, full colour, glowing brighter on hover. */
html.neon:not(#_):not(#__) #services .service-card > .service-pic.service-icon,
html.neon:not(#_):not(#__):not(#___):not(#____) main .service-card .service-pic.service-icon {
  width: 35% !important; max-width: 120px !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important;
  margin: 4px auto clamp(16px, 1.6vw, 22px) !important; display: block !important;
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important; mix-blend-mode: normal !important;
  filter: drop-shadow(0 0 6px rgba(255, 43, 214, .25)) !important;
  transition: filter .35s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1) !important;
}
html.neon:not(#_):not(#__) #services .service-card:is(:hover, :focus-within) > .service-pic.service-icon,
html.neon:not(#_):not(#__):not(#___):not(#____) main .service-card:is(:hover, :focus-within) .service-pic.service-icon {
  filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 10px rgba(255, 43, 214, .85)) drop-shadow(0 0 26px rgba(0, 240, 255, .55)) drop-shadow(0 0 48px rgba(176, 77, 255, .45)) !important;
  transform: translateY(-4px) scale(1.06) !important;
}
@media (prefers-reduced-motion: reduce) {
  html.neon:not(#_):not(#__) #services .service-card:is(:hover, :focus-within) > .service-pic.service-icon,
  html.neon:not(#_):not(#__):not(#___) main .service-card:is(:hover, :focus-within) .service-pic.service-icon { transform: none !important; }
}

/* About page (and anywhere the same parts appear): no white leftovers from the light theme.
   Process steps become purple panels; icon chips become dark glass with a pink edge and glowing line icons. */
html.neon:not(#_):not(#__):not(#___) main .ab-step {
  background: var(--gx-panel) !important; border: 1px solid var(--gx-edge) !important; border-radius: 20px !important;
  box-shadow: var(--gx-glow) !important; transition: transform .25s ease, box-shadow .25s ease;
}
html.neon:not(#_):not(#__):not(#___) main .ab-step:hover { transform: translateY(-4px); box-shadow: var(--gx-glow-hot) !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-step :is(h3, p) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-step p { color: #e6d9ff !important; -webkit-text-fill-color: #e6d9ff !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-step .ab-step-num {
  color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; opacity: 1 !important; text-shadow: 0 0 18px rgba(255, 43, 214, .6) !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.ab-icon, .value-icon, .ab-check) {
  background: linear-gradient(160deg, rgba(139, 44, 245, .28), rgba(10, 2, 18, .9)) !important;
  border: 1px solid rgba(255, 43, 214, .55) !important;
  box-shadow: 0 0 14px rgba(255, 43, 214, .3), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  color: #ff6ec7 !important; transition: box-shadow .3s ease, transform .3s ease;
}
html.neon:not(#_):not(#__):not(#___) main :is(.ab-icon, .value-icon, .ab-check) :is(svg, svg *) {
  color: #ff6ec7 !important; stroke: currentColor !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.ab-icon, .value-icon) svg { filter: drop-shadow(0 0 4px rgba(255, 43, 214, .8)) drop-shadow(0 0 10px rgba(0, 240, 255, .35)); }
html.neon:not(#_):not(#__):not(#___) main .ab-check { color: #7ff6ff !important; border-color: rgba(0, 240, 255, .5) !important; box-shadow: 0 0 10px rgba(0, 240, 255, .3) !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-check :is(svg, svg *) { color: #7ff6ff !important; }
html.neon:not(#_):not(#__):not(#___) main :is(.ab-focus, .value-card, .ab-mv-card, .ab-std-card, .ab-step):hover :is(.ab-icon, .value-icon) {
  box-shadow: 0 0 22px rgba(255, 43, 214, .7), 0 0 40px rgba(0, 240, 255, .3) !important; transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  html.neon:not(#_):not(#__):not(#___) main :is(.ab-focus, .value-card, .ab-mv-card, .ab-std-card, .ab-step):hover :is(.ab-icon, .value-icon),
  html.neon:not(#_):not(#__):not(#___) main .ab-step:hover { transform: none; }
}

/* Photo credits: folded into one small link at the very bottom (the licences need the credit while the photos are used). */
html.neon details.photo-credits { margin-top: 12px; font-size: .72rem; opacity: .6; }
html.neon details.photo-credits summary { cursor: pointer; list-style: none; color: #b8a3dc; }
html.neon details.photo-credits summary::-webkit-details-marker { display: none; }
html.neon details.photo-credits[open] { opacity: .85; }
html.neon .about-credits { font-size: .72rem; opacity: .55; margin-top: 8px; margin-bottom: 24px; }
html.neon .about-credits a { color: inherit; }

/* Process steps (About): number centred above the title, everything centred both ways in the card. */
html.neon:not(#_):not(#__):not(#___) main .ab-step {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  text-align: center !important;
}
html.neon:not(#_):not(#__):not(#___) main .ab-step > * { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-step .ab-step-num {
  position: static !important; display: block !important; width: auto !important; margin: 0 auto 10px !important; transform: none !important;
}
html.neon:not(#_):not(#__):not(#___) main .ab-step h3 { margin: 0 auto 10px !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-step p { margin: 0 auto !important; max-width: 30ch; }

/* Blog category pills: readable on the neon cards. */
html.neon:not(#_):not(#__):not(#___) .blog-cat {
  background: linear-gradient(135deg, #ff2bd6, #8b2cf5) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
  border: 0 !important; box-shadow: 0 0 12px rgba(255, 43, 214, .45) !important;
}

/* Internal links: "How Tenshi can help" on blog posts and "Guides from our blog" on service pages. */
html.neon .post-related { margin: 40px 0 24px; padding: 22px 26px; border-radius: 18px; background: var(--gx-panel); border: 1px solid var(--gx-edge); box-shadow: var(--gx-glow); }
html.neon .post-related h2 { font-size: 1.3rem !important; margin: 0 0 12px !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html.neon .post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html.neon .post-related a, html.neon .svc-reading-list a { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; font-weight: 700; text-decoration: none; }
html.neon .post-related a::before { content: "◆ "; font-size: .7em; vertical-align: .1em; }
html.neon .post-related a:hover, html.neon .svc-reading-list a:hover { text-shadow: 0 0 12px rgba(255, 43, 214, .7); }
html.neon .svc-reading { padding: clamp(40px, 6vw, 72px) 0 0; }
html.neon .svc-reading-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
html.neon .svc-reading-list li { padding: 18px 20px; border-radius: 16px; background: var(--gx-panel); border: 1px solid var(--gx-edge); }
html.neon .svc-reading-list span { display: block; margin-top: 6px; font-size: .9rem; color: #e6d9ff; }

/* Footer thumbnails with a neon cover: zoom in on the icon so it fills the small frame. */
html.neon .fw-thumb[src*="covers/"] { object-fit: cover; object-view-box: inset(14% 24% 14% 24%); }

/* Wisconsin landing page */
html.neon .wi-why { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; text-align: left; }
html.neon .wi-why li::before { content: "\25C6  "; color: #ff6ec7; font-size: .75em; }
html.neon .wi-svc-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
html.neon .wi-svc { padding: 26px; border-radius: 20px; background: var(--gx-panel); border: 1px solid var(--gx-edge); box-shadow: var(--gx-glow); text-align: center; transition: transform .25s, box-shadow .25s; }
html.neon .wi-svc:hover { transform: translateY(-4px); box-shadow: var(--gx-glow-hot); }
html.neon .wi-svc img { width: 96px; height: 96px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 8px rgba(255, 43, 214, .4)); }
html.neon .wi-svc h3 a { color: #fff !important; -webkit-text-fill-color: #fff !important; text-decoration: none; }
html.neon .wi-svc p { color: #e6d9ff; font-size: .95rem; }
html.neon .wi-cities { list-style: none; padding: 0; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
html.neon .wi-cities li { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 43, 214, .45); background: rgba(139, 44, 245, .15); color: #fff; font-weight: 700; font-size: .9rem; }
html.neon .wi-faq { max-width: 820px; margin: 24px auto 0; display: grid; gap: 12px; }
html.neon .wi-faq details { border-radius: 16px; background: var(--gx-panel); border: 1px solid var(--gx-edge); padding: 16px 20px; }
html.neon .wi-faq summary { cursor: pointer; font-weight: 800; color: #fff; }
html.neon .wi-faq p { margin: 10px 0 0; color: #e6d9ff; }
html.neon .wi-reading, html.neon .wi-note { margin-top: 22px; }
html.neon .wi-reading a, html.neon .wi-note a { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; font-weight: 700; }

/* Neon covers on blog and news cards and post pages: a short 16:9 frame showing the whole cover, never a tall crop. */
html.neon:not(#_):not(#__):not(#___) :is(.blog-fig, .news-fig, .blog-post-fig) { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; overflow: hidden; }
html.neon:not(#_):not(#__):not(#___) :is(.blog-fig, .news-fig, .blog-post-fig) img[src*="covers/"] {
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; object-fit: contain !important;
  max-height: 170px !important; display: block; margin: 0 auto; background: #07020f;
}
html.neon:not(#_):not(#__):not(#___) .blog-post-fig img[src*="covers/"] { max-height: 260px !important; max-width: 520px; border-radius: 16px; }

/* ===== No white leftovers from the light theme (found by a sweep of every page) ===== */
html.neon:not(#_):not(#__):not(#___) main :is(.contact-pitch, .news-item, .svc-step, .svc-for, .svc-tech, .svc-other, .prj-ed, .svc-detail-list > li) {
  background: var(--gx-panel) !important; border: 1px solid var(--gx-edge) !important; box-shadow: var(--gx-glow) !important; border-radius: 18px !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.contact-pitch li, .contact-pitch details, .pitch-omote) {
  background: rgba(139, 44, 245, .14) !important; border: 1px solid rgba(255, 43, 214, .3) !important; border-radius: 14px !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.contact-pitch, .news-item, .svc-step, .svc-for, .svc-tech, .svc-other, .prj-ed, .svc-detail-list > li) :is(h2, h3, h4, strong, b, summary, span, a:not(.btn):not(.btn-more)) {
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.contact-pitch, .news-item, .svc-step, .svc-for, .svc-tech, .svc-other, .prj-ed, .svc-detail-list > li) :is(p, li, dd, small, time, .news-src, .img-credit) {
  color: #e6d9ff !important; -webkit-text-fill-color: #e6d9ff !important;
}
html.neon:not(#_):not(#__):not(#___) main .contact-pitch :is(h2, h3) { text-shadow: 0 0 18px rgba(255, 43, 214, .5) !important; }
html.neon:not(#_):not(#__):not(#___) main :is(.svc-tech, .svc-other, .news-item):hover { box-shadow: var(--gx-glow-hot) !important; transform: translateY(-2px); }

/* Footer lists: a soft violet hover instead of a white box */
html.neon:not(#_):not(#__) .fw-item:hover { background: rgba(139, 44, 245, .16) !important; }

/* Footer thumbnails: small transparent neon icons, no tile behind them */
html.neon:not(#_):not(#__) .fw-thumb { background: transparent !important; box-shadow: none !important; border: 0 !important; }
html.neon:not(#_):not(#__) .fw-thumb[src*="covers/i-"] { width: 52px !important; height: 52px !important; object-fit: contain !important; object-view-box: none; border-radius: 0 !important; flex: none; margin: 4px 10px 0 4px; }

/* Menu: dropdowns open just below the header bar, and the chevron always points down (no flip). */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub { top: calc(100% + 26px) !important; }
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub::before { top: -28px !important; height: 28px !important; }
html.neon .site-header:not(#_):not(#__) .site-nav .has-sub.open > .sub-toggle::after,
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li.has-sub:hover > .sub-toggle::after { transform: rotate(45deg) !important; margin-top: -3px !important; }

/* Game panels: their city photo never shows, not even for a moment before the game draws. */
html.neon .parallax:has(#parallax-px1-title) .parallax-layer,
html.neon .parallax:has(#parallax-px2-title) .parallax-layer { visibility: hidden !important; }
html.neon .parallax:has(#parallax-px1-title),
html.neon .parallax:has(#parallax-px2-title) { background: #05000a !important; }

/* Team: the cards stay centred whatever the number of people. */
html.neon:not(#_):not(#__):not(#___) main .team-grid {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 270px)) !important; justify-content: center !important;
  margin-left: auto !important; margin-right: auto !important;
}

/* Menu: no pointer triangle, and the dropdown sits flush against the bottom of the header bar. */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .has-sub::after { display: none !important; content: none !important; }
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub { top: calc(100% + 23px) !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav ul.sub::before { top: -25px !important; height: 25px !important; }

/* Slogan band: the animated line sits dead centre, both ways. */
html.neon:not(#_):not(#__) .band { display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
html.neon:not(#_):not(#__) .band .band-stage {
  position: absolute !important; inset: 0 !important; margin: 0 !important; padding: 0 24px !important; width: auto !important; max-width: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; transform: none !important;
}

/* Contact "Why clients choose us": roomy boxes, check icon inset from the border. */
html.neon:not(#_):not(#__):not(#___) main .pitch-why { gap: 14px !important; }
html.neon:not(#_):not(#__):not(#___) main .pitch-why li { padding: 18px 22px 18px 58px !important; line-height: 1.65 !important; }
html.neon:not(#_):not(#__):not(#___) main .pitch-why li::before { inset-inline-start: 20px !important; top: 21px !important; }
html.neon:not(#_):not(#__):not(#___) main .pitch-why li::after { inset-inline-start: 27px !important; top: 25px !important; }

/* Menu highlight: a full-height column of light down the whole header bar, glowing pink edge along the bottom.
   No box outline or corner brackets. */
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .nav-glow {
  top: -16px !important; bottom: -17px !important; border: 0 !important; border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(139, 44, 245, 0) 0%, rgba(139, 44, 245, .16) 40%, rgba(255, 43, 214, .30) 100%) !important;
  box-shadow: inset 0 -3px 0 #ff2bd6, 0 10px 22px -10px rgba(255, 43, 214, .9) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: left .35s cubic-bezier(.2, .9, .3, 1), width .35s cubic-bezier(.2, .9, .3, 1), opacity .25s ease !important;
}
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .nav-glow::before,
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav .nav-glow::after { display: none !important; }
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li > a:is(:hover, :focus-visible),
html.neon .site-header:not(.nav-mobile):not(#_):not(#__) .site-nav > ul > li.open > a {
  color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 0 14px rgba(255, 110, 199, .85) !important; background: transparent !important;
}

/* About › Our speciality: icon centred above each heading. */
html.neon:not(#_):not(#__):not(#___) main .ab-focus-head {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; gap: 14px !important;
}
html.neon:not(#_):not(#__):not(#___) main .ab-focus-head > :is(.ab-icon, svg) { margin: 0 auto !important; }
html.neon:not(#_):not(#__):not(#___) main .ab-focus-head h3 { margin: 0 !important; text-align: center !important; width: 100%; }

/* ===== "Let's build what's next": the animated neon city (img/art/neon-city.jpg, drawn by tools/make-neon-city.py) ===== */
html.neon .parallax:has(#parallax-px3-title) .parallax-layer img {
  animation: city-hue 16s ease-in-out infinite alternate, city-drift 34s ease-in-out infinite alternate !important;
  transform-origin: 50% 66%; will-change: filter, transform;
}
@keyframes city-hue {
  0%   { filter: hue-rotate(-18deg) saturate(1.15) brightness(1); }
  35%  { filter: hue-rotate(10deg) saturate(1.4) brightness(1.1); }
  70%  { filter: hue-rotate(38deg) saturate(1.3) brightness(1.04); }
  100% { filter: hue-rotate(-4deg) saturate(1.5) brightness(1.12); }
}
@keyframes city-drift { 0% { scale: 1.04; translate: -1% 0; } 100% { scale: 1.12; translate: 1% 0; } }
/* a band of light sweeping across the skyline, scanlines and a breathing neon glow at the horizon */
html.neon .parallax:has(#parallax-px3-title) .parallax-viewport::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(100deg, transparent 0 38%, rgba(255, 110, 199, .22) 45%, rgba(0, 240, 255, .18) 50%, transparent 57% 100%) -60% 0 / 220% 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  animation: city-sweep 9s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes city-sweep { 0% { background-position: -80% 0, 0 0; } 60%, 100% { background-position: 180% 0, 0 0; } }
html.neon .parallax:has(#parallax-px3-title) .parallax-viewport::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 55% 40% at 50% 30%, rgba(255, 43, 214, .35), transparent 70%),
              radial-gradient(ellipse 30% 25% at 18% 40%, rgba(0, 240, 255, .22), transparent 70%),
              radial-gradient(ellipse 30% 25% at 82% 40%, rgba(176, 77, 255, .25), transparent 70%);
  animation: city-glow 4.2s ease-in-out infinite, city-flicker 7s steps(1) infinite;
}
@keyframes city-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes city-flicker { 0%, 100% { filter: none; } 41% { filter: brightness(1.6); } 42% { filter: brightness(.6); } 43% { filter: brightness(1.4); } 44% { filter: none; } 88% { filter: hue-rotate(60deg); } 90% { filter: none; } }
html.neon .parallax:has(#parallax-px3-title) .parallax-copy { position: relative; z-index: 3; }
html.neon .parallax:has(#parallax-px3-title) .parallax-title { text-shadow: 0 0 24px rgba(255, 43, 214, .8), 0 0 60px rgba(0, 240, 255, .35) !important; }
@media (prefers-reduced-motion: reduce) {
  html.neon .parallax:has(#parallax-px3-title) .parallax-layer img,
  html.neon .parallax:has(#parallax-px3-title) .parallax-viewport::before,
  html.neon .parallax:has(#parallax-px3-title) .parallax-viewport::after { animation: none !important; }
}

/* Contact: "Other ways to reach us", the chat card and the FAQ in the neon panels too */
html.neon:not(#_):not(#__):not(#___) main :is(.info-list > li, .chat-card, .faq details) {
  background: var(--gx-panel) !important; border: 1px solid var(--gx-edge) !important; box-shadow: var(--gx-glow) !important; border-radius: 18px !important;
}
html.neon:not(#_):not(#__):not(#___) main :is(.info-list > li, .chat-card, .faq details) :is(h3, strong, b, summary, span, dt) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html.neon:not(#_):not(#__):not(#___) main :is(.info-list > li, .chat-card, .faq details) :is(p, dd, li, small) { color: #e6d9ff !important; -webkit-text-fill-color: #e6d9ff !important; }
html.neon:not(#_):not(#__):not(#___) main :is(.info-list > li, .chat-card) a { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; }
html.neon:not(#_):not(#__):not(#___) main .info-icon { color: #ff6ec7 !important; filter: drop-shadow(0 0 6px rgba(255, 43, 214, .6)); }

/* ===== The contact form: glowing fields, a live "sending" button, a success card with sparks ===== */
.cf-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
html.neon:not(#_):not(#__):not(#___) .contact-form :is(input, select, textarea) {
  transition: border-color .25s, box-shadow .25s, background-color .25s, transform .2s !important;
}
html.neon:not(#_):not(#__):not(#___) .contact-form :is(input, select, textarea):focus {
  border-color: #ff2bd6 !important; outline: none !important; transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 43, 214, .22), 0 0 22px rgba(255, 43, 214, .35), inset 0 0 12px rgba(139, 44, 245, .25) !important;
}
html.neon .contact-form .field:focus-within label { color: #ff6ec7 !important; -webkit-text-fill-color: #ff6ec7 !important; text-shadow: 0 0 10px rgba(255, 43, 214, .6); }
html.neon .contact-form button[type="submit"] { position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s; }
html.neon .contact-form button[type="submit"]:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255, 43, 214, .6); }
html.neon .contact-form button[type="submit"]::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease; pointer-events: none;
}
html.neon .contact-form button[type="submit"]:hover::after { transform: translateX(120%); }
html.neon .cf-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; margin-left: 10px; vertical-align: -3px; animation: cf-spin .8s linear infinite; }
html.neon .cf-sending button[type="submit"] .cf-spin { display: inline-block; }
html.neon .cf-sending button[type="submit"] { animation: cf-pulse 1.2s ease-in-out infinite; cursor: progress; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
@keyframes cf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 43, 214, .55); } 50% { box-shadow: 0 0 0 8px rgba(255, 43, 214, 0), 0 0 28px rgba(0, 240, 255, .5); } }
html.neon .cf-sending :is(input, select, textarea) { opacity: .6; }
html.neon .form-status.is-busy { color: #7ff6ff !important; }
html.neon .form-status.is-error { color: #ff9be3 !important; }
html.neon .cf-shake { animation: cf-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes cf-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
html.neon .contact-form.cf-done { display: none !important; }
html.neon .cf-success {
  position: relative; text-align: center; padding: 44px 28px; border-radius: 20px; outline: none;
  background: var(--gx-panel); border: 1px solid var(--gx-edge); box-shadow: var(--gx-glow-hot);
  animation: cf-in .55s cubic-bezier(.2, 1.3, .35, 1) both;
}
html.neon .cf-success h3 { margin: 14px 0 8px !important; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 0 18px rgba(255, 43, 214, .7); }
html.neon .cf-success p { color: #e6d9ff; max-width: 42ch; margin: 0 auto 20px; }
html.neon .cf-check { width: 84px; height: 84px; display: block; margin: 0 auto; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 43, 214, .8)); }
html.neon .cf-check circle { stroke: #ff2bd6; stroke-dasharray: 152; stroke-dashoffset: 152; animation: cf-draw .7s .1s ease forwards; }
html.neon .cf-check path { stroke: #7ff6ff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-draw .45s .7s ease forwards; }
@keyframes cf-draw { to { stroke-dashoffset: 0; } }
@keyframes cf-in { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
html.neon .cf-spark {
  position: absolute; left: 50%; top: 86px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c);
  opacity: 0; animation: cf-spark .9s .75s ease-out forwards; pointer-events: none;
}
@keyframes cf-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.3); }
}
@media (prefers-reduced-motion: reduce) {
  html.neon :is(.cf-success, .cf-shake, .cf-sending button[type="submit"], .cf-spark, .cf-check circle, .cf-check path) { animation: none !important; }
  html.neon .cf-check :is(circle, path) { stroke-dashoffset: 0 !important; }
  html.neon .cf-spark { display: none; }
}

/* spinner drawn by CSS (the button's text is rewritten when the language changes) */
html.neon .cf-sending button[type="submit"]::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px; border-radius: 50%;
  border: 2.5px solid rgba(60, 10, 90, .3); border-top-color: currentColor; animation: cf-spin .8s linear infinite;
}
