@font-face {
  font-family: "Fomo Display";
  src: url("assets/fonts/fomo-display.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Fomo Sans";
  src: url("assets/fonts/fomo-sans.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #07050d;
  --ink-soft: #0d0918;
  --violet: #8e43ff;
  --violet-hot: #c36cff;
  --lilac: #ded2ff;
  --white: #f4f0ff;
  --muted: #a8a0ba;
  --line: rgba(224, 211, 255, 0.16);
  --display: "Fomo Display", "Arial Black", sans-serif;
  --sans: "Fomo Sans", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1240px, calc(100vw - 64px));
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 30%, rgba(91, 27, 188, 0.13), transparent 34rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--violet-hot);
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 24px;
  background: #050308;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot.is-complete {
  opacity: 0;
  visibility: hidden;
}

.boot__mark {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

.boot__mark span,
.boot p {
  color: var(--violet-hot);
}

.boot p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.boot__track {
  width: min(340px, 70vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.boot__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--violet-hot);
  transform: translateX(-100%);
  animation: boot-load 1.05s cubic-bezier(0.7, 0, 0.25, 1) forwards;
  box-shadow: 0 0 20px var(--violet);
}

@keyframes boot-load {
  to { transform: translateX(0); }
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  width: var(--page);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(6, 4, 12, 0.68);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.3s ease, border-color 0.3s ease, top 0.3s ease;
}

.site-header.is-scrolled {
  top: 8px;
  border-color: rgba(177, 111, 255, 0.35);
  background: rgba(6, 4, 12, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 10px;
}

.brand__avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0c0717;
}

.brand__avatar img {
  height: 100%;
  object-fit: cover;
}

.brand__wordmark {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.055em;
}

.brand__wordmark span {
  color: var(--violet-hot);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.text-link {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c9c2d7;
}

.desktop-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--violet-hot);
  transition: right 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after,
.text-link:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  border-color: var(--violet-hot);
}

.button--small {
  min-height: 42px;
  padding-inline: 18px;
}

.button--primary {
  color: #0c0615;
  border-color: var(--violet-hot);
  background: var(--violet-hot);
  box-shadow: 0 12px 36px rgba(139, 59, 255, 0.22);
}

.button--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.button--ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  height: max(780px, 100svh);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 126px max(32px, calc((100vw - 1240px) / 2)) 42px;
  isolation: isolate;
}

.hero__image,
.hero__veil,
.hero__grid {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero__image {
  z-index: -4;
  object-fit: cover;
  object-position: 50% center;
  scale: 1.03;
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  to { scale: 1.09; transform: translate3d(0, -1%, 0); }
}

.hero__veil {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 3, 9, 0.93) 0%, rgba(5, 3, 9, 0.61) 40%, rgba(5, 3, 9, 0.04) 75%),
    linear-gradient(0deg, #07050d 0%, transparent 38%),
    linear-gradient(180deg, rgba(5, 3, 9, 0.65), transparent 28%);
}

.hero__grid {
  z-index: -2;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}

.hero__topline {
  position: absolute;
  top: 108px;
  left: max(32px, calc((100vw - 1240px) / 2));
  width: var(--page);
  display: flex;
  justify-content: space-between;
  color: #d2c8e4;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.hero__topline i,
.data-line i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #bdfb87;
  box-shadow: 0 0 10px #93ff3d;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% { opacity: 0.35; scale: 0.75; }
}

.hero__content {
  width: min(780px, 72vw);
  padding-bottom: 104px;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--violet-hot);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 6.3vw, 6.25rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(244, 240, 255, 0.78);
  text-shadow: 10px 10px 42px rgba(125, 50, 255, 0.6);
}

.hero__intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: #c8c1d3;
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  position: absolute;
  left: max(32px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  width: var(--page);
  display: grid;
  grid-template-columns: 94px 140px 140px 1fr;
  align-items: end;
  gap: 22px;
  padding-top: 18px;
  /* border-top: 1px solid rgba(255, 255, 255, 0.18); */
}

.hero__index {
  color: var(--violet-hot);
  font-family: var(--display);
  font-size: 0.88rem;
}

.hero__meta div {
  display: grid;
  gap: 2px;
}

.hero__meta small,
.token-panel small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__meta strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.scroll-cue {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  margin-left: 14px;
  color: var(--violet-hot);
  font-style: normal;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  background: var(--violet);
  color: #090411;
  transform: rotate(-1deg) scale(1.02);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.ticker span {
  padding-right: 30px;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.ticker i {
  margin-inline: 24px;
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.chapter,
.protocol,
.portal {
  width: var(--page);
  margin-inline: auto;
}

.chapter {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 1.25fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  padding-block: 130px;
}

.chapter::before {
  content: attr(data-chapter);
  position: absolute;
  top: 68px;
  right: 0;
  z-index: -1;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--display);
  font-size: clamp(8rem, 20vw, 17rem);
  line-height: 1;
}

.chapter--reverse {
  grid-template-columns: minmax(480px, 1.25fr) minmax(300px, 0.75fr);
}

.chapter--reverse .chapter__copy {
  order: 2;
}

.chapter--reverse .media-frame {
  order: 1;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--violet);
}

.section-label span {
  color: var(--violet-hot);
}

.chapter h2,
.protocol h2,
.velocity h2,
.portal h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.9vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.body-copy,
.velocity__content > p,
.portal__content > p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.data-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-line:first-of-type {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.data-line span {
  color: var(--muted);
}

.data-line strong {
  font-weight: 500;
}

.media-frame,
.portrait-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 189, 255, 0.25);
  background: #0e0718;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 54%, rgba(200, 116, 255, 0.15) 55%, transparent 56%);
  transform: translateX(-100%);
  animation: scan-glint 6s ease-in-out infinite;
}

@keyframes scan-glint {
  0%, 54% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

.media-frame img,
.portrait-frame img {
  transition: scale 0.7s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.5s ease;
}

.media-frame:hover img,
.portrait-frame:hover img {
  scale: 1.035;
  filter: saturate(1.12);
}

.media-frame figcaption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(4, 2, 8, 0.74);
  backdrop-filter: blur(10px);
  color: #d6cee5;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

blockquote {
  margin: 30px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 1px solid var(--violet-hot);
  color: #e8e0f7;
  font-size: 1.06rem;
  font-style: italic;
}

.protocol {
  padding-block: 120px 150px;
  border-top: 1px solid var(--line);
}

.protocol__header {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 70px;
}

.protocol__header .body-copy {
  margin-bottom: 6px;
}

.protocol__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(400px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
}

.portrait-frame {
  min-height: 570px;
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-color: var(--violet-hot);
}

.corner--tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.corner--tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.corner--bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.corner--br { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; }

.token-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 66px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(147, 69, 255, 0.06), rgba(147, 69, 255, 0.015)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.028) 40px),
    #0a0711;
}

.token-panel__head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.token-panel__head img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.token-panel__head div {
  display: grid;
  gap: 4px;
}

.token-panel__head strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.token-panel__head > span {
  padding: 5px 9px;
  border: 1px solid rgba(168, 255, 102, 0.4);
  color: #bdfb87;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.token-panel dl {
  margin: 18px 0;
}

.token-panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.token-panel dt,
.token-panel dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.token-panel dt {
  color: var(--muted);
}

.contract {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(183, 108, 255, 0.35);
  background: rgba(142, 67, 255, 0.08);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contract:hover {
  border-color: var(--violet-hot);
  background: rgba(142, 67, 255, 0.16);
}

.contract > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contract b {
  display: block;
  overflow: hidden;
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract em {
  flex: 0 0 auto;
  color: var(--violet-hot);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-panel__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
}

.token-panel__actions a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 12px;
  color: #c8c1d3;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.token-panel__actions a:last-child {
  border-right: 0;
}

.token-panel__actions a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.velocity {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 70px max(32px, calc((100vw - 1240px) / 2));
  isolation: isolate;
}

.velocity__image,
.velocity__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.velocity__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.velocity__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 3, 9, 0.9) 0%, rgba(5, 3, 9, 0.35) 48%, rgba(5, 3, 9, 0.08)),
    linear-gradient(0deg, rgba(5, 3, 9, 0.82), transparent 58%);
}

.velocity__content {
  width: min(500px, 100%);
}

.velocity__content .button {
  margin-top: 28px;
}

.velocity__readout {
  position: absolute;
  right: max(32px, calc((100vw - 1240px) / 2));
  bottom: 70px;
  width: 240px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 3, 9, 0.62);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
}

.velocity__readout span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.velocity__readout b {
  grid-row: span 2;
  color: var(--violet-hot);
  font-size: 1.25rem;
  font-weight: 500;
}

.velocity__readout i {
  color: #bdfb87;
  font-size: 8px;
  font-style: normal;
}

.portal {
  display: grid;
  grid-template-columns: minmax(480px, 1.2fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
  padding-block: 150px;
}

.portal__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.portal__scan {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 30px 5px var(--violet-hot);
  animation: portal-scan 4s ease-in-out infinite alternate;
}

@keyframes portal-scan {
  from { left: 8%; opacity: 0.2; }
  to { left: 92%; opacity: 0.75; }
}

.portal__content > p {
  color: var(--lilac);
  font-size: 1.1rem;
}

.portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.portal__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.portal__socials a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.portal__socials a:hover {
  color: var(--violet-hot);
}

.site-footer {
  width: var(--page);
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  margin-inline: auto;
  padding: 50px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-brand span {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 0.93;
}

.site-footer > p {
  justify-self: end;
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.footer-meta {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  justify-content: space-between;
  color: #6e687b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 26px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.18s; }
.reveal--delay-3 { transition-delay: 0.26s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--white);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(195, 108, 255, 0.8);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.is-hovering {
  width: 46px;
  height: 46px;
  border-color: var(--white);
}

@media (max-width: 1024px) {
  :root { --page: min(100% - 40px, 920px); }
  .desktop-nav { gap: 18px; }
  .chapter,
  .chapter--reverse,
  .protocol__grid,
  .portal { grid-template-columns: 1fr 1fr; gap: 40px; }
  .portrait-frame { min-height: 500px; }
  .token-panel { padding: 28px; }
  .token-panel__actions { grid-template-columns: 1fr; }
  .token-panel__actions a { border-right: 0; border-bottom: 1px solid var(--line); }
  .token-panel__actions a:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 28px); }
  .site-header { top: 8px; height: 58px; grid-template-columns: 1fr auto; }
  .desktop-nav,
  .header-x,
  .header-actions > .button { display: none; }
  .menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: transparent;
  }
  .menu-toggle span:not(.sr-only) { width: 16px; height: 1px; background: var(--white); transition: transform 0.25s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 90px 28px 40px;
    background: rgba(6, 4, 12, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-menu a { padding-block: 12px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.55rem; }
  .hero { min-height: 760px; height: 100svh; padding-inline: 20px; padding-bottom: 26px; }
  .hero__image { object-position: 63% center; }
  .hero__veil { background: linear-gradient(90deg, rgba(5, 3, 9, 0.84), rgba(5, 3, 9, 0.1)), linear-gradient(0deg, #07050d 2%, rgba(5, 3, 9, 0.45) 56%, rgba(5, 3, 9, 0.5)); }
  .hero__topline { top: 90px; left: 20px; width: calc(100vw - 40px); }
  .hero__topline span:last-child { display: none; }
  .hero__content { width: 100%; padding-bottom: 126px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero__intro { max-width: 94%; font-size: 0.92rem; }
  .hero__actions { align-items: stretch; }
  .hero__actions .button { flex: 1; padding-inline: 14px; gap: 10px; }
  .hero__meta { left: 20px; width: calc(100vw - 40px); grid-template-columns: 68px 1fr 1fr; gap: 10px; }
  .ticker { transform: none; }
  .scroll-cue { display: none; }
  .chapter,
  .chapter--reverse,
  .protocol__grid,
  .portal { grid-template-columns: 1fr; }
  .chapter { min-height: auto; padding-block: 90px; gap: 42px; }
  .chapter--reverse .chapter__copy,
  .chapter--reverse .media-frame { order: initial; }
  .chapter--reverse .chapter__copy { order: 1; }
  .chapter--reverse .media-frame { order: 2; }
  .chapter::before { top: 30px; font-size: 9rem; }
  .protocol { padding-block: 90px; }
  .protocol__header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 42px; }
  .portrait-frame { min-height: unset; aspect-ratio: 1; }
  .token-panel { min-height: 520px; }
  .velocity { min-height: 680px; padding: 50px 20px; }
  .velocity__image { object-position: 54% center; }
  .velocity__readout { top: 90px; right: 20px; bottom: auto; width: 190px; }
  .portal { padding-block: 90px 110px; }
  .portal__content { order: -1; }
  .site-footer { min-height: 250px; }
  .footer-brand img { width: 58px; height: 58px; }
  .cursor-dot,
  .cursor-ring { display: none; }
}

@media (max-width: 430px) {
  .brand__wordmark { font-size: 0.7rem; }
  .hero h1 { font-size: clamp(2.8rem, 13.5vw, 3.65rem); }
  .hero__actions { flex-direction: column; max-width: 270px; }
  .hero__actions .button { flex: none; }
  .hero__meta { grid-template-columns: 54px 1fr 1fr; }
  .hero__index { font-size: 0.72rem; }
  .hero__meta strong { font-size: 8px; }
  .chapter h2,
  .protocol h2,
  .velocity h2,
  .portal h2 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .token-panel { padding: 22px 18px; }
  .token-panel__head { grid-template-columns: 48px 1fr auto; gap: 11px; }
  .token-panel__head img { width: 48px; height: 48px; }
  .portal__actions { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { justify-self: start; text-align: left; }
  .footer-meta { display: grid; gap: 4px; }
}

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