/* A Ring Coin — geometric identity */

:root {
  --bg: #050814;
  --bg-2: #08101c;
  --ink: #f4f7fb;
  --ink-soft: #c5d0de;
  --ink-dim: #8b9bb0;
  --ice: #8ec8ff;
  --ice-mid: #5aa6e6;
  --line: rgba(210, 226, 245, 0.14);
  --line-strong: rgba(142, 200, 255, 0.42);
  --glass: rgba(10, 18, 32, 0.62);
  --header-pad: 14px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ring-c: 1432.57;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 80% 10%, rgba(50, 110, 180, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(40, 80, 140, 0.1), transparent 50%),
    var(--bg);
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 16px;
}

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

.copy-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
}

.btn-primary {
  background: linear-gradient(180deg, #f3f8ff 0%, #c3d7ee 100%);
  color: #071018;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(142, 200, 255, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(142, 200, 255, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-x:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(142, 200, 255, 0.08);
}

.btn-x {
  border-color: rgba(142, 200, 255, 0.45);
  color: var(--ice);
  min-width: 44px;
  font-weight: 600;
}

.btn-copy {
  min-height: 36px;
  padding: 0 14px;
  background: rgba(142, 200, 255, 0.1);
  border-color: rgba(142, 200, 255, 0.28);
  color: var(--ice);
}

.btn-copy:hover {
  transform: translateY(-1px);
  background: rgba(142, 200, 255, 0.18);
}

.btn-copy.is-copied {
  color: var(--ink);
  border-color: rgba(232, 238, 246, 0.35);
}

/* Header */

.site-header {
  position: fixed;
  top: var(--header-pad);
  left: 0;
  right: 0;
  z-index: 100;
  width: min(calc(100% - 24px), 1200px);
  margin-inline: auto;
}

.header-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 10px 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled .header-shell {
  background: var(--glass);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 999px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-ticker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ice);
  font-weight: 500;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-mobile-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn-ghost {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -5px;
}

.nav-toggle-lines::after {
  top: 5px;
}

.site-header.is-open .nav-toggle-lines {
  background: transparent;
}

.site-header.is-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.geo {
  position: absolute;
  border: 1px solid rgba(142, 200, 255, 0.08);
  border-radius: 50%;
  left: 58%;
  top: 48%;
  transform: translate(-50%, -50%);
}

.geo-xl {
  width: min(140%, 1280px);
  height: min(140%, 1280px);
  max-height: 1280px;
  aspect-ratio: 1;
}

.geo-lg {
  width: min(92vw, 860px);
  height: min(92vw, 860px);
  border-color: rgba(142, 200, 255, 0.12);
}

.geo-md {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-color: rgba(142, 200, 255, 0.18);
}

.hero-grid {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-statement {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-statement span {
  display: block;
}

.hero-lede {
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 22ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.ca-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  max-width: 420px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.ca-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ca-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.ca-value {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-orbits,
.hero-emblem-wrap {
  grid-area: 1 / 1;
}

.hero-orbits {
  width: min(92vw, 560px);
  height: min(92vw, 560px);
  position: relative;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(180, 210, 240, 0.1);
  border-top-color: rgba(180, 210, 240, 0.38);
  animation: spin 48s linear infinite;
}

.orbit-b {
  inset: 8%;
  animation-duration: 72s;
  animation-direction: reverse;
  border-top-color: rgba(142, 200, 255, 0.28);
}

.orbit-c {
  inset: 17%;
  animation-duration: 96s;
  border-style: dashed;
  border-top-color: rgba(232, 238, 246, 0.35);
}

.hero-emblem-wrap {
  position: relative;
  width: min(78vw, 460px);
  aspect-ratio: 1;
  animation: float 7.5s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 18px rgba(142, 200, 255, 0.28));
  pointer-events: none;
}

.hero-ring-track,
.stage-track,
.stage-orbit {
  fill: none;
  stroke: rgba(142, 200, 255, 0.12);
  stroke-width: 1;
}

.hero-ring-draw,
.stage-draw {
  fill: none;
  stroke: #d7e8ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: var(--ring-c);
  stroke-dashoffset: calc(var(--ring-c) * 0.78);
}

.stage-draw {
  --ring-c: 1181.24;
}

.hero-ring-draw {
  animation: close-ring 3.4s var(--ease) 0.4s forwards;
}

.hero-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
  animation: glow-pulse 5.5s ease-in-out infinite;
}

/* Story */

.story {
  padding: 120px 24px 80px;
}

.story-inner {
  width: min(100%, 920px);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 20px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}

.story-lines {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.story-block {
  margin: 0;
  display: grid;
  gap: 6px;
}

.story-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.story-rest {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--ink-dim);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.story-prose {
  margin: 72px 0 0;
  max-width: 18em;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Banner */

.cinematic {
  margin: 40px 0 0;
}

.cinematic img {
  width: 100%;
  height: clamp(180px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
}

/* The Ring */

.ring-section {
  padding: 120px 24px 100px;
}

.ring-intro {
  width: min(100%, var(--max));
  margin: 0 auto 56px;
}

.ring-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ring-stage {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.ring-visual {
  order: -1;
  width: min(78vw, 420px);
  aspect-ratio: 1;
  position: relative;
}

.stage-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 16px rgba(142, 200, 255, 0.2));
}

.stage-orbit {
  stroke-dasharray: 6 10;
  animation: spin 80s linear infinite;
  transform-origin: 250px 250px;
}

.stage-orbit-slow {
  stroke-dasharray: 1 14;
  animation-duration: 120s;
  animation-direction: reverse;
}

.stage-core {
  fill: var(--ice);
}

.stage-draw {
  stroke-width: 2;
}

.ring-section.is-complete .stage-draw {
  animation: close-ring 2.8s var(--ease) forwards;
}

.ring-note {
  max-width: 220px;
}

.ring-note h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
}

.ring-note p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 300;
}

/* Statement */

.statement {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 100px 24px;
  overflow: hidden;
}

.statement-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.statement-circle {
  position: absolute;
  border: 1px solid rgba(142, 200, 255, 0.12);
  border-radius: 50%;
  left: 62%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.statement-circle.c1 {
  width: min(90vw, 720px);
  height: min(90vw, 720px);
}

.statement-circle.c2 {
  width: min(62vw, 500px);
  height: min(62vw, 500px);
  border-color: rgba(142, 200, 255, 0.2);
}

.statement-circle.c3 {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  border-color: rgba(215, 232, 255, 0.35);
}

.statement-arc {
  position: absolute;
  left: 18%;
  top: 58%;
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  border: 1px solid rgba(142, 200, 255, 0.22);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-18deg);
}

.statement-type {
  position: relative;
  margin: 0;
  width: min(100%, 980px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  will-change: transform;
}

.statement-type span {
  display: block;
}

/* Chart */

.chart-section {
  padding: 40px 24px 100px;
}

.chart-head,
.chart-frame {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.chart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
}

.chart-sub {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-weight: 300;
  font-size: 1.15rem;
}

.chart-frame {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 16, 28, 0.7);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  border: 0;
  background: #0b1220;
}

.chart-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

/* Contract */

.contract {
  padding: 40px 24px 80px;
  text-align: center;
}

  letter-spacing: 0.04em;

.contract-ca {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 8vw, 4.4rem);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* Disclaimer + footer */

.disclaimer {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: grid;
  gap: 16px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-brand {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand span:last-child {
  color: var(--ice);
  letter-spacing: 0.04em;
}

.footer-center {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: var(--ice);
}

/* Reveals */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.story-block.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.story-block.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.statement-type .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.statement-type .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.statement-type .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

/* Motion */

@keyframes close-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(142, 200, 255, 0.18));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(142, 200, 255, 0.42));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.nav-open {
  overflow: hidden;
}

/* Desktop */

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn-ghost {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .ring-stage {
    grid-template-columns: 1fr minmax(240px, 420px) 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 12px 20px;
    align-items: center;
  }

  .ring-note {
    text-align: left;
  }

  .ring-note-arc {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }

  .ring-note-ticker {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    text-align: right;
  }

  .ring-visual {
    grid-column: 2;
    grid-row: 2;
    order: 0;
  }

  .ring-note-ring {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }

  .ring-note-coin {
    grid-column: 2;
    grid-row: 3;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-center {
    text-align: center;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

/* Mobile navigation overlay */

@media (max-width: 899px) {
  .header-shell {
    border-radius: 22px;
  }

  .site-header.is-open .header-shell {
    background: var(--glass);
    border-color: var(--line);
    backdrop-filter: blur(18px);
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    position: fixed;
    inset: 0;
    z-index: 1;
    padding: 110px 32px 40px;
    background: rgba(5, 8, 20, 0.94);
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease),
      visibility 0.35s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .nav-mobile-actions .btn {
    font-size: 0.9rem;
    min-height: 48px;
    min-width: 72px;
  }

  .hero-actions .btn,
  .contract-actions .btn {
    min-height: 48px;
    flex: 1 1 140px;
  }

  .ca-module {
    width: 100%;
    max-width: 100%;
  }

  .hero-emblem-wrap {
    width: min(86vw, 420px);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-ring-draw,
  .ring-section.is-complete .stage-draw,
  .stage-draw {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-emblem-wrap,
  .hero-emblem,
  .orbit,
  .stage-orbit {
    animation: none;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-x:hover {
    transform: none;
  }
}
