:root {
  color-scheme: dark;
  --ink: #eef2e9;
  --muted: #9aa9a4;
  --line: rgba(224, 193, 113, .22);
  --gold: #dcc078;
  --gold-pale: #f2dfaa;
  --deep: #061116;
  --panel: rgba(12, 29, 34, .68);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; background: var(--deep); overflow: hidden; }

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 82% 15%, rgba(196, 160, 80, .11), transparent 28%),
    radial-gradient(ellipse at 50% 110%, rgba(18, 91, 99, .28), transparent 48%),
    linear-gradient(145deg, #08171c 0%, #061116 54%, #0b2025 100%);
  overflow: hidden;
}

a { color: inherit; }

.page-art { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100dvh; margin: 0; overflow: hidden; }
.page-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% center;
  transform: translateX(12vw) scale(1.28);
  transform-origin: center;
}
.shell {
  position: relative; z-index: 2; width: 100%; height: 100dvh; min-height: 0; margin: 0 auto; overflow: hidden;
  padding: clamp(22px, 3vh, 38px) clamp(28px, 6vw, 124px) clamp(22px, 3vh, 36px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 2vh, 24px);
}

.masthead { display: flex; min-height: clamp(108px, 14vh, 148px); align-items: flex-start; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 24px; margin-top: 12px; text-decoration: none; font-weight: 650; }
.brand img { width: clamp(132px, 17vh, 190px); height: auto; border-radius: 50%; outline: 1px solid rgba(220, 192, 120, .58); outline-offset: 6px; filter: drop-shadow(0 14px 40px rgba(0,0,0,.54)) drop-shadow(0 0 14px rgba(220,192,120,.12)); }
.brand-name { display: grid; gap: 7px; color: var(--ink); font-size: clamp(1.45rem, 1.85vw, 2rem); line-height: .92; letter-spacing: .3em; }
.network-stack { margin: 5px 0 0; }
.network { margin: 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; }
.network > span:first-child, .status span { display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(220,192,120,.09); }
.governance { margin: 12px 0 0 15px; color: #82918d; font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.governance a { color: var(--gold-pale); text-decoration: none; }
.governance a:hover { color: var(--ink); }

.hero {
  align-self: stretch; min-height: 0; height: 100%; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: center;
  gap: clamp(52px, 8vw, 150px);
}
.hero-copy, .metrics { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: .71rem; text-transform: uppercase; letter-spacing: .28em; }
h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(3.25rem, 5.25vw, 6.25rem); line-height: .92; letter-spacing: -.055em; text-wrap: balance; }
h1 em { color: var(--gold-pale); font-weight: 400; }
.intro { max-width: 570px; margin: clamp(24px, 4vh, 40px) 0 0; color: #bac5c0; font-size: clamp(.98rem, 1.2vw, 1.14rem); line-height: 1.7; }
.intro strong { color: var(--gold-pale); font-weight: 600; }
.thesis { display: flex; align-items: center; gap: 13px; margin: 25px 0 0; color: #899a94; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.thesis span { padding: 7px 10px; border: 1px solid rgba(220,192,120,.46); color: var(--gold-pale); background: rgba(3,12,16,.62); box-shadow: 0 4px 18px rgba(0,0,0,.2); text-shadow: 0 1px 8px rgba(0,0,0,.55); }

.metrics { justify-self: end; width: auto; display: grid; justify-items: end; gap: 9px; }
.metric-card { position: relative; width: max-content; max-width: 100%; padding: clamp(11px, 1.35vh, 15px) clamp(14px, 1.3vw, 18px); border: 1px solid rgba(220,192,120,.22); border-radius: 16px; background: rgba(4, 14, 18, .28); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); text-align: right; backdrop-filter: blur(3px); }
.metric-link { display: block; color: inherit; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.metric-link:hover { border-color: rgba(220,192,120,.58); background: rgba(4,14,18,.42); transform: translateY(-2px); }
.metric-label { margin: 0 0 9px; color: #aab7b2; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.metric-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; margin: 0; white-space: nowrap; font-size: clamp(1.8rem, 2.5vw, 2.85rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.metric-value small { color: var(--gold); font-size: .22em; letter-spacing: .16em; font-weight: 650; }
.metric-context { margin: 8px 0 0; color: #c5cfca; font-family: Georgia, serif; font-style: italic; font-size: .85rem; }
.metric-date { margin: 6px 0 0; color: #7f918b; font-size: .53rem; letter-spacing: .075em; text-transform: uppercase; }
.supply-card .metric-value { font-size: clamp(1.65rem, 2.05vw, 2.35rem); }

.footer { display: grid; grid-template-columns: 1fr; align-items: end; gap: 13px; }
.footer-meta { grid-row: 2; display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.verification p { margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: .035em; }
.verification .status { margin-top: 8px; color: #71827d; font-size: .64rem; }
.status span { width: 5px; height: 5px; margin-right: 7px; background: #88b4a3; box-shadow: none; }
.status.is-stale span, .status.is-fallback span { background: #d1a95d; }
.seal { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.links { grid-row: 1; width: 100%; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 12px; }
.links a { order: 1; min-width: 136px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 15px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #e1e7e3; background: rgba(4,14,18,.4); text-align: center; text-decoration: none; font-size: .72rem; font-weight: 600; line-height: 1.15; letter-spacing: .13em; text-transform: uppercase; backdrop-filter: blur(8px); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.links a:not(.is-primary) { min-width: 109px; min-height: 40px; padding: 12px 18px; font-size: .576rem; letter-spacing: .104em; }
.links a.is-compact { min-width: 0; }
.links a:hover { color: var(--gold-pale); border-color: var(--line); background: rgba(220,192,120,.06); }
.links a:hover { transform: translateY(-2px); }
.links a.is-primary { order: 3; min-width: 290px; margin-left: 0; padding: 17px 28px; border-color: var(--gold); color: #091317; background: linear-gradient(135deg, var(--gold-pale), #c9a85c); box-shadow: 0 10px 34px rgba(220,192,120,.18); }
.links a.is-primary:hover { color: #050b0d; border-color: #f8e9bd; background: linear-gradient(135deg, #fff1c9, #d7b76d); }
.links a.is-engine { order: 2; min-width: 0; min-height: 50px; margin-left: auto; padding: 17px 28px; font-size: .72rem; letter-spacing: .13em; border-color: var(--gold); color: #091317; background: linear-gradient(135deg, var(--gold-pale), #c9a85c); box-shadow: 0 10px 34px rgba(220,192,120,.18); }
.links a.is-engine:hover { color: #050b0d; border-color: #f8e9bd; background: linear-gradient(135deg, #fff1c9, #d7b76d); }
.contract { display: grid; justify-items: end; gap: 6px; margin: 0; color: #82918d; text-align: right; }
.contract span { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.contract code { color: #b8c2be; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; letter-spacing: .035em; }
.footer-credit { grid-row: 3; margin: -3px 0 0; color: #71827d; text-align: center; font-size: .52rem; letter-spacing: .055em; white-space: nowrap; }
.footer-credit a { color: #aab7b2; text-decoration: none; transition: color .2s ease; }
.footer-credit a:hover { color: var(--gold-pale); }
a:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; }

@media (max-width: 980px) {
  .page-art img { object-position: 48% center; transform: translateX(3vw) scale(1.1); }
  .shell { height: 100dvh; min-height: 0; }
  .hero { grid-template-columns: 1fr; align-content: center; gap: 24px; }
  h1 { font-size: clamp(3.3rem, 10vw, 5.8rem); }
  .metrics { justify-self: stretch; grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { width: 100%; }
  .supply-card { grid-column: 1 / -1; }
  .metric-value { font-size: clamp(2.1rem, 5.7vw, 3.7rem); }
  .footer { grid-template-columns: 1fr; justify-items: stretch; }
  .links { grid-column: 1; grid-row: 1; }
  .footer-meta { grid-row: 2; }
}

@media (min-width: 981px) {
  .hero-copy { isolation: isolate; }
  .hero-copy::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -38px -58px -28px -46px;
    background: radial-gradient(ellipse at 38% 45%, rgba(3,12,16,.66) 0%, rgba(3,12,16,.4) 54%, transparent 84%);
    filter: blur(15px);
  }
  .hero-message { transform: translateY(-34px); }
  .metrics { transform: translateY(-63px); }
}

@media (max-width: 680px) {
  html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  body { min-height: 100dvh; }
  .shell { display: block; height: auto; min-height: 100dvh; overflow: visible; padding: 20px 18px 26px; }
  .page-art::after { content: ""; position: absolute; inset: 0; background: rgba(3,12,16,.48); }
  .page-art img { object-position: 48% center; transform: translateX(2vw) scale(1.08); }
  .masthead { display: block; min-height: 0; }
  .brand { gap: 16px; margin-top: 0; }
  .brand img { width: 92px; outline-offset: 4px; }
  .brand-name { gap: 5px; font-size: .94rem; letter-spacing: .16em; }
  .network-stack { display: block; margin: 30px 0 0 2px; }
  .network { font-size: .55rem; letter-spacing: .12em; white-space: nowrap; }
  .governance { margin-top: 10px; font-size: .52rem; letter-spacing: .12em; }
  .hero { display: block; height: auto; min-height: 0; margin-top: 38px; }
  .eyebrow { margin-bottom: 16px; font-size: .62rem; letter-spacing: .24em; }
  h1 { font-size: clamp(2.65rem, 12.5vw, 3.5rem); line-height: .92; }
  .intro { margin-top: 24px; max-width: 100%; font-size: .94rem; line-height: 1.6; }
  .intro-break { display: none; }
  .thesis { flex-wrap: wrap; margin-top: 25px; gap: 10px; font-size: .55rem; letter-spacing: .12em; }
  .thesis span { padding: 7px 9px; }
  .metrics { width: 100%; grid-template-columns: 1fr; justify-items: stretch; gap: 14px; margin-top: 52px; }
  .metric-card { width: 100%; padding: 22px 18px; border-radius: 15px; text-align: center; background: rgba(4,14,18,.62); }
  .metric-label { margin-bottom: 12px; font-size: .61rem; letter-spacing: .18em; }
  .metric-value, .supply-card .metric-value { justify-content: center; font-size: clamp(2.25rem, 11vw, 3rem); }
  .metric-value small { font-size: .24em; }
  .metric-context { margin-top: 11px; font-size: .92rem; line-height: 1.3; }
  .metric-date { margin-top: 8px; font-size: .56rem; letter-spacing: .1em; }
  .footer { display: block; margin-top: 52px; }
  .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .links a, .links a:not(.is-primary), .links a.is-compact { width: 100%; min-width: 0; min-height: 44px; padding: 12px 8px; font-size: .58rem; }
  .links a.is-primary { order: 0; grid-column: 1 / -1; margin-left: 0; padding: 15px 12px; font-size: .64rem; }
  .links a.is-engine { order: 1; grid-column: 1 / -1; margin-left: 0; padding: 11px 12px; font-size: .56rem; }
  .links a:last-child { grid-column: 1 / -1; }
  .footer-meta { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 24px; padding-top: 18px; }
  .verification p { font-size: .67rem; line-height: 1.5; }
  .verification .status { margin-top: 8px; font-size: .6rem; }
  .contract { max-width: 100%; justify-items: start; gap: 7px; text-align: left; }
  .contract span { font-size: .55rem; }
  .contract code { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: .58rem; line-height: 1.45; }
  .footer-credit { margin-top: 26px; white-space: normal; }
}

@media (max-height: 760px) and (min-width: 981px) {
  .shell { padding-top: 15px; padding-bottom: 14px; gap: 10px; }
  .masthead { min-height: 92px; }
  .brand { margin-top: 5px; }
  .brand img { width: 124px; }
  .brand-name { font-size: 1.35rem; }
  .hero { min-height: 0; gap: 60px; }
  h1 { font-size: clamp(3.2rem, 4.6vw, 5rem); }
  .intro { margin-top: 17px; }
  .metric-card { padding: 10px 18px; }
  .metric-value { font-size: clamp(1.9rem, 2.55vw, 2.8rem); }
  .supply-card .metric-value { font-size: clamp(1.65rem, 2.15vw, 2.35rem); }
  .footer { gap: 8px; }
  .links a { padding-top: 11px; padding-bottom: 11px; }
  .footer-meta { padding-top: 8px; }
}

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