:root {
  --crt-frame: clamp(12px, 2.8vmin, 26px);
  --crt-radius: clamp(14px, 2.2vmin, 26px);
  --deep: #09051a;
  --deep-mid: #120a34;
  --bg-elevated: rgba(20, 8, 45, 0.55);
  --text: #f4eaff;
  --muted: #a89bcf;
  --neon-pink: #ff38d2;
  --neon-cyan: #30f0ff;
  --neon-orange: #ff8c42;
  --accent: var(--neon-cyan);
  --accent-hot: var(--neon-pink);
  --accent-soft: rgba(48, 240, 255, 0.14);
  --border: rgba(255, 56, 210, 0.35);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Exo 2", system-ui, sans-serif;
  --max: 72rem;
  --radius: 10px;
  --chrome-glow:
    0 0 24px rgba(255, 85, 240, 0.45),
    0 0 48px rgba(48, 240, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.6);
  --chrome-base: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e4e9ff 18%,
    #8b9cc2 42%,
    #4e5d7a 48%,
    #b9c9f0 52%,
    #ffffff 100%
  );
  --chrome-glint: linear-gradient(
    110deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.0) 41%,
    rgba(255, 255, 255, 0.95) 46%,
    rgba(255, 255, 255, 1) 48%,
    rgba(200, 255, 255, 0.95) 51%,
    rgba(48, 240, 255, 0.78) 54%,
    rgba(255, 56, 210, 0.42) 58%,
    transparent 70%,
    transparent 100%
  );
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background:
    radial-gradient(circle at 22% 12%, rgba(120, 60, 180, 0.18), transparent 42%),
    linear-gradient(155deg, #1c1228 0%, #0e0818 48%, #18102a 100%);
}

body {
  margin: var(--crt-frame);
  min-height: calc(100vh - (var(--crt-frame) * 2));
  padding: 0;
  position: relative;
  border-radius: var(--crt-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--deep);
  border: 1px solid rgba(110, 70, 150, 0.5);
  box-shadow:
    0 0 0 1px rgba(6, 2, 16, 0.95),
    0 0 0 clamp(7px, 1.6vmin, 12px) #10081a,
    0 24px 60px rgba(0, 0, 0, 0.72),
    inset 0 0 min(100px, 16vw) rgba(0, 0, 0, 0.55),
    inset 0 0 min(320px, 50vw) rgba(0, 0, 0, 0.2),
    inset 0 0 36px rgba(255, 56, 210, 0.05),
    inset 0 0 22px rgba(48, 240, 255, 0.04);
  background-image:
    radial-gradient(ellipse min(900px, 160vw) 55% at 50% calc(100% + 180px),
      rgba(255, 215, 100, 0.28) 0%,
      rgba(255, 80, 160, 0.22) 22%,
      rgba(155, 50, 255, 0.12) 45%,
      transparent 72%),
    linear-gradient(180deg, var(--deep) 0%, var(--deep-mid) 48%, #1a0a3a 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: center, center;
  display: flex;
  flex-direction: column;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--crt-radius);
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
}

.retro-overlay {
  position: fixed;
  top: var(--crt-frame);
  right: var(--crt-frame);
  bottom: var(--crt-frame);
  left: var(--crt-frame);
  border-radius: var(--crt-radius);
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
  box-shadow:
    inset 0 0 min(140px, 22vw) rgba(0, 0, 0, 0.68),
    inset 0 0 min(340px, 55vw) rgba(0, 0, 0, 0.24),
    inset 0 -48px min(140px, 22vw) rgba(0, 0, 0, 0.32);
}

.retro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 35% at 88% 6%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 25% at 12% 18%, rgba(180, 240, 255, 0.12), transparent 50%);
  opacity: 0;
  mix-blend-mode: screen;
}

.retro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    195deg,
    rgba(240, 250, 255, 0.45) 0%,
    rgba(140, 220, 255, 0.15) 14%,
    transparent 38%
  );
  opacity: 0;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: no-preference) {
  .retro-overlay::before {
    animation: lightning-sky 11.2s ease-in-out infinite;
  }

  .retro-overlay::after {
    animation: lightning-sheet 14.8s ease-in-out infinite;
  }
}

@keyframes lightning-sky {
  0%,
  7%,
  12%,
  100% {
    opacity: 0;
  }

  7.2% {
    opacity: 0.75;
  }

  7.35% {
    opacity: 0.1;
  }

  7.5% {
    opacity: 0.55;
  }

  7.7% {
    opacity: 0;
  }

  28% {
    opacity: 0;
  }

  28.15% {
    opacity: 0.35;
  }

  28.3% {
    opacity: 0;
  }

  62% {
    opacity: 0;
  }

  62.2% {
    opacity: 0.5;
  }

  62.35% {
    opacity: 0.08;
  }

  62.5% {
    opacity: 0.4;
  }

  62.7% {
    opacity: 0;
  }
}

@keyframes lightning-sheet {
  0%,
  5%,
  15%,
  100% {
    opacity: 0;
  }

  5.1% {
    opacity: 0.85;
  }

  5.25% {
    opacity: 0.15;
  }

  5.4% {
    opacity: 0.6;
  }

  5.55% {
    opacity: 0;
  }

  46% {
    opacity: 0;
  }

  46.08% {
    opacity: 0.7;
  }

  46.18% {
    opacity: 0;
  }

  78% {
    opacity: 0;
  }

  78.12% {
    opacity: 0.45;
  }

  78.22% {
    opacity: 0.1;
  }

  78.35% {
    opacity: 0.5;
  }

  78.5% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .retro-overlay::before,
  .retro-overlay::after {
    opacity: 0;
    animation: none;
  }
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(48, 240, 255, 0.35);
}

a:hover {
  text-decoration: none;
  color: #fff;
  filter: brightness(1.12);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 5, 26, 0.88) 0%, rgba(9, 5, 26, 0.55) 100%);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(48, 240, 255, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--chrome-base);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 80, 220, 0.5)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
}

.logo:hover {
  filter:
    brightness(1.15) drop-shadow(0 0 22px rgba(48, 240, 255, 0.55)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.75));
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: none;
}

.nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 16px rgba(255, 56, 210, 0.55);
}

.nav a[aria-current="page"] {
  color: var(--text);
  text-shadow:
    0 0 12px rgba(48, 240, 255, 0.45),
    0 0 24px rgba(255, 56, 210, 0.25);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.hero-inner {
  max-width: 40rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--neon-pink);
  margin: 0 0 1rem;
  text-shadow:
    0 0 16px rgba(255, 56, 210, 0.75),
    0 0 32px rgba(255, 56, 210, 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--chrome-base);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: var(--chrome-glow);
}

.lede {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  text-shadow: 0 0 20px rgba(48, 240, 255, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: #0a0220;
  background: linear-gradient(135deg, var(--neon-cyan), #7af0ff);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 24px rgba(48, 240, 255, 0.45),
    0 0 40px rgba(255, 56, 210, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 32px rgba(48, 240, 255, 0.55),
    0 0 56px rgba(255, 56, 210, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-ghost {
  background: rgba(9, 5, 26, 0.5);
  color: var(--neon-pink);
  border-color: rgba(255, 56, 210, 0.55);
  box-shadow:
    0 0 18px rgba(255, 56, 210, 0.25),
    inset 0 0 20px rgba(255, 56, 210, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 56, 210, 0.12);
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 24px rgba(48, 240, 255, 0.35),
    inset 0 0 24px rgba(48, 240, 255, 0.08);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-elevated);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--chrome-base);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 70, 220, 0.35));
}

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

.narrow {
  max-width: 42rem;
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(48, 240, 255, 0.25);
  background: linear-gradient(145deg, rgba(22, 10, 48, 0.75), rgba(8, 4, 22, 0.88));
  box-shadow:
    0 0 20px rgba(48, 240, 255, 0.1),
    0 0 32px rgba(255, 56, 210, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(48, 240, 255, 0.25);
}

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

.contact-block {
  text-align: center;
}

.contact-block h2 {
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: auto;
  box-shadow: 0 -1px 0 rgba(48, 240, 255, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-main {
  padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(4rem, 12vw, 6rem);
  border-top: 1px solid var(--border);
}

.page-main.page-main--about {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 5rem) 0;
  min-height: 0;
}

.page-main.page-main--about .wrap {
  width: min(100% - 2rem, 42rem);
}

.page-main.page-main--about .page-title {
  margin-bottom: 1.25rem;
}

.page-main.page-main--about .page-copy {
  margin-inline: auto;
}

.page-main.page-main--about .page-copy p {
  margin: 0 0 1.15rem;
}

.page-main.page-main--about .page-copy p:last-child {
  margin-bottom: 0;
}

.page-main--center .contact-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.page-main--center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.page-main--center > .wrap {
  width: min(100% - 2rem, 48rem);
}

.page-main--center .page-lede {
  margin-left: auto;
  margin-right: auto;
}

.page-main--center .card-list {
  justify-content: center;
  grid-template-columns: minmax(14rem, 22rem);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  background: var(--chrome-base);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: var(--chrome-glow);
}

.page-lede {
  font-size: 1.02rem;
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.page-copy {
  max-width: 42rem;
  color: var(--muted);
}

.page-copy p {
  margin: 0 0 1rem;
}

.page-copy p:last-child {
  margin-bottom: 0;
}

.contact-inner .page-lede {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.06em;
}

.contact-email a {
  background: linear-gradient(
    to bottom,
    #b8ffff 0%,
    #30f0ff 45%,
    #1a9aaa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(48, 240, 255, 0.55));
}

.contact-email a:hover {
  filter:
    brightness(1.15) drop-shadow(0 0 22px rgba(255, 56, 210, 0.45)) drop-shadow(0 0 12px rgba(48, 240, 255, 0.5));
}

.page-main .card-list {
  margin-top: 0.5rem;
}

.page-copy a {
  font-weight: 600;
}

.glint {
  background-image: var(--chrome-base), var(--chrome-glint);
  background-size: 100% 100%, 420% 100%;
  background-position: 0 0, -160% 50%;
  background-repeat: no-repeat;
  background-blend-mode: normal, screen;
  filter: var(--chrome-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .glint {
    animation: chrome-glint 30s linear infinite;
  }
}

@keyframes chrome-glint {
  0% {
    background-position: 0 0, -160% 50%;
  }

  20% {
    background-position: 0 0, 160% 50%;
  }

  100% {
    background-position: 0 0, 160% 50%;
  }
}

.has-custom-cursor {
  cursor: none;
}

.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor select,
.has-custom-cursor textarea,
.has-custom-cursor label,
.has-custom-cursor .btn,
.has-custom-cursor [role="button"] {
  cursor: none !important;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9400;
  pointer-events: none;
}

.cursor--active {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fff 0%, var(--neon-cyan) 45%, transparent 70%);
  box-shadow:
    0 0 12px rgba(48, 240, 255, 0.55),
    0 0 22px rgba(255, 56, 210, 0.25);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(48, 240, 255, 0.55);
  box-shadow:
    0 0 16px rgba(48, 240, 255, 0.22),
    0 0 26px rgba(255, 56, 210, 0.12);
  backdrop-filter: blur(2px);
  opacity: 0.85;
}

.cursor--hover .cursor-ring {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 56, 210, 0.7);
  box-shadow:
    0 0 22px rgba(255, 56, 210, 0.32),
    0 0 30px rgba(48, 240, 255, 0.18);
}

.cursor--down .cursor-ring {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}
