/* Radon⁸⁶ — home page */

/* Hero: the cloud chamber */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  max-height: 1100px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  container-type: size;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-mark {
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--ink);
  text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg);
}

.hero-reading {
  position: absolute;
  left: 50%;
  /* just under the sphere (radius = 31% of the hero's short side) */
  top: calc(50% + var(--cr, 31cqmin) + 22px);
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  min-height: 1.5em;
}

.hero-reading b {
  color: var(--ink);
  font-weight: 600;
}

.hero-reading .buy {
  color: var(--accent-ink);
}

.hero-reading .sell {
  color: var(--ink-2);
}

.hero-foot {
  position: relative;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(22px, 4vh, 40px);
  pointer-events: none;
}

.hero-foot > * {
  pointer-events: auto;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  margin: 0;
}

.hero-stats dt {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-stats dd {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.gateway-btn {
  height: 46px;
  padding: 0 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
  .hero {
    min-height: 600px;
  }

  .hero-reading {
    top: calc(50% + var(--cr, 35cqmin) + 18px);
    font-size: 11.5px;
    gap: 10px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .hero-stats dt {
    font-size: 11.5px;
  }

  .gateway-btn {
    width: 100%;
  }
}

/* Runs on */
.runs {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  text-align: center;
}

.runs-title {
  margin: 0 0 30px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 520;
  letter-spacing: -0.03em;
}

.runs-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 22px clamp(28px, 6vw, 80px);
}

.runs-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 540;
  letter-spacing: -0.02em;
}

.runs-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.runs-note {
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .runs-list {
    grid-template-columns: repeat(2, auto);
  }
}

/* Statement: words light up as you scroll */
.statement {
  height: 230vh;
  position: relative;
}

.statement-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 0 var(--gutter);
  text-align: center;
}

.boot {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

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

.statement-text {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 1.04;
  font-weight: 460;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.statement-text .w {
  color: var(--faint);
  transition: color 0.35s var(--ease);
}

.statement-text .w.on {
  color: var(--ink);
}

/* Particle wordmark */
.wordmark {
  height: 210vh;
  position: relative;
}

.wordmark-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}

.wordmark canvas {
  width: 100%;
  height: 100%;
}

/* Pipeline */
.pipeline .display {
  max-width: 14ch;
}

.steps {
  list-style: none;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 9px);
}

.step {
  width: calc(50% - 40px);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.step:nth-child(even) {
  margin-left: auto;
}

.step::after {
  content: '';
  position: absolute;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  right: -45px;
}

.step:nth-child(even)::after {
  right: auto;
  left: -45px;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 24px 0;
}

.step-n {
  font-size: 12.5px;
  color: var(--accent-ink);
}

.step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.step canvas {
  width: 100%;
  height: 210px;
}

.step p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

@media (max-width: 860px) {
  .steps::before {
    left: 6px;
  }

  .step,
  .step:nth-child(even) {
    width: auto;
    margin-left: 28px;
  }

  .step::after,
  .step:nth-child(even)::after {
    left: -27px;
    right: auto;
  }
}

/* Laws */
.laws .display {
  max-width: 12ch;
}

.laws-grid {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.law {
  padding: 28px 26px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.law canvas {
  width: 100%;
  height: 130px;
  margin: -6px 0 14px;
}

.law h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.025em;
}

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

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

/* Sectors bento */
.sectors .display {
  max-width: 12ch;
}

.bento {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.cell {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease);
}

.cell:hover {
  border-color: var(--line-2);
}

.cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cell-tech {
  grid-row: span 2;
}

.cell-frontier {
  grid-column: span 2;
}

.chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 18px 0;
}

.chips .pill {
  background: var(--glass);
  border: 1px solid var(--line);
}

.cell-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 20px 20px;
  background: linear-gradient(to top, var(--surface) 30%, transparent);
  padding-top: 40px;
}

.cell-foot h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.cell-stats {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

.cell-stats b {
  color: var(--ink);
  font-weight: 560;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 230px;
  }

  .cell-tech {
    grid-row: span 1;
    grid-column: span 2;
  }

  .cell-frontier {
    grid-column: span 2;
  }
}

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

  .cell-tech,
  .cell-frontier {
    grid-column: auto;
  }
}

/* CTA */
.cta {
  text-align: center;
  background: radial-gradient(60% 70% at 50% 100%, rgba(var(--accent-rgb), 0.14), transparent 70%);
}

.cta .display {
  max-width: 19ch;
  margin: 0 auto;
}

.cta .lede {
  margin: 22px auto 34px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
}
