/* GROUNDWORK — a construction blueprint: deep drafting blue, white line work, safety yellow, hazard stripes. */
:root {
  --bp: #0e3d6b;
  --bp-2: #0a2e52;
  --bp-3: #082440;
  --ink: #eaf2ff;
  --dim: #a3bddb;
  --faint: rgba(234, 242, 255, 0.55);
  --rule: rgba(234, 242, 255, 0.35);
  --safety: #ffcc29;
  --cone: #ff7a1a;
  --go: #5fe0a0;
  --off: #ff8a80;
  --head: "Big Shoulders Display", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); overflow-x: hidden;
  background-color: var(--bp);
  /* the drafting grid: fine lines every 20px, heavier every 100px */
  background-image:
    linear-gradient(rgba(234, 242, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 242, 255, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(234, 242, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 242, 255, 0.06) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.hl { color: var(--safety); }

/* page fade in / out + staggered reveals */
.js body { opacity: 0; animation: pagein 0.45s ease forwards; }
@keyframes pagein { to { opacity: 1; } }
body.leaving { opacity: 0 !important; transition: opacity 0.2s ease; animation: none; }
.js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.js [data-r].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js body { animation: none; opacity: 1; } .js [data-r] { opacity: 1; transform: none; transition: none; } .draw path, .draw line, .draw rect, .draw circle, .draw polyline { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ---------- the site bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(8, 36, 64, 0.92); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a, .drawer a { text-decoration: none; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 8px 12px; }
.links a:hover { color: var(--ink); }
.links a[aria-current] { color: var(--bp-3); background: var(--safety); }
.xbtn { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--faint); color: var(--ink); }
.xbtn:hover { background: var(--safety); color: var(--bp-3); border-color: var(--safety); }
.menu { display: none; background: none; border: 1.5px solid var(--faint); color: var(--ink); width: 38px; height: 38px; font-size: 16px; cursor: pointer; }
.drawer { display: none; }
@media (max-width: 860px) {
  .links { display: none; }
  .menu { display: grid; place-items: center; margin-left: auto; }
  .bar.open .drawer { display: flex; flex-direction: column; padding: 4px 24px 14px; }
  .drawer a { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
}
.cabar { background: var(--safety); color: var(--bp-3); font-family: var(--mono); font-size: 13px; }
.cabar .wrap { display: flex; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.cabar a { text-decoration: underline; word-break: break-all; }
.cabar button { font: inherit; font-weight: 700; background: var(--bp-3); color: var(--safety); border: 0; padding: 3px 12px; cursor: pointer; }

/* ---------- type ---------- */
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--safety); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--safety); }
.h1 { font-family: var(--head); font-weight: 800; font-size: clamp(56px, 9vw, 124px); line-height: 0.86; letter-spacing: 0.01em; text-transform: uppercase; margin: 14px 0 0; }
.h2 { font-family: var(--head); font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 0.9; text-transform: uppercase; margin: 10px 0 0; }
.lead { font-size: 19px; color: var(--dim); max-width: 620px; margin: 18px 0 0; }

/* ---------- buttons + tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 14px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); padding: 13px 20px; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; }
.btn:hover { background: var(--ink); color: var(--bp-3); }
.btn.go { background: var(--safety); color: var(--bp-3); border-color: var(--safety); }
.btn.go:hover { background: #fff; border-color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border: 1.5px solid currentColor; }
.tag.go { color: var(--go); } .tag.wip { color: var(--safety); } .tag.done { color: #7cc4ff; } .tag.off { color: var(--off); }
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--safety) 0 16px, #151515 16px 32px); }

/* ---------- sheets: drawing sheets with corner ticks and a title block ---------- */
.sheet { position: relative; border: 1.5px solid var(--faint); background: rgba(8, 36, 64, 0.35); padding: 26px; }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--safety); border-style: solid; }
.sheet::before { left: -1.5px; top: -1.5px; border-width: 3px 0 0 3px; }
.sheet::after { right: -1.5px; bottom: -1.5px; border-width: 0 3px 3px 0; }
.titleblock { display: grid; grid-template-columns: repeat(3, auto); border: 1.5px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; width: max-content; max-width: 100%; }
.titleblock span { padding: 4px 10px; border-left: 1.5px solid var(--rule); color: var(--dim); }
.titleblock span:first-child { border-left: 0; }
.titleblock b { color: var(--ink); font-weight: 700; }
.block { padding: 90px 0; }
.hero { padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* the hero drawing: every line draws itself in */
.draw { width: 100%; height: auto; color: var(--ink); }
.draw path, .draw line, .draw rect, .draw circle, .draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sketch 1.4s var(--ease) forwards; animation-delay: var(--t, 0s); }
@keyframes sketch { to { stroke-dashoffset: 0; } }
.draw .lbl { stroke: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--dim); opacity: 0; animation: fadein 0.6s ease forwards; animation-delay: var(--t, 1.6s); }
.draw .lbl.hl { fill: var(--safety); }
@keyframes fadein { to { opacity: 1; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--faint); margin-top: 50px; }
.stats > div { padding: 20px 22px; border-left: 1.5px solid var(--rule); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--head); font-weight: 800; font-size: 46px; line-height: 1; }
.stats span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1.5px solid var(--rule); } }

/* how it's built: four steps joined by a dimension line */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1.5px dashed var(--faint); }
.step { padding: 26px 22px 0 0; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: var(--safety); }
.step .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--safety); }
.step .ico { color: var(--ink); margin-top: 12px; }
.step h3 { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 0.95; text-transform: uppercase; margin: 12px 0 8px; }
.step p { margin: 0; color: var(--dim); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- blueprints (the ballot) ---------- */
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; margin-top: 30px; }
.bpcard { display: grid; gap: 14px; align-content: start; }
.bpcard .who { display: flex; gap: 12px; align-items: center; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.bpcard .who .ico { color: var(--safety); flex: none; }
.bpcard h3 { font-family: var(--head); font-weight: 800; font-size: 36px; line-height: 0.95; text-transform: uppercase; margin: 0; }
.bpcard p { margin: 0; color: var(--dim); }
.meter { height: 12px; border: 1.5px solid var(--faint); position: relative; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(234, 242, 255, 0.12) 9px 10px); }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--safety); transition: width 0.6s var(--ease); }
.bpcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.bpcard.mine { border-color: var(--safety); box-shadow: 0 0 0 1.5px var(--safety); }
.bpcard.holderdraft .who .ico { color: var(--go); }
.est { font-family: var(--head); font-weight: 800; font-size: 30px; color: var(--safety); line-height: 1; }
.status { font-family: var(--head); font-weight: 800; font-size: 34px; text-transform: uppercase; color: var(--safety); line-height: 1; }

/* forms */
.fields { display: grid; gap: 14px; margin-top: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
label.f small { text-transform: none; letter-spacing: 0; font-size: 12px; opacity: 0.8; }
.field { font: 16px var(--body); color: var(--ink); background: rgba(8, 36, 64, 0.6); border: 1.5px solid var(--faint); padding: 12px 14px; width: 100%; }
.field:focus { outline: none; border-color: var(--safety); }
.field::placeholder { color: rgba(163, 189, 219, 0.6); }
textarea.field { min-height: 110px; resize: vertical; }
select.field { appearance: auto; }
.msg { margin-top: 12px; font-size: 15px; }
.msg .ok { color: var(--go); } .msg .bad { color: var(--off); }

/* ---------- the site (builds) ---------- */
.builds { display: grid; gap: 26px; margin-top: 30px; }
.build { display: grid; grid-template-columns: 90px 1fr; gap: 22px; }
.build .ico { color: var(--safety); }
.build h3 { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 0.95; text-transform: uppercase; margin: 8px 0 6px; }
.build p { margin: 0; color: var(--dim); }
.progress { display: flex; margin-top: 16px; border: 1.5px solid var(--faint); max-width: 560px; }
.progress span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 4px; color: var(--dim); border-left: 1.5px solid var(--rule); }
.progress span:first-child { border-left: 0; }
.progress span.on { background: var(--safety); color: var(--bp-3); font-weight: 700; }
.progress.off span.on { background: var(--off); }
.kv { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 26px; margin-top: 14px; font-family: var(--mono); font-size: 13px; width: max-content; max-width: 100%; }
.kv span { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.log { margin-top: 14px; border-left: 3px solid var(--safety); padding-left: 14px; display: grid; gap: 10px; }
.log small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 620px) { .build { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr 1fr; } }

/* ---------- ledger ---------- */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; margin-top: 30px; }
.pipe > div { border: 1.5px solid var(--faint); padding: 18px; position: relative; }
.pipe > div + div { border-left: 0; }
.pipe > div:not(:last-child)::after { content: "▶"; position: absolute; right: -9px; top: 50%; translate: 0 -50%; color: var(--safety); font-size: 14px; z-index: 1; }
.pipe b { display: block; font-family: var(--head); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin-top: 6px; }
.pipe small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 760px) { .pipe { grid-template-columns: 1fr 1fr; } .pipe > div:nth-child(3) { border-left: 1.5px solid var(--faint); } .pipe > div:nth-child(n+3) { border-top: 0; } }
table.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th, .ledger td { text-align: left; padding: 11px 8px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.ledger th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.ledger .amt { text-align: right; font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.ledger .in { color: var(--go); } .ledger .out { color: var(--off); }
.proof { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- crew ---------- */
.crewgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; margin-top: 30px; }
.member .ico { color: var(--safety); }
.member h3 { font-family: var(--head); font-weight: 800; font-size: 38px; text-transform: uppercase; line-height: 0.95; margin: 14px 0 4px; }
.member .line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--safety); }
.member p { color: var(--dim); margin: 10px 0 0; }

/* faq */
details { border-bottom: 1.5px solid var(--rule); padding: 18px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--head); font-weight: 800; font-size: 26px; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--safety); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--dim); margin: 10px 0 0; max-width: 760px; }

/* footer */
.foot { margin-top: 90px; background: var(--bp-3); }
.foot .wrap { padding-top: 44px; padding-bottom: 36px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot .big { font-family: var(--head); font-weight: 800; font-size: clamp(48px, 9vw, 110px); line-height: 0.85; letter-spacing: 0.02em; }
.foot p { color: var(--dim); margin: 10px 0 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: flex-start; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.foot nav a { text-decoration: none; color: var(--dim); }
.foot nav a:hover { color: var(--safety); }
.foot .legal { font-size: 12px; margin-top: 30px; max-width: 900px; opacity: 0.8; }

/* ---------- launch pad additions ---------- */
.submitbtn { padding: 9px 14px; font-size: 12px; margin-left: 10px; }
@media (max-width: 860px) { .submitbtn { display: none; } }
.score { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--safety); }
.score small { font-size: 18px; color: var(--dim); }
.score.hi { color: var(--go); } .score.lo { color: var(--off); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 30px; }
.card { display: grid; gap: 12px; align-content: start; text-decoration: none; position: relative; border: 1.5px solid var(--faint); background: rgba(8, 36, 64, 0.35); padding: 22px; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--safety); transform: translateY(-2px); }
.card .top { display: flex; gap: 14px; align-items: center; }
.card .top img { width: 64px; height: 64px; object-fit: cover; border: 1.5px solid var(--faint); background: var(--bp-2); }
.card h3 { font-family: var(--head); font-weight: 800; font-size: 32px; line-height: 0.95; text-transform: uppercase; margin: 0; }
.card .tk { font-family: var(--mono); font-size: 13px; color: var(--safety); letter-spacing: 0.06em; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card .foot2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1.5px dashed var(--rule); padding-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.filters button { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: transparent; border: 1.5px solid var(--faint); padding: 8px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--safety); color: var(--bp-3); border-color: var(--safety); }
.report { display: grid; gap: 14px; margin-top: 14px; }
.report div { border-left: 3px solid var(--safety); padding-left: 14px; }
.report b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--safety); display: block; margin-bottom: 4px; font-weight: 700; }
.addr { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.steps2 { display: grid; gap: 6px; margin-top: 14px; font-family: var(--mono); font-size: 13px; }
.steps2 div { color: var(--dim); padding-left: 24px; position: relative; }
.steps2 div::before { content: "□"; position: absolute; left: 0; }
.steps2 div.run { color: var(--ink); } .steps2 div.run::before { content: "▶"; color: var(--safety); }
.steps2 div.ok { color: var(--go); } .steps2 div.ok::before { content: "■"; }
.steps2 div.bad { color: var(--off); } .steps2 div.bad::before { content: "✕"; }
/* the skyline: one building per launch, as tall as its market cap */
.skyline { display: flex; align-items: flex-end; gap: 10px; height: 340px; border-bottom: 3px solid var(--ink); padding: 0 6px; margin-top: 30px; overflow-x: auto; }
.tower { flex: 1 0 70px; max-width: 120px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-decoration: none; position: relative; }
.tower .body { border: 2px solid var(--ink); border-bottom: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(234, 242, 255, 0.18) 14px 16px), rgba(8, 36, 64, 0.5); min-height: 24px; transition: height 0.9s var(--ease); }
.tower.top5 .body { border-color: var(--safety); background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 204, 41, 0.3) 14px 16px), rgba(255, 204, 41, 0.08); }
.tower .lab { font-family: var(--mono); font-size: 11px; text-align: center; color: var(--dim); padding: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tower .rank { position: absolute; top: -26px; left: 0; right: 0; text-align: center; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--safety); }
