/* ==========================================================================
   PRISM.OS v6 — ULTRA-FUTURISTIC IRIDESCENT NOIR
   4 Live Spectrum Worlds • WebGL Chromatic Shockwave Aurora • Hyperspace Warp
   3D Gyroscopic Quantum Core • Orbital Neural Laser Reactor • Holo-Foil Cards
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root,
[data-theme="prism"] {
  --void: #030306;
  --ink: #07070d;
  --glass: rgba(12, 12, 22, 0.55);
  --glass-strong: rgba(10, 10, 18, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --cyan: #00f0ff;
  --violet: #7000ff;
  --magenta: #ff2a85;
  --lime: #d4ff3a;
  --amber: #ffb547;

  --text: #f4f7fa;
  --muted: #9aa6b8;
  --dim: #6c778a;

  --spectrum: linear-gradient(100deg, #00f0ff 0%, #7a5cff 24%, #ff2a85 50%, #ffb547 72%, #d4ff3a 86%, #00f0ff 100%);
  --spectrum-conic: conic-gradient(from var(--angle), #00f0ff, #7000ff, #ff2a85, #ffb547, #d4ff3a, #00f0ff);

  --f-display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --f-sans: "Space Grotesk", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --hud-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* SOLARIS — Liquid Gold / Molten Plasma / Obsidian */
[data-theme="solaris"] {
  --cyan: #ffd166;
  --violet: #ff5e3a;
  --magenta: #ff2a6d;
  --lime: #fff3b0;
  --amber: #ff9f1c;
  --spectrum: linear-gradient(100deg, #ffd166 0%, #fff3b0 25%, #ff7b00 55%, #ff2a6d 80%, #ffd166 100%);
  --spectrum-conic: conic-gradient(from var(--angle), #fff3b0, #ffd166, #ff7b00, #ff2a6d, #ff5e3a, #fff3b0);
}

/* CRYO — Arctic Glass / Electric Cobalt / Holographic Mint */
[data-theme="cryo"] {
  --cyan: #5ce1ff;
  --violet: #2563eb;
  --magenta: #00f5d4;
  --lime: #a8ffef;
  --amber: #60a5fa;
  --spectrum: linear-gradient(100deg, #5ce1ff 0%, #a8ffef 25%, #3b82f6 58%, #00f5d4 82%, #5ce1ff 100%);
  --spectrum-conic: conic-gradient(from var(--angle), #a8ffef, #5ce1ff, #2563eb, #00f5d4, #60a5fa, #a8ffef);
}

/* HYPER — Ultraviolet / Neon Orchid / Cyber Crimson */
[data-theme="hyper"] {
  --cyan: #ff3cac;
  --violet: #784ba0;
  --magenta: #2b86c5;
  --lime: #ff99e5;
  --amber: #ff2a85;
  --spectrum: linear-gradient(100deg, #ff3cac 0%, #b537f2 30%, #2b86c5 62%, #ff99e5 84%, #ff3cac 100%);
  --spectrum-conic: conic-gradient(from var(--angle), #ff3cac, #b537f2, #2b86c5, #ff2a85, #ff99e5, #ff3cac);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--hud-h) + 20px);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--void);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 9999;
  background: var(--lime);
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
  font: 700 0.8rem var(--f-mono);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   LIVING SPECTRAL BACKGROUND + HYPERSPACE WARP CANVAS
   ========================================================================== */

#aurora,
#warp-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#aurora {
  z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(112, 0, 255, 0.35), transparent 70%),
    radial-gradient(50% 40% at 10% 80%, rgba(0, 240, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 70% 90%, rgba(255, 42, 133, 0.2), transparent 70%),
    var(--void);
}

#warp-canvas {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.78;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 32%, rgba(3, 3, 6, 0.78) 100%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 100% 4px;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }

  20% {
    transform: translate3d(-4%, 3%, 0);
  }

  40% {
    transform: translate3d(3%, -5%, 0);
  }

  60% {
    transform: translate3d(-6%, -2%, 0);
  }

  80% {
    transform: translate3d(5%, 4%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

main,
.hud,
.footer,
.tldr {
  position: relative;
  z-index: 2;
  max-width: 100vw;
}

main {
  overflow-x: clip;
}

/* ==========================================================================
   BOOT LOADER (MOBILE-SAFE)
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.loader__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--void);
  transition: transform 1.05s var(--ease-in-out);
}

.loader__panel--top {
  top: 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.loader__panel--bottom {
  bottom: 0;
}

.loader__content {
  position: relative;
  z-index: 2;
  width: min(500px, calc(100vw - 40px));
  max-width: 100%;
  font-family: var(--f-mono);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}

.loader__log {
  height: 92px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.loader__log div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loader__log div::before {
  content: "› ";
  color: var(--cyan);
}

.loader__count {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 15vw, 8.5rem);
  line-height: 0.9;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.loader__count sup {
  font-size: 0.32em;
  vertical-align: top;
  margin-left: 4px;
}

.loader__bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0 12px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.62rem;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.loader.is-done .loader__content {
  opacity: 0;
  transform: scale(0.96);
}

.loader.is-done .loader__panel--top {
  transform: translate3d(0, -101%, 0);
}

.loader.is-done .loader__panel--bottom {
  transform: translate3d(0, 101%, 0);
}

.loader.is-gone {
  display: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
}

.cursor {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring span {
  font: 700 0.6rem var(--f-mono);
  letter-spacing: 0.1em;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.has-cursor .cursor,
.has-cursor .cursor-ring {
  opacity: 1;
}

.cursor-ring.is-hover {
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  background: #fff;
  border-color: #fff;
}

.cursor-ring.is-hover span {
  opacity: 1;
}

.cursor-ring.is-down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

@media (hover: hover) and (pointer: fine) {

  .has-cursor,
  .has-cursor a,
  .has-cursor button,
  .has-cursor [role="button"] {
    cursor: none;
  }

  .has-cursor input,
  .has-cursor textarea {
    cursor: text;
  }
}

/* ==========================================================================
   SHARED ATOMS
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.7rem var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip--ghost {
  color: var(--muted);
}

.chip--lime {
  color: var(--lime);
  border-color: rgba(212, 255, 58, 0.35);
  background: rgba(212, 255, 58, 0.06);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font: 500 0.74rem var(--f-mono);
  letter-spacing: 0.2em;
  color: var(--muted);
}

.eyebrow__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0;
  position: relative;
}

.eyebrow__n::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: var(--spectrum-conic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 4s linear infinite;
}

@keyframes spin-angle {
  to {
    --angle: 360deg;
  }
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.sec-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.sec-title--xl {
  font-size: clamp(2.8rem, 7.6vw, 7rem);
}

.sec-title em,
.contact__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  padding-right: 0.08em;
}

@keyframes shimmer {
  to {
    background-position: 200% 0;
  }
}

.sec-title em .w,
.contact__title em .w {
  padding-right: 0.12em;
  margin-right: -0.06em;
}

.sec-title em .w>span,
.contact__title em .w>span {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.sec-sub {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.98rem;
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w>span {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(6deg);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.is-in .w>span,
[data-split].is-in .w>span {
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.84rem var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.74rem;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px) rotate(-10deg);
}

.btn--spectrum {
  color: #050508;
  background: var(--spectrum);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
  box-shadow: 0 10px 40px -10px var(--magenta), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.btn--spectrum:hover {
  box-shadow: 0 16px 60px -10px var(--cyan), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.btn--solid {
  background: var(--text);
  color: #050508;
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: translate3d(0, 101%, 0);
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}

.btn--ghost:hover {
  color: #050508;
  border-color: var(--text);
}

.btn--ghost:hover::before {
  transform: none;
}

.link {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font: 500 0.74rem var(--f-mono);
  letter-spacing: 0.1em;
  padding: 6px 0;
}

.link:hover {
  color: var(--text);
}

/* ==========================================================================
   HUD HEADER + SPECTRUM & AUDIO PILLS
   ========================================================================== */

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hud-h);
  z-index: 100;
  transition: transform 0.5s var(--ease), background-color 0.4s ease;
}

.hud.is-scrolled {
  background: rgba(3, 3, 6, 0.65);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.hud.is-hidden {
  transform: translate3d(0, -100%, 0);
}

.hud__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
}

.hud__inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__prism {
  width: 24px;
  height: 24px;
  background: var(--spectrum-conic);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: spin-angle 5s linear infinite;
}

.logo__text {
  font: 700 0.92rem var(--f-display);
  letter-spacing: 0.02em;
}

.logo__text em {
  font: 400 0.68rem var(--f-mono);
  color: var(--muted);
  font-style: normal;
  margin-left: 5px;
  letter-spacing: 0.08em;
}

.hud__nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.hud__nav a {
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font: 500 0.76rem var(--f-sans);
  color: var(--muted);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.hud__nav a:hover {
  color: var(--text);
}

.hud__nav a.is-active {
  color: #050508;
  background: var(--text);
}

.hud__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.66rem var(--f-mono);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.hud__status-text {
  color: var(--lime);
}

.hud__clock {
  padding-left: 8px;
  border-left: 1px solid var(--line-2);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(212, 255, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 255, 58, 0);
  }
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  cursor: pointer;
  font: 600 0.66rem var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hud-pill:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 16px -4px var(--cyan);
}

.hud-pill__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--spectrum-conic);
  animation: spin-angle 4s linear infinite;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--muted);
  transition: background-color 0.25s ease;
}

.hud-pill--audio[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hud-pill--audio[aria-pressed="true"] .eq i {
  background: var(--cyan);
  animation: eq-bounce 0.7s ease-in-out infinite alternate;
}

.hud-pill--audio[aria-pressed="true"] .eq i:nth-child(2) {
  animation-delay: 0.15s;
}

.hud-pill--audio[aria-pressed="true"] .eq i:nth-child(3) {
  animation-delay: 0.3s;
}

.hud-pill--audio[aria-pressed="true"] .eq i:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes eq-bounce {
  from {
    height: 3px;
  }

  to {
    height: 11px;
  }
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 7px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  cursor: pointer;
  font: 600 0.68rem var(--f-mono);
  letter-spacing: 0.08em;
}

.switch i {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.3s ease;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.4s var(--ease), background 0.3s ease;
}

.switch[aria-checked="true"] i {
  background: var(--lime);
}

.switch[aria-checked="true"] i::after {
  transform: translateX(12px);
  background: #050508;
}

.kbd-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  cursor: pointer;
  font: 600 0.7rem var(--f-mono);
}

.kbd-btn:hover,
.switch:hover {
  border-color: var(--text);
}

/* TL;DR */
.tldr {
  position: fixed;
  top: var(--hud-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 16px 0;
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 255, 58, 0.25);
  animation: drop 0.5s var(--ease);
}

@keyframes drop {
  from {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
}

.tldr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tldr p {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 0.95rem;
}

.tldr__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.tldr-mode .hide-tldr,
body.tldr-mode .marquee,
body.tldr-mode .manifesto,
body.tldr-mode .scroll-cue,
body.tldr-mode .xp-card__list {
  display: none !important;
}

body.tldr-mode .hero {
  min-height: auto;
  padding-top: calc(var(--hud-h) + 150px);
}

body.tldr-mode .section {
  padding: 70px 0;
}

body.tldr-mode .xp-card {
  position: relative;
  top: auto !important;
}

/* ==========================================================================
   HERO + QUANTUM GYROSCOPIC CORE + LIVE OSCILLOSCOPE
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--hud-h) + 36px) 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero__title {
  margin: 0;
  font-family: var(--f-display);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-size: clamp(2.5rem, 8vw, 7.4rem);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.04em;
  white-space: nowrap;
}

.hero__title {
  margin: 0;
  font-family: var(--f-display);
  line-height: 0.87;
  letter-spacing: -0.05em;
  font-size: clamp(2.8rem, 10.2vw, 9.4rem);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.04em;
}

.char {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotate(12deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 42ms + 100ms);
}

.is-ready .char {
  transform: none;
}

.char__i {
  --p: 0;
  display: inline-block;
  font-variation-settings: "wght" calc(540 + 240 * var(--p));
  font-weight: calc(540 + 240 * var(--p));
  transform: translate3d(0, calc(var(--p) * -0.06em), 0);
  transition: color 0.25s ease;
  will-change: transform;
}

.hero__line--solid .char__i {
  color: var(--text);
}

.hero__line--outline .char__i {
  color: color-mix(in srgb, var(--cyan) calc(var(--p) * 100%), transparent);
  -webkit-text-stroke: 1.5px rgba(244, 247, 250, 0.78);
  text-shadow: 0 0 calc(var(--p) * 38px) var(--magenta);
}

.hero__line--outline .char:nth-child(3n+1) .char__i {
  color: color-mix(in srgb, var(--magenta) calc(var(--p) * 100%), transparent);
}

.hero__line--outline .char:nth-child(3n+2) .char__i {
  color: color-mix(in srgb, var(--lime) calc(var(--p) * 100%), transparent);
}

.hero__role {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(18px, 3vw, 28px) 0 16px;
  font-family: var(--f-mono);
  font-size: clamp(0.88rem, 1.5vw, 1.12rem);
}

.hero__role-prefix {
  color: var(--dim);
}

.hero__role-word {
  color: var(--cyan);
  font-weight: 500;
}

.caret {
  width: 10px;
  height: 1.1em;
  background: var(--cyan);
  align-self: center;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__tagline {
  max-width: 560px;
  margin: 0 0 clamp(24px, 3.6vw, 36px);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: var(--muted);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Live Oscilloscope Strip */
.hero-scope {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-scope__label,
.hero-scope__fps {
  font: 500 0.64rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--dim);
}

.hero-scope__fps {
  color: var(--lime);
}

#scope-canvas {
  display: block;
  width: 180px;
  height: 24px;
}

.hero .fade-up {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 600ms);
}

.is-ready .hero .fade-up {
  opacity: 1;
  transform: none;
}

/* 3D Gyroscopic Quantum Core */
.hero__visual {
  display: grid;
  place-items: center;
  perspective: 1300px;
}

.orb-stage {
  position: relative;
  width: min(460px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  cursor: pointer;
}

.orb-aura {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: var(--spectrum-conic);
  filter: blur(48px);
  opacity: 0.22;
  animation: spin-angle 9s linear infinite;
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.orb-stage:hover .orb-aura {
  opacity: 0.42;
  transform: scale(1.08);
}

.orb {
  position: absolute;
  inset: 6%;
  transform-style: preserve-3d;
  animation: orb-spin 26s linear infinite;
  transition: transform 0.6s var(--ease);
}

.orb i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 14%, transparent) inset;
  transition: border-color 0.4s ease;
}

.orb i:nth-child(3n+2) {
  border-color: color-mix(in srgb, var(--violet) 60%, transparent);
}

.orb i:nth-child(3n) {
  border-color: color-mix(in srgb, var(--magenta) 52%, transparent);
}

.orb i.lat {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--lime) 32%, transparent);
}

@keyframes orb-spin {
  from {
    transform: rotateX(68deg) rotateZ(0deg) rotateY(0deg);
  }

  to {
    transform: rotateX(68deg) rotateZ(360deg) rotateY(360deg);
  }
}

/* Orbiting Energy Satellites */
.orb-satellites {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: -5px 0 0 -5px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), 0 0 32px var(--cyan);
}

.sat--1 {
  animation: sat-1 9s linear infinite;
}

.sat--2 {
  width: 8px;
  height: 8px;
  background: var(--magenta);
  box-shadow: 0 0 16px var(--magenta);
  animation: sat-2 13s linear infinite reverse;
}

.sat--3 {
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  animation: sat-3 7s linear infinite;
}

@keyframes sat-1 {
  from {
    transform: rotateZ(0deg) translateX(46%) rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg) translateX(46%) rotateZ(-360deg);
  }
}

@keyframes sat-2 {
  from {
    transform: rotateX(60deg) rotateZ(0deg) translateX(52%);
  }

  to {
    transform: rotateX(60deg) rotateZ(360deg) translateX(52%);
  }
}

@keyframes sat-3 {
  from {
    transform: rotateY(55deg) rotateZ(0deg) translateX(42%);
  }

  to {
    transform: rotateY(55deg) rotateZ(360deg) translateX(42%);
  }
}

.tesseract-canvas {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(-20px);
}

/* 3D / 4D Multi-Plane Holographic Portrait Stack */
.holo-4d {
  --px: 0px;
  --py: 0px;
  position: relative;
  z-index: 3;
  width: 74%;
  height: 78%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-style: preserve-3d;
  animation: holo-float 5.2s ease-in-out infinite;
  transition: transform 0.6s var(--ease);
}

@keyframes holo-float {
  0%, 100% {
    transform: translate3d(0, 0, 24px);
  }
  50% {
    transform: translate3d(0, -10px, 34px);
  }
}

.orb-stage:hover .holo-4d {
  transform: translate3d(0, -6px, 46px) scale(1.04);
}

.orb-stage.is-pulsing .holo-4d {
  transform: translate3d(0, -12px, 72px) scale(1.1);
}

.holo-4d__main-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateZ(26px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  overflow: hidden;
}

.holo-4d__main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter:
    contrast(1.04)
    saturate(1.02)
    drop-shadow(-8px 0 20px color-mix(in srgb, var(--cyan) 60%, transparent))
    drop-shadow(8px 0 20px color-mix(in srgb, var(--magenta) 56%, transparent))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8));
  transition: filter 0.4s ease;
}

.orb-stage.is-pulsing .holo-4d__main {
  filter:
    contrast(1.1)
    saturate(1.12)
    drop-shadow(-14px 0 32px var(--cyan))
    drop-shadow(14px 0 32px var(--magenta));
}

.holo-4d__echo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  transition: transform 0.22s ease-out, opacity 0.4s ease;
}

.holo-4d__echo--cyan {
  opacity: 0.36;
  mix-blend-mode: screen;
  filter: brightness(0.95) sepia(1) hue-rotate(150deg) saturate(5) blur(1px);
  transform: translate3d(calc(var(--px) * -1.5 - 12px), calc(var(--py) * -1.1), -28px) scale(1.02);
}

.holo-4d__echo--magenta {
  opacity: 0.32;
  mix-blend-mode: screen;
  filter: brightness(0.9) sepia(1) hue-rotate(285deg) saturate(5) blur(1px);
  transform: translate3d(calc(var(--px) * 1.5 + 12px), calc(var(--py) * 1.1), -12px) scale(1.01);
}

.orb-stage:hover .holo-4d__echo--cyan {
  opacity: 0.56;
}

.orb-stage:hover .holo-4d__echo--magenta {
  opacity: 0.5;
}

.holo-4d__scan {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 14%;
  top: -22%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cyan) 50%, rgba(255, 255, 255, 0.55)) 0%, transparent 72%);
  mix-blend-mode: screen;
  animation: core-scan 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes core-scan {
  0% {
    top: -22%;
  }
  100% {
    top: 118%;
  }
}

.holo-4d__pedestal {
  position: absolute;
  bottom: -10px;
  left: 8%;
  right: 8%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cyan) 70%, transparent) 0%, color-mix(in srgb, var(--violet) 38%, transparent) 55%, transparent 78%);
  filter: blur(6px);
  transform: rotateX(75deg) translateZ(-6px);
  animation: pedestal-pulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pedestal-pulse {
  from {
    opacity: 0.55;
    transform: rotateX(75deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotateX(75deg) scale(1.1);
  }
}

.orb-core.has-photo .orb-core__initials {
  display: none;
}

@keyframes breathe {
  50% {
    transform: scale(1.04);
  }
}

.orb-halo {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--magenta), transparent 65%);
  opacity: 0.35;
  filter: blur(32px);
  z-index: -1;
  animation: breathe 8s ease-in-out infinite reverse;
}

.orb-tag {
  position: absolute;
  font: 500 0.62rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(5, 5, 10, 0.68);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: transform 0.5s var(--ease);
}

.orb-stage:hover .orb-tag {
  transform: translateZ(26px);
}

.orb-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 7px;
  vertical-align: middle;
}

.orb-tag--1 {
  top: 6%;
  left: 0;
}

.orb-tag--2 {
  bottom: 12%;
  right: 0;
}

.orb-tag--2::before {
  background: var(--magenta);
}

.orb-tag--3 {
  top: 44%;
  right: -4%;
}

.orb-tag--3::before {
  background: var(--lime);
}

.orb-tag--4 {
  bottom: 2%;
  left: 8%;
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--cyan) 40%, transparent);
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 5.5vw, 64px);
  border-top: 1px solid var(--line-2);
}

.metric {
  padding: 22px 20px 0 0;
  position: relative;
}

.metric+.metric {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.metric__val {
  display: block;
  font: 700 clamp(2rem, 4.4vw, 3.6rem) var(--f-display);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric__val sup {
  font-size: 0.45em;
  vertical-align: top;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 2px;
}

.metric__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric__code {
  position: absolute;
  top: 22px;
  right: 12px;
  font: 500 0.6rem var(--f-mono);
  color: var(--dim);
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 500 0.62rem var(--f-mono);
  letter-spacing: 0.3em;
  color: var(--dim);
}

.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: drip 1.8s var(--ease-in-out) infinite;
}

@keyframes drip {
  to {
    top: 110%;
  }
}

/* ==========================================================================
   KINETIC VELOCITY MARQUEE
   ========================================================================== */

.marquee {
  position: relative;
  z-index: 2;
  padding: 50px 0;
  overflow: hidden;
}

.marquee__row {
  transform: rotate(-2.4deg) skewX(var(--skew, 0deg));
  background: var(--text);
  color: #050508;
  padding: 16px 0;
  white-space: nowrap;
  overflow: hidden;
  will-change: transform;
}

.marquee__row--alt {
  transform: rotate(1.8deg) translateY(-14px) skewX(calc(var(--skew, 0deg) * -1));
  background: transparent;
  border-block: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.marquee__track {
  display: inline-flex;
  will-change: transform;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: 700 clamp(1.35rem, 3vw, 2.4rem) var(--f-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.marquee__item .star {
  font-size: 0.7em;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee__row--alt .marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 250, 0.6);
}

.marquee__row:not(.marquee__row--alt) .marquee__item .star {
  color: var(--magenta);
  background: none;
}

/* ==========================================================================
   SECTIONS + MANIFESTO
   ========================================================================== */

.section {
  padding: clamp(86px, 12vw, 160px) 0;
  position: relative;
}

.manifesto__text {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.mw {
  color: rgba(244, 247, 250, 0.13);
  transition: color 0.4s ease;
}

.mw.is-lit {
  color: var(--text);
}

.mw.hl.is-lit {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   ORBITAL SKILL REACTOR + NEURAL LASER BEAMS
   ========================================================================== */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font: 500 0.78rem var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--text);
  color: #050508;
}

.matrix {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.orbit {
  --size: min(600px, 86vw);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 0 auto;
}

.orbit:hover .ring,
.orbit:hover .node__inner,
.orbit.is-paused .ring,
.orbit.is-paused .node__inner {
  animation-play-state: paused;
}

.orbit__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#beam-line {
  stroke: url(#beam-grad);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: beam-flow 0.8s linear infinite;
}

#beam-pulse {
  fill: var(--lime);
  opacity: 0;
  filter: drop-shadow(0 0 10px var(--lime));
  transition: opacity 0.3s ease;
}

.orbit.has-beam #beam-line,
.orbit.has-beam #beam-pulse {
  opacity: 1;
}

@keyframes beam-flow {
  to {
    stroke-dashoffset: -24;
  }
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: calc(var(--size) * var(--rf));
  height: calc(var(--size) * var(--rf));
  margin-left: calc(var(--size) * var(--rf) / -2);
  margin-top: calc(var(--size) * var(--rf) / -2);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: ring-spin var(--dur) linear infinite;
  animation-direction: var(--dir, normal);
  transition: opacity 0.5s ease, border-color 0.5s ease;
}

.ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--rc);
  filter: drop-shadow(0 0 6px var(--rc));
}

.ring.is-dim {
  opacity: 0.18;
}

.ring.is-focus {
  border-color: rgba(255, 255, 255, 0.28);
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  transform: rotate(var(--a)) translateX(calc(var(--size) * var(--rf) / 2)) rotate(calc(var(--a) * -1)) translate(-50%, -50%);
}

.node__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  font: 600 0.66rem var(--f-mono);
  letter-spacing: 0.1em;
  background: rgba(8, 8, 16, 0.88);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  animation: ring-spin var(--dur) linear infinite;
  animation-direction: var(--cdir, reverse);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.node__inner::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc);
  box-shadow: 0 0 8px var(--rc);
}

.node__inner:hover,
.node__inner.is-active {
  background: var(--text);
  color: #050508;
  border-color: var(--text);
  box-shadow: 0 0 30px var(--rc);
}

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 24%, transparent), rgba(5, 5, 10, 0.9) 70%);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 60px color-mix(in srgb, var(--violet) 30%, transparent);
}

.orbit__gauge {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 3;
}

.gauge-fg {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.9s var(--ease);
}

.orbit__readout {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14%;
}

.orbit__cat {
  font: 500 0.58rem var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.orbit__val {
  font: 800 clamp(1.6rem, 4.6vw, 3rem) var(--f-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.orbit__name {
  font-size: clamp(0.64rem, 1.15vw, 0.8rem);
  color: var(--muted);
  line-height: 1.3;
}

.skill-list {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left 0.4s var(--ease);
}

.skill-row:hover,
.skill-row.is-active {
  padding-left: 12px;
}

.skill-row__name {
  font-weight: 500;
  font-size: 0.98rem;
}

.skill-row__pct {
  font: 500 0.74rem var(--f-mono);
  color: var(--muted);
}

.skill-row__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-row__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}

.skill-list.is-in .skill-row__bar span {
  transform: scaleX(var(--v));
}

.skill-row {
  animation: row-in 0.6s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }
}

/* ==========================================================================
   EXPERIENCE — STACKING HOLOGRAPHIC CARDS
   ========================================================================== */

.xp {
  position: relative;
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: clamp(20px, 3vw, 44px);
}

.xp__rail {
  position: relative;
  background: var(--line);
  border-radius: 2px;
}

.xp__rail span {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 14px var(--cyan);
}

.xp__stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 6vh;
}

.xp-card {
  --p: 0;
  position: sticky;
  top: calc(var(--hud-h) + 28px + var(--i) * 22px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(20, 18, 38, 0.92), rgba(8, 8, 16, 0.95));
  border: 1px solid var(--line-2);
  transform: scale(calc(1 - var(--p) * 0.06));
  transform-origin: top center;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.65);
  will-change: transform;
}

.xp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  z-index: 2;
  pointer-events: none;
  background: var(--spectrum-conic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 8s linear infinite;
  opacity: 0.72;
}

.xp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(var(--p) * 0.55);
  pointer-events: none;
  z-index: 3;
}

.xp-card__glow {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -15%;
  top: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hue), transparent 65%);
  opacity: 0.35;
  filter: blur(40px);
  z-index: -1;
}

.xp-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 4vw, 52px);
}

.xp-card__idx {
  font: 800 clamp(3.6rem, 9vw, 7.6rem) var(--f-display);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
}

.xp-card__period {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 500 0.72rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--hue);
}

.xp-card__status {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.6rem;
}

.xp-card__role {
  margin: 12px 0 6px;
  font: 700 clamp(1.45rem, 2.7vw, 2.25rem) var(--f-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.xp-card__company {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  color: var(--muted);
}

.xp-card__impacts {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.impact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font: 600 0.84rem var(--f-mono);
}

.impact::before {
  content: "▲";
  font-size: 0.6rem;
  color: var(--hue);
}

.xp-card__summary {
  margin: 0 0 18px;
  font-size: 1.04rem;
  color: var(--text);
  line-height: 1.5;
}

.xp-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.xp-card__list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.xp-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background: var(--hue);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font: 500 0.68rem var(--f-mono);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ==========================================================================
   PROJECTS — HORIZONTAL PINNED GALLERY + HOLOGRAPHIC FOIL
   ========================================================================== */

.projects {
  position: relative;
  z-index: 2;
}

.projects__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects__track {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 36px);
  padding: calc(var(--hud-h) + 20px) clamp(20px, 4vw, 48px) 40px;
  will-change: transform;
}

.projects__intro {
  flex: 0 0 min(520px, 86vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2vw;
}

.projects__intro .sec-sub {
  margin-top: 24px;
}

.projects__hint {
  margin-top: 28px;
  font: 500 0.7rem var(--f-mono);
  letter-spacing: 0.24em;
  color: var(--lime);
}

.pcard {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --o: 0;
  flex: 0 0 min(500px, 82vw);
  height: min(640px, calc(100vh - var(--hud-h) - 100px));
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a14;
  border: 1px solid var(--line-2);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.pcard:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transition: transform 0.12s linear, border-color 0.4s ease;
}

.pcard__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  overflow: hidden;
}

.pcard__art::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 40% at 30% 30%, var(--c1), transparent 70%),
    radial-gradient(45% 45% at 75% 60%, var(--c2), transparent 70%),
    radial-gradient(35% 35% at 40% 85%, var(--c3), transparent 70%);
  filter: blur(20px) saturate(1.3);
  animation: blob 14s ease-in-out infinite alternate;
}

@keyframes blob {
  33% {
    transform: translate3d(6%, -4%, 0) rotate(40deg) scale(1.1);
  }

  66% {
    transform: translate3d(-5%, 6%, 0) rotate(-30deg) scale(0.95);
  }

  100% {
    transform: translate3d(3%, 3%, 0) rotate(90deg) scale(1.05);
  }
}

.pcard__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 100%;
  mask-image: linear-gradient(transparent, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent);
}

.pcard__num {
  position: absolute;
  left: 24px;
  bottom: -0.12em;
  font: 800 clamp(6rem, 14vw, 11rem) var(--f-display);
  line-height: 1;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: overlay;
  z-index: 1;
}

.pcard__top {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.pcard__metric {
  font: 600 0.66rem var(--f-mono);
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
}

.pcard__body {
  position: relative;
  z-index: 2;
  padding: 26px 28px 28px;
  background: linear-gradient(transparent, rgba(5, 5, 10, 0.6) 20%, #07070d);
}

.pcard__title {
  margin: 0 0 4px;
  font: 700 clamp(1.6rem, 2.6vw, 2.2rem) var(--f-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pcard__sub {
  margin: 0 0 12px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c1t, var(--cyan));
}

.pcard__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.pcard__open {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #050508;
  font-size: 1.1rem;
  transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard__open {
  transform: rotate(-45deg) scale(1.1);
}

.pcard__foil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(115deg, var(--cyan) 0%, var(--violet) 8%, var(--magenta) 16%, var(--amber) 24%, var(--lime) 32%, var(--cyan) 40%);
  background-size: 300% 300%;
  background-position: calc(var(--mx) * 1.2) calc(var(--my) * 1.2);
  mix-blend-mode: color-dodge;
  opacity: calc(var(--o) * 0.24);
  transition: opacity 0.4s ease;
}

.pcard__glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.36), transparent 45%);
  mix-blend-mode: overlay;
  opacity: var(--o);
  transition: opacity 0.4s ease;
}

.projects__end {
  flex: 0 0 min(380px, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 0 2vw;
}

.projects__end h3 {
  margin: 0;
  font: 700 clamp(2rem, 4vw, 3.2rem) var(--f-display);
  letter-spacing: -0.04em;
  line-height: 1;
}

.projects__end h3 em {
  font-family: var(--f-serif);
  font-weight: 400;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.projects__progress {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  bottom: 26px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.projects__progress span {
  display: block;
  height: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   CONTACT & CREDENTIALS
   ========================================================================== */

.contact__title {
  margin: 0 0 clamp(30px, 5vw, 50px);
  font: 700 clamp(2.8rem, 9vw, 8.6rem) var(--f-display);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.mega-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(20px, 3vw, 34px) 0;
  margin-bottom: clamp(40px, 6vw, 80px);
  background: none;
  border: 0;
  border-block: 1px solid var(--line-2);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease, padding 0.6s var(--ease);
}

.mega-email::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--spectrum);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  z-index: -1;
}

.mega-email:hover::before {
  transform: scaleY(1);
}

.mega-email:hover {
  color: #050508;
  padding-left: 24px;
  padding-right: 24px;
}

.mega-email__text {
  font: 600 clamp(1.25rem, 4.4vw, 3.5rem) var(--f-display);
  letter-spacing: -0.035em;
  word-break: break-all;
}

.mega-email__hint {
  flex-shrink: 0;
  font: 600 0.7rem var(--f-mono);
  letter-spacing: 0.16em;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.terminal {
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--violet) 48%, transparent);
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 0.7rem var(--f-mono);
  color: var(--dim);
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.terminal__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--magenta);
}

.terminal__dots i:nth-child(2) {
  background: var(--amber);
}

.terminal__dots i:nth-child(3) {
  background: var(--lime);
}

.terminal__ok {
  color: var(--lime);
}

.terminal__body {
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font: 500 0.74rem var(--f-mono);
  color: var(--cyan);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font: 400 1.05rem var(--f-sans);
  outline: none;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #4d5566;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
}

.terminal__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.terminal__status {
  font: 500 0.72rem var(--f-mono);
  color: var(--muted);
}

.creds {
  display: grid;
  gap: 34px;
}

.creds__label {
  margin: 0 0 14px;
  font: 500 0.7rem var(--f-mono);
  letter-spacing: 0.2em;
  color: var(--dim);
}

.edu h4 {
  margin: 0 0 4px;
  font: 700 1.3rem var(--f-display);
  letter-spacing: -0.02em;
}

.edu p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.edu span {
  display: inline-block;
  margin-top: 8px;
  font: 500 0.72rem var(--f-mono);
  color: var(--cyan);
}

.badges {
  display: grid;
  gap: 10px;
}

.badge {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), color-mix(in srgb, var(--violet) 32%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.badge:hover {
  border-color: var(--line-2);
  transform: translateX(6px);
}

.badge:hover::before {
  opacity: 1;
}

.badge>* {
  position: relative;
}

.badge b {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
}

.badge small {
  color: var(--muted);
  font-size: 0.8rem;
}

.badge code {
  font: 700 0.64rem var(--f-mono);
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--spectrum);
  color: #050508;
  white-space: nowrap;
}

.links {
  display: grid;
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font: 600 1.3rem var(--f-display);
  letter-spacing: -0.02em;
  transition: padding-left 0.5s var(--ease), color 0.3s ease;
}

.links a small {
  font: 500 0.72rem var(--f-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.links a:hover {
  padding-left: 14px;
  color: var(--cyan);
}

.links a span.arr {
  display: inline-block;
  transition: transform 0.4s var(--ease);
  margin-left: 10px;
}

.links a:hover span.arr {
  transform: rotate(45deg);
}

/* ==========================================================================
   FOOTER & MOBILE DOCK
   ========================================================================== */

.footer {
  padding: 40px 0 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__giant {
  white-space: nowrap;
  text-align: center;
  font: 800 clamp(2.8rem, 14vw, 14rem) var(--f-display);
  letter-spacing: -0.06em;
  line-height: 0.85;
  padding: 0 2vw 30px;
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.9), rgba(244, 247, 250, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font: 500 0.72rem var(--f-mono);
  color: var(--dim);
  letter-spacing: 0.06em;
}

.dock {
  display: none;
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.dock button {
  border: 0;
  background: transparent;
  padding: 10px 13px;
  border-radius: 999px;
  font: 600 0.7rem var(--f-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.dock button.is-on {
  color: var(--lime);
}

.dock .dock__accent {
  background: var(--spectrum);
  color: #050508;
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade 0.3s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.palette {
  width: min(640px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px color-mix(in srgb, var(--violet) 35%, transparent);
  animation: pop 0.4s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.97);
  }
}

.palette__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.palette__prompt {
  font: 700 1.2rem var(--f-mono);
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.palette__head input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: 400 1.02rem var(--f-sans);
}

kbd {
  font: 600 0.66rem var(--f-mono);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.palette__list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.cmd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.94rem;
}

.cmd small {
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--dim);
}

.cmd.is-sel {
  background: rgba(255, 255, 255, 0.08);
}

.cmd.is-sel small {
  color: var(--lime);
}

.palette__foot {
  display: flex;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font: 500 0.66rem var(--f-mono);
  color: var(--dim);
}

.case {
  position: relative;
  width: min(760px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 28px;
  background: #08080f;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  animation: pop 0.45s var(--ease);
}

.case__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease);
}

.case__close:hover {
  transform: rotate(90deg);
}

.case__hero {
  position: relative;
  padding: 70px 34px 34px;
  overflow: hidden;
  isolation: isolate;
}

.case__hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(35% 35% at 30% 40%, var(--c1), transparent 70%), radial-gradient(35% 35% at 75% 50%, var(--c2), transparent 70%);
  filter: blur(30px);
  opacity: 0.7;
}

.case__hero h3 {
  margin: 18px 0 4px;
  font: 800 clamp(2rem, 5vw, 3.4rem) var(--f-display);
  letter-spacing: -0.04em;
  line-height: 1;
}

.case__hero p {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
}

.case__body {
  padding: 30px 34px;
  display: grid;
  gap: 26px;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.case__metrics div {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font: 600 0.8rem var(--f-mono);
}

.case__step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
}

.case__step span {
  font: 500 0.7rem var(--f-mono);
  color: var(--cyan);
  letter-spacing: 0.12em;
  padding-top: 4px;
}

.case__step h4 {
  margin: 0 0 6px;
  font: 700 1.1rem var(--f-display);
}

.case__step p {
  margin: 0;
  color: var(--muted);
}

.case__foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 34px 34px;
}

.toasts {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  justify-items: center;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #050508;
  font: 600 0.78rem var(--f-mono);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: toast 0.5s var(--ease);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast::before {
  content: "✦ ";
  color: var(--magenta);
}

@keyframes toast {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.9);
  }
}

/* ==========================================================================
   RESPONSIVE GUARDRAILS
   ========================================================================== */

@media (max-width: 1200px) {
  .hud__status {
    display: none;
  }
}

@media (max-width: 1060px) {
  .hud__nav {
    display: none;
  }

  .matrix {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    margin-bottom: -10px;
  }

  .orb-stage {
    width: min(290px, 70vw);
  }

  .orb-tag--3,
  .orb-tag--4 {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .metric:nth-child(n+3) {
    border-top: 1px solid var(--line);
    margin-top: 22px;
  }

  .xp-card__grid {
    grid-template-columns: 1fr;
  }

  .xp-card__idx {
    font-size: 4rem;
    margin-bottom: 10px;
  }

  .projects {
    height: auto !important;
  }

  .projects__sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 90px 0;
  }

  .projects__track {
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .projects__track::-webkit-scrollbar {
    display: none;
  }

  .projects__intro,
  .pcard,
  .projects__end {
    scroll-snap-align: start;
  }

  .projects__intro {
    flex-basis: 82vw;
  }

  .pcard {
    height: 560px;
  }

  .projects__progress {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --hud-h: 60px;
  }

  .hud-pill,
  .switch,
  .kbd-btn {
    display: none;
  }

  .dock {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--hud-h) + 20px);
    overflow-x: clip;
  }

  .hero__cta .btn {
    padding: 13px 18px;
    font-size: 0.74rem;
  }

  .hero-scope {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .footer {
    padding-bottom: 100px;
  }

  .toasts {
    bottom: 90px;
  }

  .case__metrics {
    grid-template-columns: 1fr;
  }

  .case__step {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .xp {
    grid-template-columns: 1fr;
  }

  .xp__rail {
    display: none;
  }

  .xp-card {
    top: calc(var(--hud-h) + 14px + var(--i) * 14px);
    border-radius: 22px;
  }

  .node__inner {
    padding: 6px 9px;
    font-size: 0.56rem;
  }

  .mega-email {
    flex-direction: column;
    align-items: flex-start;
  }

  .tldr {
    position: relative;
    top: 0;
    margin-top: var(--hud-h);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .char,
  .w>span,
  .reveal,
  .hero .fade-up {
    transform: none !important;
    opacity: 1 !important;
  }

  .mw {
    color: var(--text);
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body,
  html {
    background: #fff !important;
    color: #111 !important;
  }

  #aurora,
  #warp-canvas,
  .bg-veil,
  .grain,
  .cursor,
  .cursor-ring,
  .loader,
  .hud,
  .dock,
  .modal,
  .toasts,
  .marquee,
  .hero__visual,
  .hero__cta,
  .hero-scope,
  .scroll-cue,
  .tabs,
  .orbit,
  .terminal,
  .mega-email__hint,
  .projects__progress,
  .projects__hint,
  .projects__end,
  .footer__giant,
  .tldr,
  .xp__rail,
  .pcard__art,
  .pcard__foil,
  .pcard__glare {
    display: none !important;
  }

  * {
    color: #111 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    animation: none !important;
  }

  .char,
  .w>span,
  .reveal,
  .fade-up {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero {
    min-height: 0;
    padding: 0;
  }

  .hero__title {
    font-size: 34pt;
  }

  .section {
    padding: 18pt 0;
  }

  .sec-title,
  .contact__title {
    font-size: 22pt;
  }

  .mw {
    color: #111 !important;
  }

  .manifesto__text {
    font-size: 13pt;
  }

  .xp-card {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .xp-card::before,
  .xp-card::after {
    display: none;
  }

  .projects,
  .projects__sticky {
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  .projects__track {
    display: block !important;
    transform: none !important;
    padding: 0 !important;
  }

  .pcard {
    height: auto !important;
    border: 1px solid #ccc;
    margin-bottom: 10pt;
    transform: none !important;
    break-inside: avoid;
  }

  .skill-row__bar span {
    transform: scaleX(var(--v)) !important;
    background: #111 !important;
  }

  .contact__grid,
  .matrix {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PRISM.OS v7 — SPATIAL COCKPIT HUD, GLASS METRIC PODS & REHMAN.AI CO-PILOT
   ========================================================================== */

/* Spatial HUD Corner Frame (Desktop) */
.hud-corners {
  position: fixed;
  inset: 14px;
  z-index: 50;
  pointer-events: none;
}

.hc {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: color-mix(in srgb, var(--cyan) 32%, transparent);
  border-style: solid;
}

.hc--tl { top: calc(var(--hud-h) - 6px); left: 0; border-width: 1px 0 0 1px; }
.hc--tr { top: calc(var(--hud-h) - 6px); right: 0; border-width: 1px 1px 0 0; }
.hc--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hc--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hc em {
  position: absolute;
  font-style: normal;
  font: 500 0.58rem var(--f-mono);
  letter-spacing: 0.16em;
  color: rgba(244, 247, 250, 0.36);
  white-space: nowrap;
}

.hc--bl em { left: 10px; bottom: 8px; }
.hc--br em { right: 10px; bottom: 8px; }

/* Luminous Frosted-Glass Telemetry Metric Pods */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3.6vw, 44px);
  border-top: 0;
}

.metric {
  --gx: 50%;
  --gy: 50%;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(10, 12, 22, 0.65));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.metric + .metric {
  padding-left: 20px;
  border-left: 1px solid var(--line-2);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--gx) var(--gy), color-mix(in srgb, var(--cyan) 22%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.metric:hover {
  transform: translate3d(0, -4px, 0);
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow: 0 16px 38px -16px color-mix(in srgb, var(--cyan) 45%, transparent);
}

.metric:hover::before {
  opacity: 1;
}

.metric__code {
  top: 16px;
  right: 16px;
  color: color-mix(in srgb, var(--cyan) 75%, var(--muted));
}

.metric__val {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

/* Specular Sapphire Glass Highlight on Experience Cards & Terminal */
.xp-card,
.terminal {
  --gx: 50%;
  --gy: 50%;
}

.xp-card__specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(520px circle at var(--gx) var(--gy), color-mix(in srgb, var(--cyan) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.xp-card:hover .xp-card__specular {
  opacity: 1;
}

/* Floating Holographic Neural Co-Pilot Pill (ASK REHMAN.AI) */
.ai-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 48%, rgba(255, 255, 255, 0.2));
  background: rgba(8, 10, 18, 0.84);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: var(--text);
  font: 600 0.72rem var(--f-mono);
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.65),
    0 0 28px -6px color-mix(in srgb, var(--cyan) 50%, transparent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.ai-fab:hover {
  transform: translate3d(0, -3px, 0) scale(1.03);
  border-color: var(--cyan);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.72),
    0 0 36px -4px var(--magenta);
}

.ai-fab__orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--spectrum-conic);
  box-shadow: 0 0 14px var(--cyan);
  animation: spin-angle 3.5s linear infinite;
  flex-shrink: 0;
}

/* VisionOS-Style Frosted Glass AI Co-Pilot Drawer */
.ai-drawer {
  position: fixed;
  right: 28px;
  bottom: 86px;
  z-index: 250;
  width: min(410px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(9, 10, 20, 0.9);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--cyan) 36%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.8),
    0 0 40px -12px color-mix(in srgb, var(--violet) 55%, transparent);
  animation: pop 0.35s var(--ease);
}

.ai-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 8%, transparent), color-mix(in srgb, var(--violet) 10%, transparent));
}

.ai-drawer__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-drawer__title strong {
  display: block;
  font: 700 0.78rem var(--f-mono);
  letter-spacing: 0.1em;
}

.ai-drawer__title span {
  display: block;
  font: 500 0.6rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.ai-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-drawer__close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ai-drawer__feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 92%;
}

.ai-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.ai-msg--user {
  align-self: flex-end;
  background: var(--spectrum);
  color: #050508;
  font-weight: 600;
}

.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.ai-prompts button {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.68rem var(--f-mono);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ai-prompts button:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

.ai-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 12, 0.7);
}

.ai-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
}

.ai-form input:focus {
  border-color: var(--cyan);
}

.ai-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--spectrum);
  color: #050508;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hud-corners { display: none; }
  .metric:nth-child(n+3) { margin-top: 0; border-top: 1px solid var(--line-2); }
}

@media (max-width: 768px) {
  .ai-fab {
    right: 16px;
    bottom: 78px;
    padding: 9px 14px 9px 10px;
    font-size: 0.66rem;
  }
  .ai-drawer {
    right: 16px;
    bottom: 128px;
  }
}

@media print {
  .hud-corners,
  .ai-fab,
  .ai-drawer {
    display: none !important;
  }
}


/* Projects Worked On chips inside Experience Mission Cards */
.xp-card__projects {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.xp-card__proj-label {
  display: block;
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--hue);
  margin-bottom: 8px;
}

.xp-card__proj-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xp-proj-chip {
  font: 600 0.74rem var(--f-mono);
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hue) 14%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--hue) 45%, transparent);
  color: var(--text);
}


/* ==========================================================================
   PRISM.OS v8 — 3D PERSPECTIVE HORIZON GRID & HOLOGRAPHIC X-RAY BLUEPRINT
   ========================================================================== */

/* Animated 3D Perspective Floor Grid */
.horizon-grid {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  perspective: 420px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 58%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 58%, #000 100%);
  opacity: 0.34;
  transition: opacity 0.6s ease;
}

.horizon-grid__plane {
  position: absolute;
  left: -40%;
  right: -40%;
  top: 0;
  bottom: -60%;
  transform: rotateX(72deg);
  transform-origin: top center;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--cyan) 36%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--violet) 42%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  animation: grid-glide 5.5s linear infinite;
  will-change: background-position;
}

@keyframes grid-glide {
  from { background-position: 0 0; }
  to { background-position: 0 68px; }
}

/* X-RAY Toggle Pill */
.xray-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 8px color-mix(in srgb, var(--cyan) 60%, transparent);
  transition: background-color 0.25s ease, transform 0.35s var(--ease);
}

.hud-pill--xray[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  box-shadow: 0 0 22px -4px var(--cyan);
}

.hud-pill--xray[aria-pressed="true"] .xray-dot {
  background: var(--cyan);
  transform: rotate(45deg);
}

/* Full-Viewport Laser Scanline Sweep Overlay */
.xray-sweep {
  position: fixed;
  left: 0;
  right: 0;
  top: -12vh;
  height: 12vh;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--cyan) 35%, transparent) 72%,
    var(--cyan) 96%,
    #ffffff 100%
  );
  box-shadow: 0 8px 40px var(--cyan);
}

.xray-sweep.is-sweeping {
  animation: xray-scan-down 0.85s var(--ease-in-out) forwards;
}

@keyframes xray-scan-down {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, 118vh, 0); }
}

/* Holographic Blueprint X-RAY Mode */
body.xray-mode .horizon-grid {
  opacity: 0.72;
}

body.xray-mode #aurora {
  filter: saturate(0.25) contrast(1.3) brightness(0.45);
}

body.xray-mode .metric,
body.xray-mode .xp-card,
body.xray-mode .pcard,
body.xray-mode .terminal,
body.xray-mode .badge,
body.xray-mode .ai-drawer {
  background: rgba(2, 10, 18, 0.55) !important;
  border-color: color-mix(in srgb, var(--cyan) 65%, transparent) !important;
  box-shadow:
    0 0 24px -8px color-mix(in srgb, var(--cyan) 55%, transparent),
    inset 0 0 24px -14px color-mix(in srgb, var(--cyan) 45%, transparent) !important;
}

body.xray-mode .section {
  background-image:
    linear-gradient(color-mix(in srgb, var(--cyan) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cyan) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}

body.xray-mode .holo-4d__main {
  filter:
    contrast(1.25)
    saturate(0.35)
    hue-rotate(155deg)
    drop-shadow(0 0 18px var(--cyan))
    drop-shadow(0 0 36px var(--violet)) !important;
}

body.xray-mode .holo-4d__echo--cyan {
  opacity: 0.78 !important;
}

body.xray-mode .hero__line--solid .char__i {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 26px color-mix(in srgb, var(--cyan) 55%, transparent);
}

@media print {
  .horizon-grid,
  .xray-sweep {
    display: none !important;
  }
}


/* ==========================================================================
   PRISM.OS v9 — EXECUTIVE LUXURY POLISH, CLIENT PROOF & SPATIAL SIDE RAIL
   ========================================================================== */

/* Machined Obsidian Specular Top Rim Light (VisionOS / Linear Craft) */
.hud__nav,
.metric,
.xp-card,
.pcard,
.terminal,
.ai-drawer,
.palette {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 64px -24px rgba(0, 0, 0, 0.72);
}

/* Softer Luxury Holographic Fade on Lower Silhouette (Face 100% Untouched) */
.holo-4d__main-wrap {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}

/* Enterprise Client Proof Strip */
.clients-strip {
  position: relative;
  z-index: 2;
  padding: 26px 0 34px;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025) 50%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.clients-strip__label {
  display: block;
  text-align: center;
  font: 500 0.62rem var(--f-mono);
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-bottom: 18px;
}

.clients-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.6vw, 48px);
}

.clients-strip__row span {
  font: 700 clamp(0.82rem, 1.3vw, 1.02rem) var(--f-display);
  letter-spacing: 0.16em;
  color: rgba(244, 247, 250, 0.42);
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s var(--ease);
  cursor: default;
}

.clients-strip__row span:hover {
  color: var(--text);
  text-shadow: 0 0 22px color-mix(in srgb, var(--cyan) 70%, transparent);
  transform: translate3d(0, -2px, 0);
}

/* Right-Edge Spatial Section Quick-Jump Rail */
.side-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.48);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.side-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  text-decoration: none;
}

.side-rail i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 247, 250, 0.28);
  transition: transform 0.35s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease;
}

.side-rail a:hover i,
.side-rail a.is-active i {
  background: var(--cyan);
  transform: scale(1.6);
  box-shadow: 0 0 12px var(--cyan);
}

.side-rail a::before {
  content: attr(data-tip);
  position: absolute;
  right: 24px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 10, 18, 0.92);
  border: 1px solid var(--line-2);
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(6px, 0, 0);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.side-rail a:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1060px) {
  .side-rail { display: none; }
}

@media print {
  .side-rail,
  .clients-strip {
    display: none !important;
  }
}


/* ==========================================================================
   PRISM.OS v10 — EXECUTIVE CORE PILLARS, PROJECT FILTERS & MOBILE UX POLISH
   ========================================================================== */

/* 3-Card Executive Core Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(44px, 6vw, 76px);
}

.pillar {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(10, 12, 22, 0.68));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 54px -24px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}

.pillar:hover {
  transform: translate3d(0, -6px, 0);
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px -20px color-mix(in srgb, var(--cyan) 32%, transparent);
}

.pillar__num {
  display: inline-block;
  font: 600 0.64rem var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.pillar:nth-child(2) .pillar__num { color: var(--magenta); }
.pillar:nth-child(3) .pillar__num { color: var(--lime); }

.pillar h3 {
  margin: 0 0 10px;
  font: 700 1.24rem var(--f-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Project Filter Pills */
.proj-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.proj-filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.72rem var(--f-mono);
  letter-spacing: 0.08em;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.proj-filter:hover {
  color: var(--text);
}

.proj-filter.is-active {
  background: var(--text);
  color: #050508;
}

/* Direct Quick-Link Pill on Project Cards */
.pcard__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pcard__ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font: 600 0.66rem var(--f-mono);
  letter-spacing: 0.08em;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.pcard__ext:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  color: var(--cyan);
}

@media (max-width: 960px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ai-fab {
    display: none;
  }
  .ai-drawer {
    bottom: 84px;
  }
}


/* ==========================================================================
   5D PENTERACT HOLOGRAPHIC ECHO & FOREGROUND PHASE ARC
   ========================================================================== */

.holo-4d__echo--lime {
  opacity: 0.24;
  mix-blend-mode: screen;
  filter: brightness(0.95) sepia(1) hue-rotate(48deg) saturate(5) blur(1.4px);
  transform: translate3d(calc(var(--px) * -2.2), calc(var(--py) * -1.8 - 8px), -46px) scale(1.04);
  animation: phase-5d 6.4s ease-in-out infinite alternate;
}

.orb-stage:hover .holo-4d__echo--lime {
  opacity: 0.44;
}

@keyframes phase-5d {
  0% {
    filter: brightness(0.95) sepia(1) hue-rotate(48deg) saturate(5) blur(1.4px);
  }
  50% {
    filter: brightness(1.05) sepia(1) hue-rotate(175deg) saturate(6) blur(0.8px);
  }
  100% {
    filter: brightness(0.95) sepia(1) hue-rotate(300deg) saturate(5) blur(1.4px);
  }
}

/* Foreground Volumetric 5D Ring Passing in Front of Silhouette */
.holo-5d__front-arc {
  position: absolute;
  inset: 10% -8%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: color-mix(in srgb, var(--cyan) 75%, transparent);
  border-right-color: color-mix(in srgb, var(--magenta) 60%, transparent);
  transform: rotateX(74deg) rotateZ(-14deg) translateZ(56px);
  filter: drop-shadow(0 0 12px var(--cyan));
  pointer-events: none;
  animation: front-arc-spin 9s linear infinite;
}

@keyframes front-arc-spin {
  from { transform: rotateX(74deg) rotateZ(0deg) translateZ(56px); }
  to { transform: rotateX(74deg) rotateZ(360deg) translateZ(56px); }
}


/* ==========================================================================
   GPU COMPOSITING & 60/120FPS SMOOTHNESS OPTIMIZATIONS
   ========================================================================== */

/* Static ultra-light film grain — zero continuous full-screen SVG repaints */
.grain {
  inset: 0;
  opacity: 0.045;
  animation: none !important;
}

/* Promote key interactive surfaces to isolated GPU layers */
.hud {
  transform: translate3d(0, 0, 0);
  will-change: background-color;
  contain: layout style;
}

.metric,
.pillar,
.xp-card,
.pcard {
  contain: layout paint;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Lighter single-pass GPU shadows on 5D portrait layers */
.holo-4d__main {
  filter:
    contrast(1.04)
    saturate(1.02)
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.72));
}

.holo-4d__echo--cyan {
  filter: brightness(0.95) sepia(1) hue-rotate(150deg) saturate(4.5);
}

.holo-4d__echo--magenta {
  filter: brightness(0.9) sepia(1) hue-rotate(285deg) saturate(4.5);
}

.holo-4d__echo--lime {
  filter: brightness(0.95) sepia(1) hue-rotate(48deg) saturate(4.5);
  animation: none;
}

/* Faster GPU blur radii with identical frosted-glass look */
.metric,
.pillar,
.terminal,
.ai-fab {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* ==========================================================================
   PROJECTS GALLERY CONTROLS, FLUENT LANGUAGES & SECTION HAIRLINES
   ========================================================================== */

/* Architectural Glowing Hairline Divider at Top of Major Sections */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, 90vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--cyan) 32%, transparent) 25%,
    color-mix(in srgb, var(--violet) 38%, transparent) 55%,
    color-mix(in srgb, var(--magenta) 26%, transparent) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Projects Bottom Control Bar (Progress + Counter + Prev/Next Buttons) */
.projects__bar {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.projects__bar .projects__progress {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 1;
}

.projects__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.projects__counter {
  font: 600 0.7rem var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 4px;
}

.proj-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 22, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s var(--ease), color 0.25s ease;
}

.proj-nav-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 14%, rgba(10, 12, 22, 0.9));
  transform: scale(1.08);
}

/* Fluent Languages Glass Capsule Strip */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pills span {
  font: 500 0.76rem var(--f-mono);
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.lang-pills span:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate3d(0, -2px, 0);
}

@media (max-width: 900px) {
  .projects__bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 18px clamp(20px, 4vw, 48px) 0;
    justify-content: flex-end;
  }
}

@media print {
  .projects__bar,
  .section::before {
    display: none !important;
  }
}


/* ==========================================================================
   FULL-SPECTRUM RESPONSIVE MASTERY (320px MOBILE → TABLET → 4K ULTRAWIDE)
   ========================================================================== */

/* Prevent CSS Grid children from ever expanding past viewport width */
.hero__grid > *,
.matrix > *,
.contact__grid > *,
.xp-card__grid > * {
  min-width: 0;
}

/* Large / 4K / Ultrawide Screens (>= 1680px) */
@media (min-width: 1680px) {
  .wrap {
    max-width: 1480px;
  }

  .hud__inner {
    max-width: 1600px;
  }

  .orb-stage {
    width: min(540px, 34vw);
  }

  .hero__title {
    font-size: clamp(4.8rem, 7.6vw, 8.6rem);
  }

  .manifesto__text {
    max-width: 1240px;
  }
}

/* Tablet & Small Laptop (<= 900px) */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero__visual {
    order: -1;
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
  }

  .orb-stage {
    width: min(300px, 76vw);
  }

  .tesseract-canvas {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .orb-tag--1 { top: 4%; left: 4%; }
  .orb-tag--2 { bottom: 8%; right: 4%; }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--hud-h) + 18px) 0 36px;
  }

  .hero__title {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    line-height: 0.94;
  }

  .hero__tagline {
    font-size: 0.98rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.78rem;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .metric {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .metric__code {
    display: none;
  }

  .metric__val {
    font-size: 1.75rem;
  }

  .metric__label {
    font-size: 0.78rem;
    margin-top: 4px;
  }

  .clients-strip__row {
    gap: 12px 18px;
  }

  .clients-strip__row span {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  /* Orbital Reactor sized cleanly for narrow phones */
  .orbit {
    --size: min(330px, calc(100vw - 36px));
  }

  .node__inner {
    padding: 5px 8px;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }

  .orbit__core {
    width: 40%;
  }

  /* Experience cards flow naturally on short mobile screens */
  .xp-card {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    border-radius: 20px;
  }

  .xp-card::after {
    display: none;
  }

  .xp-card__grid {
    padding: 22px 18px;
    gap: 18px;
  }

  .xp-card__idx {
    font-size: 3rem;
    margin-bottom: 8px;
  }

  .xp-proj-chip {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  /* Project cards swipe cleanly without squishing */
  .projects__sticky {
    padding: 64px 0;
  }

  .pcard {
    flex: 0 0 86vw;
    height: auto;
    min-height: 460px;
    border-radius: 22px;
  }

  .pcard__art {
    flex: 0 0 148px;
    min-height: 148px;
  }

  .pcard__body {
    padding: 20px 18px 22px;
  }

  .pcard__foot {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pcard__open {
    width: 40px;
    height: 40px;
  }

  /* Contact & Modals */
  .mega-email__text {
    font-size: clamp(1.15rem, 6.2vw, 1.8rem);
  }

  .case {
    max-height: 90vh;
    border-radius: 20px;
  }

  .case__hero {
    padding: 56px 20px 24px;
  }

  .case__body {
    padding: 20px;
  }

  .case__foot {
    padding: 0 20px 24px;
  }

  .ai-drawer {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(74px + env(safe-area-inset-bottom));
    max-height: 70vh;
    border-radius: 20px;
  }

  .dock {
    max-width: calc(100vw - 16px);
    padding: 5px;
    gap: 2px;
  }

  .dock button {
    padding: 9px 10px;
    font-size: 0.66rem;
    min-height: 38px;
  }
}

/* Ultra-Compact Screens (<= 375px, e.g., iPhone SE) */
@media (max-width: 375px) {
  .hero__title {
    font-size: 2.15rem;
  }

  .dock button {
    padding: 8px 8px;
    font-size: 0.62rem;
  }
}


/* Strict Zero-Overflow Viewport Lock (uses clip so position: sticky works smoothly) */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}

.hero,
.section,
.clients-strip,
.marquee,
.footer {
  max-width: 100%;
  overflow-x: clip;
}

.footer__giant {
  font-size: clamp(1.85rem, 11.5vw, 14rem);
  overflow: hidden;
  text-overflow: clip;
}


/* ==========================================================================
   MOBILE & TOUCH ANTI-FLICKER FIX (iOS Safari / Mobile Chrome Compositor)
   ========================================================================== */

.hero__cta,
.btn {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (hover: none), (max-width: 768px) {
  .btn {
    will-change: auto;
    isolation: auto;
  }

  .btn--spectrum {
    animation: none !important;
    background-size: 100% 100%;
    background-position: 0 0;
  }

  .btn--ghost {
    background: rgba(14, 16, 28, 0.88);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .btn--ghost::before {
    display: none !important;
  }

  .btn:hover {
    transform: translateZ(0);
  }
}


/* ==========================================================================
   BEYOND THE CODE CARD & FOOTER SHARE ACTIONS
   ========================================================================== */

.human-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(10, 12, 22, 0.65));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.human-card__quote {
  margin: 0 0 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
}

.human-card__by {
  display: inline-block;
  font: 500 0.68rem var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.human-card__tags span {
  font-size: 0.7rem;
  padding: 5px 11px;
}

.footer__actions {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}


/* ==========================================================================
   LINKEDIN RECOMMENDATIONS HOLOGRAPHIC SHOWCASE
   ========================================================================== */

.recs__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.recs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(10, 12, 22, 0.72));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 54px -24px rgba(0, 0, 0, 0.72);
  contain: layout paint;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.rec-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px -22px color-mix(in srgb, var(--cyan) 32%, transparent);
}

.rec-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rec-card__badge {
  font: 600 0.6rem var(--f-mono);
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
}

.rec-card__date {
  font: 500 0.66rem var(--f-mono);
  color: var(--dim);
  letter-spacing: 0.08em;
}

.rec-card__quote {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text);
}

.rec-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rec-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font: 700 0.78rem var(--f-display);
  color: #050508;
  background: var(--spectrum);
  box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 35%, transparent);
}

.rec-card__name {
  display: block;
  font: 700 1rem var(--f-display);
  letter-spacing: -0.01em;
  color: var(--text);
}

.rec-card__role {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 860px) {
  .recs-grid {
    grid-template-columns: 1fr;
  }

  .recs__head-right {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .rec-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
}


/* ==========================================================================
   DEDICATED CERTIFICATIONS SHOWCASE SECTION
   ========================================================================== */

.certs-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 26px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(10, 12, 22, 0.72));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 54px -24px rgba(0, 0, 0, 0.72);
  contain: layout paint;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.cert-card:hover {
  transform: translate3d(0, -6px, 0);
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 26px 60px -20px color-mix(in srgb, var(--cyan) 38%, transparent);
}

.cert-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cert-card__code {
  font: 700 0.68rem var(--f-mono);
  letter-spacing: 0.12em;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--spectrum);
  color: #050508;
}

.cert-card__year {
  font: 500 0.7rem var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cert-card__name {
  margin: 0;
  font: 700 1.32rem var(--f-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.cert-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cert-card__issuer {
  font-size: 0.86rem;
  color: var(--muted);
}

.cert-card__verified {
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--lime);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .certs-showcase {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   ULTRA-FAST GPU RENDERING OVERRIDES (ZERO MAIN-THREAD PAINT JANK)
   ========================================================================== */

/* Eliminate expensive CPU conic-gradient @property repaints on large cards */
.xp-card::before {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 55%, transparent), color-mix(in srgb, var(--violet) 45%, transparent), color-mix(in srgb, var(--magenta) 50%, transparent));
  animation: none !important;
}

.eyebrow__n::after {
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--magenta));
  animation: none !important;
}

/* Replace heavy filter: blur(40px) with native soft radial gradients (zero blur cost) */
.xp-card__glow {
  filter: none !important;
  opacity: 0.28;
}

.orb-aura {
  filter: none !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 22%, transparent) 0%, color-mix(in srgb, var(--violet) 18%, transparent) 42%, transparent 72%);
  animation: none !important;
}

.orb-halo {
  filter: none !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--magenta) 26%, transparent) 0%, transparent 68%);
  animation: none !important;
}

.pcard__art::before {
  filter: saturate(1.25) !important;
  animation: none !important;
}

.pcard:hover .pcard__art::before {
  animation: blob 12s ease-in-out infinite alternate !important;
}

/* Remove redundant backdrop-filter readbacks on scrolling content cards */
.metric,
.pillar,
.cert-card,
.rec-card,
.clients-strip,
.terminal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: linear-gradient(155deg, rgba(18, 20, 36, 0.86), rgba(8, 10, 18, 0.92)) !important;
}

/* Pure GPU-composited transform animation for 3D horizon grid (zero paint per frame) */
.horizon-grid__plane {
  top: -68px;
  animation: grid-glide-gpu 4.5s linear infinite !important;
  will-change: transform;
}

@keyframes grid-glide-gpu {
  from { transform: rotateX(72deg) translate3d(0, 0, 0); }
  to { transform: rotateX(72deg) translate3d(0, 68px, 0); }
}

/* Disable continuous shimmer repaints on gradient text (keep vibrant static gradient) */
.sec-title em,
.contact__title em,
.sec-title em .w > span,
.contact__title em .w > span {
  animation: none !important;
  background-size: 100% 100%;
}


/* ==========================================================================
   ZERO-FLICKER 5D PORTRAIT CLICK PULSE
   ========================================================================== */

.orb-stage:hover .holo-4d,
.orb-stage.is-pulsing .holo-4d {
  transform: none;
}

.orb-stage.is-pulsing .holo-4d__main {
  filter: contrast(1.04) saturate(1.02) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.72));
}

.orb-stage.is-pulsing .orb-aura {
  opacity: 0.65;
}


/* Location Pill Centered Below 5D Profile Image */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-location {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.hero-location svg {
  color: var(--cyan);
}


/* ==========================================================================
   MOBILE CHROME ZERO-FLICKER & SMOOTH THEME SWITCHING
   ========================================================================== */

a,
button,
[role="button"],
#orb-stage {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (max-width: 768px) {
  /* Crisp, rock-solid hero typography on mobile (no per-frame variable font reflow) */
  .char__i {
    font-variation-settings: normal !important;
    font-weight: 800 !important;
    transform: none !important;
    will-change: auto;
  }

  .hero__line--outline .char__i,
  .hero__line--outline .char:nth-child(n) .char__i {
    color: var(--cyan) !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 35%, transparent) !important;
  }

  /* Flatten 3D preserve-3d + mix-blend-mode on mobile Chrome so theme switches never flash */
  .orb-stage,
  .holo-4d {
    transform-style: flat !important;
    animation: none !important;
  }

  .holo-4d__echo,
  .holo-4d__scan {
    mix-blend-mode: normal !important;
  }

  .holo-4d__echo--cyan {
    opacity: 0.22 !important;
  }

  .holo-4d__echo--magenta {
    opacity: 0.18 !important;
  }

  .holo-4d__echo--lime {
    display: none !important;
  }

  #warp-canvas {
    mix-blend-mode: normal !important;
    opacity: 0.55;
  }
}


/* ==========================================================================
   VOICE SUMMARY BUTTON
   ========================================================================== */

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: 500 0.78rem var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.voice-btn:hover,
.voice-btn.is-playing {
  color: var(--text);
}

.voice-btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  color: #050508;
  background: var(--spectrum);
}

.voice-btn.is-playing .voice-btn__icon {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 60%, transparent);
  animation: pulse 1.6s infinite;
}

/* ==========================================================================
   ROLE MATCH SCANNER
   ========================================================================== */

.match__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.match__input,
.match__result {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(18, 20, 36, 0.86), rgba(8, 10, 18, 0.92));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.match__label {
  display: block;
  margin-bottom: 10px;
  font: 500 0.74rem var(--f-mono);
  color: var(--cyan);
}

.match__input textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(3, 4, 8, 0.6);
  color: var(--text);
  font: 400 0.92rem/1.55 var(--f-sans);
  outline: none;
  transition: border-color 0.25s ease;
}

.match__input textarea:focus {
  border-color: var(--cyan);
}

.match__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.match__result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.match__empty p { margin: 0; max-width: 280px; }

.match__ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  font: 700 1.4rem var(--f-display);
  color: var(--dim);
}

.match__score {
  display: flex;
  align-items: center;
  gap: 18px;
}

.match__dial {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.match__dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--s, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 59%);
  mask: radial-gradient(circle, transparent 0 58%, #000 59%);
}

.match__dial span {
  position: relative;
  z-index: 1;
  font: 800 1.3rem var(--f-display);
  color: var(--text);
}

.match__verdict {
  display: block;
  font: 700 1.3rem var(--f-display);
  letter-spacing: -0.02em;
}

.match__score p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.match__group-label {
  display: block;
  margin-bottom: 8px;
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--dim);
}

.match__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mchip {
  font: 500 0.72rem var(--f-mono);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}

.mchip--ok {
  color: var(--text);
  border-color: color-mix(in srgb, var(--lime) 45%, transparent);
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}

.mchip--gap {
  color: var(--muted);
  border-style: dashed;
}

@media (max-width: 900px) {
  .match__grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .match,
  .voice-btn {
    display: none !important;
  }
}


/* ==========================================================================
   INTERACTIVE LIVE QA TEST RUNNER CONSOLE
   ========================================================================== */

.qa-console {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(16, 18, 32, 0.9), rgba(7, 9, 16, 0.95));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 28px 70px -28px rgba(0, 0, 0, 0.8);
}

.qa-console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 4, 8, 0.55);
}

.qa-console__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.qa-console__title {
  font: 500 0.74rem var(--f-mono);
  color: var(--muted);
}

.qa-console__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qa-suites {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}

.qa-suite-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.66rem var(--f-mono);
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.qa-suite-btn.is-active {
  background: var(--text);
  color: #050508;
}

.qa-console__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.qa-console__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.qa-console__list {
  padding: 18px 20px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-empty {
  margin: auto;
  padding: 36px 12px;
  text-align: center;
  font: 400 0.9rem var(--f-mono);
  color: var(--muted);
}

.qa-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  animation: row-in 0.3s var(--ease);
}

.qa-row__status {
  text-align: center;
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.qa-row.is-pass .qa-row__status {
  background: color-mix(in srgb, var(--lime) 18%, transparent);
  color: var(--lime);
  border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent);
}

.qa-row.is-fail .qa-row__status {
  background: color-mix(in srgb, var(--magenta) 22%, transparent);
  color: var(--magenta);
}

.qa-row__tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.qa-row__name {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--text);
}

.qa-row__meta {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.qa-console__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 8, 0.45);
  font: 600 0.68rem var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.qa-ok {
  color: var(--lime);
}

.qa-err {
  color: var(--magenta);
}

@media (max-width: 768px) {
  .qa-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .qa-row__tag,
  .qa-row__meta {
    grid-column: 2;
  }
}

@media print {
  .qa-lab {
    display: none !important;
  }
}


/* Clickable QA Telemetry Trigger & Modal Sizing */
.hero-scope {
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.hero-scope:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--cyan) 55%, transparent);
  transform: translate3d(0, -2px, 0);
}

.hero-scope__cta {
  font: 600 0.62rem var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
}

.qa-console--modal {
  width: min(820px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  animation: pop 0.35s var(--ease);
}

.qa-console--modal .qa-console__list {
  overflow-y: auto;
  max-height: 54vh;
}

.qa-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.qa-modal__close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}


/* Contact Quick CTA Row & QA Chaos Button */
.contact__quick {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.contact__quick .mega-email {
  margin-bottom: 22px;
}

.contact__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-chaos-btn.is-chaos {
  border-color: var(--magenta);
  color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 14%, transparent);
}


/* Custom Futuristic Form Validation + Uncropped Full Footer Wordmark */
.field__err {
  font-style: normal;
  font: 500 0.7rem var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--magenta);
  min-height: 0;
  margin-top: 2px;
}

.field__err:empty {
  display: none;
}

.field.is-error input,
.field.is-error textarea {
  border-bottom-color: var(--magenta);
}

.field.is-error span {
  color: var(--magenta);
}

.footer__giant {
  font-size: clamp(1.2rem, 7.6vw, 8.2rem) !important;
  letter-spacing: -0.045em;
  padding: 0 16px 28px;
}

@media (max-width: 640px) {
  .footer__giant {
    font-size: clamp(1.15rem, 6.2vw, 2.2rem) !important;
    letter-spacing: -0.04em;
    padding: 0 12px 22px;
  }
}
