:root {
  --bg: #f4f8f9;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --surface-strong: #e6f0f2;
  --surface-soft: rgba(255, 255, 255, 0.96);
  --text: #102028;
  --text-soft: #36505a;
  --text-muted: #6b8088;
  --border: rgba(15, 35, 44, 0.12);
  --border-strong: rgba(79, 125, 255, 0.34);
  --accent: #4f7dff;
  --accent-rgb: 79, 125, 255;
  --accent-soft: rgba(79, 125, 255, 0.14);
  --accent-deep: #2d5ee4;
  --shadow: 0 22px 48px rgba(9, 23, 31, 0.12), 0 2px 8px rgba(9, 23, 31, 0.06);
  --shadow-soft: 0 12px 28px rgba(9, 23, 31, 0.1), 0 1px 2px rgba(9, 23, 31, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --container: min(1160px, calc(100vw - 2rem));
  --nav-height: 74px;
  --section-pad: 84px;
  --section-pad-compact: 62px;
  --card-gap: 0.72rem;
  --card-gap-wide: 0.95rem;
  --transition: 210ms cubic-bezier(0.2, 0.65, 0.3, 1);
  --transition-smooth: 620ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --cursor-x: 50%;
  --cursor-y: 50%;
  --particle-shift-x: 0px;
  --particle-shift-y: 0px;
  --particle-shift-soft-x: 0px;
  --particle-shift-soft-y: 0px;
}

html[data-theme='dark'] {
  --bg: #03070a;
  --bg-elevated: rgba(5, 10, 13, 0.92);
  --surface: #071116;
  --surface-strong: #0c1a21;
  --surface-soft: rgba(8, 14, 18, 0.96);
  --text: #eaf3f5;
  --text-soft: #bdd0d7;
  --text-muted: #849ca5;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(155, 188, 255, 0.3);
  --accent: #9bbcff;
  --accent-rgb: 155, 188, 255;
  --accent-soft: rgba(155, 188, 255, 0.14);
  --accent-deep: #edf3ff;
  --shadow: 0 32px 72px rgba(0, 0, 0, 0.76), 0 4px 16px rgba(0, 0, 0, 0.56);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.66), 0 1px 2px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background-color: var(--bg);
}

::selection {
  background: rgba(var(--accent-rgb), 0.22);
  color: #0d2a32;
}

::-moz-selection {
  background: rgba(var(--accent-rgb), 0.22);
  color: #0d2a32;
}

html[data-theme='dark'] ::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: #f3fcfc;
}

html[data-theme='dark'] ::-moz-selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: #f3fcfc;
}

@supports (view-transition-name: root) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-group(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: pageTransitionOut;
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

::view-transition-new(root) {
  animation-name: pageTransitionIn;
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.page-transitions-off:not(.theme-transition-running)::view-transition-old(root),
html.page-transitions-off:not(.theme-transition-running)::view-transition-new(root) {
  animation: none !important;
}

html.theme-transition-running .hero-copy,
html.theme-transition-running .page-hero-card,
html.theme-transition-running .surface-card,
html.theme-transition-running .process-card,
html.theme-transition-running .info-card,
html.theme-transition-running .timeline-card,
html.theme-transition-running .quote-card,
html.theme-transition-running .project-card,
html.theme-transition-running .contact-card,
html.theme-transition-running .form-shell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --pointer-x: 50%;
  --pointer-y: 50%;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(var(--accent-rgb), 0.09), transparent 36%),
    radial-gradient(circle at 90% 11%, rgba(var(--accent-rgb), 0.055), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--bg));
  transition: background var(--transition), color var(--transition);
  cursor: default;
}

html[data-theme='dark'] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.055), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(var(--accent-rgb), 0.03), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg));
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
  opacity: 0.2;
  z-index: -2;
}

html[data-theme='dark'] body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.08;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    400px circle at var(--cursor-x) var(--cursor-y),
    rgba(var(--accent-rgb), 0.12),
    rgba(var(--accent-rgb), 0) 66%
  );
  transition: opacity 220ms ease;
}

html.has-global-pointer-effects body::after {
  opacity: 1;
}

html.ambient-webgl-ready.has-global-pointer-effects body::after {
  display: none;
}

html[data-theme='dark'] body::after {
  background: radial-gradient(
    440px circle at var(--cursor-x) var(--cursor-y),
    rgba(var(--accent-rgb), 0.1),
    rgba(var(--accent-rgb), 0) 68%
  );
}

html.custom-cursor-active,
html.custom-cursor-active body,
html.custom-cursor-active a,
html.custom-cursor-active button,
html.custom-cursor-active input,
html.custom-cursor-active textarea,
html.custom-cursor-active select,
html.custom-cursor-active label,
html.custom-cursor-active [role='button'] {
  cursor: none !important;
}

.custom-cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 2100;
  pointer-events: none;
}

.custom-cursor-ring,
.custom-cursor-dot {
  position: fixed;
  left: -100px;
  top: -100px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: transform, opacity;
}

.custom-cursor-ring {
  width: 25px;
  height: 25px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.88);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.03) 64%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(255, 255, 255, 0.46),
    0 0 18px rgba(var(--accent-rgb), 0.4);
}

.custom-cursor-dot {
  width: 7px;
  height: 7px;
  background: rgba(var(--accent-rgb), 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 12px rgba(var(--accent-rgb), 0.52),
    0 6px 14px rgba(255, 255, 255, 0.34);
}

html[data-theme='dark'] .custom-cursor-ring {
  border-color: rgba(var(--accent-rgb), 0.94);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.05) 64%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 14px 28px rgba(0, 0, 0, 0.68),
    0 0 18px rgba(var(--accent-rgb), 0.46);
}

html[data-theme='dark'] .custom-cursor-dot {
  background: rgba(var(--accent-rgb), 1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.68),
    0 0 13px rgba(var(--accent-rgb), 0.6),
    0 8px 15px rgba(0, 0, 0, 0.56);
}

html.custom-cursor-active.cursor-visible .custom-cursor-ring,
html.custom-cursor-active.cursor-visible .custom-cursor-dot {
  opacity: 1;
}

html.custom-cursor-active.cursor-hovering .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(1.35);
  border-color: rgba(var(--accent-rgb), 0.98);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.06) 66%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.94),
    0 16px 28px rgba(255, 255, 255, 0.5),
    0 0 24px rgba(var(--accent-rgb), 0.5);
}

html.custom-cursor-active.cursor-hovering .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(1.24);
}

html.custom-cursor-active.cursor-pressed .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(0.88);
}

html.custom-cursor-active.cursor-pressed .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(0.76);
}

html.custom-cursor-active.cursor-text-target .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(0.98);
}

html[data-theme='dark'].custom-cursor-active.cursor-hovering .custom-cursor-ring {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.76),
    0 16px 30px rgba(0, 0, 0, 0.74),
    0 0 24px rgba(var(--accent-rgb), 0.56);
}

.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -3;
  contain: paint;
}

.bg-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
}

.bg-ambient.has-canvas-particles .bg-particles,
.bg-ambient.has-webgl-ambient .bg-orb {
  display: none;
}

.custom-cursor-layer {
  contain: strict;
}

html.perf-lite body::after {
  display: none;
}

html.perf-lite .topbar,
html.perf-lite .hero-copy,
html.perf-lite .surface-card,
html.perf-lite .page-hero-card,
html.perf-lite .project-card,
html.perf-lite .contact-card,
html.perf-lite .process-card,
html.perf-lite .info-card,
html.perf-lite .stat-card,
html.perf-lite .timeline-card,
html.perf-lite .quote-card,
html.perf-lite .form-shell,
html.perf-lite .project-modal-backdrop {
  backdrop-filter: none !important;
}

html.perf-lite .bg-orb,
html.perf-lite .preview-glare {
  animation: none !important;
}

html.perf-lite .bg-orb {
  filter: blur(5px);
}

html.perf-lite .orbit-primary {
  animation-duration: 18s !important;
}

html.perf-lite .orbit-secondary {
  animation-duration: 24s !important;
}

html.perf-lite .orbit-tertiary {
  animation-duration: 34s !important;
}

html.perf-lite .system-glow {
  animation-duration: 8.4s !important;
  opacity: 0.82;
}

html.perf-lite .orbit-spark {
  animation-duration: 4s !important;
  opacity: 0.78;
}

html.perf-lite .bg-particles-canvas {
  opacity: 0.78;
}

html.perf-lite .custom-cursor-layer {
  display: none !important;
}

html.effects-tier-balanced .bg-particles.layer-b {
  display: none;
}

html.effects-tier-balanced .bg-orb {
  animation-duration: 72s;
  will-change: auto;
}

html.effects-tier-balanced .preview-glare {
  animation-play-state: paused;
  opacity: 0.34;
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  html.effects-tier-balanced .project-card:hover .preview-glare,
  html.effects-tier-balanced .project-card:focus-within .preview-glare {
    animation-duration: 14s;
    animation-play-state: running;
  }
}

html.effects-tier-balanced .bg-particles {
  animation-duration: 118s;
  will-change: auto;
}

html.effects-tier-balanced .chat-line,
html.effects-tier-balanced .bar,
html.effects-tier-balanced .preview-line span,
html.effects-tier-balanced .tracker-price-new,
html.effects-tier-balanced .tracker-sparkline span,
html.effects-tier-balanced .tracker-alert-card,
html.effects-tier-balanced .tracker-chat-dot,
html.effects-tier-balanced .tracker-chat-bubble,
html.effects-tier-balanced .tracker-chat-typing,
html.effects-tier-balanced .tracker-alert-chip,
html.effects-tier-balanced .panel,
html.effects-tier-balanced .ship,
html.effects-tier-balanced .projectile,
html.effects-tier-balanced .enemy {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  html.effects-tier-balanced .project-card:hover .chat-line,
  html.effects-tier-balanced .project-card:hover .bar,
  html.effects-tier-balanced .project-card:hover .preview-line span,
  html.effects-tier-balanced .project-card:hover .tracker-price-new,
  html.effects-tier-balanced .project-card:hover .tracker-sparkline span,
  html.effects-tier-balanced .project-card:hover .tracker-alert-card,
  html.effects-tier-balanced .project-card:hover .tracker-chat-dot,
  html.effects-tier-balanced .project-card:hover .tracker-chat-bubble,
  html.effects-tier-balanced .project-card:hover .tracker-chat-typing,
  html.effects-tier-balanced .project-card:hover .tracker-alert-chip,
  html.effects-tier-balanced .project-card:hover .panel,
  html.effects-tier-balanced .project-card:hover .ship,
  html.effects-tier-balanced .project-card:hover .projectile,
  html.effects-tier-balanced .project-card:hover .enemy,
  html.effects-tier-balanced .project-card:focus-within .chat-line,
  html.effects-tier-balanced .project-card:focus-within .bar,
  html.effects-tier-balanced .project-card:focus-within .preview-line span,
  html.effects-tier-balanced .project-card:focus-within .tracker-price-new,
  html.effects-tier-balanced .project-card:focus-within .tracker-sparkline span,
  html.effects-tier-balanced .project-card:focus-within .tracker-alert-card,
  html.effects-tier-balanced .project-card:focus-within .tracker-chat-dot,
  html.effects-tier-balanced .project-card:focus-within .tracker-chat-bubble,
  html.effects-tier-balanced .project-card:focus-within .tracker-chat-typing,
  html.effects-tier-balanced .project-card:focus-within .tracker-alert-chip,
  html.effects-tier-balanced .project-card:focus-within .panel,
  html.effects-tier-balanced .project-card:focus-within .ship,
  html.effects-tier-balanced .project-card:focus-within .projectile,
  html.effects-tier-balanced .project-card:focus-within .enemy {
    animation-play-state: running;
  }
}

html.effects-tier-off .bg-ambient,
html.effects-tier-off body::after,
html.effects-tier-off .custom-cursor-layer {
  display: none !important;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  will-change: transform;
  animation: ambientFloat 56s ease-in-out infinite;
}

.bg-orb-a {
  width: clamp(240px, 34vw, 520px);
  aspect-ratio: 1;
  top: -8%;
  left: -5%;
  background: radial-gradient(circle, rgba(79, 125, 255, 0.15), rgba(79, 125, 255, 0) 72%);
}

.bg-orb-b {
  width: clamp(220px, 28vw, 420px);
  aspect-ratio: 1;
  top: 58%;
  right: -8%;
  animation-duration: 72s;
  animation-delay: -8s;
  background: radial-gradient(circle, rgba(79, 125, 255, 0.11), rgba(79, 125, 255, 0) 72%);
}

.bg-orb-c {
  width: clamp(180px, 24vw, 340px);
  aspect-ratio: 1;
  top: 26%;
  left: 42%;
  animation-duration: 64s;
  animation-delay: -14s;
  background: radial-gradient(circle, rgba(79, 125, 255, 0.08), rgba(79, 125, 255, 0) 72%);
}

.bg-particles {
  position: absolute;
  inset: -18%;
  opacity: 0.34;
  will-change: transform;
  background-image:
    radial-gradient(circle, rgba(79, 125, 255, 0.28) 1.15px, transparent 1.15px),
    radial-gradient(circle, rgba(79, 125, 255, 0.16) 0.85px, transparent 0.85px);
  background-size:
    84px 84px,
    52px 52px;
  background-position:
    calc(50% + var(--particle-shift-x)) calc(50% + var(--particle-shift-y)),
    calc(18% - var(--particle-shift-soft-x)) calc(24% - var(--particle-shift-soft-y));
  mask-image: radial-gradient(circle at center, black 62%, transparent 100%);
  transition: background-position 360ms ease-out;
  animation: particlesDrift 72s linear infinite;
}

.bg-particles.layer-b {
  opacity: 0.2;
  background-image:
    radial-gradient(circle, rgba(79, 125, 255, 0.18) 0.95px, transparent 0.95px),
    radial-gradient(circle, rgba(79, 125, 255, 0.1) 0.72px, transparent 0.72px);
  background-size:
    118px 118px,
    68px 68px;
  background-position:
    calc(50% + var(--particle-shift-soft-x)) calc(50% + var(--particle-shift-soft-y)),
    calc(70% - var(--particle-shift-x)) calc(74% - var(--particle-shift-y));
  transition-duration: 520ms;
  animation: particlesDriftAlt 88s linear infinite reverse;
  transform: rotate(8deg);
}

html[data-theme='dark'] .bg-orb-a {
  background: radial-gradient(circle, rgba(155, 188, 255, 0.09), rgba(155, 188, 255, 0) 74%);
}

html[data-theme='dark'] .bg-orb-b {
  background: radial-gradient(circle, rgba(155, 188, 255, 0.065), rgba(155, 188, 255, 0) 74%);
}

html[data-theme='dark'] .bg-orb-c {
  background: radial-gradient(circle, rgba(155, 188, 255, 0.045), rgba(155, 188, 255, 0) 74%);
}

html[data-theme='dark'] .bg-particles {
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(155, 188, 255, 0.24) 1.1px, transparent 1.1px),
    radial-gradient(circle, rgba(155, 188, 255, 0.14) 0.8px, transparent 0.8px);
}

html[data-theme='dark'] .bg-particles.layer-b {
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(155, 188, 255, 0.18) 0.9px, transparent 0.9px),
    radial-gradient(circle, rgba(155, 188, 255, 0.08) 0.7px, transparent 0.7px);
}

.bg-ambient.is-lite .bg-orb-c,
.bg-ambient.is-lite .bg-particles.layer-b {
  display: none;
}

.bg-ambient.is-lite .bg-orb {
  filter: blur(9px);
  animation-duration: 80s;
}

.bg-ambient.is-lite .bg-particles {
  opacity: 0.28;
  animation-duration: 96s;
  background-size:
    92px 92px,
    62px 62px;
}

html[data-theme='dark'] .bg-ambient.is-lite .bg-particles {
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
textarea {
  cursor: text;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section.compact {
  padding: var(--section-pad-compact) 0;
}

@supports (content-visibility: auto) {
  .section,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 780px;
  }

  .hero,
  .page-hero {
    content-visibility: visible;
    contain-intrinsic-size: initial;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.55rem;
}

.section-heading h2,
.hero-title,
.page-title,
.serif-title {
  margin: 0.8rem 0 0.9rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.section-heading p,
.copy,
.lead,
.page-intro {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.serif-feature-title {
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 0.95rem;
}

.topbar {
  position: relative;
  overflow: hidden;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.64)),
    radial-gradient(circle at 92% -45%, rgba(var(--accent-rgb), 0.12), transparent 54%),
    var(--bg-elevated);
  backdrop-filter: saturate(128%) blur(10px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme='dark'] .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
    radial-gradient(circle at 88% -34%, rgba(var(--accent-rgb), 0.07), transparent 56%),
    var(--bg-elevated);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

html[data-theme='dark'] .topbar::before {
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.22), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand::before {
  content: '';
  flex: 0 0 auto;
  width: 2px;
  height: 1.02rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.9), rgba(88, 101, 242, 0.36));
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.08), 0 0 10px rgba(88, 101, 242, 0.16);
}

html[data-theme='dark'] .brand::before {
  background: linear-gradient(180deg, rgba(192, 202, 255, 0.92), rgba(166, 178, 255, 0.42));
  box-shadow: 0 0 0 1px rgba(166, 178, 255, 0.16), 0 0 10px rgba(166, 178, 255, 0.22);
}

.brand span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: color var(--transition), background var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 9px 20px rgba(var(--accent-rgb), 0.14);
  transform: translateY(-1px);
}

html[data-theme='dark'] .nav-links a:hover,
html[data-theme='dark'] .nav-links a[aria-current='page'] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(var(--accent-rgb), 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.command-palette-open {
  overflow: hidden;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(0.8rem, 5vh, 3rem) 0.8rem 0.8rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.command-palette.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.command-palette-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(6, 12, 24, 0.38);
  backdrop-filter: blur(5px);
}

html[data-theme='dark'] .command-palette-backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.command-palette-panel {
  position: relative;
  width: min(680px, calc(100vw - 1.2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.85)),
    var(--surface-soft);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  overflow: hidden;
  transform: translateY(-8px) scale(0.985);
  transition: transform var(--transition), opacity var(--transition);
}

html[data-theme='dark'] .command-palette-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface-soft);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.command-palette.is-open .command-palette-panel {
  transform: translateY(0) scale(1);
}

.command-palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem 0.45rem;
}

.command-palette-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.command-palette-kbd {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.18rem 0.38rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme='dark'] .command-palette-kbd {
  background: rgba(255, 255, 255, 0.045);
}

.command-palette-input-wrap {
  padding: 0 0.8rem 0.65rem;
}

.command-palette-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0.68rem 0.78rem;
  font-size: 0.95rem;
  line-height: 1.3;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

html[data-theme='dark'] .command-palette-input {
  background: rgba(255, 255, 255, 0.04);
}

.command-palette-input:focus-visible {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.command-palette-list {
  max-height: min(56vh, 420px);
  overflow: auto;
  padding: 0 0.5rem 0.6rem;
  display: grid;
  gap: 0.35rem;
}

.command-palette-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 0.58rem;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast),
    color var(--transition-fast);
}

.command-palette-item-main {
  display: grid;
  gap: 0.08rem;
}

.command-palette-item-label {
  font-weight: 600;
  line-height: 1.25;
}

.command-palette-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.command-palette-item-hint {
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-soft);
  opacity: 0.86;
}

.command-palette-item:hover,
.command-palette-item.is-active {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

html[data-theme='dark'] .command-palette-item:hover,
html[data-theme='dark'] .command-palette-item.is-active {
  background: rgba(var(--accent-rgb), 0.16);
}

.command-palette-empty {
  margin: 0;
  padding: 0.82rem 0.55rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .menu-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
}

.theme-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.44;
  background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.42), transparent 66%);
}

html[data-theme='dark'] .theme-toggle::after {
  opacity: 0.18;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 62%);
}

html[data-theme='dark'] .theme-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-icon {
  display: block;
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--accent);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color var(--transition-smooth);
}

.theme-icon::before,
.theme-icon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), background var(--transition-smooth),
    border-color var(--transition-smooth);
}

html[data-theme='light'] .theme-icon {
  color: #1f8ea4;
  transform: rotate(0deg);
}

html[data-theme='light'] .theme-icon::before {
  inset: 1px;
  border: 1.6px solid #5865f2;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #bac4ff 38%, #5865f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 10px rgba(88, 101, 242, 0.34);
  opacity: 1;
  transform: scale(1);
}

html[data-theme='light'] .theme-icon::after {
  inset: -3px;
  width: auto;
  height: auto;
  border: 1.5px solid rgba(88, 101, 242, 0.54);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

html[data-theme='dark'] .theme-icon {
  color: #b8e6e8;
  transform: rotate(-12deg) translateX(1px);
}

html[data-theme='dark'] .theme-icon::before {
  inset: 1px;
  border: 1.6px solid rgba(184, 230, 232, 0.92);
  background: linear-gradient(145deg, #effbfc 0%, #b8e5e8 100%);
  opacity: 1;
  transform: scale(1);
}

html[data-theme='dark'] .theme-icon::after {
  width: 10px;
  height: 10px;
  top: -1px;
  right: -2px;
  border: 1px solid rgba(184, 230, 232, 0.16);
  background: var(--surface);
  opacity: 1;
  transform: scale(1);
}

.menu-toggle {
  display: none;
  position: relative;
  padding: 0;
  color: var(--text);
  overflow: hidden;
}

.menu-toggle .menu-icon {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle .menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.topbar.menu-open .menu-toggle {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

html[data-theme='dark'] .topbar.menu-open .menu-toggle {
  background: rgba(var(--accent-rgb), 0.16);
  color: #d8f2f3;
}

.topbar.menu-open .menu-toggle .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.menu-open .menu-toggle .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.42);
}

.topbar.menu-open .menu-toggle .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition);
}

.button.primary,
.link-button.primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(79, 125, 255, 0.28);
  background: linear-gradient(152deg, #7ea6ff 0%, #4f7dff 52%, #315bd6 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 63, 150, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.button.primary:hover,
.link-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(37, 63, 150, 0.3), 0 0 0 1px rgba(79, 125, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button.primary::after,
.link-button.primary::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -32%;
  width: 54%;
  height: 240%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: opacity 260ms ease, transform 420ms ease;
}

.button.primary:hover::after,
.link-button.primary:hover::after {
  opacity: 0.92;
  transform: translateX(210%) rotate(18deg);
}

html[data-theme='dark'] .button.primary,
html[data-theme='dark'] .link-button.primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    linear-gradient(156deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.07) 58%, rgba(14, 22, 42, 0.2));
  border-color: rgba(var(--accent-rgb), 0.22);
  color: #eef4ff;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .button.primary:hover,
html[data-theme='dark'] .link-button.primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    linear-gradient(156deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.09) 58%, rgba(15, 24, 46, 0.24));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.button.secondary,
.link-button.secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.button.secondary:hover,
.link-button.secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

html[data-theme='dark'] .button.secondary,
html[data-theme='dark'] .link-button.secondary {
  background: rgba(255, 255, 255, 0.03);
}

.theme-toggle:hover,
.menu-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible,
.link-button:focus-visible,
.nav-links a:focus-visible,
.footer-link:focus-visible,
.device-profile-button:focus-visible,
.contact-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.desktop-only {
  display: inline-flex;
}

.hero {
  padding: 72px 0 42px;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0.95rem;
  align-items: stretch;
}

.hero-copy,
.surface-card,
.page-hero-card,
.project-card,
.contact-card,
.process-card,
.info-card,
.stat-card,
.timeline-card,
.quote-card,
.form-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  background:
    linear-gradient(170deg, rgba(88, 101, 242, 0.08), rgba(88, 101, 242, 0) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)),
    var(--surface-soft);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --base-transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--lift));
  transform: var(--base-transform);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backface-visibility: hidden;
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  html.has-pointer-effects .hero-copy:hover,
  html.has-pointer-effects .hero-copy:focus-within,
  html.has-pointer-effects .page-hero-card:hover,
  html.has-pointer-effects .page-hero-card:focus-within,
  html.has-pointer-effects .surface-card:hover,
  html.has-pointer-effects .surface-card:focus-within,
  html.has-pointer-effects .project-card:hover,
  html.has-pointer-effects .project-card:focus-within,
  html.has-pointer-effects .contact-card:hover,
  html.has-pointer-effects .contact-card:focus-within,
  html.has-pointer-effects .process-card:hover,
  html.has-pointer-effects .process-card:focus-within,
  html.has-pointer-effects .info-card:hover,
  html.has-pointer-effects .info-card:focus-within,
  html.has-pointer-effects .stat-card:hover,
  html.has-pointer-effects .stat-card:focus-within,
  html.has-pointer-effects .timeline-card:hover,
  html.has-pointer-effects .timeline-card:focus-within,
  html.has-pointer-effects .quote-card:hover,
  html.has-pointer-effects .quote-card:focus-within,
  html.has-pointer-effects .form-shell:hover,
  html.has-pointer-effects .form-shell:focus-within {
    will-change: transform;
  }
}

html:not(.has-pointer-effects) .hero-copy,
html:not(.has-pointer-effects) .page-hero-card,
html:not(.has-pointer-effects) .surface-card,
html:not(.has-pointer-effects) .project-card,
html:not(.has-pointer-effects) .contact-card,
html:not(.has-pointer-effects) .process-card,
html:not(.has-pointer-effects) .info-card,
html:not(.has-pointer-effects) .stat-card,
html:not(.has-pointer-effects) .timeline-card,
html:not(.has-pointer-effects) .quote-card,
html:not(.has-pointer-effects) .form-shell {
  transform: translateY(var(--lift));
  transform-style: flat;
  will-change: auto;
}

html.perf-lite .hero-copy,
html.perf-lite .page-hero-card,
html.perf-lite .surface-card,
html.perf-lite .project-card,
html.perf-lite .contact-card,
html.perf-lite .process-card,
html.perf-lite .info-card,
html.perf-lite .stat-card,
html.perf-lite .timeline-card,
html.perf-lite .quote-card,
html.perf-lite .form-shell {
  transform: translateY(var(--lift));
  transform-style: flat;
  will-change: auto;
}

html[data-theme='dark'] .hero-copy,
html[data-theme='dark'] .surface-card,
html[data-theme='dark'] .page-hero-card,
html[data-theme='dark'] .project-card,
html[data-theme='dark'] .contact-card,
html[data-theme='dark'] .process-card,
html[data-theme='dark'] .info-card,
html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .timeline-card,
html[data-theme='dark'] .quote-card,
html[data-theme='dark'] .form-shell {
  background:
    linear-gradient(
      156deg,
      rgba(var(--accent-rgb), 0.08),
      rgba(var(--accent-rgb), 0.015) 54%,
      rgba(var(--accent-rgb), 0) 76%
    ),
    linear-gradient(180deg, rgba(7, 12, 16, 0.98), rgba(4, 8, 11, 0.96));
  border-color: rgba(214, 226, 255, 0.11);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(var(--accent-rgb), 0.06);
}

.hero-copy {
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}

.role-chip,
.tag,
.project-metric,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
}

html[data-theme='dark'] .role-chip,
html[data-theme='dark'] .tag,
html[data-theme='dark'] .project-metric,
html[data-theme='dark'] .badge {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.05));
  color: rgba(228, 239, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--text-muted);
}

.hero-panel {
  display: grid;
}

.hero-visual {
  padding: 1rem;
}

.page-hero-card,
.surface-card,
.project-card,
.contact-card,
.process-card,
.info-card,
.stat-card,
.timeline-card,
.quote-card,
.form-shell {
  padding: 1.25rem;
}

.hero-visual::before,
.page-hero-card::before,
.project-card::before,
.quote-card::before,
.form-shell::before,
.surface-card::before {
  content: '';
  position: absolute;
  inset: auto -10% -42% auto;
  width: 176px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0) 70%);
  pointer-events: none;
  filter: blur(0.4px);
}

.hero-copy::after,
.page-hero-card::after,
.surface-card::after,
.project-card::after,
.contact-card::after,
.process-card::after,
.info-card::after,
.timeline-card::after,
.quote-card::after,
.form-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 255, 255, 0.21),
    rgba(255, 255, 255, 0) 52%
  );
  transition: opacity var(--transition);
}

html[data-theme='dark'] .hero-copy::after,
html[data-theme='dark'] .page-hero-card::after,
html[data-theme='dark'] .surface-card::after,
html[data-theme='dark'] .project-card::after,
html[data-theme='dark'] .contact-card::after,
html[data-theme='dark'] .process-card::after,
html[data-theme='dark'] .info-card::after,
html[data-theme='dark'] .timeline-card::after,
html[data-theme='dark'] .quote-card::after,
html[data-theme='dark'] .form-shell::after {
  background: radial-gradient(
    280px circle at var(--pointer-x) var(--pointer-y),
    rgba(var(--accent-rgb), 0.09),
    rgba(var(--accent-rgb), 0) 58%
  );
}

.hero-frame {
  min-height: 454px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(140deg, rgba(88, 101, 242, 0.2), transparent 55%),
    var(--surface);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.82rem;
  position: relative;
  overflow: hidden;
}

html[data-theme='dark'] .hero-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.006)),
    linear-gradient(140deg, rgba(166, 178, 255, 0.12), transparent 64%),
    var(--surface);
}

html.device-strong .hero-frame {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 30px 62px rgba(9, 20, 42, 0.2),
    0 0 0 1px rgba(var(--accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html.device-strong .hero-frame::before,
html.device-strong .hero-frame::after,
html.device-strong .orbit-system::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

html.device-strong .hero-frame::before {
  width: 170%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(var(--accent-rgb), 0) 0deg,
    rgba(var(--accent-rgb), 0.16) 70deg,
    rgba(var(--accent-rgb), 0) 150deg,
    rgba(var(--accent-rgb), 0.11) 235deg,
    rgba(var(--accent-rgb), 0) 360deg
  );
  opacity: 0.72;
  mix-blend-mode: soft-light;
  animation: strongFrameHalo 16s linear infinite;
}

html[data-theme='dark'].device-strong .hero-frame::before {
  opacity: 0.5;
  mix-blend-mode: screen;
}

html.device-strong .hero-frame::after {
  inset: -18% -42%;
  z-index: 0;
  transform: translateX(-34%) rotate(11deg);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(var(--accent-rgb), 0.28), rgba(255, 255, 255, 0));
  opacity: 0.32;
  filter: blur(1px);
  animation: strongFrameSweep 9s ease-in-out infinite;
}

html[data-theme='dark'].device-strong .hero-frame::after {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0));
  opacity: 0.3;
}

html.device-strong .hero-frame > * {
  position: relative;
  z-index: 1;
}

.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.frame-window {
  display: flex;
  gap: 0.35rem;
}

.frame-window span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.72);
}

.frame-window span:nth-child(2) {
  background: rgba(14, 31, 64, 0.36);
}

html[data-theme='dark'] .frame-window span:nth-child(2) {
  background: rgba(129, 161, 221, 0.46);
}

.frame-window span:nth-child(3) {
  background: rgba(148, 163, 184, 0.66);
}

.frame-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.orbit-system {
  position: relative;
  height: 172px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 24%, rgba(88, 101, 242, 0.15), transparent 38%),
    radial-gradient(circle at 78% 76%, rgba(88, 101, 242, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html[data-theme='dark'] .orbit-system {
  background:
    radial-gradient(circle at 20% 24%, rgba(166, 178, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 76%, rgba(166, 178, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.device-strong .orbit-system::after {
  inset: -24%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 18%, rgba(var(--accent-rgb), 0.16), transparent 44%),
    radial-gradient(circle at 78% 78%, rgba(var(--accent-rgb), 0.14), transparent 46%);
  opacity: 0.7;
  animation: strongOrbitShift 18s ease-in-out infinite;
}

html[data-theme='dark'].device-strong .orbit-system::after {
  opacity: 0.52;
}

html.device-strong .orbit-system .system-glow,
html.device-strong .orbit-system .orbit,
html.device-strong .orbit-system .orbit-spark {
  z-index: 1;
}

html.device-strong .orbit-system .system-core {
  z-index: 3;
}

html.device-strong .orbit-system .orbit-caption {
  z-index: 4;
}

.orbit-system::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.58) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.14;
}

html[data-theme='dark'] .orbit-system::before {
  opacity: 0.18;
}

.system-glow {
  position: absolute;
  width: 138px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.35), rgba(88, 101, 242, 0) 70%);
  filter: blur(3px);
  animation: pulseSystem 5.8s ease-in-out infinite;
}

html[data-theme='dark'] .system-glow {
  background: radial-gradient(circle, rgba(166, 178, 255, 0.34), rgba(166, 178, 255, 0) 72%);
}

.system-core {
  position: absolute;
  width: 28px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #bcc4ff 36%, #5a67f2 72%);
  box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.15), 0 10px 20px rgba(12, 58, 68, 0.3);
  animation: pulseCore 4.4s ease-in-out infinite;
}

html[data-theme='dark'] .system-core {
  background: radial-gradient(circle at 35% 30%, #f3fcfc 0%, #d3d8ff 34%, #8c97ff 72%);
  box-shadow: 0 0 0 6px rgba(166, 178, 255, 0.17), 0 10px 22px rgba(0, 0, 0, 0.52);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(88, 101, 242, 0.44);
  pointer-events: none;
  will-change: transform;
}

.orbit-primary {
  width: 78px;
  aspect-ratio: 1;
  animation: orbitSpin 12s linear infinite;
}

.orbit-secondary {
  width: 126px;
  aspect-ratio: 1;
  border-color: rgba(88, 101, 242, 0.32);
  animation: orbitSpinReverse 18s linear infinite;
}

.orbit-tertiary {
  width: 178px;
  aspect-ratio: 1;
  border-color: rgba(88, 101, 242, 0.24);
  animation: orbitSpin 28s linear infinite;
}

html[data-theme='dark'] .orbit-primary {
  border-color: rgba(166, 178, 255, 0.48);
}

html[data-theme='dark'] .orbit-secondary {
  border-color: rgba(166, 178, 255, 0.34);
}

html[data-theme='dark'] .orbit-tertiary {
  border-color: rgba(166, 178, 255, 0.24);
}

.planet {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(16, 38, 80, 0.24);
}

.planet-primary {
  width: 10px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #ffffff, #9adfe4 44%, #2f9fa8);
}

.planet-secondary {
  width: 13px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f9fdfd, #bae8ea 45%, #55b7c0);
}

.planet-secondary::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(85, 183, 192, 0.42);
}

.planet-tertiary {
  width: 9px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f8fdfd, #c8eeef 45%, #7fc7cd);
}

html[data-theme='dark'] .planet-primary {
  background: linear-gradient(145deg, #f8fdfd, #bbe6e8 44%, #7dc8ce);
}

html[data-theme='dark'] .planet-secondary {
  background: linear-gradient(145deg, #f8fdfd, #cceff0 45%, #9bd8dc);
}

html[data-theme='dark'] .planet-secondary::after {
  border-color: rgba(155, 216, 220, 0.56);
}

html[data-theme='dark'] .planet-tertiary {
  background: linear-gradient(145deg, #f8fdfd, #d0f0f2 45%, #afe2e5);
}

.orbit-spark {
  position: absolute;
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-a {
  top: 26%;
  left: 24%;
}

.spark-b {
  right: 18%;
  bottom: 28%;
  animation-delay: 1.2s;
}

.orbit-caption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 6;
  font-size: 0.66rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0.6px rgba(88, 101, 242, 0.62),
    0 0 10px rgba(88, 101, 242, 0.4),
    0 7px 16px rgba(88, 101, 242, 0.34);
}

html[data-theme='dark'] .orbit-caption {
  color: #d3f1f2;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.94),
    0 0 0.7px rgba(0, 0, 0, 0.92),
    0 4px 12px rgba(0, 0, 0, 0.84),
    0 10px 24px rgba(0, 0, 0, 0.72);
}

.frame-stack {
  display: grid;
  gap: 0.52rem;
}

.stack-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.56);
}

html[data-theme='dark'] .stack-line {
  background: rgba(255, 255, 255, 0.018);
}

html[data-theme='dark'] .hero-visual::before {
  opacity: 0;
}

html[data-theme='dark'] .page-hero-card::before,
html[data-theme='dark'] .surface-card::before,
html[data-theme='dark'] .project-card::before,
html[data-theme='dark'] .contact-card::before,
html[data-theme='dark'] .process-card::before,
html[data-theme='dark'] .info-card::before,
html[data-theme='dark'] .timeline-card::before,
html[data-theme='dark'] .quote-card::before,
html[data-theme='dark'] .form-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006) 30%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 16% -6%, rgba(var(--accent-rgb), 0.05), rgba(var(--accent-rgb), 0) 44%);
  opacity: 1;
  filter: none;
  pointer-events: none;
}

html[data-theme='dark'] .gold-line,
html[data-theme='dark'] .divider {
  background: linear-gradient(90deg, transparent, rgba(166, 178, 255, 0.42), transparent);
}

.stack-line strong {
  font-size: 0.94rem;
}

.stack-line span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.stat-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.stat-card span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.grid-2,
.grid-3,
.grid-4,
.projects-grid,
.contact-grid,
.footer-grid,
.process-grid,
.info-grid {
  display: grid;
  gap: var(--card-gap);
}

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

.grid-3,
.projects-grid,
.contact-grid,
.process-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-copy,
.page-hero-card,
.surface-card,
.process-card,
.info-card,
.timeline-card,
.quote-card,
.project-card,
.contact-card,
.form-shell {
  transition: transform var(--transition-fast), border-color var(--transition), box-shadow var(--transition),
    background var(--transition), opacity var(--transition), filter var(--transition-fast);
}

html.device-strong .hero-copy,
html.device-strong .page-hero-card,
html.device-strong .surface-card,
html.device-strong .process-card,
html.device-strong .info-card,
html.device-strong .timeline-card,
html.device-strong .quote-card,
html.device-strong .project-card,
html.device-strong .contact-card,
html.device-strong .form-shell {
  background:
    linear-gradient(164deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0) 56%),
    radial-gradient(circle at 90% -8%, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--surface-soft);
  box-shadow:
    0 24px 56px rgba(9, 21, 44, 0.16),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme='dark'].device-strong .hero-copy,
html[data-theme='dark'].device-strong .page-hero-card,
html[data-theme='dark'].device-strong .surface-card,
html[data-theme='dark'].device-strong .process-card,
html[data-theme='dark'].device-strong .info-card,
html[data-theme='dark'].device-strong .timeline-card,
html[data-theme='dark'].device-strong .quote-card,
html[data-theme='dark'].device-strong .project-card,
html[data-theme='dark'].device-strong .contact-card,
html[data-theme='dark'].device-strong .form-shell {
  background:
    linear-gradient(
      158deg,
      rgba(var(--accent-rgb), 0.09),
      rgba(var(--accent-rgb), 0.018) 52%,
      rgba(var(--accent-rgb), 0) 74%
    ),
    radial-gradient(circle at 94% -10%, rgba(var(--accent-rgb), 0.09), rgba(var(--accent-rgb), 0) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.004)),
    linear-gradient(180deg, rgba(7, 12, 16, 0.99), rgba(4, 8, 11, 0.97));
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (hover: hover) {
  html.has-pointer-effects .hero-copy:hover::after,
  html.has-pointer-effects .page-hero-card:hover::after,
  html.has-pointer-effects .surface-card:hover::after,
  html.has-pointer-effects .process-card:hover::after,
  html.has-pointer-effects .info-card:hover::after,
  html.has-pointer-effects .timeline-card:hover::after,
  html.has-pointer-effects .quote-card:hover::after,
  html.has-pointer-effects .project-card:not([data-project-modal-card]):hover::after,
  html.has-pointer-effects .contact-card:hover::after,
  html.has-pointer-effects .form-shell:hover::after {
    opacity: 1;
  }

  .hero-copy:hover,
  .page-hero-card:hover,
  .surface-card:hover,
  .process-card:hover,
  .info-card:hover,
  .timeline-card:hover,
  .quote-card:hover,
  .project-card:not([data-project-modal-card]):hover,
  .contact-card:hover,
  .form-shell:hover {
    --lift: -5px;
    border-color: var(--border-strong);
    box-shadow: var(--shadow), 0 0 0 1px rgba(88, 101, 242, 0.11);
  }

  html[data-theme='dark'] .hero-copy:hover,
  html[data-theme='dark'] .page-hero-card:hover,
  html[data-theme='dark'] .surface-card:hover,
  html[data-theme='dark'] .process-card:hover,
  html[data-theme='dark'] .info-card:hover,
  html[data-theme='dark'] .timeline-card:hover,
  html[data-theme='dark'] .quote-card:hover,
  html[data-theme='dark'] .project-card:not([data-project-modal-card]):hover,
  html[data-theme='dark'] .contact-card:hover,
  html[data-theme='dark'] .form-shell:hover {
    border-color: rgba(var(--accent-rgb), 0.2);
    box-shadow:
      0 36px 68px rgba(0, 0, 0, 0.72),
      0 0 0 1px rgba(var(--accent-rgb), 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.surface-card h3,
.process-card h3,
.info-card h3,
.timeline-card h3,
.project-card h3,
.contact-card h3,
.form-shell h3 {
  margin: 0.9rem 0 0.52rem;
  font-size: 1.16rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.19), rgba(88, 101, 242, 0.08));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
}

.card-icon svg {
  width: 1.08em;
  height: 1.08em;
  display: block;
  fill: currentColor;
}

html[data-theme='dark'] .card-icon {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.05));
  color: rgba(236, 244, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gold-line {
  width: 100%;
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.58), transparent);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}


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

  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes particlesDrift {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(1);
  }

  16% {
    transform: translate3d(2%, -4%, 0) rotate(8deg) scale(1.04);
  }

  33% {
    transform: translate3d(5%, -1%, 0) rotate(3deg) scale(0.98);
  }

  49% {
    transform: translate3d(1%, 3%, 0) rotate(-6deg) scale(1.02);
  }

  67% {
    transform: translate3d(-4%, 5%, 0) rotate(7deg) scale(1.03);
  }

  84% {
    transform: translate3d(-6%, 1%, 0) rotate(-3deg) scale(0.99);
  }

  100% {
    transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(1);
  }
}

@keyframes particlesDriftAlt {
  0% {
    transform: translate3d(4%, 3%, 0) rotate(10deg) scale(1);
  }

  20% {
    transform: translate3d(0%, -2%, 0) rotate(0deg) scale(1.05);
  }

  39% {
    transform: translate3d(-5%, -4%, 0) rotate(-9deg) scale(0.98);
  }

  58% {
    transform: translate3d(-2%, 1%, 0) rotate(-1deg) scale(1.02);
  }

  76% {
    transform: translate3d(3%, 5%, 0) rotate(11deg) scale(1.03);
  }

  100% {
    transform: translate3d(4%, 3%, 0) rotate(10deg) scale(1);
  }
}


@keyframes pageTransitionIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pageTransitionOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.projects-grid[data-project-grid] {
  transition: opacity var(--transition-fast);
}


.project-card {
  min-height: 286px;
  display: flex;
  flex-direction: column;
}

[data-project-card][hidden] {
  display: none !important;
}

.project-card .project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-preview {
  position: relative;
  margin: 0.65rem 0 0.2rem;
  height: 96px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(88, 101, 242, 0.22), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(88, 101, 242, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

html[data-theme='dark'] .project-preview {
  background:
    radial-gradient(circle at 20% 20%, rgba(166, 178, 255, 0.24), transparent 38%),
    radial-gradient(circle at 82% 80%, rgba(166, 178, 255, 0.17), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(88, 101, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 101, 242, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.34;
}

html[data-theme='dark'] .project-preview::before {
  opacity: 0.3;
}

.preview-glare {
  position: absolute;
  top: -18%;
  left: -12%;
  width: 34%;
  height: 148%;
  transform: translate3d(0, 0, 0) rotate(14deg);
  transform-origin: center;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.2) 52%, transparent 84%);
  opacity: 0.52;
  filter: blur(0.3px);
  mix-blend-mode: soft-light;
  animation: previewGlide 8.8s cubic-bezier(0.33, 0.02, 0.16, 1) infinite;
  will-change: transform, opacity;
}

html[data-theme='dark'] .preview-glare {
  background: linear-gradient(110deg, transparent 20%, rgba(166, 194, 245, 0.2) 52%, transparent 82%);
  opacity: 0.44;
}

.preview-bot .preview-chat {
  position: absolute;
  inset: 0;
  padding: 0.72rem 0.62rem;
  display: grid;
  gap: 0.4rem;
}

.chat-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.38), rgba(88, 101, 242, 0.14));
  transform-origin: left center;
  animation: chatPulse 3.6s ease-in-out infinite;
}

.chat-line.left {
  justify-self: start;
}

.chat-line.right {
  justify-self: end;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.24), rgba(88, 101, 242, 0.1));
}

.chat-line.short {
  width: 40%;
}

.chat-line.mid {
  width: 56%;
}

.chat-line.long {
  width: 74%;
}

.preview-dashboard {
  padding: 0.62rem;
  display: grid;
  gap: 0.45rem;
}

.preview-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.3rem;
  height: 54px;
}

.bar {
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.78), rgba(88, 101, 242, 0.36));
  animation: barPulse 2.9s ease-in-out infinite;
}

.bar.b1 {
  height: 38%;
}

.bar.b2 {
  height: 66%;
  animation-delay: 0.22s;
}

.bar.b3 {
  height: 52%;
  animation-delay: 0.45s;
}

.bar.b4 {
  height: 78%;
  animation-delay: 0.68s;
}

.bar.b5 {
  height: 60%;
  animation-delay: 0.9s;
}

.preview-line {
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.preview-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.54), transparent);
  transform: translateX(-100%);
  animation: lineSweep 3.8s ease-in-out infinite;
}

.preview-tracker {
  padding: 0.56rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.42rem;
  align-items: stretch;
}

.tracker-price-card,
.tracker-alert-card {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.tracker-price-card {
  padding: 0.44rem 0.48rem 0.42rem;
  display: grid;
  gap: 0.34rem;
}

.tracker-price-card::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.44), transparent);
  opacity: 0.68;
}

.tracker-title-line {
  width: 58%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.44), rgba(88, 101, 242, 0.16));
}

.tracker-prices {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.tracker-price-old {
  position: relative;
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.24);
  opacity: 0.72;
}

.tracker-price-old::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  background: rgba(88, 101, 242, 0.48);
  transform: rotate(-11deg);
}

.tracker-price-new {
  width: 44px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.95), rgba(136, 118, 255, 0.72));
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.32);
  animation: trackerPricePulse 2.8s ease-in-out infinite;
}

.tracker-sparkline {
  position: relative;
  height: 20px;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.2);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.tracker-sparkline::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.7), rgba(88, 101, 242, 0.22));
  transform: skewX(-18deg);
}

.tracker-sparkline span {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, transparent 18%, rgba(88, 101, 242, 0.34) 52%, transparent 82%);
  transform: translateX(-100%);
  animation: trackerSweep 3.7s ease-in-out infinite;
}

.tracker-alert-card {
  padding: 0.4rem 0.42rem;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: stretch;
  gap: 0.24rem;
  animation: trackerAlertFloat 4.1s ease-in-out infinite;
}

.tracker-alert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 24%, rgba(88, 101, 242, 0.16), transparent 52%);
}

.tracker-chat-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tracker-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #adb6ff 58%, #5b66ea);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.32);
  animation: trackerChatDotPulse 2.4s ease-in-out infinite;
}

.tracker-chat-title {
  color: var(--text-soft);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tracker-chat-bubble {
  height: 6px;
  width: 86%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.52), rgba(88, 101, 242, 0.18));
  animation: trackerChatBubblePulse 3.1s ease-in-out infinite;
}

.tracker-chat-bubble.out {
  justify-self: end;
  width: 64%;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.34), rgba(88, 101, 242, 0.12));
  animation-delay: 0.34s;
}

.tracker-chat-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.tracker-chat-typing {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.32), rgba(88, 101, 242, 0.08));
  animation: trackerTypingPulse 2.2s ease-in-out infinite;
}

.tracker-alert-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.24);
  background: rgba(88, 101, 242, 0.16);
  color: var(--accent-deep);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  animation: trackerChipPulse 2.6s ease-in-out infinite;
}

.tracker-surface-meta,
.tracker-kpi-row,
.tracker-history-bars,
.tracker-dispatch-list {
  display: none;
}
.preview-platform {
  padding: 0.62rem;
}

.preview-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.36rem;
  height: 100%;
}

.panel {
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.12));
  animation: panelBreathe 4s ease-in-out infinite;
}

.panel.tall {
  min-height: 66px;
}

.panel.short {
  min-height: 48px;
  margin-top: auto;
}

.preview-platform .panel:nth-child(2) {
  animation-delay: 0.34s;
}

.preview-platform .panel:nth-child(3) {
  animation-delay: 0.62s;
}

.preview-platform .panel:nth-child(4) {
  animation-delay: 0.9s;
}

.preview-blaster {
  padding: 0.5rem;
}

.preview-arena {
  position: relative;
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(88, 101, 242, 0.25);
  background:
    radial-gradient(circle at 16% 16%, rgba(88, 101, 242, 0.18), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(88, 101, 242, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  overflow: hidden;
}

.preview-arena::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(88, 101, 242, 0.26) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.24;
}

.preview-arena .arena-hud,
.preview-arena .arena-bottom-readout,
.preview-arena .arena-trail,
.preview-arena .arena-beacon,
.preview-arena .projectile-alt {
  display: none;
}

.ship {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0%, 100% 100%, 50% 78%, 0 100%);
  background: linear-gradient(180deg, #f8fdfd, #a0aaff 52%, #616df0);
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.45));
  animation: shipDrift 2.6s ease-in-out infinite;
}

.projectile {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(94, 149, 255, 0.45));
  box-shadow: 0 0 8px rgba(94, 149, 255, 0.45);
  transform: translateX(-50%);
  animation: shotTravel 1.15s linear infinite;
}

.enemy {
  position: absolute;
  top: 10px;
  left: 18%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7fcfc, #bac3ff 44%, #6874f0);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.34);
  animation: enemySlide 2.8s ease-in-out infinite;
}

.enemy.enemy-2 {
  left: auto;
  right: 20%;
  top: 20px;
  animation-duration: 3.3s;
  animation-delay: 0.36s;
}

html[data-theme='dark'] .chat-line {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.48), rgba(166, 178, 255, 0.18));
}

html[data-theme='dark'] .chat-line.right {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.3), rgba(166, 178, 255, 0.12));
}

html[data-theme='dark'] .bar {
  background: linear-gradient(180deg, rgba(166, 178, 255, 0.8), rgba(166, 178, 255, 0.34));
}

html[data-theme='dark'] .preview-line {
  border-color: rgba(166, 178, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme='dark'] .preview-line span {
  background: linear-gradient(90deg, transparent, rgba(166, 178, 255, 0.58), transparent);
}

html[data-theme='dark'] .tracker-price-card,
html[data-theme='dark'] .tracker-alert-card {
  border-color: rgba(166, 178, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

html[data-theme='dark'] .tracker-title-line {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.56), rgba(166, 178, 255, 0.2));
}

html[data-theme='dark'] .tracker-price-old {
  background: rgba(166, 178, 255, 0.26);
}

html[data-theme='dark'] .tracker-price-old::after {
  background: rgba(166, 178, 255, 0.5);
}

html[data-theme='dark'] .tracker-price-card::before {
  background: linear-gradient(90deg, transparent, rgba(166, 178, 255, 0.5), transparent);
}

html[data-theme='dark'] .tracker-price-new {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.95), rgba(206, 192, 255, 0.74));
  box-shadow: 0 0 10px rgba(166, 178, 255, 0.35);
}

html[data-theme='dark'] .tracker-sparkline {
  border-color: rgba(166, 178, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .tracker-sparkline::before {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.26), rgba(166, 178, 255, 0.72), rgba(166, 178, 255, 0.28));
}

html[data-theme='dark'] .tracker-sparkline span {
  background: linear-gradient(102deg, transparent 18%, rgba(166, 178, 255, 0.4) 52%, transparent 82%);
}

html[data-theme='dark'] .tracker-chat-dot {
  box-shadow: 0 0 11px rgba(166, 178, 255, 0.44);
  background: radial-gradient(circle at 30% 30%, #ffffff, #b4bcff 58%, #727df2);
}

html[data-theme='dark'] .tracker-chat-title {
  color: rgba(220, 232, 255, 0.88);
}

html[data-theme='dark'] .tracker-chat-bubble {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.56), rgba(166, 178, 255, 0.2));
}

html[data-theme='dark'] .tracker-chat-bubble.out {
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.36), rgba(166, 178, 255, 0.14));
}

html[data-theme='dark'] .tracker-chat-typing {
  border-color: rgba(166, 178, 255, 0.3);
  background: linear-gradient(90deg, rgba(166, 178, 255, 0.34), rgba(166, 178, 255, 0.12));
}

html[data-theme='dark'] .tracker-alert-chip {
  border-color: rgba(166, 178, 255, 0.3);
  background: rgba(166, 178, 255, 0.18);
  color: #edf0ff;
}

html[data-theme='dark'] .tracker-alert-card::before {
  background: radial-gradient(circle at 82% 24%, rgba(166, 178, 255, 0.2), transparent 56%);
}
html[data-theme='dark'] .panel {
  background: linear-gradient(180deg, rgba(166, 178, 255, 0.34), rgba(166, 178, 255, 0.14));
}

html[data-theme='dark'] .preview-arena {
  border-color: rgba(166, 178, 255, 0.28);
  background:
    radial-gradient(circle at 16% 16%, rgba(166, 178, 255, 0.2), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(166, 178, 255, 0.17), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
}

html[data-theme='dark'] .preview-arena::before {
  background-image: radial-gradient(circle, rgba(166, 178, 255, 0.28) 1px, transparent 1px);
}

html[data-theme='dark'] .ship {
  background: linear-gradient(180deg, #f6fcfc, #d4d9ff 52%, #9099ff);
  filter: drop-shadow(0 0 9px rgba(166, 178, 255, 0.52));
}

html[data-theme='dark'] .projectile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(166, 178, 255, 0.5));
  box-shadow: 0 0 8px rgba(166, 178, 255, 0.48);
}

html[data-theme='dark'] .enemy {
  background: linear-gradient(180deg, #f7fcfc, #dde1ff 44%, #a5adff);
  box-shadow: 0 0 8px rgba(166, 178, 255, 0.4);
}

.project-card .project-index {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  line-height: 1;
}

.project-card .project-copy {
  flex: 1;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-card .project-links {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

[data-project-card] {
  cursor: pointer;
  min-height: 214px;
}

[data-project-card] .gold-line,
[data-project-card] .project-copy {
  display: none;
}

[data-project-card] .project-top {
  align-items: center;
}

[data-project-card] .project-top h3 {
  margin: 0.3rem 0 0;
}

[data-project-card] .project-preview {
  margin-top: 0.85rem;
}

[data-project-card]:focus-visible {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(88, 101, 242, 0.16);
}

html[data-theme='dark'] [data-project-card]:focus-visible {
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(166, 178, 255, 0.2);
}

.projects-grid.project-focus-mode .project-card:not([data-project-modal-card]) {
  --focus-scale: 1;
  --focus-opacity: 1;
  --focus-saturate: 1;
  transform: var(--base-transform) scale(var(--focus-scale));
  opacity: var(--focus-opacity);
  filter: saturate(var(--focus-saturate));
}

.projects-grid.project-focus-mode.is-focus-active .project-card:not([data-project-modal-card]).is-muted {
  --focus-scale: 0.986;
  --focus-opacity: 0.48;
  --focus-saturate: 0.86;
  --lift: -1px;
}

.projects-grid.project-focus-mode.is-focus-active .project-card:not([data-project-modal-card]).is-active {
  --focus-scale: 1.012;
  --lift: -6px;
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(88, 101, 242, 0.2);
}

html[data-theme='dark'] .projects-grid.project-focus-mode.is-focus-active .project-card:not([data-project-modal-card]).is-active {
  box-shadow:
    0 34px 64px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(var(--accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.projects-grid.project-focus-mode.is-focus-active .project-card:not([data-project-modal-card]).is-muted .project-preview {
  opacity: 0.74;
}

@media (hover: none), (pointer: coarse) {
  .projects-grid.project-focus-mode .project-card:not([data-project-modal-card]) {
    --focus-scale: 1 !important;
    --focus-opacity: 1 !important;
    --focus-saturate: 1 !important;
    --lift: 0px !important;
  }

  .projects-grid.project-focus-mode .project-card:not([data-project-modal-card]).is-muted .project-preview {
    opacity: 1 !important;
  }
}

body.project-modal-open {
  overflow: hidden;
  padding-right: var(--project-modal-scrollbar-offset, 0px);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding-top: calc(env(safe-area-inset-top) + clamp(0.55rem, 2vw, 1.2rem));
  padding-right: calc(env(safe-area-inset-right) + clamp(0.55rem, 2vw, 1.2rem));
  padding-bottom: calc(env(safe-area-inset-bottom) + clamp(0.55rem, 2vw, 1.2rem));
  padding-left: calc(env(safe-area-inset-left) + clamp(0.55rem, 2vw, 1.2rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.project-modal[hidden] {
  display: none !important;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(7, 13, 24, 0.38);
  backdrop-filter: blur(6px) saturate(110%);
}

html[data-theme='dark'] .project-modal-backdrop {
  background: rgba(1, 2, 4, 0.62);
}

.project-modal-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 0;
  transform: translateY(16px) scale(0.988);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
}

.project-modal-card.is-zooming {
  transition: none !important;
  will-change: transform, opacity, filter;
}

.project-modal-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(0.55rem, 1.4vw, 0.82rem) clamp(0.55rem, 1.4vw, 0.82rem) 0.18rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.project-modal.is-open .project-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  color: var(--text);
  font-size: 0.96rem;
}

html[data-theme='dark'] .project-modal-close {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

html[data-theme='dark'] .project-modal-chrome {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  border-color: var(--border-strong);
}

.project-modal-content {
  min-height: 0;
  padding: 0 clamp(1rem, 2vw, 1.45rem) clamp(1rem, 2vw, 1.45rem);
  overflow: auto;
  display: grid;
  gap: 0.74rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.project-modal-content .project-top {
  padding-right: 0;
}

.project-modal-content .project-index {
  font-size: clamp(1.65rem, 2vw, 2.1rem);
}

.project-modal-content .project-preview {
  height: clamp(170px, 32vh, 330px);
  margin: 0.35rem 0 0.2rem;
}

.project-modal-content .project-preview.preview-tracker {
  height: clamp(188px, 31vh, 286px);
}

.project-modal-content .preview-tracker {
  position: relative;
  padding: clamp(0.58rem, 1.4vw, 0.86rem);
  gap: clamp(0.42rem, 1vw, 0.62rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(88, 101, 242, 0.22);
  background:
    radial-gradient(circle at 14% 18%, rgba(88, 101, 242, 0.18), transparent 38%),
    radial-gradient(circle at 86% 82%, rgba(88, 101, 242, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(239, 244, 255, 0.96), rgba(206, 220, 248, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 -20px 28px rgba(66, 98, 182, 0.06);
  isolation: isolate;
}

.project-modal-content .preview-tracker::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(88, 101, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 101, 242, 0.045) 1px, transparent 1px);
  background-size: 100% 26%, 18% 100%;
  opacity: 0.48;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.06), black 18%, black 100%);
}

.project-modal-content .preview-tracker::after {
  content: '';
  position: absolute;
  top: -18%;
  bottom: -24%;
  left: -14%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(88, 137, 235, 0.18) 52%, transparent 82%);
  transform: translate3d(-18%, 0, 0) skewX(-12deg);
  opacity: 0.74;
  mix-blend-mode: screen;
}

.project-modal-content .preview-tracker .tracker-price-card,
.project-modal-content .preview-tracker .tracker-alert-card {
  border-radius: 14px;
  z-index: 2;
  border-color: rgba(88, 101, 242, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.48)),
    rgba(88, 101, 242, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 16px 28px rgba(43, 71, 138, 0.08);
  backdrop-filter: blur(10px);
}

.project-modal-content .preview-tracker .tracker-price-card {
  padding: clamp(0.56rem, 1.1vw, 0.72rem);
  gap: 0.42rem;
}

.project-modal-content .preview-tracker .tracker-price-card::after {
  content: none;
}

.project-modal-content .preview-tracker .tracker-alert-card {
  padding: clamp(0.54rem, 1vw, 0.7rem);
  grid-template-rows: auto auto auto auto auto;
  align-content: stretch;
  gap: 0.38rem;
}

.project-modal-content .preview-tracker .tracker-alert-card::after {
  content: none;
}

.project-modal-content .preview-tracker .tracker-chat-head {
  gap: 0.38rem;
}

.project-modal-content .preview-tracker .tracker-chat-dot {
  width: 9px;
  height: 9px;
}

.project-modal-content .preview-tracker .tracker-chat-title {
  font-size: 0.76rem;
}

.project-modal-content .preview-tracker .tracker-chat-bubble {
  height: 8px;
  width: 88%;
}

.project-modal-content .preview-tracker .tracker-chat-bubble.out {
  width: 66%;
}

.project-modal-content .preview-tracker .tracker-chat-foot {
  margin-top: auto;
}

.project-modal-content .preview-tracker .tracker-chat-typing {
  width: 28px;
  height: 8px;
}

.project-modal-content .preview-tracker .tracker-title-line {
  width: 65%;
  height: 8px;
}

.project-modal-content .preview-tracker .tracker-price-old {
  width: 58px;
  height: 9px;
}

.project-modal-content .preview-tracker .tracker-price-new {
  width: 78px;
  height: 11px;
}

.project-modal-content .preview-tracker .tracker-sparkline {
  height: auto;
  min-height: 42px;
  padding: 0.34rem 0.36rem 0.26rem;
}

.project-modal-content .preview-tracker .tracker-alert-chip {
  font-size: 0.72rem;
  padding: 0.14rem 0.42rem;
  margin-top: 0;
}

.project-modal-content .preview-tracker .tracker-surface-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-modal-content .preview-tracker .tracker-surface-meta span,
.project-modal-content .preview-tracker .tracker-kpi-row span,
.project-modal-content .preview-tracker .tracker-dispatch-item {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.18);
  background: rgba(241, 246, 255, 0.72);
  color: #244175;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-modal-content .preview-tracker .tracker-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
}

.project-modal-content .preview-tracker .tracker-kpi-row span {
  justify-content: center;
  padding-inline: 0.22rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.project-modal-content .preview-tracker .tracker-kpi-row strong {
  color: #153d8a;
  font-size: 0.68rem;
  margin-right: 0.22rem;
}

.project-modal-content .preview-tracker .tracker-history-bars {
  position: absolute;
  left: 0.34rem;
  right: 0.34rem;
  bottom: 0.26rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.18rem;
  height: 62%;
  pointer-events: none;
}

.project-modal-content .preview-tracker .tracker-history-bars span {
  display: block;
  align-self: end;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.92), rgba(88, 101, 242, 0.24));
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.16);
}

.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(1) { height: 28%; }
.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(2) { height: 46%; }
.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(3) { height: 64%; }
.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(4) { height: 82%; }
.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(5) { height: 54%; }
.project-modal-content .preview-tracker .tracker-history-bars span:nth-child(6) { height: 38%; }

.project-modal-content .preview-tracker .tracker-dispatch-list {
  display: grid;
  gap: 0.24rem;
}

.project-modal-content .preview-tracker .tracker-dispatch-item {
  justify-content: space-between;
  background: rgba(244, 248, 255, 0.62);
  text-transform: none;
  letter-spacing: 0.02em;
}

.project-modal-content .preview-tracker .tracker-dispatch-item strong {
  color: #163e8c;
  font-size: 0.62rem;
  text-transform: uppercase;
}

html[data-theme='dark'] .project-modal-content .preview-tracker {
  border-color: rgba(166, 178, 255, 0.16);
  background:
    radial-gradient(circle at 14% 18%, rgba(166, 178, 255, 0.12), transparent 36%),
    radial-gradient(circle at 86% 82%, rgba(166, 178, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(3, 6, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -18px 26px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .project-modal-content .preview-tracker::before {
  opacity: 0.26;
}

html[data-theme='dark'] .project-modal-content .preview-tracker::after {
  background: linear-gradient(110deg, transparent 18%, rgba(166, 178, 255, 0.14) 52%, transparent 82%);
}

html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-price-card,
html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-alert-card {
  border-color: rgba(166, 178, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 18, 30, 0.84), rgba(4, 8, 14, 0.92)),
    rgba(166, 178, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-surface-meta span,
html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-kpi-row span,
html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-dispatch-item {
  border-color: rgba(166, 178, 255, 0.14);
  background: rgba(10, 17, 28, 0.82);
  color: rgba(222, 234, 255, 0.9);
}

html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-kpi-row strong,
html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-dispatch-item strong {
  color: #b8c6ff;
}

html[data-theme='dark'] .project-modal-content .preview-tracker .tracker-history-bars span {
  background: linear-gradient(180deg, rgba(196, 208, 255, 0.95), rgba(166, 178, 255, 0.26));
  box-shadow: 0 0 10px rgba(166, 178, 255, 0.18);
}


.project-modal-content .preview-blaster {
  padding: clamp(0.52rem, 1.3vw, 0.82rem);
  display: grid;
  gap: 0.38rem;
}

.project-modal-content .preview-blaster .preview-arena {
  border-color: rgba(88, 101, 242, 0.34);
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 101, 242, 0.24), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(88, 101, 242, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(88, 101, 242, 0.08), rgba(88, 101, 242, 0.02) 52%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(231, 239, 255, 0.92), rgba(193, 209, 244, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -18px 28px rgba(64, 92, 168, 0.08),
    0 14px 30px rgba(13, 33, 75, 0.14);
  isolation: isolate;
}

.project-modal-content .preview-blaster .preview-arena::before {
  opacity: 0.36;
  background-size: 16px 16px;
  animation: blasterGridDrift 5.8s linear infinite;
}

.project-modal-content .preview-blaster .preview-arena::after {
  content: '';
  position: absolute;
  inset: -28% -12% auto;
  height: 75%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(88, 137, 235, 0.22), rgba(255, 255, 255, 0));
  animation: blasterNebulaShift 6.2s ease-in-out infinite;
}

.project-modal-content .preview-blaster .arena-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-modal-content .preview-blaster .arena-hud span,
.project-modal-content .preview-blaster .arena-bottom-readout span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: rgba(238, 245, 255, 0.72);
  color: #27407b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(31, 54, 116, 0.1);
}

.project-modal-content .preview-blaster .arena-hud span:last-child {
  animation: blasterHudPulse 2.4s ease-in-out infinite;
}

.project-modal-content .preview-blaster .arena-bottom-readout {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.32rem;
}

.project-modal-content .preview-blaster .arena-trail {
  position: absolute;
  top: -16%;
  bottom: -18%;
  width: 28%;
  z-index: 1;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(110, 163, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(1px);
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: blasterTrailDrift 4.2s linear infinite;
}

.project-modal-content .preview-blaster .arena-trail-left {
  left: 12%;
  --trail-skew: 20deg;
}

.project-modal-content .preview-blaster .arena-trail-right {
  right: 10%;
  --trail-skew: -18deg;
  animation-delay: -2.1s;
}

.project-modal-content .preview-blaster .arena-beacon {
  position: absolute;
  top: 18%;
  right: 13%;
  width: 56px;
  height: 56px;
  z-index: 1;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(88, 101, 242, 0.1) 52%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.08), 0 0 28px rgba(88, 101, 242, 0.14);
  animation: blasterBeaconPulse 3.3s ease-in-out infinite;
}

.project-modal-content .preview-blaster .ship,
.project-modal-content .preview-blaster .projectile,
.project-modal-content .preview-blaster .enemy,
.project-modal-content .preview-blaster .arena-trail,
.project-modal-content .preview-blaster .arena-beacon,
.project-modal-content .preview-blaster .preview-arena::before,
.project-modal-content .preview-blaster .preview-arena::after {
  will-change: transform, opacity;
}

.project-modal-content .preview-blaster .ship {
  z-index: 2;
  bottom: 14px;
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0%, 100% 100%, 50% 78%, 0 100%);
  background: linear-gradient(180deg, #fdfefe, #cad7ff 44%, #4f62d7 82%);
  filter: drop-shadow(0 0 10px rgba(72, 101, 198, 0.4));
  animation: blasterShipDodge 3.1s cubic-bezier(0.42, 0, 0.26, 1) infinite;
}

.project-modal-content .preview-blaster .ship::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(185, 220, 255, 0.7));
}

.project-modal-content .preview-blaster .ship::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 9px;
  height: 11px;
  border-radius: 50% 50% 70% 70%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.92), rgba(80, 139, 255, 0.08) 70%);
  filter: blur(0.2px);
  animation: blasterThrusterPulse 0.85s ease-in-out infinite;
}

.project-modal-content .preview-blaster .projectile {
  z-index: 2;
  bottom: 32px;
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(66, 128, 255, 0.58));
  box-shadow: 0 0 12px rgba(66, 128, 255, 0.56);
  animation: blasterShotTravel 1.02s cubic-bezier(0.24, 0.6, 0.34, 1) infinite;
}

.project-modal-content .preview-blaster .projectile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateX(7px) scaleY(0.86);
  opacity: 0.68;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(86, 138, 245, 0.2));
  animation: blasterShotEcho 1.02s cubic-bezier(0.24, 0.6, 0.34, 1) infinite;
}

.project-modal-content .preview-blaster .projectile.projectile-alt {
  display: block;
  z-index: 1;
  bottom: 30px;
  width: 2px;
  height: 24px;
  opacity: 0.7;
  animation: blasterAltShotTravel 1.28s cubic-bezier(0.24, 0.6, 0.34, 1) infinite;
}

.project-modal-content .preview-blaster .projectile.projectile-alt::before {
  display: none;
}

.project-modal-content .preview-blaster .projectile.projectile-alt-left {
  left: calc(50% - 11px);
  animation-delay: 0.12s;
}

.project-modal-content .preview-blaster .projectile.projectile-alt-right {
  left: calc(50% + 11px);
  animation-delay: 0.26s;
}

.project-modal-content .preview-blaster .enemy {
  z-index: 2;
  left: 18%;
  top: 12px;
  width: 15px;
  height: 14px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f9fbff, #d2dcff 42%, #5569d8 82%);
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.12),
    0 0 10px rgba(88, 101, 242, 0.24);
  animation:
    blasterEnemyPatrol 3.5s cubic-bezier(0.42, 0, 0.32, 1) infinite,
    blasterEnemyFloat 1.9s ease-in-out infinite;
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy {
  left: var(--enemy-x, 50%);
  top: var(--enemy-y, 12px);
  animation:
    blasterEnemyPatrolVar var(--enemy-patrol, 3.5s) cubic-bezier(0.42, 0, 0.32, 1) infinite,
    blasterEnemyFloat var(--enemy-float, 1.9s) ease-in-out infinite;
  animation-delay: var(--enemy-delay, 0s), var(--enemy-pulse-delay, 0s);
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy.variant-scout {
  width: 13px;
  height: 11px;
  border-radius: 999px 999px 4px 4px;
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy.variant-brute {
  width: 18px;
  height: 14px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy.variant-glider {
  width: 16px;
  height: 10px;
  border-radius: 999px 999px 3px 3px;
  clip-path: polygon(0 100%, 16% 24%, 50% 0, 84% 24%, 100% 100%, 50% 70%);
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy.is-elite {
  width: 20px;
  height: 16px;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.48);
}

.project-modal-content .preview-blaster .enemy::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.project-modal-content .preview-blaster .enemy.dynamic-enemy.is-shooter::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 2px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(91, 145, 250, 0.12));
  box-shadow: 0 0 8px rgba(91, 145, 250, 0.42);
  animation: blasterEnemyShot var(--enemy-shot-duration, 1.36s) linear infinite;
  animation-delay: var(--enemy-shot-delay, 0s);
  opacity: 0;
}

.project-modal-content .preview-blaster .enemy.enemy-2 {
  top: 22px;
  animation:
    blasterEnemyPatrolAlt 3.9s cubic-bezier(0.42, 0, 0.32, 1) infinite,
    blasterEnemyFloat 2.1s ease-in-out infinite;
  animation-delay: 0.26s, 0.12s;
}

html[data-theme='dark'] .project-modal-content .preview-blaster .preview-arena {
  border-color: rgba(166, 178, 255, 0.35);
  background:
    radial-gradient(circle at 18% 18%, rgba(166, 178, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(166, 178, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(166, 178, 255, 0.05), rgba(166, 178, 255, 0.015) 52%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(2, 5, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -18px 28px rgba(0, 0, 0, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.56);
}

html[data-theme='dark'] .project-modal-content .preview-blaster .preview-arena::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(166, 178, 255, 0.18), rgba(255, 255, 255, 0));
}

html[data-theme='dark'] .project-modal-content .preview-blaster .arena-hud span,
html[data-theme='dark'] .project-modal-content .preview-blaster .arena-bottom-readout span {
  border-color: rgba(166, 178, 255, 0.14);
  background: rgba(8, 14, 24, 0.78);
  color: rgba(225, 235, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

html[data-theme='dark'] .project-modal-content .preview-blaster .arena-trail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(166, 178, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

html[data-theme='dark'] .project-modal-content .preview-blaster .arena-beacon {
  border-color: rgba(166, 178, 255, 0.18);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(166, 178, 255, 0.1) 52%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 1px rgba(166, 178, 255, 0.05), 0 0 28px rgba(166, 178, 255, 0.14);
}

html[data-theme='dark'] .project-modal-content .preview-blaster .ship {
  background: linear-gradient(180deg, #ffffff, #d7e0ff 40%, #7690ff 82%);
  filter: drop-shadow(0 0 12px rgba(166, 178, 255, 0.3));
}

html[data-theme='dark'] .project-modal-content .preview-blaster .projectile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(166, 178, 255, 0.62));
  box-shadow: 0 0 12px rgba(166, 178, 255, 0.42);
}

html[data-theme='dark'] .project-modal-content .preview-blaster .enemy {
  background: linear-gradient(180deg, #ffffff, #d5deff 40%, #7f95ff 82%);
  box-shadow:
    0 0 0 1px rgba(166, 178, 255, 0.1),
    0 0 12px rgba(166, 178, 255, 0.28);
}

html[data-theme='dark'] .project-modal-content .preview-blaster .enemy.dynamic-enemy.is-shooter::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(166, 178, 255, 0.16));
  box-shadow: 0 0 9px rgba(166, 178, 255, 0.45);
}

.project-modal-content .project-copy {
  padding-right: 0.08rem;
}

.project-modal-content .project-links {
  padding-top: 0.42rem;
}

.subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-deep);
  font-weight: 600;
}

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

html[data-theme='dark'] .subtle-link {
  padding: 0.44rem 0.58rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.23);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.04));
  color: rgba(228, 239, 255, 0.94);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast),
    box-shadow var(--transition-fast);
}

html[data-theme='dark'] .subtle-link:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.17), rgba(var(--accent-rgb), 0.06));
  color: #f4f8ff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quote-card p {
  margin-top: 0.8rem;
  color: var(--text-soft);
}

.page-hero {
  padding: 78px 0 30px;
}

.page-hero-card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.page-title {
  font-size: clamp(2.2rem, 6.2vw, 4.7rem);
}

.page-intro {
  max-width: 760px;
}

