:root {
  --black: #080a08;
  --white: #f2f2eb;
  --muted: #8e948c;
  --line: rgba(242, 242, 235, 0.18);
  --acid: #d5f58a;
  --orange: #d8a27a;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --gutter: clamp(24px, 4vw, 68px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-inspecting {
  cursor: grabbing;
}

body.is-inspecting,
body.is-inspecting * {
  cursor: grabbing;
}

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

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

button {
  font: inherit;
}

::selection {
  color: var(--black);
  background: var(--acid);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 14px;
  color: var(--black);
  background: var(--acid);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.world-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #090b09;
}

.world-background::before {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
}

.world-background > span {
  display: none;
}

.world-background > span:nth-child(1) { left: 24%; top: -22%; }
.world-background > span:nth-child(2) { left: 61%; top: -10%; }
.world-background > span:nth-child(3) { left: 88%; top: -28%; }

#world {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  pointer-events: none;
  touch-action: auto;
}

body[data-chapter="0"] #world,
body[data-chapter="3"] #world {
  z-index: 5;
}

.object-caption {
  position: fixed;
  z-index: 40;
  left: calc(var(--gutter) + clamp(10px, 2vw, 34px));
  top: clamp(106px, 15vh, 176px);
  color: rgba(229, 234, 211, 0.92);
  font-family: "DM Mono", monospace;
  font-size: clamp(16px, 1.65vw, 26px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  text-shadow: 0 0 22px rgba(213, 245, 138, 0.18);
  transform: translate3d(0, 0, 0);
  transition:
    color 600ms ease,
    opacity 600ms ease;
}

body[data-chapter="5"] .object-caption {
  color: rgba(213, 245, 138, 0.96);
}

.site-sigil {
  position: fixed;
  z-index: 20;
  top: clamp(22px, 3vw, 44px);
  left: var(--gutter);
  display: flex;
  width: clamp(46px, 5.4vw, 74px);
  height: clamp(46px, 5.4vw, 74px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(22vw, 18vh, 0) rotate(8deg) scale(1.85);
  filter: blur(10px);
  transition:
    opacity 900ms ease,
    filter 1200ms ease,
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 520ms;
}

body.is-ready .site-sigil {
  opacity: 0.72;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  filter: blur(0);
}

body[data-chapter="0"] .site-sigil {
  opacity: 0;
  pointer-events: none;
}

.site-sigil:hover {
  opacity: 1;
  transform: rotate(-4deg) scale(1.04);
}

.site-sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.load-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: var(--black);
  transition:
    opacity 600ms ease,
    visibility 600ms ease;
}

.load-screen.is-loaded {
  opacity: 0;
  visibility: hidden;
}

.load-mark {
  width: 112px;
  height: 112px;
}

.load-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.scroll-track {
  position: relative;
  z-index: 4;
  height: 600vh;
  pointer-events: none;
}

.chapter {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: grid;
  padding: clamp(86px, 7.5vw, 118px) calc(var(--gutter) + clamp(10px, 2vw, 34px))
    clamp(30px, 5vw, 76px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.chapter.is-active {
  pointer-events: auto;
}

.hero-lockup {
  align-self: end;
  padding-bottom: 7vh;
}

.hero-lockup h1,
.chapter-final h2,
.roadmap-title h2 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 102px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-lockup h1 em,
.chapter-final h2 em {
  color: var(--acid);
  font-style: normal;
}

.hero-lockup > p {
  margin: 28px 0 0;
  color: #9da39b;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.55;
}

.chapter-latency {
  align-content: center;
}

.latency-number {
  display: flex;
  align-items: baseline;
  align-self: center;
  justify-self: start;
  line-height: 0.7;
}

.latency-number strong {
  font-size: clamp(110px, 18vw, 280px);
  font-weight: 500;
  letter-spacing: -0.105em;
}

.latency-number > span {
  margin-left: 22px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 64px);
}

.chapter-standard {
  align-content: center;
}

.standard-words {
  align-self: center;
  width: min(740px, 55vw);
}

.standard-words p {
  margin: 0;
  padding: clamp(11px, 1.6vh, 20px) 0;
  border-bottom: 1px solid var(--line);
}

.standard-words span {
  font-size: clamp(34px, 4.7vw, 72px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.075em;
}

.chapter-domains {
  align-content: center;
}

.domain-lockup {
  align-self: center;
}

.domain-lockup p {
  margin: 0;
  font-size: clamp(48px, 6.8vw, 102px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.09em;
}

.chapter-roadmap {
  align-content: center;
  gap: 8vh;
}

.roadmap-title h2 {
  font-size: clamp(42px, 5.5vw, 82px);
}

.provider-deck {
  display: grid;
  height: clamp(160px, 23vh, 225px);
  border: 1px solid #c7cac1;
  color: var(--black);
  background: var(--white);
  grid-template-columns: repeat(5, 1fr);
  pointer-events: auto;
}

.provider {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid #c7cac1;
  overflow: hidden;
}

.provider:last-child {
  border-right: 0;
}

.provider img {
  width: 86%;
  max-height: 82px;
  object-fit: contain;
}

.provider-lambda img {
  width: 120%;
  max-width: none;
}

.provider-square img {
  width: 76px;
}

.provider-rip {
  filter: grayscale(1);
}

.chapter-final {
  grid-template-rows: 1fr auto auto;
}

.chapter-final h2 {
  align-self: center;
  font-size: clamp(46px, 6.4vw, 94px);
}

.final-meta {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.final-meta > div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.final-meta p {
  margin: 0;
  color: #9da39b;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.45;
}

.contact-cta {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 25px;
  color: var(--black);
  background: var(--acid);
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: -0.04em;
  pointer-events: auto;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.contact-cta:hover {
  color: var(--white);
  background: var(--orange);
}

.contact-cta strong {
  font-size: 30px;
  font-weight: 400;
}

.no-script {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--black);
}

.no-script img {
  width: min(70vw, 700px);
}

@media (max-width: 900px) {
  .chapter {
    padding: 84px 34px 28px;
  }

  .hero-lockup h1 {
    font-size: clamp(56px, 14vw, 105px);
  }

  .hero-lockup > p {
    display: none;
  }

  .latency-number strong {
    font-size: clamp(105px, 28vw, 220px);
  }

  .standard-words {
    width: calc(100% - 18px);
  }

  .standard-words span {
    font-size: clamp(37px, 10.5vw, 76px);
  }

  .domain-lockup p {
    font-size: clamp(51px, 14vw, 108px);
  }

  .provider-deck {
    width: 155vw;
    transform: translateX(-38vw);
  }

  .provider {
    padding: 15px;
  }

  .chapter-final h2 {
    font-size: clamp(50px, 13vw, 100px);
  }

}

@media (max-width: 560px) {
  .latency-number {
    align-items: flex-end;
    flex-direction: column;
  }

  .latency-number > span {
    margin: 10px 0 0;
  }

  .provider-deck {
    width: 250vw;
    transform: translateX(-95vw);
  }

  .final-meta {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-cta {
    min-height: 68px;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
