:root {
  --bg: #f7f7f4;
  --ink: #0b0e10;
  --muted: #7c8085;
  --rule: #d4d5d3;
  --button: #252b2f;
  --link: #2464db;
  --line: #c5c6c3;
  --frame: min(1350px, calc(100% - 72px));
  --inset: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.frame {
  width: var(--frame);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: var(--inset);
}

.site-header {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.site-header .bar {
  position: relative;
  justify-content: flex-start;
  min-height: 96px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 52px;
  height: 52px;
  display: block;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 44px;
  padding: 0 2px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header-social { margin-left: 28px; }

.site-nav a,
.site-nav .nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.site-nav .nav-link {
  border: 0;
  background: transparent;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; display: block; }

.btn-outline {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.social-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #f7f7f4;
  text-decoration: none;
  background: #2c343a;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.social-btn svg { width: 18px; height: 18px; display: block; }

.social-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4a545c 0%, #2c343a 46%, #1c2226 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 #121618,
    0 8px 14px rgba(11, 14, 16, 0.2);
}

.social-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #121618,
    0 2px 6px rgba(11, 14, 16, 0.16);
}

.social-btn[aria-disabled="true"] { cursor: default; }

.site-nav a,
.site-nav .nav-link,
.nav-toggle {
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.site-nav a,
.site-nav .nav-link {
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  height: 38px;
  padding: 0 12px;
}

.site-nav a:hover,
.site-nav .nav-link:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f1 52%, #e4e5e2 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(11, 14, 16, 0.06),
    0 3px 0 #c5c6c3,
    0 6px 10px rgba(11, 14, 16, 0.08);
}

.site-nav a:active,
.site-nav .nav-link:active,
.nav-toggle:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 #c5c6c3;
}

.btn-raise {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #f7f7f4;
  font-size: 15px;
  font-weight: 650;
  background: #2c343a;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.btn-raise:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4a545c 0%, #2c343a 46%, #1c2226 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 #121618,
    0 8px 14px rgba(11, 14, 16, 0.2);
}

.btn-raise:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #121618,
    0 2px 6px rgba(11, 14, 16, 0.16);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  column-gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 48px var(--inset) 8px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.slogan {
  margin: 28px 0 0;
  font-size: clamp(28px, 2.965vw, 42px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.lede {
  margin: 26px 0 0;
  max-width: 28em;
  font-size: clamp(18px, 1.73vw, 25px);
  font-weight: 400;
  letter-spacing: -0.011em;
  line-height: 1.35;
}

.lede span { display: block; }

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 20px;
}

.coin {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  right: 0;
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-media {
  position: relative;
  width: auto;
  height: min(78%, 640px);
  aspect-ratio: 1;
  max-width: 92%;
}

.coin-poster,
.coin-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.coin-video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.coin-video.is-ready { opacity: 1; }

.token {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.token-action {
  display: flex;
  justify-content: flex-start;
  padding: 8px var(--inset) 14px;
}

.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.75fr) minmax(0, 0.7fr);
  border-top: 1px solid #b7b9b6;
  border-bottom: 1px solid var(--rule);
}

.token-col {
  position: relative;
  min-width: 0;
  padding: 28px 16px 32px var(--inset);
}

.token-col + .token-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: var(--rule);
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.value {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.token-name { font-size: 34px; }

.fact-window {
  height: 58px;
  overflow: hidden;
}

.fact {
  height: 58px;
}

.fact-track {
  animation: fact-reel 12.5s infinite;
}

@keyframes fact-reel {
  0%, 14% { transform: translateY(0); }
  20%, 34% { transform: translateY(-58px); }
  40%, 54% { transform: translateY(-116px); }
  60%, 74% { transform: translateY(-174px); }
  80%, 94% { transform: translateY(-232px); }
  100% { transform: translateY(-290px); }
}

.contract-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.contract-line .value { margin: 0; min-width: 0; }

.value-contract {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.address {
  overflow-wrap: anywhere;
  min-width: 0;
}

.copy {
  flex: 0 0 auto;
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #2c343a;
  color: #f7f7f4;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, color 0.15s ease, background 0.08s ease;
}

.copy:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4a545c 0%, #2c343a 46%, #1c2226 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 3px 0 #121618,
    0 6px 10px rgba(11, 14, 16, 0.16);
}

.copy:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #121618;
}

.copy svg { width: 22px; height: 22px; display: block; }

.copy svg[hidden] { display: none !important; }

.copy.is-copied { color: var(--link); }

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.token-col-resources {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
}

.token-col-resources .resource-row { justify-content: center; }

.resource {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.08s ease;
}

.resource:hover { color: #163f8c; }

.resource:active { transform: translateY(1px); }

.resource svg { width: 13px; height: 13px; display: block; }

.resource.is-pending {
  color: #8aa6dc;
  cursor: default;
}

.film-inner { padding: 34px var(--inset) 46px; }

.film-kicker { margin-bottom: 12px; }

.film-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.film h2 {
  margin: 0;
  font-size: clamp(28px, 2.64vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.film-time {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #14171a;
  cursor: pointer;
  aspect-ratio: 1460 / 400;
  transition: transform 0.12s ease;
}

.poster:hover { transform: translateY(-2px); }

.poster:active { transform: translateY(1px); }

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 247, 244, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.poster:hover .poster-play {
  transform: translate(-50%, calc(-50% - 2px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(11, 14, 16, 0.12),
    0 4px 0 rgba(11, 14, 16, 0.28),
    0 10px 18px rgba(11, 14, 16, 0.22);
}

.poster:active .poster-play {
  transform: translate(-50%, calc(-50% + 4px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(11, 14, 16, 0.28);
}

.poster-play svg { width: 26px; height: 26px; margin-left: 3px; display: block; }

.site-footer .footer-bar {
  min-height: 71px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-footer img { width: 36px; height: 36px; }

.brand-footer span {
  font-size: 14px;
  letter-spacing: 0.16em;
}

.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
}

.story-overlay[hidden] { display: none; }

.story-window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-bar {
  position: relative;
  justify-content: flex-start;
  min-height: 96px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.story-close {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2c343a;
  color: #f7f7f4;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.story-close:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4a545c 0%, #2c343a 46%, #1c2226 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 #121618,
    0 8px 14px rgba(11, 14, 16, 0.2);
}

.story-close:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #121618,
    0 2px 6px rgba(11, 14, 16, 0.16);
}

.story-token {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.story-bar .social-row { margin-left: auto; }

.story-scroll {
  flex: 1;
  overflow: auto;
}

.story-body {
  padding: 36px max(22px, var(--inset)) 64px;
}

.story-layout {
  display: flex;
  flex-direction: column;
}

.story-title-block {
  background: #171c38;
  color: #f6f3ec;
  padding: 36px 36px 40px;
}

.story-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.2;
  text-transform: uppercase;
}

.story-title-block h2 {
  margin: 0;
  max-width: 11em;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #f6f3ec;
}

.story-title-block blockquote {
  margin: 26px 0 0;
  max-width: 16em;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #f6f3ec;
}

.story-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 56px;
  align-items: center;
}

.story-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.story-copy p {
  margin: 0 0 16px;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.005em;
  line-height: 1.6;
  color: #3c4452;
}

.story-copy p:last-child { margin-bottom: 0; }

.story-copy p.story-slogan {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #171c38;
}

.film-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  background: rgba(11, 14, 16, 0.78);
}

.film-overlay[hidden] { display: none; }

.film-dialog {
  position: relative;
  width: min(1100px, 100%);
}

.film-player {
  display: flex;
  justify-content: center;
}

.film-player video {
  width: min(1100px, 100%);
  max-height: calc(100vh - 112px);
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #000;
  border-radius: 8px;
}

.film-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f7f7f4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #2c343a;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.film-close:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4a545c 0%, #2c343a 46%, #1c2226 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 3px 0 #121618,
    0 6px 12px rgba(0, 0, 0, 0.28);
}

.film-close:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #121618;
}

.film-close svg { width: 16px; height: 16px; display: block; }

body.film-open,
body.story-open { overflow: hidden; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 12px;
  }

  .coin {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: min(440px, 88%);
    margin: 12px auto 0;
    display: block;
  }

  .coin-media {
    width: 100%;
    height: auto;
    max-width: none;
  }

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

  .token-col {
    padding: 22px 0 24px;
  }

  .token-col + .token-col { border-top: 1px solid var(--rule); }

  .token-col + .token-col::before { display: none; }

  .token-col-resources {
    align-items: flex-start;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .token-col-resources .resource-row { justify-content: flex-start; }

  .fact-window { height: auto; overflow: visible; }
  .fact-track { animation: none; }
  .fact-track .fact[aria-hidden="true"] { display: none; }
  .fact { height: auto; }
  .fact + .fact { margin-top: 18px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }

  .site-header .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 10px;
    min-height: 72px;
  }

  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }

  .brand span {
    font-size: 14px;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle { margin-left: 0; }

  .header-social { margin-left: 0; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 22px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a,
  .site-nav .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .story-body { padding-top: 24px; padding-bottom: 40px; }

  .story-rows { gap: 36px; margin-top: 32px; }

  .story-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    min-height: 72px;
  }

  .story-token {
    position: static;
    transform: none;
    justify-self: center;
    max-width: 100%;
    font-size: 18px;
    text-align: center;
  }

  .story-bar .social-row { margin-left: 0; }

  .story-title-block { padding: 28px 22px 32px; }

  .story-title-block h2 { font-size: clamp(34px, 10vw, 52px); }

  .site-nav .social-btn {
    min-height: 42px;
    display: inline-grid;
  }

  .site-nav .btn-outline { margin-top: 6px; }
}

@media (max-width: 720px) {
  :root {
    --frame: calc(100% - 44px);
    --inset: 0px;
  }

  .hero h1 { font-size: clamp(46px, 14vw, 58px); letter-spacing: -0.05em; }

  .lede span { display: inline; }
  .lede span + span::before { content: " "; }

  .footer-bar {
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand-footer span {
    letter-spacing: 0.08em;
  }

  .film-inner { padding-top: 28px; padding-bottom: 32px; }

  .poster { aspect-ratio: 16 / 9; }

  .poster-play { width: 64px; height: 64px; }

  .film-overlay { padding: 64px 16px 16px; }

  .social-btn { width: 40px; height: 40px; }
  .social-row { gap: 8px; }
}

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

  .fact-window { height: auto; overflow: visible; }
  .fact-track { animation: none; }
  .fact-track .fact[aria-hidden="true"] { display: none; }
  .fact { height: auto; }
  .fact + .fact { margin-top: 16px; }
}
