:root {
  color-scheme: dark;
  --bg: #111615;
  --panel: #19211f;
  --line: #34413e;
  --ink: #edf1f0;
  --silver: #c6d0ce;
  --muted: #a9b7b4;
  --aqua: #009393;
  --mint: #92dbd1;
  --mono: "IBM Plex Mono", monospace;
  --header: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Instrument Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); background: var(--mint); color: var(--bg); padding: 10px; }
.skip:focus { transform: none; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.mono, code { font-family: var(--mono); }
.header { position: fixed; z-index: 3; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.header.scrolled, .header:has(.menu[aria-expanded="true"]) { background: #161c1b; border-color: var(--line); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 25px; font-weight: 700; letter-spacing: -.06em; white-space: nowrap; display: inline-flex; align-items: center; }
.brand img { width: 32px; height: 32px; object-fit: contain; margin-right: 9px; }
.brand span { color: var(--mint); }
nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); font-size: 14px; color: var(--silver); }
nav a:hover, nav a[aria-current] { color: var(--mint); }
.menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 11px 16px; color: var(--ink); background: transparent; border: 1px solid #50605c; border-radius: 7px; font-weight: 600; font-size: 14px; line-height: 1.3; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.button:hover { background: #273632; border-color: var(--mint); }
.button.small { min-height: 40px; white-space: nowrap; }
.button.primary { background: var(--mint); border-color: var(--mint); color: #102321; }
.button.primary:hover { background: #b8ebe3; border-color: #b8ebe3; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero { padding: calc(var(--header) + clamp(50px, 6vw, 86px)) 0 clamp(54px, 6vw, 84px); border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px, 4.8vw, 76px); align-items: center; }
h1, h2, h3 { margin: 0; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.4vw, 78px); letter-spacing: -.052em; }
h2 { font-size: clamp(35px, 4.1vw, 58px); letter-spacing: -.05em; max-width: 720px; }
h3 { font-size: clamp(23px, 2.6vw, 34px); letter-spacing: -.04em; }
p { color: var(--muted); text-wrap: pretty; margin: 16px 0 0; }
.lede { max-width: 510px; color: var(--silver); font-size: clamp(16px, 1.45vw, 20px); margin: 25px 0 30px; }
.status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--mint); font-size: 11px; background: #192d28; border: 1px solid #365852; padding: 6px 9px; border-radius: 4px; }
.status i { width: 7px; height: 7px; flex: none; background: var(--mint); border-radius: 50%; }
.independent { font-size: 13px; margin-top: 14px; }
figure { margin: 0; border: 1px solid #3d514c; border-radius: 13px; overflow: hidden; background: #172320; min-width: 0; }
.diagram { width: 100%; height: auto; display: block; }
.diagram text { fill: var(--silver); font: 500 15px var(--mono); }
figcaption { padding: 13px 16px; border-top: 1px solid #3d514c; color: var(--silver); background: #18221f; font-size: 13px; }
.green-icon { color: var(--mint); }
.section { padding-block: clamp(70px, 8.5vw, 118px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7.5vw, 106px); }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.intro { max-width: 610px; }
.milestones { margin: 16px 0 0 8px; padding: 0; list-style: none; }
.milestones li { position: relative; display: grid; gap: 4px; padding: 0 0 24px 24px; border-left: 1px solid var(--line); }
.milestones li:last-child { border-color: transparent; padding-bottom: 0; }
.milestones li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 9px; height: 9px; border: 1px solid var(--silver); border-radius: 50%; background: var(--bg); }
.milestones li:first-child::before { background: var(--mint); border-color: var(--mint); }
.milestones span { color: var(--muted); font-size: 12px; }
.milestones .deployed { color: var(--mint); }
.bridge-section, .contract-section { border-block: 1px solid var(--line); background: #141c1a; }
.bridge-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: clamp(36px, 7vw, 100px); margin-top: 40px; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { min-height: clamp(260px, 45vh, 450px); display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.step-index { display: block; color: var(--mint); font-size: 13px; margin-bottom: 13px; }
.bridge-figure { position: sticky; top: max(calc(var(--header) + 24px), calc(50vh - 170px)); }
.route-base, .route { stroke-width: 2; fill: none; }
.route-base { stroke: #57716b; stroke-dasharray: 4 6; }
.route { stroke: var(--mint); transition: stroke-dashoffset .72s ease; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bridge-node { fill: #1c2c28; stroke: #62817a; transition: stroke .18s .55s, fill .18s .55s; }
[data-state="0"] .route, [data-state="1"] :is(.issue-route, .redeem-route), [data-state="2"] .redeem-route { stroke-dashoffset: 1; }
[data-state="1"] .vault-node, [data-state="2"] .issue-node, [data-state="3"] .ethereum-node { stroke: var(--mint); fill: #25463d; }
.return-label { transition: opacity .2s .45s; }
:is([data-state="0"], [data-state="1"], [data-state="2"]) .return-label { opacity: .45; }
.marker { fill: var(--mint); opacity: 0; }
.lock-marker { offset-path: path("M153 129h107"); }
.issue-marker { offset-path: path("M340 129h107"); }
.redeem-marker { offset-path: path("M485 166v66q0 22-22 22H137q-22 0-22-22v-66"); }
[data-state="1"] .lock-marker, [data-state="2"] .issue-marker, [data-state="3"] .redeem-marker { animation: transfer .72s ease both; }
@keyframes transfer { 0% { opacity: 0; offset-distance: 0%; } 12%, 86% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; } }
.step-jumps, .mobile-flow { display: none; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 34px; }
.card, .contract-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 4vw, 42px); }
.card svg { width: 110px; fill: none; stroke: var(--mint); stroke-width: 1.5; margin-bottom: 18px; }
.card:nth-child(2) { animation-delay: 90ms; }
.revealed { animation: reveal .45s ease both; }
@keyframes reveal { from { opacity: .45; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.contract-card { margin-top: 30px; }
dl, dd { margin: 0; }
.contract-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
dt { color: var(--muted); font-size: 14px; }
.contract-grid dd { font-family: var(--mono); font-size: clamp(14px, 2vw, 17px); margin-top: 4px; }
.address { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.address code { overflow-wrap: anywhere; color: var(--mint); }
.copy-status { display: block; min-height: 1.5em; color: var(--mint); font-size: 12px; margin-top: 8px; }
.verification { margin-top: 56px; }
.evidence > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.75fr); gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.evidence dt { color: var(--silver); }
.evidence dd { color: var(--muted); font: 12px/1.6 var(--mono); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding-block: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font: 20px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 19px; }
.closing { border-block: 1px solid var(--line); background: #192420; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.closing-inner > div:first-child { max-width: 610px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 26px; }
.footer p { margin: 0; font-size: 13px; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .header-action { display: none; }
  .hero-grid { gap: 26px; }
  .hero .actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  :root { --header: 60px; }
  .shell { width: calc(100% - 36px); }
  html:not(.enhanced) .header { position: static; background: #161c1b; }
  html:not(.enhanced) .hero { padding-top: 42px; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  #nav { width: 100%; flex-wrap: wrap; gap: 4px 15px; }
  #nav a { padding: 10px 0; }
  .enhanced .menu { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-height: 44px; cursor: pointer; }
  .enhanced #nav { display: none; position: absolute; top: 100%; left: 0; flex-direction: column; align-items: stretch; padding: 8px 18px; background: #161c1b; border-bottom: 1px solid var(--line); }
  .enhanced .menu[aria-expanded="true"] + #nav { display: flex; }
  .hero-grid, .split, .cards { grid-template-columns: minmax(0,1fr); }
  .hero { padding-top: calc(var(--header) + 48px); }
  .hero .actions { flex-direction: row; }
  h1 { font-size: clamp(41px, 10vw, 65px); }
  .closing-inner, .footer { align-items: flex-start; flex-direction: column; }
  .bridge-layout { display: block; margin-top: 13px; }
  .bridge-figure { position: static; margin-top: 14px; border: 0; background: transparent; }
  .bridge-figure svg { display: none; }
  .bridge-figure figcaption { padding: 0; border: 0; background: transparent; }
  .step-jumps { display: flex; gap: 8px; margin-top: 20px; }
  .step-jumps a { border: 1px solid var(--line); padding: 10px 13px; min-height: 44px; border-radius: 5px; }
  .steps { display: grid; gap: 10px; }
  .steps li { display: block; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 18px; }
  .mobile-flow { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--mint); font: 11px/1.4 var(--mono); }
  .mobile-flow span { border: 1px solid #4c6b64; background: #1c302b; border-radius: 4px; padding: 6px; }
  .contract-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .contract-grid dd { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .bridge-diagram .route { stroke-dashoffset: 0 !important; }
  .bridge-diagram .return-label { opacity: 1; }
  .art-marker, .art-route, .motion-toggle { display: none !important; }
}

.hero-figure { background: #1d201f; border-color: #3d4542; border-radius: 6px; }
.hero-art { display: block; width: 100%; height: auto; }
.hero-art text { fill: var(--silver); font: 500 24px var(--mono); letter-spacing: .035em; paint-order: stroke; stroke: #19231f; stroke-width: 8px; }
.art-route { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.art-marker { fill: #ddfff8; opacity: 0; filter: drop-shadow(0 0 7px #92dbd1); }

.hero-figure figcaption { padding: 0 16px; background: #1a211f; }
.hero-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-block: 13px; color: var(--silver); font: 500 11px/1.55 var(--mono); }
.hero-flow span { border-top: 1px solid #52625e; padding-top: 7px; transition: border-color .2s, color .2s; }
.hero-flow span[data-active] { color: var(--mint); border-color: var(--mint); }
.hero-caption { border-top: 1px solid var(--line); min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.motion-toggle { color: var(--silver); background: transparent; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; font-size: 17px; }
.motion-toggle:hover { color: var(--mint); }
.bridge-phase:not(:empty) { display: block; color: var(--mint); font: 500 12px/1.5 var(--mono); margin-bottom: 5px; }
.steps li[data-current] .step-index { color: var(--mint); }
.steps li[data-current] { border-top-color: var(--aqua); }
.mobile-flow img { vertical-align: middle; margin-right: 3px; }
@media (max-width: 700px) {
  .hero-flow { font-size: 10px; }
  .hero-figure figcaption { padding-inline: 10px; }
  .bridge-phase { display: none !important; }
}

.hero-scene { position: relative; overflow: hidden; background: #101715; }
.hero-render { display: block; width: 100%; height: auto; }
.hero-scene .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene .art-route { stroke-width: 2; }
.art-tail { stroke: #c5fff0; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 4px #92dbd1); }
.arrival-ring { fill: none; stroke: #c5fff0; stroke-width: 1.5; opacity: 0; }
.coin-labels { position: absolute; bottom: 5%; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 10px; color: #d3e0da; font: 10px/1.5 var(--mono); }
.hero-flow span { position: relative; }
.hero-flow span::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; transform: scaleX(var(--progress, 0)); transform-origin: left; background: var(--mint); }
@media (prefers-reduced-motion: reduce) {
  .art-tail, .arrival-ring { display: none; }
}
