@font-face {
  font-family: Anybody;
  src: url("/fonts/anybody-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Anybody;
  src: url("/fonts/anybody-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Anybody;
  src: url("/fonts/anybody-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050505;
  --ember: #ff3b1f;
  --core: #c41e12;
  --hot: #ff6a4a;
  --foam: #ffb199;
  --bone: #ead8d1;
  --ash: #8d7b75;
  --ink: #120807;
  --line: rgba(255, 59, 31, 0.32);
  --glow: color-mix(in srgb, var(--ember) 28%, transparent);
  --display: Anybody, ui-sans-serif, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

a {
  color: var(--foam);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ember);
}

button,
.btn {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--void);
}

.stage video,
.stage .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.stage.is-playing video {
  opacity: 1;
}

html.is-lit .stage video,
html.is-lit .stage .poster {
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.05);
}

html.is-lit .stage {
  pointer-events: none;
}

.skip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  background: transparent;
  color: var(--foam);
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stage.is-ready .skip,
html.is-lit .skip {
  opacity: 1;
  pointer-events: auto;
}

html.is-lit .skip {
  display: none;
}

.floor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24vh;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top, rgba(196, 30, 18, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

html.is-lit .floor {
  opacity: 1;
}

.grain,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.grid {
  background-image:
    linear-gradient(rgba(255, 59, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 59, 31, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
  opacity: 0;
}

html.is-lit .grid {
  opacity: 1;
}

.grain {
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.world {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

html.is-lit .world {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.mark img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px var(--glow));
}

.rail nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}

.stay {
  min-height: calc(100vh - 4.4rem);
  display: grid;
  align-content: end;
  padding: 0 1.4rem 12vh;
  max-width: 46rem;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--ember);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 9vw, 6.4rem);
  max-width: 11ch;
  text-shadow: 0 0 32px var(--glow);
}

.lede {
  margin: 1.1rem 0 1.6rem;
  max-width: 34rem;
  color: color-mix(in srgb, var(--bone) 82%, var(--ash));
  font-size: 1.05rem;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
}

.btn:hover {
  background: var(--hot);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--foam);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vault,
.gate,
.update,
.foot {
  position: relative;
  padding: 4.5rem 1.4rem;
}

.vault {
  padding-right: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-right: 1.4rem;
  margin-bottom: 1.2rem;
}

.section-head p {
  margin: 0;
  color: var(--ash);
  max-width: 28rem;
}

.track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 1.4rem 1.8rem 0;
  scrollbar-color: var(--core) transparent;
}

.slab {
  flex: 0 0 min(21.5rem, 82vw);
  scroll-snap-align: start;
  min-height: 13.2rem;
  padding: 1.05rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 59, 31, 0.09), transparent 46%),
    rgba(10, 8, 8, 0.72);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.55rem;
  box-shadow: 10px 10px 0 rgba(196, 30, 18, 0.1);
}

.slab:nth-child(3n) {
  min-height: 11.6rem;
}

.slab:nth-child(3n + 1) {
  min-height: 14.6rem;
}

.slab:hover,
.slab:focus-within {
  border-color: var(--ember);
  box-shadow: 10px 10px 0 rgba(255, 59, 31, 0.18);
}

.slab.locked {
  background:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 10px,
      rgba(196, 30, 18, 0.05) 10px,
      rgba(196, 30, 18, 0.05) 11px
    ),
    rgba(10, 8, 8, 0.8);
}

.kind {
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.slab h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.slab p {
  margin: 0;
  color: var(--ash);
  font-size: 0.92rem;
}

.slab code,
.note code {
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--foam);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slab-acts {
  display: flex;
  gap: 0.45rem;
}

.tiny {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}

.tiny:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.gate-wrap {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.offer {
  border: 1px solid var(--ember);
  padding: 1.3rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 59, 31, 0.12), transparent 55%);
}

.offer .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.05em;
  margin: 0.2rem 0 0.5rem;
}

.offer .price span {
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--foam);
}

.alt,
.founding {
  color: var(--ash);
}

.founding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.note {
  max-width: 34rem;
  color: var(--ash);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
  max-width: 22rem;
  padding: 0.8rem 0.9rem;
  background: var(--ink);
  border: 1px solid var(--ember);
  color: var(--bone);
  display: none;
}

.toast.show {
  display: block;
}

body.lite {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 59, 31, 0.12), transparent 50%),
    var(--void);
}

body.lite .rail {
  border-bottom: 1px solid var(--line);
}

.sheet {
  max-width: 44rem;
  padding: 2.4rem 1.4rem 5rem;
}

.sheet h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  max-width: none;
}

.sheet h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.6rem;
}

.plain {
  padding-left: 1.1rem;
}

.plain li {
  margin: 0.7rem 0;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 1.2rem 0;
}

.field input {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.7rem 0.75rem;
  font: inherit;
}

@media (max-width: 720px) {
  .track {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
    padding-right: 1.4rem;
  }

  .slab,
  .slab:nth-child(3n),
  .slab:nth-child(3n + 1) {
    flex-basis: auto;
    width: 100%;
    min-height: 0;
  }

  .stay {
    min-height: calc(100svh - 4.4rem);
    padding-bottom: 8vh;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .world,
  html.is-lit .world {
    transform: none;
  }
}
