:root {
  --black: #050404; --cream: #e9e4d8; --orange: #ff5a1f; --line: #3a302a;
  --mono: "IBM Plex Mono", monospace; --sans: "IBM Plex Sans", sans-serif;
  --heading: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream); font: 16px/1.55 var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #d38247; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; }
h1,h2,h3,p,dl,dd { margin: 0; }
h1,h2,h3,.footer-tag { font-family: var(--heading); font-weight: 900; }
h2 { font-size: clamp(4rem, 8.7vw, 8rem); line-height: .87; }
small { font-size: inherit; }
.wrap { width: min(1380px, 100% - 4rem); margin-inline: auto; }
.skip-link { position: fixed; top: 5rem; left: 1rem; padding: .6rem 1rem; clip-path: inset(50%); z-index: 15; background: var(--cream); color: black; }
.skip-link:focus { clip-path: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid #e9e4d81a; background: #050404dc; }
.site-header-inner { width: 100%; padding-inline: clamp(16px,3vw,32px); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.site-header .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 900 25px/1 var(--heading); letter-spacing: .1em; white-space: nowrap; }
.site-header .wide-nav { display: flex; gap: clamp(13px, 2.2vw, 33px); white-space: nowrap; }
.site-header nav a { font: 12px/1.2 var(--mono); text-transform: uppercase; text-decoration: none; opacity: .78; }
.site-header nav a:hover,.site-header nav a:focus-visible { color: var(--orange); opacity: 1; }
.header-actions {display: flex; align-items: center; gap: 13px;}
.brand-x {display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;padding:.5em .7em;white-space:nowrap;text-decoration:none;}
.site-header .wide-nav:has(.brand-x) {align-items:center;}
.mobile-nav {display:none; position:relative; font: 12px var(--mono);}
.mobile-nav summary {width:43px; height:38px; display:grid; place-items:center; border:1px solid #e9e4d871; font-size:0; cursor:pointer;}
.mobile-nav summary::before {content:""; display:block; width:17px; height:12px; border-block:1px solid currentColor; background:linear-gradient(currentColor,currentColor) center center/100% 1px no-repeat;}
.mobile-nav nav {position:absolute; top:100%; right:0; min-width:12rem; margin-top:8px; padding:10px; background:#0d0b0a; border:1px solid #e9e4d871;}
.mobile-nav nav a {display:block; padding:9px;}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75em; width: fit-content; min-height: 43px; padding: .72em 1.05em; color: var(--cream); border: 1px solid #e9e4d871; background: none; font: 500 12px/1.2 var(--mono); text-decoration: none; text-transform: uppercase; letter-spacing: .035em; transition: background .18s,color .18s,transform .18s; }
.btn:hover { background: var(--cream); color: #110b07; }
.btn:active { transform: translateY(2px); }
.btn.fill { color: #160a06; background: var(--orange); border-color: var(--orange); }
.btn.fill:hover { background: #ff8a61; border-color: #ff8a61; }
.btn.dark { color: var(--cream); background: #110b07; border-color: #110b07; }
.btn.dark:hover { color: #110b07; background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }
.overline,.hero-register,.ticker,.panel-line,.measurements,.data-register dt,.module-number,.module-kind,.module-toggle,.issues small,.risk-nav { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.overline { font-size: 12px; }
.hero { position: relative; isolation: isolate; display: flex; overflow: hidden; padding: 96px 0 32px; min-height: max(720px,100svh); background: #080504; }
.hero-frame { position:absolute; inset:64px 14% 0; z-index:-2; display:grid; place-items:center; overflow:hidden; background:#0d0b0a; container-type:inline-size; }
.hero-frame span { color:#211a16; font:900 22vw/1 var(--heading); letter-spacing:-.02em; user-select:none; }
@media (min-width:768px) { .hero-frame > [data-brand] {font-size:20.6vw; font-size:28.6cqi;} }
.hero-furnace { width: 14%; height: calc(100% - 64px); position: absolute; z-index: -2; top:64px; pointer-events: none; background:#050404; }
.hero-furnace-left {left:0; border-right:1px solid var(--line);}
.hero-furnace-right {right:0; border-left:1px solid var(--line);}
.hero::after { content:""; position: absolute; inset: auto 0 0; height: 105px; z-index: -1; pointer-events: none; background: linear-gradient(transparent,var(--black)); }
.hero-content { width:72%; padding-inline:clamp(24px,2.8vw,40px); margin-inline:auto; display:flex; flex-direction:column; gap:24px; }
.hero-heading {align-self:center; display:grid; justify-items:center; gap:8px; max-width:100%;}
.hero-label { align-self:center; padding: 3px 8px; color:#1a0b05; background:var(--orange); text-align:center; }
.token-strip {display:flex; flex-wrap:wrap; justify-content:center; align-items:center; max-width:100%; gap:5px 8px; font:11px var(--mono);}
.token-strip > span:first-child {color:#ffaa8b; text-transform:uppercase;}
.token-strip a {overflow-wrap:anywhere;}
.token-strip button {color:var(--cream); background:#0d0b0a; border:1px solid #625147; padding:4px 8px;}
.token-status {flex-basis:100%; max-width:100%; text-align:center; overflow-wrap:anywhere;}
.hero h1 { margin-top:auto; font-size:clamp(2.75rem,6.4vw,7rem); line-height:.86; text-transform:uppercase; letter-spacing:-.005em; }
.hero h1 span {display:block;}
.hero h1 span + span {max-inline-size:84%; margin-inline-start:auto; color:rgb(233 228 216 / .40); text-align:right;}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-bottom{display:flex; align-items:flex-end; gap:16px; justify-content:space-between; flex-wrap:wrap; margin-top:16px;}
.hero-bottom .btn { min-height:48px; }
.hero-deck { max-width:448px; color:#b9b6b0; font-size:15px; line-height:1.625; }
.actions { display: flex; gap: 11px; align-items: start; flex-wrap: wrap; }
.hero-register { display: flex; flex-wrap: wrap; gap:8px 32px; padding-top:16px; border-top: 1px solid #e9e4d836; font-size: 10px; }
.hero-register > div {display:flex; align-items:baseline; gap:7px;}
.hero-register dt { color: #aaa196; }
.hero-register dd { font-size: 11px; }
.ticker { background: #4c2214; color: #e3c6b7; border-block: 1px solid #6b4234; overflow: hidden; font-size: 11px; padding-block: 11px; }
.ticker div { display: flex; width: max-content; animation: ticker 35s linear infinite; }
.ticker span { white-space: pre; }
@keyframes ticker { to { transform: translateX(-50%); } }
.section { padding: clamp(4rem,8vw,8rem) 0; scroll-margin-top: 66px; }
.section h2 { margin: 15px 0 21px; }
.section-deck { max-width: 490px; margin-bottom: 25px; font-size: 18px; }
.why { position: relative; isolation: isolate; overflow: hidden; background: #0c1a24; }
.why canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.why-layout,.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,7vw,7rem); }
.why h2 { font-size: clamp(4.2rem,8.6vw,8.6rem); }
.why h2 i { font: italic 400 1.03em/.85 "Instrument Serif",serif; letter-spacing: -.03em; }
.issues { display: grid; gap: 1px; align-self: center; }
.issues article { border-block-start: 1px solid #e9e4d875; padding: 18px 0 21px; }
.issues small { font-size: 11px; color: #d5bba6; }
.issues h3 { font-size: clamp(34px,4vw,54px); line-height: .95; margin: 13px 0 7px; }
.issues p { max-width: 480px; color: #d4d3d0; }
.paper { background: var(--cream); color: #120c08; color-scheme: light; }
.position-example { align-self: start; border: 1px solid #140a08; padding: clamp(16px,3vw,34px); box-shadow: 5px 5px #120c08; }
.panel-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid currentColor; font-size: 11px; }
.toggle { display: flex; gap: 0; margin: 18px 0; }
.toggle button { flex: 1; padding: 11px 7px; border: 1px solid #120c08; color: #120c08; background: transparent; font: 12px var(--mono); }
.toggle button + button { border-left: 0; }
.toggle button[aria-pressed="true"] { color: var(--cream); background: #120c08; }
.measurements { font-size: 12px; }
.measurements > div { display: flex; justify-content: space-between; gap: .75rem; padding: .52em 0; border-bottom: 1px solid #120c0844; }
.measurements dd { text-align: right; }
.example-chart { display: grid; gap: 5px; padding: 18px 0; }
.example-chart span { height: 5px; background: #b63a12; }
.example-chart span + span { width: 50%; background: #161007; }
.example-chart[data-concealed] span { width: 100%; background: repeating-linear-gradient(135deg,#120c08 0px,#120c08 2px,#c7b8a7 2px,#c7b8a7 4px); }
.position-example p { min-height: 3.2em; font-size: 14px; }
.stress { background: #2a0b06; }
.stress-layout { gap: clamp(2rem,4.4vw,4.4rem); margin-top: 35px; }
.stress-control { display: grid; grid-template-columns: minmax(0,1fr) 108px; gap: 9px; align-items:center; margin-bottom: 13px; }
.stress-control label { font: 500 12px var(--mono); text-transform: uppercase; }
.stress-control input[type="number"] { text-align: right; padding: 6px; width: 100%; border: 1px solid #e9e4d871; background: #100703; color: var(--cream); }
.stress-control input[type="range"] { grid-column: 1/-1; width: 100%; margin: 0; accent-color: var(--orange); }
.stress-form p { font-size: 14px; color: #e2c8b9; margin: 0 0 14px; }
#preview-error { color: #ffae91; }
.preview-result { padding: clamp(16px,3vw,34px); background: #130704; border: 1px solid #e9e4d865; --risk-colour: #8fcd9f; --ratio-progress:42.67%; }
.preview-result[data-state="critical"] { --risk-colour: #ffc169; }
.preview-result[data-state="unsafe"],.preview-result[data-state="invalid"] { --risk-colour: #ff8973; }
.preview-result p { min-height: 1.5em; font-size: 14px; }
#preview-formula { padding-top: 16px; font-family: var(--mono); }
.ratio { display: grid; align-items: center; grid-template-columns: 1fr auto; margin-block: 11px 18px; }
.ratio small { grid-column: 1/-1; font: 10px var(--mono); text-transform: uppercase; }
.ratio strong { font: 900 clamp(53px,8vw,93px)/.96 var(--heading); color: var(--risk-colour); }
.ratio span { font: 12px var(--mono); text-transform: uppercase; color: var(--risk-colour); text-align: right; }
.risk-meter { height: 8px; margin: 8px 0; display: block; background: #47352e; position: relative; }
.risk-meter span { display: block; width: var(--ratio-progress); height: 100%; background: var(--risk-colour); transition: width .15s ease; }
.risk-meter i { width: 2px; height: 13px; position: absolute; left: 33.3333%; top: -2px; background: var(--cream); }
.meter-labels { display: flex; justify-content: space-between; font: 10px var(--mono); margin-bottom: 15px; }
.heat-strip { width: 100%; height: 58px; display: block; margin-top: 13px; border-top: 1px solid #e9e4d835; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.module { border: 1px solid #140a08; background: #ded6c6; }
.module summary { cursor: pointer; display: grid; position: relative; padding: 15px 15px 30px; min-height: 156px; overflow-wrap: anywhere; list-style: none; transition: background .2s; }
.module summary::-webkit-details-marker { display: none; }
.module summary:hover,.module[open] summary { background: #120c08; color: var(--cream); }
.module summary strong { font: 900 clamp(29px,3.7vw,51px)/1 var(--heading); align-self: end; }
.module-number,.module-kind,.module-toggle { font-size: 11px; }
.module-toggle { position: absolute; bottom: 9px; right: 13px; }
.module-toggle::after { content: '+ open'; }
.module[open] .module-toggle::after { content: '− close'; }
.module > div { padding: 14px; }
.module[open] > div { animation: expand-in .32s cubic-bezier(.22,1.45,.47,1) both; }
.module a { display: inline-block; margin-top: 10px; font: 500 12px var(--mono); }
@keyframes expand-in { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
.data { background: #0b0806; border-top: 1px solid #e9e4d844; }
.data-register dl { margin: 14px 0 19px; border-top: 1px solid var(--line); }
.data-register dl > div { display: grid; grid-template-columns: minmax(145px,1fr) minmax(0, 2fr); gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.data-register dt { font-size: 12px; color: #acaaa1; }
.data-register dd { overflow-wrap: anywhere; }
.data-register dd a:hover { color: var(--orange); }
.orange-footer { background: var(--orange); color: #160b05; padding: 28px 0; }
.footer-tag { font-size: clamp(4rem,19vw,17rem); line-height: .85; letter-spacing: -.035em; overflow-wrap: anywhere; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 21px; align-items: start; border-top: 1px solid #160b0580; margin-top: 21px; padding-top: 13px; }
.footer-row p { max-width: 460px; margin-right: auto; }
.footer-row a { font: 500 12px/1.5 var(--mono); text-transform: uppercase; }
.intro { display: grid; position: fixed; inset: 0; z-index: 13; background: #170a05; color: var(--orange); align-content: center; justify-items: center; gap: 1rem; padding: 2rem; font: 500 12px var(--mono); text-align: center; animation: intro-out .32s ease 1s forwards; }
.intro strong { font: 900 clamp(4rem,18vw,14rem)/.9 var(--heading); }
.intro-bar { width: min(300px,100%); height: 2px; background: #ff5a1f40; }
.intro-bar span { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--orange); animation: intro-progress 1s cubic-bezier(.45,.04,.48,.96) both; }
.intro button { border: 1px solid var(--orange); color: var(--orange); background: transparent; padding: 8px 14px; text-transform: uppercase; }
@keyframes intro-progress { from { transform: scaleX(0); } }
@keyframes intro-out { to { opacity: 0; pointer-events: none; } }
.risk-page { padding: 112px 0 76px; }
.risk-page h1 { text-transform: uppercase; font-size: clamp(4.4rem,10vw,8.6rem); line-height: .91; margin: 12px 0 20px; }
.risk-page h2 { font-size: clamp(2.75rem,4.1vw,4rem); line-height: .98; text-transform: uppercase; margin-bottom: 14px; }
.risk-nav { display: flex; flex-wrap: wrap; gap: 13px 23px; margin: 25px 0 35px; font-size: 12px; }
.risk-copy { max-width: 920px; }
.risk-copy section { border-top: 1px solid var(--line); padding: 25px 0; scroll-margin-top: 85px; }
.risk-copy p + p,.risk-copy ul + p { margin-top: 12px; }
.risk-copy code { overflow-wrap: anywhere; color: #ffa786; }
.risk-copy ol,.risk-copy ul { padding-left: 26px; }
.risk-copy li { margin: 6px 0; }
.data-identities {margin-block:1.1rem;}
.data-identities > div {border-color:var(--line);}
.data-identities dd {min-inline-size:0; overflow-wrap:anywhere;}
.data-identities .address-actions {justify-content:flex-end;}
@media (max-width: 840px) {
  .site-header .wide-nav { display: none; }
  .mobile-nav { display: block; }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split,.why-layout { gap: 2rem; }
}
@media (max-width: 767px) {
  .hero-content {width:100%;}
  .hero-frame {inset-inline:0;}
  .hero-furnace {display:none;}
  .hero h1 span + span {max-inline-size:none; margin-inline-start:0; text-align:left;}
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header-inner { height: 57px; }
  .header-actions {gap:7px;}
  .site-header .btn { font-size: 10px; min-height: 38px; gap: 5px; }
  .brand { font-size: 21px; gap: 5px; }
  .brand img { width: 25px; height: 25px; }
  .hero { padding: 96px 0 39px; min-height: min(690px, max(620px,100svh)); }
  .hero-frame {inset:57px 0 0;}
  .hero-frame span {font-size:28vw;}
  .hero h1 { font-size:clamp(2.625rem,11.3vw,4.4rem); }
  .hero-bottom {margin-top:6px;}
  .hero h1 span + span {text-align:left; margin-top:.12em;}
  .hero-content { width:100%; padding-inline:16px; gap:16px; }
  .hero-label {font-size:10px;}
  .hero-register { gap: 5px 15px; }
  .section { scroll-margin-top: 56px; }
  .split,.why-layout { grid-template-columns: 1fr; }
  .section h2 { font-size: clamp(3.65rem,13vw,5.5rem); }
  .section-deck { font-size: 16px; }
  .module-grid { gap: 8px; }
  .module summary { min-height: 140px; padding: 11px 9px 25px; }
  .module summary strong { font-size: 30px; }
  .module-kind,.module-number,.module-toggle { font-size: 10px; }
  .data-register dl > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .risk-page { padding-top: 91px; }
  .risk-page h1 { font-size: clamp(2.75rem,14vw,4.4rem); }
  .data-identities > div {display:grid; gap:3px;}
  .data-identities dd {text-align:left;}
  .data-identities .address-actions {justify-content:flex-start;}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
