/* ============================================================
   THEME — Amreen Shezan portfolio
   Cyberprep / Y2K-futurism dark skin, built ON the DS tokens.
   All colour / type / radius / motion values trace to var(--*)
   from the Amreen Shezan Design System.
   ============================================================ */

:root {
  /* Neon ramp pulled straight from the DS palette */
  --neon-celadon:   var(--celadon);    /* #A5CFA1 */
  --neon-seagrass:  var(--seagrass);   /* #3BA68C */
  --neon-blue:      var(--blue-green); /* #2896B8 */
  --anchor:         var(--dark-teal);  /* #0B5159 */

  /* Dark surface vocabulary */
  --void:        #000000;
  --void-2:      #03090a;          /* barely-lifted black */
  --panel-glass: rgba(10, 24, 26, 0.42);
  --panel-glass-2: rgba(165, 207, 161, 0.05);
  --hairline:    rgba(165, 207, 161, 0.18);
  --hairline-2:  rgba(40, 150, 184, 0.30);

  /* Text on black */
  --t-bright:  #EAF6F1;
  --t-body:    #9FBDB8;
  --t-dim:     #5E7A79;
  --t-faint:   #36504F;

  /* Glows */
  --glow-seagrass: 0 0 24px rgba(59, 166, 140, 0.45);
  --glow-blue:     0 0 24px rgba(40, 150, 184, 0.50);
  --glow-celadon:  0 0 20px rgba(165, 207, 161, 0.45);

  /* Accent / HUD type — pixel-mono faces (Y2K accent) */
  --font-hud: "Share Tech Mono", ui-monospace, monospace;
  --font-crt: "VT323", "Share Tech Mono", monospace;

  --grad-neon: linear-gradient(120deg, var(--celadon) 0%, var(--seagrass) 42%, var(--blue-green) 100%);
}

/* ---------------- base canvas ---------------- */
html, body { margin: 0; background: var(--void); }
body {
  color: var(--t-body);
  background:
    radial-gradient(1100px 720px at 78% -8%, rgba(40,150,184,0.13), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(59,166,140,0.10), transparent 62%),
    var(--void);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* faint engineering grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(165,207,161,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,207,161,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 78%);
}

/* global scanline veil — the analogue layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}
body[data-motion="0"]::after { opacity: 0.32; }

/* scanline toggle */
body[data-scan="0"]::after { display: none; }
body[data-scan="0"] .crt-scan { display: none; }

/* subtle motion: keep reveals + marquee, calm the rest */
body[data-motion="1"] .crt-flicker { animation: none; }
body[data-motion="1"] .keycap:hover { transform: translateY(-4px) !important; }
body[data-motion="1"] .marquee-track { animation-duration: 60s; }

::selection { background: rgba(40,150,184,0.40); color: var(--t-bright); }

/* ---------------- type helpers ---------------- */
.hud {
  font-family: var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.84rem;
  color: var(--neon-celadon);
}
.hud-dim { color: var(--t-dim); }

.display {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  line-height: 0.96;
  letter-spacing: var(--ls-display);
  color: var(--t-bright);
}
.ink-grad {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* exact match to reference: mint → teal-blue, left to right, thin luminous feel */
.ink-grad-cool {
  background: linear-gradient(90deg, #A5CFA1 0%, #3BA68C 38%, #2896B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ink-blue { color: var(--neon-blue); }
.ink-sea  { color: var(--neon-seagrass); }

/* ---------------- glass primitive ---------------- */
.glass {
  background: var(--panel-glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  position: relative;
}
.glass::before { /* top sheen */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 38%);
  mix-blend-mode: screen;
}

/* ---------------- layout ---------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* corner ticks for HUD framing */
.ticks::before, .ticks::after,
.ticks > .tick-tr, .ticks > .tick-br { content: ""; }

/* ---------------- entrance motion ---------------- */
[data-reveal] { opacity: 0; }
[data-reveal][data-seen],
body.reveal-all [data-reveal] {
  animation: revealIn 0.66s var(--ease-out) var(--reveal-delay, 0ms) both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
body[data-motion="0"] [data-reveal] { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; animation: none !important; }
}

/* ---------------- CRT screen ---------------- */
.crt-flicker { animation: crtFlicker 5.5s steps(1) infinite; }
@keyframes crtFlicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.86; }
  98% { opacity: 1; }
  98.6% { opacity: 0.92; }
}
body[data-motion="0"] .crt-flicker { animation: none; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #163133; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--anchor); }

/* ---------------- CRT scan drift ---------------- */
.crt-scan { animation: crtScan 8s linear infinite; background-position: 0 0; }
@keyframes crtScan { to { background-position: 0 100px; } }
body[data-motion="0"] .crt-scan { animation: none; }

/* ---------------- brand logo field — floated glass tiles ---------------- */
.logo-field { position: relative; height: 640px; margin-top: 30px; }
.logo-tile {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.logo-float { will-change: transform; }
.logo-glass {
  display: grid; place-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 16px 38px -14px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.2s var(--ease-out), backdrop-filter 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.3s var(--ease-out);
  cursor: default;
}
.logo-glass img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.logo-glass:hover {
  transform: translateY(-4px) scale(1.05);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 26px 50px -14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
/* legibility once the section background lightens */
#companies[data-lit="1"] .logo-glass {
  background: rgba(255,255,255,0.34);
  border-color: rgba(6,41,44,0.14);
  box-shadow: 0 16px 34px -14px rgba(6,41,44,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}
body[data-motion="0"] .logo-tile { transform: translate(-50%, -50%) !important; }
@media (max-width: 720px) { .logo-field { height: 560px; } .logo-glass { padding: 12px; } }

/* ---------------- 3D keycaps (toolkit) ---------------- */
.keycap {
  position: relative;
  border-radius: 18px;
  padding: 3px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--kc) 55%, #fff 0%) , color-mix(in oklab, var(--kc) 60%, #000 55%));
  box-shadow:
    0 22px 30px -14px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,0,0,0.5),
    0 0 26px -6px color-mix(in oklab, var(--kc) 70%, transparent);
  transition: transform 0.18s var(--ease-out), box-shadow 0.3s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.keycap-top {
  position: relative;
  border-radius: 15px;
  padding: 22px 16px 18px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(255,255,255,0.30), transparent 46%),
    linear-gradient(175deg, color-mix(in oklab, var(--kc) 88%, #fff 18%), color-mix(in oklab, var(--kc) 75%, #000 30%));
  box-shadow: inset 0 2px 1px rgba(255,255,255,0.45), inset 0 -10px 18px rgba(0,0,0,0.30);
  overflow: hidden;
}
.keycap-top::after { /* glossy sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, transparent 34%);
  mix-blend-mode: screen; opacity: 0.7;
}
.keycap-icon { width: 30px !important; height: 30px !important; color: #03120f; stroke-width: 2.1; opacity: 0.92; }
.keycap-name { font-family: var(--font-hud); font-size: 0.92rem; letter-spacing: 0.02em; color: #04130f; font-weight: 400; line-height: 1.1; text-transform: none; }
.keycap-sub  { font-family: var(--font-hud); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(3,18,15,0.55); margin-top: 3px; }
.keycap:hover { box-shadow: 0 30px 44px -16px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.5), 0 0 40px -2px color-mix(in oklab, var(--kc) 80%, transparent); }
body[data-motion="0"] .keycap { transition: none; }
body[data-motion="0"] .keycap:hover { transform: none !important; }

/* ---------------- marquee ---------------- */
.marquee { display: flex; gap: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; animation: marq var(--marq-dur, 38s) linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-100%); } }
body[data-motion="0"] .marquee-track { animation: none; }

.brand-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(10,24,26,0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; flex-shrink: 0;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.brand-chip:hover { border-color: var(--neon-blue); background: rgba(40,150,184,0.10); transform: translateY(-2px); }
.brand-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon-seagrass); box-shadow: var(--glow-seagrass); }
.brand-chip .nm { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 1.05rem; color: var(--t-bright); letter-spacing: -0.01em; }
.brand-chip .id { font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--t-dim); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="1"] {
  background: rgba(2,8,9,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
}
.nav-mark { font-family: var(--font-sans); font-weight: var(--fw-black); font-size: 1.15rem; color: var(--t-bright); letter-spacing: -0.02em; }
.nav-mark .dot { color: var(--neon-seagrass); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--font-hud); font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-dim); cursor: pointer; transition: color 0.2s; }
.nav-links a:hover { color: var(--neon-celadon); }
@media (max-width: 860px) { .nav-links a { display: none; } }

/* ---------------- project card ---------------- */
.proj {
  position: relative; display: block; cursor: pointer;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(8,18,20,0.5);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.proj:hover { transform: translateY(-6px); border-color: var(--hairline-2); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8), var(--glow-blue); }
.proj-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.proj-ghost { position: absolute; right: -8px; bottom: -34px; font-family: var(--font-display); font-weight: var(--fw-black); font-size: 12rem; line-height: 1; color: rgba(255,255,255,0.07); }
.proj:hover .proj-cover .proj-scan { opacity: 1; }
.proj-scan { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,0.18) 3px 4px); }
.proj-arrow { transition: transform 0.3s var(--ease-out); }
.proj:hover .proj-arrow { transform: translateX(6px); }
body[data-motion="0"] .proj:hover { transform: none; }

/* ---------------- boot overlay ---------------- */
#boot {
  position: fixed; inset: 0; z-index: 12000; background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--font-crt); color: var(--neon-celadon);
  transition: opacity 0.6s ease; cursor: pointer;
}
#boot.gone { opacity: 0; pointer-events: none; }
#boot .line { width: 0; height: 2px; background: var(--neon-celadon); box-shadow: var(--glow-celadon); animation: bootLine 0.5s var(--ease-out) forwards; }
@keyframes bootLine { to { width: min(620px, 78vw); } }
#boot .term { margin-top: 26px; font-size: 1.5rem; letter-spacing: 2px; min-height: 1.6em; text-shadow: var(--glow-celadon); }
#boot .bar { margin-top: 16px; width: min(620px, 78vw); height: 6px; border: 1px solid var(--hairline); border-radius: 99px; overflow: hidden; }
#boot .bar > i { display: block; height: 100%; width: 0; background: var(--grad-neon); animation: bootBar 1.6s var(--ease-out) 0.3s forwards; }
@keyframes bootBar { to { width: 100%; } }
#boot .skip { margin-top: 22px; font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--t-dim); text-transform: uppercase; }

/* ---------------- ghost / secondary button ---------------- */
.ghost-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 56px; padding: 0 26px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 17px;
  color: var(--t-bright); cursor: pointer;
  border: 1px solid var(--hairline-2); background: rgba(40,150,184,0.06);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.12s;
}
.ghost-btn:hover { background: rgba(40,150,184,0.14); border-color: var(--neon-blue); color: var(--t-bright); }
.ghost-btn:active { transform: translateY(1px); }
.ghost-btn [data-lucide] { width: 17px; height: 17px; }

/* ---------------- skill tag ---------------- */
.skill-tag {
  font-family: var(--font-hud); font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-body); padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); background: rgba(165,207,161,0.04);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.skill-tag:hover { border-color: var(--neon-seagrass); color: var(--neon-celadon); background: rgba(59,166,140,0.08); }

/* ---------------- contact link rows ---------------- */
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--hairline); background: rgba(8,18,20,0.5);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.2s;
}
.contact-link:hover { border-color: var(--neon-blue); background: rgba(40,150,184,0.10); transform: translateY(-2px); }
.contact-link > [data-lucide] { width: 22px; height: 22px; color: var(--neon-celadon); }

/* ============================================================
   INTRO — centered GIF, name top-left, bio bottom-right
   ============================================================ */
/* charcoal blend behind the intro, matching the GIF backdrop */
#top {
  background:
    radial-gradient(ellipse 46% 58% at 50% 48%, #1c1b1a 0%, rgba(26,25,24,0.55) 38%, transparent 72%);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px) 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: clamp(10px, 2vw, 30px);
  row-gap: 8px;
}
.intro-name { grid-column: 1 / 3; grid-row: 1 / 2; justify-self: start; align-self: end; z-index: 3; position: relative; }
.intro-gif  { grid-column: 2 / 3; grid-row: 1 / 4; justify-self: center; align-self: center; z-index: 2; position: relative; }
.intro-bio  { grid-column: 2 / 4; grid-row: 3 / 4; justify-self: end; align-self: start; z-index: 3; position: relative; max-width: 440px; }

.gif-stage {
  position: relative;
  width: clamp(300px, 36vw, 460px);
  /* feather the GIF's rectangular edges into the matching backdrop */
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 50% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 82% at 50% 46%, #000 52%, transparent 100%);
}
.gif-stage > img {
  position: relative; display: block; width: 100%; height: auto;
}
.gif-static {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  mix-blend-mode: screen;
}
.gif-glow {
  position: absolute; inset: -46%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, #1d1c1b 0%, rgba(29,28,27,0.5) 46%, transparent 76%),
    radial-gradient(closest-side, rgba(40,150,184,0.28), transparent 66%);
  filter: blur(26px);
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-name, .intro-gif, .intro-bio { grid-column: 1 / 2; justify-self: center; text-align: center; }
  .intro-name { grid-row: 1; } .intro-gif { grid-row: 2; margin-block: 18px; } .intro-bio { grid-row: 3; max-width: 520px; }
}

/* ============================================================
   LOGO PARTICLE DOTS
   ============================================================ */
.logo-dots {
  position: relative;
  width: 100%;
  height: 76px;
  margin-bottom: 14px;
}
.logo-dots canvas { width: 100%; height: 100%; display: block; }

.brand-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 26px 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: rgba(8,18,20,0.45);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.brand-cell:hover { border-color: var(--hairline-2); background: rgba(40,150,184,0.07); transform: translateY(-3px); }
.brand-cell .nm { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 1.02rem; color: var(--t-bright); letter-spacing: -0.01em; text-align: center; line-height: 1.2; }
.brand-cell .id { font-family: var(--font-hud); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--t-dim); margin-top: 6px; }

/* ============================================================
   CRT TELEVISION — hyperreal teal, stacked
   ============================================================ */
.crt-stack { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1vw, 14px); perspective: 1100px; perspective-origin: 50% 42%; }
.crt-unit { position: relative; width: min(470px, 90%); perspective: 1050px; perspective-origin: 50% 38%; z-index: 1; }
.crt-box { position: relative; transform-style: preserve-3d; transition: transform 0.5s var(--ease-out); }
.crt-unit[data-rot="r"] .crt-box { transform: rotateX(9deg) rotateY(-32deg); }
.crt-unit[data-rot="l"] .crt-box { transform: rotateX(9deg) rotateY(32deg); }
.crt-unit:hover { z-index: 5; }
.crt-unit:hover .crt-box { transform: rotateX(4deg) rotateY(-8deg) scale(1.03); }
.crt-unit[data-rot="l"]:hover .crt-box { transform: rotateX(4deg) rotateY(8deg) scale(1.03); }
body[data-motion="0"] .crt-box { transform: none; }

/* prominent subgroup caption above each TV */
.crt-cap { display: flex; align-items: center; gap: 12px; margin: 0 auto 14px; width: fit-content; padding: 7px 16px 7px 8px;
  border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: rgba(8,18,20,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crt-cap .num { font-family: var(--font-crt); font-size: 1.5rem; line-height: 1; color: #03120f; background: var(--neon-celadon);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--glow-celadon); }
.crt-cap .grp { font-family: var(--font-hud); font-size: 0.96rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon-celadon); font-weight: 600; }

.crt-tv {
  position: relative;
  transform-style: preserve-3d;
  padding: 26px 30px 30px;
  border-radius: 38px;
  background:
    radial-gradient(120% 90% at 28% 12%, #2f6d70, transparent 55%),
    linear-gradient(160deg, #1d4e52 0%, #0d3034 48%, #061d20 100%);
  box-shadow:
    inset 0 2px 0 rgba(165,207,161,0.28),
    inset 0 -18px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(165,207,161,0.10),
    0 0 50px -12px rgba(59,166,140,0.30);
  border: 1px solid rgba(165,207,161,0.16);
}
/* ground shadow cast by the whole box */
.crt-box::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -40px; height: 70px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(0,0,0,0.78), transparent 75%);
  transform: translateZ(-66px) rotateX(80deg); transform-origin: 50% 0%;
  filter: blur(12px); pointer-events: none; z-index: -1;
}
/* ---- real extruded side / top / bottom faces ---- */
.crt-face { position: absolute; pointer-events: none; }
.crt-face-side { top: 20px; bottom: 20px; width: 88px; }
.crt-unit[data-rot="r"] .crt-face-side {
  right: 0; transform-origin: 100% 50%; transform: rotateY(-90deg);
  background:
    linear-gradient(to left, rgba(198,230,194,0.95) 0, rgba(198,230,194,0) 9%),   /* lit front corner seam */
    linear-gradient(to left, #4a8a8c 0%, #25595c 38%, #0d3032 70%, #061d1d 100%); /* lit wall fading to dark back */
  box-shadow: inset 0 0 28px rgba(0,0,0,0.4);
}
.crt-unit[data-rot="l"] .crt-face-side {
  left: 0; transform-origin: 0% 50%; transform: rotateY(90deg);
  background:
    linear-gradient(to right, rgba(198,230,194,0.95) 0, rgba(198,230,194,0) 9%),
    linear-gradient(to right, #4a8a8c 0%, #25595c 38%, #0d3032 70%, #061d1d 100%);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.4);
}
.crt-face-top {
  left: 24px; right: 24px; top: 0; height: 88px;
  transform-origin: 50% 0%; transform: rotateX(-90deg);
  background:
    linear-gradient(to bottom, rgba(205,236,201,0.9) 0, rgba(205,236,201,0) 11%), /* lit front-top seam */
    linear-gradient(to bottom, #56989a 0%, #2c6164 46%, #123739 78%, #0a2627 100%);
}
.crt-face-bottom {
  left: 24px; right: 24px; bottom: 0; height: 88px;
  transform-origin: 50% 100%; transform: rotateX(90deg);
  background: linear-gradient(to top, #0a2624 0%, #051512 60%, #020c0b 100%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
}
.crt-tv::before { /* plastic top sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(165deg, rgba(255,255,255,0.16), transparent 26%);
  mix-blend-mode: screen;
}
.crt-bezel {
  position: relative;
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(160deg, #0a2528, #03100f);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.8), inset 0 -2px 6px rgba(165,207,161,0.06);
}
.crt-screen {
  position: relative;
  border-radius: 14px / 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 120% at 50% 45%, #07221f 0%, #03100f 70%, #020a09 100%);
  box-shadow: inset 0 0 70px rgba(0,0,0,0.95), inset 0 0 0 2px rgba(0,0,0,0.7);
}
.crt-screen::after { /* curvature glare */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background:
    radial-gradient(140% 120% at 50% 50%, transparent 52%, rgba(0,0,0,0.6) 100%),
    linear-gradient(130deg, rgba(255,255,255,0.14), transparent 26%, transparent 78%, rgba(40,150,184,0.10));
}
.crt-screen .scan { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.30) 2px 3px); }

/* channel-guide list — all the subgroup's tools at once, with a cycling highlight */
.crt-guide { position: absolute; inset: 56px 16px 18px; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.crt-row { display: flex; align-items: center; gap: 9px; padding: 3px 9px; border-radius: 7px;
  border: 1px solid transparent; transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out); }
.crt-row[data-on="1"] { background: rgba(165,207,161,0.13); border-color: rgba(165,207,161,0.34); box-shadow: 0 0 18px rgba(59,166,140,0.22); }
.crt-row-ic { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px;
  background: rgba(165,207,161,0.08); border: 1px solid rgba(165,207,161,0.18); }
.crt-row-ic [data-lucide] { width: 14px; height: 14px; color: var(--neon-celadon); }
.crt-row-nm { font-family: var(--font-crt); font-size: 1.24rem; line-height: 1; letter-spacing: 0.5px; color: var(--neon-celadon); flex: 1; text-shadow: var(--glow-celadon); }
.crt-row-sub { font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-dim); flex-shrink: 0; }
.crt-head { position: absolute; top: 0; left: 0; right: 0; z-index: 7; display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 15px 9px; border-bottom: 1px solid rgba(165,207,161,0.18);
  background: linear-gradient(to bottom, rgba(3,16,15,0.7), transparent); }
.crt-head-grp { font-family: var(--font-crt); display: flex; flex-direction: column; line-height: 1.0; font-size: 24px; letter-spacing: 1px; color: var(--neon-celadon); text-shadow: var(--glow-celadon); }
.crt-head-meta { font-family: var(--font-crt); display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--neon-blue); white-space: nowrap; }
.crt-head-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5b6e; box-shadow: 0 0 8px #ff5b6e; }

.crt-controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-inline: 6px; }
.crt-knob { width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f6d70, #0a2629 70%); box-shadow: inset 0 2px 3px rgba(255,255,255,0.2), 0 3px 6px rgba(0,0,0,0.6); position: relative; }
.crt-knob::after { content: ""; position: absolute; top: 5px; left: 50%; width: 2px; height: 9px; background: rgba(165,207,161,0.6); transform: translateX(-50%); border-radius: 2px; }
.crt-grille { flex: 1; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(165,207,161,0.10) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 6px rgba(0,0,0,0.6); }
.crt-power { width: 12px; height: 12px; border-radius: 50%; background: var(--neon-seagrass); box-shadow: var(--glow-seagrass); }
.crt-label { font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t-dim); }

/* ============================================================
   BROWSER WINDOW CASE CARDS — untinted glass
   ============================================================ */
.win {
  position: relative; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.18);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.win:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.30); box-shadow: 0 40px 80px -28px rgba(0,0,0,0.9), 0 0 30px -8px rgba(40,150,184,0.4), inset 0 1px 0 rgba(255,255,255,0.22); }
body[data-motion="0"] .win:hover { transform: none; }
.win-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-url {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10);
  font-family: var(--font-hud); font-size: 0.76rem; letter-spacing: 0.05em; color: var(--t-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-url [data-lucide] { width: 12px; height: 12px; color: var(--neon-seagrass); flex-shrink: 0; }
.win-tabs { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; }
.win-tab {
  font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 7px 13px; border-radius: 10px 10px 0 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-bottom: none;
  color: var(--t-body); white-space: nowrap;
}
.win-body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.win-cover {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10;
  display: flex; align-items: flex-end; padding: 16px;
}
.win-cover::after { display: none !important; }
.win-cover .ghost { position: absolute; right: 8px; bottom: -28px; font-family: var(--font-display); font-weight: var(--fw-black); font-size: 8rem; line-height: 1; color: rgba(255,255,255,0.12); }
.win-cover .scan { display: none; }
.win h3 { color: var(--t-bright); font-weight: var(--fw-semibold); font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1.15; }
.win .cat { font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon-celadon); }
.win .desc { color: var(--t-body); font-weight: var(--fw-light); font-size: 0.96rem; line-height: 1.6; }
.win .open { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--neon-blue); font-family: var(--font-hud); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.win:hover .open [data-lucide] { transform: translateX(5px); }
.win .open [data-lucide] { transition: transform 0.3s var(--ease-out); width: 15px; height: 15px; }

/* ============================================================
   RIGHT-SIDE 3D KEYCAP NAV
   ============================================================ */
.keynav {
  position: fixed; right: 22px; top: 42%;
  transform: translate(48px, -50%);
  display: flex; flex-direction: column; gap: 7px;
  z-index: 8600; opacity: 0; pointer-events: none;
  transition: opacity 0.42s var(--ease-out), transform 0.46s var(--ease-out);
}
.keynav.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
@media (max-width: 820px) { .keynav { display: none; } }

.kcap {
  --w: 80px;
  --top1: #ffffff; --top2: #e6edec; --top3: #b7c6c5;
  --side: #95a4a3; --sideLo: #6f7d7c;
  --glow: rgba(255,255,255,0.85);
  --crystal: rgba(255,255,255,0.10);
  position: relative;
  width: var(--w); height: var(--w);
  border: 0; padding: 0; margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 22px;
  filter: saturate(0.82) brightness(0.86);
  transition: transform 0.24s var(--ease-out), filter 0.26s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.kcap-base {
  position: absolute; inset: 0;
  border-radius: 22px;
  background: linear-gradient(176deg, var(--side) 0%, var(--sideLo) 100%);
  box-shadow: 0 13px 20px -8px rgba(0,0,0,0.75), 0 2px 0 rgba(0,0,0,0.5);
}
.kcap-base::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 25px; pointer-events: none;
  box-shadow: 0 0 0 1px var(--glow);
  opacity: 0.22;
  transition: opacity 0.26s var(--ease-out), box-shadow 0.26s var(--ease-out);
}
.kcap-top {
  position: absolute;
  left: 4px; right: 4px; top: 3px; bottom: 9px;
  border-radius: 18px;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.9),
    inset 0 -9px 14px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.25);
}
.kcap-solid .kcap-top {
  background:
    radial-gradient(135% 100% at 50% 8%, var(--top1) 0%, transparent 46%),
    radial-gradient(120% 80% at 28% 22%, rgba(255,255,255,0.95), transparent 40%),
    linear-gradient(178deg, var(--top1) 0%, var(--top2) 52%, var(--top3) 100%);
}
.kcap-solid .kcap-gloss {
  position: absolute; left: 8%; right: 8%; top: 5%; height: 58%;
  border-radius: 50% 50% 46% 46% / 64% 64% 40% 40%;
  background: linear-gradient(176deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.32) 44%, transparent 100%);
  pointer-events: none; mix-blend-mode: screen; opacity: 0.9;
}
.kcap-crystal .kcap-top {
  background:
    radial-gradient(120% 90% at 50% 14%, color-mix(in oklab, var(--crystal) 70%, #fff 30%), transparent 52%),
    linear-gradient(178deg,
      color-mix(in oklab, var(--crystal) 78%, #fff 22%) 0%,
      var(--crystal) 50%,
      color-mix(in oklab, var(--crystal) 80%, #000 20%) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.85),
    inset 0 -11px 20px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.35),
    inset 0 0 24px color-mix(in oklab, var(--crystal) 60%, #fff 0%);
}
.kcap-crystal .kcap-gloss {
  position: absolute; left: 10%; right: 38%; top: 5%; height: 44%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), transparent 70%);
  pointer-events: none; mix-blend-mode: screen; opacity: 0.85; z-index: 4;
}
.xstem {
  position: absolute; inset: 0; margin: auto;
  width: 84%; height: 84%;
  pointer-events: none; z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.xarm {
  position: absolute;
  background: linear-gradient(var(--ang, 180deg),
    color-mix(in oklab, var(--crystal) 30%, #fff 52%) 0%,
    color-mix(in oklab, var(--crystal) 55%, #fff 30%) 40%,
    color-mix(in oklab, var(--crystal) 80%, #000 26%) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),
    inset 0 2px 5px rgba(0,0,0,0.28),
    inset 0 -2px 4px rgba(0,0,0,0.3);
}
.xarm-t, .xarm-b { left: 50%; width: 30%; transform: translateX(-50%); }
.xarm-l, .xarm-r { top: 50%; height: 30%; transform: translateY(-50%); }
.xarm-t { top: 0; height: 50%; border-radius: 8px 8px 2px 2px; --ang: 180deg;
  clip-path: polygon(26% 0, 74% 0, 88% 100%, 12% 100%); }
.xarm-b { bottom: 0; height: 50%; border-radius: 2px 2px 8px 8px; --ang: 0deg;
  clip-path: polygon(12% 0, 88% 0, 74% 100%, 26% 100%); }
.xarm-l { left: 0; width: 50%; border-radius: 8px 2px 2px 8px; --ang: 90deg;
  clip-path: polygon(0 26%, 100% 12%, 100% 88%, 0 74%); }
.xarm-r { right: 0; width: 50%; border-radius: 2px 8px 8px 2px; --ang: 270deg;
  clip-path: polygon(0 12%, 100% 26%, 100% 74%, 0 88%); }
.xhub { display: none; }
.kcap .kl {
  position: relative; z-index: 5;
  font-family: var(--font-hud); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-900, #06292C);
  text-shadow: 0 1px 1px rgba(255,255,255,0.55);
}
.kcap-crystal .kl {
  z-index: 6;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 7px color-mix(in oklab, var(--glow) 85%, transparent);
}
.kcap:hover { filter: saturate(0.95) brightness(0.97); }
.kcap[data-active="1"] {
  filter: saturate(1.18) brightness(1.12);
  transform: translateX(-3px);
}
.kcap[data-active="1"] .kcap-base {
  box-shadow:
    0 14px 26px -6px rgba(0,0,0,0.7),
    0 0 34px 2px var(--glow),
    0 2px 0 rgba(0,0,0,0.4);
}
.kcap[data-active="1"] .kcap-base::after { opacity: 0.85; box-shadow: 0 0 0 1px var(--glow), 0 0 18px var(--glow); }
.kcap[data-active="1"] .kcap-gloss { opacity: 1; }
.kcap:active, .kcap.press { transform: translateY(2px); }
.kcap.press .kcap-base {
  box-shadow: 0 6px 12px -4px rgba(0,0,0,0.8), 0 0 30px 1px var(--glow);
}
.tone-white {
  --top1: #ffffff; --top2: #e8efee; --top3: #bccbca;
  --side: #98a7a6; --sideLo: #6c7a79;
  --glow: rgba(214,236,236,0.95);
}
.tone-green {
  --top1: #8fd9c4; --top2: #3BA68C; --top3: #2c8470;
  --side: #236655; --sideLo: #164238;
  --glow: rgba(59,166,140,0.9);
}
.tone-blue {
  --crystal: rgba(40,176,222,0.62);
  --side: #1c7fa3; --sideLo: #0f5571;
  --glow: rgba(54,196,238,0.92);
}
.tone-teal {
  --crystal: rgba(15,110,118,0.66);
  --side: #0c5158; --sideLo: #06343a;
  --glow: rgba(34,150,164,0.9);
}
@media (prefers-reduced-motion: reduce) {
  .keynav, .kcap, .kcap-base, .kcap-base::after, .kcap-gloss { transition: none; }
}

/* ============================================================
   PIXEL-GLITCH CLUSTER DECORATIONS — tears in the screen
   ============================================================ */
.pglitch-layer { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; }
.pgcluster { position: absolute; transform: translate(-50%, -50%); }
.pgvoid { position: absolute; display: block; border-radius: 2px;
  background: radial-gradient(circle at 50% 46%, #0B5159 0%, #0B5159 44%, #0d626b 62%, rgba(59,166,140,0.6) 84%, rgba(40,150,184,0.18) 100%);
  box-shadow: inset 0 0 4px 1px rgba(8,52,58,0.85), 0 0 10px 2px rgba(40,150,184,0.42); }
.pgpx { position: absolute; display: block; border-radius: 1px; opacity: var(--pgop, 1); }
.pgpx.flick { animation: pgflick var(--pgdur, 3s) linear var(--pgdelay, 0s) infinite; }
@keyframes pgflick {
  0%, 85% { opacity: var(--pgop, 1); }
  86% { opacity: 0; }
  91% { opacity: 0; }
  92%, 100% { opacity: var(--pgop, 1); }
}
body[data-motion="0"] .pgpx.flick { animation: none; }
@media (max-width: 1180px) { .pglitch-layer { display: none; } }
@media (prefers-reduced-motion: reduce) { .pgpx.flick { animation: none; } }

/* ============================================================
   VECTOR-PAD — interactive tracking overlay (About headshot)
   palette: --vp-blue #2896B8 | --vp-teal #0B5159
   ============================================================ */
.vpad {
  position: absolute; inset: 0; z-index: 6; cursor: crosshair;
  container-type: size;
  overflow: hidden; border-radius: 14px;
}
.vpad-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, color-mix(in oklab, var(--vp-blue) 28%, transparent) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--vp-blue) 28%, transparent) 0 1px, transparent 1px 34px);
  opacity: 0.16; transition: opacity 0.3s var(--ease-out);
}
.vpad.is-hover .vpad-grid { opacity: 0.42; }
/* spring crosshair lines */
.vpad-vline, .vpad-hline {
  position: absolute; pointer-events: none; opacity: 0;
  background: color-mix(in oklab, var(--vp-blue) 70%, transparent);
  box-shadow: 0 0 8px color-mix(in oklab, var(--vp-blue) 60%, transparent);
  transition: opacity 0.25s var(--ease-out);
}
.vpad-vline { top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.vpad-hline { left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.vpad.is-hover .vpad-vline, .vpad.is-hover .vpad-hline { opacity: 0.9; }
/* reticle — springs to cursor; scale 0 at rest, 1 hover, 0.9 press */
.vpad-reticle {
  position: absolute; top: 0; left: 0; width: 76px; height: 76px;
  pointer-events: none; transform: translate(50cqw,50cqh) translate(-50%,-50%);
}
.vpad-tilt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.vpad-reticle > .vpad-tilt { transition: none; }
.vpad-reticle { --rscale: 0; }
.vpad.is-hover .vpad-reticle { --rscale: 1; }
.vpad.is-press .vpad-reticle { --rscale: 0.9; }
.vpad-dot {
  position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%;
  transform: translate(-50%,-50%) scale(var(--rscale));
  background: var(--vp-blue); box-shadow: 0 0 10px var(--vp-blue);
  transition: transform 0.2s var(--ease-out), background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.vpad.is-press .vpad-dot { background: var(--vp-teal); box-shadow: 0 0 10px var(--vp-teal); }
/* outer box — grows 0 → 50px hover → 30px press, border + glow blue→teal */
.vpad-box {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; opacity: 0; border-radius: 3px;
  transform: translate(-50%,-50%) scale(var(--rscale));
  border: 1px solid var(--vp-blue);
  box-shadow: 0 0 0 0 transparent;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.vpad.is-hover .vpad-box {
  width: 50px; height: 50px; opacity: 1;
  box-shadow: 0 0 20px 6px color-mix(in oklab, var(--vp-blue) 40%, transparent);
}
.vpad.is-press .vpad-box {
  width: 30px; height: 30px; opacity: 1;
  border-color: var(--vp-teal);
  box-shadow: 0 0 20px 6px color-mix(in oklab, var(--vp-teal) 60%, transparent);
}
/* corner accents inside the box */
.vpad-corner {
  position: absolute; width: 6px; height: 6px; pointer-events: none;
  border-color: var(--vp-blue); transition: border-color 0.3s var(--ease-out);
}
.vpad.is-press .vpad-corner { border-color: var(--vp-teal); }
.vpad-corner.tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.vpad-corner.tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.vpad-corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.vpad-corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
/* coordinate readouts */
.vpad-readout {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  font-family: var(--font-hud); pointer-events: none; opacity: 0.32;
  transition: opacity 0.25s var(--ease-out);
  padding: 5px 8px; border-radius: 6px;
  background: rgba(3,16,15,0.42); border: 1px solid color-mix(in oklab, var(--vp-blue) 30%, transparent);
  backdrop-filter: blur(3px);
}
.vpad.is-hover .vpad-readout { opacity: 0.96; }
.vpad-rx { top: 12px; right: 12px; }
.vpad-ry { top: 12px; left: 12px; }
.vpad-rk { font-size: 0.5rem; letter-spacing: 0.18em; color: color-mix(in oklab, var(--vp-blue) 80%, #fff 20%); }
.vpad-rv { font-size: 0.82rem; letter-spacing: 0.06em; color: #eafcfb; }
/* TARGET_ACQUIRED label */
.vpad-target {
  position: absolute; bottom: 12px; right: 14px;
  font-family: var(--font-hud); font-size: 0.6rem; letter-spacing: 0.22em;
  color: color-mix(in oklab, var(--vp-teal) 50%, #eafcfb 50%);
  padding: 4px 8px; border-radius: 5px;
  background: color-mix(in oklab, var(--vp-teal) 30%, rgba(3,16,15,0.6));
  border: 1px solid color-mix(in oklab, var(--vp-teal) 60%, transparent);
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.vpad.is-press .vpad-target { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTON PIXEL-SHATTER
   ============================================================ */
.shard {
  position: fixed; z-index: 11000; pointer-events: none;
  border-radius: 1px;
  animation: shardFly var(--sd, 620ms) var(--ease-out) forwards;
}
@keyframes shardFly {
  0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(0.3); }
}

/* ---------------- case skill pills (static row) ---------------- */
.skill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; }
.skill-pill {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
  background: var(--celadon); color: #06292C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 6px rgba(0,0,0,0.3);
}

/* ============================================================
   DS component dark overrides
   ============================================================ */
.twk-panel { color-scheme: dark; }

/* ============================================================
   PIXEL CURSOR TRAIL
   ============================================================ */
.px-trail-dot {
  position: fixed;
  z-index: 8700;
  pointer-events: none;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(165,207,161,0.35);
  animation: pxTrail var(--life, 420ms) var(--ease-out) forwards;
}
@keyframes pxTrail {
  0%   { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.32); }
}

/* ============================================================
   CASE WINDOWS — horizontal slow-scroll marquee
   ============================================================ */
.case-rail { position: relative; }
.case-viewport { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.case-shift { transition: transform 0.55s var(--ease-out); }
.case-flow { display: flex; width: max-content; animation: caseScroll 60s linear infinite; }
.case-flow:hover { animation-play-state: paused; }
@keyframes caseScroll { from { transform: translateX(-33.333%); } to { transform: translateX(-66.666%); } }
body[data-motion="0"] .case-flow { animation: none; transform: translateX(-33.333%); }
.case-track { display: flex; gap: 38px; padding-right: 38px; align-items: stretch; flex: 0 0 auto; }
.case-cell { flex: 0 0 clamp(420px, 46vw, 600px); width: clamp(420px, 46vw, 600px); display: flex; }
.case-cell > .win { width: 100%; }
.case-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(8,20,22,0.62); border: 1px solid var(--hairline-2);
  backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: var(--neon-celadon); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.8);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.18s var(--ease-out); }
.case-arrow:hover { background: rgba(40,150,184,0.16); border-color: var(--neon-blue); }
.case-arrow:active { transform: translateY(-50%) scale(0.92); }
.case-arrow [data-lucide] { width: 24px; height: 24px; }
.case-arrow-l { left: clamp(6px, 2vw, 26px); }
.case-arrow-r { right: clamp(6px, 2vw, 26px); }
@media (max-width: 560px) { .case-arrow { width: 44px; height: 44px; } }
