:root {
  --void: #050609;
  --ink: #070c14;
  --blue: #1f6fa7;
  --ice: #8edcff;
  --gold: #f1b45b;
  --ember: #d95d35;
  --coral: #d95672;
  --leaf: #a6d96a;
  --bone: #f4ead5;
  --soft: rgba(244, 234, 213, 0.78);
  --line: rgba(244, 234, 213, 0.18);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 72% 16%, rgba(31, 111, 167, 0.3), transparent 30rem),
    radial-gradient(circle at 28% 22%, rgba(241, 180, 91, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 78%, rgba(217, 86, 114, 0.18), transparent 28rem),
    linear-gradient(145deg, #030407 0%, var(--ink) 52%, #13080d 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.64), rgba(3, 4, 7, 0.9)),
    url("./assets/lifeform-banner.png") center / cover;
  opacity: 0.32;
  filter: saturate(1.08) contrast(1.08);
}

.starwash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle, rgba(244, 234, 213, 0.18) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(142, 220, 255, 0.16) 0 1px, transparent 1.8px);
  background-position: 0 0, 44px 28px;
  background-size: 118px 118px, 160px 160px;
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

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

.site {
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 9, 0.76);
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--bone);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-seed {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(244, 234, 213, 0.48);
  border-radius: 50% 50% 46% 54%;
  background:
    radial-gradient(circle at 48% 66%, var(--gold) 0 15%, transparent 16%),
    conic-gradient(from 220deg, var(--blue), var(--ice), var(--gold), var(--coral), var(--blue));
  box-shadow:
    0 0 22px rgba(142, 220, 255, 0.34),
    0 0 34px rgba(241, 180, 91, 0.25);
}

.nav,
.actions,
.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav {
  justify-content: flex-end;
}

.nav a,
.button {
  min-height: 40px;
  border: 1px solid rgba(244, 234, 213, 0.2);
  border-radius: 8px;
  padding: 11px 15px;
  color: var(--bone);
  background: rgba(244, 234, 213, 0.075);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.nav a:hover,
.button:hover {
  border-color: rgba(142, 220, 255, 0.86);
  background: rgba(142, 220, 255, 0.13);
  box-shadow: 0 0 30px rgba(142, 220, 255, 0.18);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  color: #120907;
  border-color: rgba(241, 180, 91, 0.9);
  background: linear-gradient(135deg, var(--gold), var(--ember) 54%, var(--coral));
  box-shadow: 0 14px 40px rgba(241, 180, 91, 0.18);
}

.button.ghost {
  color: var(--ice);
}

.hero {
  --field-x: 0px;
  --field-y: 0px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  min-height: calc(100vh - 128px);
  padding: 28px 0 74px;
}

.specimen-copy {
  position: relative;
  padding-left: clamp(0px, 2vw, 22px);
}

.specimen-copy::before {
  position: absolute;
  left: 0;
  top: -26px;
  width: 1px;
  height: calc(100% + 52px);
  content: "";
  background: linear-gradient(180deg, transparent, var(--gold), var(--ice), transparent);
  box-shadow: 0 0 22px rgba(142, 220, 255, 0.36);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 10.6rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 28px rgba(142, 220, 255, 0.24),
    0 26px 56px rgba(0, 0, 0, 0.52);
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.pulse-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pulse-row span {
  border: 1px solid rgba(142, 220, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(244, 234, 213, 0.84);
  background: rgba(31, 111, 167, 0.12);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.specimen-frame {
  position: relative;
  margin: 0;
  transform: translate(var(--field-x), var(--field-y));
  transition: transform 220ms ease;
}

.specimen-frame::before {
  position: absolute;
  inset: 10%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 180, 91, 0.36), rgba(142, 220, 255, 0.14), transparent 70%);
  filter: blur(30px);
}

.aura {
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 36% 42%, rgba(241, 180, 91, 0.22), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(142, 220, 255, 0.22), transparent 34%),
    linear-gradient(130deg, rgba(217, 86, 114, 0.12), transparent);
  filter: blur(5px);
}

.specimen-frame img {
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(244, 234, 213, 0.2);
  border-radius: 22px 22px 88px 22px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.specimen-frame figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(244, 234, 213, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(14px);
  text-transform: uppercase;
}

.specimen-frame span {
  color: var(--gold);
  font-weight: 950;
}

.specimen-frame strong {
  color: var(--bone);
  font-weight: 950;
}

.banner-lab {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 66px;
}

.lab-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(241, 180, 91, 0.14), rgba(31, 111, 167, 0.12)),
    rgba(5, 6, 9, 0.68);
}

.banner-lab figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--void);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.4);
}

.banner-lab img {
  width: 100%;
  min-height: 250px;
  object-fit: cover;
}

.life-statement {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  margin-bottom: 66px;
  padding: clamp(24px, 5vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.life-statement div {
  color: var(--ice);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.life-statement p {
  margin: 0;
  color: rgba(244, 234, 213, 0.86);
  font-size: clamp(1.16rem, 2.2vw, 1.8rem);
  line-height: 1.4;
}

.biology {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 66px;
}

.biology article,
.token-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(244, 234, 213, 0.08), rgba(244, 234, 213, 0.03)),
    rgba(5, 6, 9, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.biology article {
  min-height: 260px;
  padding: 24px;
}

.biology span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--gold);
  font-weight: 950;
}

.biology h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.biology p {
  margin-bottom: 0;
  color: rgba(244, 234, 213, 0.76);
  line-height: 1.55;
}

.token-card {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-bottom: 54px;
  padding: clamp(24px, 5vw, 50px);
}

.token-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.token-card dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 234, 213, 0.14);
}

.token-card dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.token-card dd {
  margin: 0;
  color: rgba(244, 234, 213, 0.82);
  font-weight: 800;
}

.token-actions {
  grid-column: 1 / -1;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: rgba(244, 234, 213, 0.56);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

[data-reveal] {
  transform: translateY(22px);
  opacity: 0;
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .topbar,
  .hero,
  .banner-lab,
  .life-statement,
  .token-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

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

  .lab-note {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site {
    width: min(100% - 20px, 1210px);
  }

  .topbar {
    position: static;
    margin-top: 10px;
  }

  .specimen-copy {
    padding-left: 14px;
  }

  .nav a,
  .button {
    flex: 1 1 auto;
    min-width: 104px;
    padding: 10px 12px;
  }

  h1 {
    font-size: clamp(3.4rem, 22vw, 5.8rem);
  }

  .specimen-frame figcaption {
    position: static;
    margin-top: 10px;
  }

  .token-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
