:root {
  --bg: #05070d;
  --panel: rgba(10, 14, 24, 0.92);
  --panel-soft: rgba(14, 20, 34, 0.82);
  --line: rgba(120, 154, 255, 0.15);
  --text: #f8fbff;
  --muted: #8b9bb8;
  --cyan: #4de4ff;
  --blue: #4f79ff;
  --green: #42ffb3;
  --red: #ff5f7d;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(79, 121, 255, 0.14), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(77, 228, 255, 0.12), transparent 22%),
    radial-gradient(circle at 52% 100%, rgba(66, 255, 179, 0.08), transparent 32%),
    linear-gradient(180deg, #03050a 0%, #05070d 100%);
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.candles-bg,
.noise-layer,
.beam {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.candles-bg {
  z-index: 0;
  opacity: 0.42;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.78));
}

.noise-layer {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.beam {
  top: -10%;
  width: 32rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.18;
}

.beam-left {
  left: -12rem;
  background: rgba(79, 121, 255, 0.45);
}

.beam-right {
  right: -12rem;
  background: rgba(77, 228, 255, 0.35);
}

.topbar,
.ticker-strip,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar {
  padding-top: 26px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(77, 228, 255, 0.94), rgba(79, 121, 255, 0.94));
  box-shadow: 0 0 34px rgba(77, 228, 255, 0.35);
}

.brand-mark img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(7%) sepia(22%) saturate(1887%) hue-rotate(178deg) brightness(96%) contrast(96%);
}

.brand strong,
.brand small,
.eyebrow,
.card-kicker,
.ticker-pill span,
.desk-head span {
  font-family: "IBM Plex Mono", monospace;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

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

.ticker-strip {
  padding-bottom: 14px;
}

.ticker-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ticker-pill {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(120, 154, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(10, 14, 24, 0.84);
  box-shadow: var(--shadow);
}

.ticker-pill img {
  width: 18px;
  height: 18px;
}

.ticker-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ticker-pill strong {
  font-size: 1rem;
}

.ticker-pill em {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--green);
}

.hero {
  padding-top: 18px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
}

.hero-copy,
.hero-bio,
.matrix-card,
.desk-card,
.project-card,
.contact-card {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 26%, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(135deg, rgba(109, 168, 255, 0.08), rgba(19, 30, 48, 0.32) 45%, rgba(14, 20, 34, 0.28) 100%);
  border: 1px solid rgba(198, 226, 255, 0.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-bio::before,
.matrix-card::before,
.desk-card::before,
.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.02));
  opacity: 0.7;
  pointer-events: none;
}

.hero-copy::after,
.hero-bio::after,
.matrix-card::after,
.desk-card::after,
.project-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.hero-copy > *,
.hero-bio > *,
.matrix-card > *,
.desk-card > *,
.project-card > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-bio {
  padding: 34px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.77rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 0.92;
}

.lead,
.section-heading p,
.desk-card p,
.project-card p,
.contact-card p,
.matrix-card p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.03rem;
}

.matrix-grid,
.card-grid,
.projects-grid {
  display: grid;
  gap: 16px;
}

.hero-bio {
  align-self: start;
}

.bio-lines {
  display: grid;
  gap: 14px;
}

.bio-lines p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: #eef5ff;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.bio-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.section-heading {
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.matrix-grid {
  grid-template-columns: 1.35fr 0.7fr 0.7fr;
}

.matrix-card,
.desk-card,
.mini-project {
  padding: 22px;
  border-radius: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.token-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.token-cluster img {
  width: 22px;
  height: 22px;
}

.matrix-card h3 {
  margin-top: 10px;
  font-size: 1.6rem;
}

.matrix-card code {
  display: block;
  margin-top: 12px;
  color: #dce8ff;
  word-break: break-all;
  font-family: "IBM Plex Mono", monospace;
}

.matrix-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

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

.desk-card {
  position: relative;
  overflow: hidden;
}

.desk-card.positive {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset -70px -70px 110px rgba(31, 228, 168, 0.05);
}

.desk-card.neutral {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset -70px -70px 110px rgba(79, 121, 255, 0.05);
}

.desk-card.danger {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset -70px -70px 110px rgba(255, 95, 125, 0.05);
}

.desk-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.desk-head img {
  width: 18px;
  height: 18px;
}

.desk-head span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.desk-card h3,
.project-card h3 {
  margin-top: 18px;
  font-size: 1.55rem;
}

.desk-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #dff4ff;
}

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

.project-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.flagship-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  overflow: hidden;
}

.project-banner {
  background: radial-gradient(circle at center, rgba(79, 121, 255, 0.16), rgba(5, 7, 13, 0.95));
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy,
.mini-project {
  padding: 24px;
}

.project-points {
  margin: 0;
  padding-left: 18px;
}

.project-points li + li {
  margin-top: 10px;
}

.contact-card {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #05070d;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.footer {
  padding-top: 10px;
  padding-bottom: 42px;
  color: var(--muted);
}

.is-positive {
  color: var(--green) !important;
}

.is-negative {
  color: var(--red) !important;
}

@media (max-width: 1100px) {
  .ticker-track,
  .hero,
  .matrix-grid,
  .card-grid.three,
  .projects-grid,
  .flagship-card {
    grid-template-columns: 1fr;
  }

  .flagship-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-bio,
  .matrix-card,
  .desk-card,
  .project-copy,
  .mini-project,
  .contact-card {
    padding: 22px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    display: grid;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }
}
