@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------------------------- */

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background-color: #000;
}

body {
  margin: 0;
}

h1,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: none;
  cursor: pointer;
}

svg,
video {
  display: block;
}

/* ---------------------------------------------------------------------------------------------
   Page and background video
   --------------------------------------------------------------------------------------------- */

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  /* The visible height on phones, so the page cannot scroll under the browser toolbar. */
  height: 100svh;
  overflow: hidden;
  background-color: #000;
  font-family: Inter, sans-serif;
}

.page-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------------------------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.nav-logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  background-color: #0c0c0c;
}

.nav-link {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  color: #fffc;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background-color: #ffffff1a;
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-color: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
  opacity: 0.8;
}

.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle-icon {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-toggle-icon.is-menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-toggle-icon.is-close {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.menu-open .menu-toggle {
  background-color: #1a1a1a;
}

.menu-open .menu-toggle-icon.is-menu {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.menu-open .menu-toggle-icon.is-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---------------------------------------------------------------------------------------------
   Mobile menu
   --------------------------------------------------------------------------------------------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background-color: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open .menu-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* The open height is the sheet's own height, capped to the screen (set in script.js).
   On a screen shorter than the menu, the links scroll under the bar instead of being cut off. */
.menu-panel.is-scrollable .menu-sheet {
  display: flex;
  flex-direction: column;
  max-height: 100svh;
}

.menu-panel.is-scrollable .menu-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.menu-panel.is-scrollable .menu-scroll::-webkit-scrollbar {
  display: none;
}

.menu-sheet {
  padding: 5rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 8, 8, 0.97);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-item {
  --delay: 80ms;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #ffffffb3;
  font-size: 1rem;
  line-height: 1.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) var(--delay),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) var(--delay),
    color 0.2s,
    background 0.2s;
}

.menu-item:hover {
  background-color: #ffffff0d;
  color: #fff;
}

.menu-open .menu-item {
  opacity: 1;
  transform: translateY(0);
}

.menu-item svg {
  opacity: 0;
  transform: translateX(-0.25rem);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover svg {
  opacity: 0.4;
  transform: translateX(0);
}

.menu-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 360ms,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 360ms;
}

.menu-open .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.menu-cta {
  width: 100%;
  padding: 0.75rem 0;
  border-radius: 9999px;
  background-color: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-cta:hover {
  opacity: 0.8;
}

/* ---------------------------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 1.25rem 0;
  text-align: center;
}

.hero-title {
  max-width: 48rem;
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-text {
  max-width: 20rem;
  margin-top: 1.25rem;
  color: #fff9;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background-color: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
  opacity: 0.8;
}

.hero-cta svg {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover svg {
  transform: translateX(0.125rem);
}

.break-sm {
  display: none;
}

/* ---------------------------------------------------------------------------------------------
   Breakpoints: 640, 768, 1024
   --------------------------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .break-sm {
    display: block;
  }

  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-text {
    max-width: 24rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 120px;
  }

  .hero-text {
    max-width: 28rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .hero-cta {
    margin-top: 2rem;
  }
}

@media (min-width: 1024px) {
  /* Equal side columns keep the links on the same axis as the headline. */
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 1.5rem 2.5rem;
  }

  .nav-logo {
    justify-self: start;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .menu-toggle,
  .menu-backdrop,
  .menu-panel {
    display: none;
  }
}

/* Short, wide screens (phones on their side): the video is cropped top and bottom, which lifts
   its subject into the text. Anchor it to the top and tuck the text under the bar. */
@media (max-height: 480px) {
  .page-video {
    object-position: center top;
  }
}

@media (max-height: 480px) and (max-width: 1023px) {
  .hero {
    padding-top: 84px;
  }
}

/* ---------------------------------------------------------------------------------------------
   Reduced motion: no transitions (the video is paused from script.js)
   --------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-cta,
  .menu-toggle,
  .menu-toggle-icon,
  .menu-backdrop,
  .menu-panel,
  .menu-item,
  .menu-item svg,
  .menu-footer,
  .menu-cta,
  .hero-cta,
  .hero-cta svg {
    transition: none;
  }
}

/* =============================================================================================
   e0a: everything the protocol adds to the base. Same black, same pills, same two typefaces.
   ============================================================================================= */

:root {
  --violet: #5a36c8;
  --violet-2: #7a55e0;
  --lilac: #c3a2f5;
  --rose: #f3b6ee;
  --grad: linear-gradient(120deg, #5a36c8 0%, #7a55e0 40%, #c3a2f5 78%, #f3b6ee 100%);
  --panel: #0c0c0c;
  --line: rgba(255, 255, 255, 0.09);
  --soft: #ffffffb3;
  --dim: #fff9;
  --mono: "Courier New", Courier, monospace;
  --out: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  color: #fff;
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h2,
h3,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------------------------
   Hero: the name where the headline was, on the same block height
   --------------------------------------------------------------------------------------------- */

.hero-name {
  font-size: clamp(4.25rem, 12vw, 6.25rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .hero-cta {
  margin-top: 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.hero-ghost {
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  background-color: #0c0c0cd9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fffc;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-ghost:hover {
  background-color: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  color: #fff;
}

.menu-cta {
  display: block;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-actions {
    margin-top: 2rem;
  }
}

/* ---------------------------------------------------------------------------------------------
   Sections under the hero
   --------------------------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
}

.ring,
.closing {
  padding: clamp(5.5rem, 13vw, 10rem) 1.25rem;
  background-color: #000;
  text-align: center;
}

.section-title {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-text {
  max-width: 41rem;
  margin: 1.5rem auto 0;
  color: var(--soft);
  font-size: 1.0625rem;
  line-height: 1.65;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--out), transform 0.7s var(--out);
  transition-delay: var(--stagger, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The hundred rule: one stroke per name, in ring order. */

.rule-scroll {
  margin-top: clamp(3rem, 7vw, 5rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.rule-scroll::-webkit-scrollbar {
  display: none;
}

.rule svg {
  display: block;
  width: 100%;
  min-width: 56rem;
  height: auto;
  overflow: visible;
}

.rule .mark {
  fill: #fff;
  opacity: 0.3;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.5s ease;
}

.rule .mark.is-paid {
  opacity: 0.95;
}

.rule .mark.is-dot {
  opacity: 0.22;
}

.rule.is-drawing .mark {
  animation: mark-draw 0.5s var(--out) both;
  animation-delay: calc(var(--i) * 14ms);
}

@keyframes mark-draw {
  from {
    transform: scaleY(0);
  }
}

.rule .mark.is-pop {
  animation: mark-pop 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes mark-pop {
  0% {
    transform: scaleY(0.86);
  }
  60% {
    transform: scaleY(1.12);
  }
}

.rule .head {
  transition: transform 0.6s var(--out);
}

.rule .head-star {
  transform-box: fill-box;
  transform-origin: center;
}

.rule .head.is-stamp .head-star {
  animation: star-stamp 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes star-stamp {
  0% {
    transform: scale(0.6) rotate(-30deg);
  }
  60% {
    transform: scale(1.18) rotate(0deg);
  }
}

.rule .base {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.rule .tick {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.rule .tick-label {
  fill: #ffffff73;
  font: 11px var(--mono);
  text-anchor: middle;
}

.rule .year {
  fill: var(--lilac);
  font: 12px var(--mono);
  text-anchor: middle;
  opacity: 0;
}

.rule .year.is-up {
  animation: year-up 1.1s ease-out both;
}

@keyframes year-up {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.rule-caption {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.625;
  letter-spacing: 0.01em;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.figures li {
  padding: 0.5rem 1.5rem;
}

.figures li + li {
  border-left: 1px solid var(--line);
}

.figures b {
  display: block;
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.figures span {
  display: block;
  margin-top: 0.9rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Closing */

.closing {
  border-top: 1px solid var(--line);
}

.closing-mark {
  display: block;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 22px #7a55e099);
}

/* Footer */

.footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  background-color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem 4rem;
}

.footer-brand p {
  margin-top: 0.4rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--panel);
}

.footer-links a {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  color: #fffc;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  background-color: #ffffff1a;
  color: #fff;
}

.footer-legal {
  justify-self: end;
  max-width: 30rem;
  color: #ffffff80;
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .ring,
  .closing,
  .footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 1.75rem;
  }

  .footer-links {
    flex-wrap: wrap;
    border-radius: 1.25rem;
  }

  .footer-legal {
    justify-self: start;
  }
}

@media (max-width: 639px) {
  .figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .figures li + li {
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-text {
    font-size: 1rem;
  }
}

/* Short, wide screens: keep the name clear of the star. */
@media (max-height: 480px) {
  .hero-name {
    font-size: 3.25rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-ghost,
  .footer-links a,
  .rule .mark,
  .rule .head {
    transition: none;
  }

  .rule.is-drawing .mark,
  .rule .mark.is-pop,
  .rule .head.is-stamp .head-star,
  .rule .year.is-up {
    animation: none;
  }
}

/* The X button: a round one, in front of the pill that opens the ledger. */

.nav-x {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #0c0c0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fffc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-x svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.nav-x:hover {
  background-color: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .nav-x {
    transition: none;
  }
}
