/* HOMESTEAD: launch-site palette (SpaceX): black and white core, four signal colours for status and data, square corners. Cowboy Space's structure (film, card, brackets, timeline, giant word, band) stays. One dark look by choice. */
:root {
  --ink: #000000;        /* the page */
  --ink-2: #0b0b0b;      /* panels */
  --black: #050505;      /* the card */
  --cream: #c9c9c9;      /* body text */
  --bone: #ffffff;       /* headings, values */
  --blue: #5aa9ff;       /* live: the clock, the current plot, brackets, links */
  --green: #35d07f;      /* verified, accepted, open */
  --amber: #ffb547;      /* pending, disputed, baselines, fire detections */
  --red: #ff5c5c;        /* rejected, strikes */
  --accent: var(--blue);
  --orange: var(--accent); /* historical token name used by the markup; it is the accent */
  --rust: var(--red);
  --gold: var(--green);
  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.07);
  --mute: rgba(201, 201, 201, 0.62);
  --wide: "Archivo", "Arial Black", Impact, sans-serif;          /* extended face for headlines (D-DIN Exp's role) */
  --display: "Archivo", "Arial Narrow", sans-serif;             /* numbers: same family at normal width */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --frame: 0px;          /* the film is full-bleed */
  --radius: 0px;         /* square everything */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bone); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wide { font-family: var(--wide); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.015em; color: var(--bone); }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.9; }
.lab { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.cap { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); }  /* launch-site label */
.mono { font-family: var(--mono); font-size: 12.5px; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* bracketed words: orange corner brackets, bone word */
.br { display: inline-flex; align-items: center; font-family: var(--wide); font-stretch: 112%; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); padding: 10px 6px; white-space: nowrap; }
.br::before, .br::after { color: rgba(255,255,255,0.45); font-weight: 400; font-stretch: 100%; font-family: var(--mono); font-size: 14px; line-height: 1; }
.br::before { content: "["; margin-right: 7px; }
.br::after { content: "]"; margin-left: 7px; }
.br.on { color: var(--accent); }
.br:hover { color: var(--bone); }
.br.on::before, .br.on::after { color: var(--accent); }
.br.small { font-size: 10.5px; padding: 6px 4px; }

/* four corners */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.hud > * { pointer-events: auto; position: absolute; }
.hud .tl { top: max(10px, env(safe-area-inset-top, 0px)); left: max(10px, env(safe-area-inset-left, 0px)); }
.hud .tr { top: max(10px, env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); display: flex; gap: 2px; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.hud .bl { bottom: max(10px, env(safe-area-inset-bottom, 0px)); left: max(10px, env(safe-area-inset-left, 0px)); }
.hud .br-c { bottom: max(10px, env(safe-area-inset-bottom, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(0,0,0, 0.92); backdrop-filter: blur(6px); z-index: 10; }
.topbar .brand { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: 17px; letter-spacing: 0.02em; color: var(--bone); }
.topbar nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }

/* page head: label, giant wide title, lede */
.pagehead { padding-block: 44px 28px; }
.pagehead .t { font-size: clamp(40px, 9vw, 118px); margin-top: 10px; text-wrap: balance; }
.pagehead .lede { max-width: 62ch; margin-top: 18px; font-size: 15.5px; color: var(--cream); }

/* cards + tables */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; padding: 16px; }
.card.black { background: rgba(0,0,0,0.78); backdrop-filter: blur(10px); border-color: rgba(255,255,255,0.22); border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.tablewrap { overflow-x: auto; }

/* spec sheet: label left, big value right */
.spec { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; border-top: 1px solid var(--line); }
.spec > div { display: contents; }
.spec .k { padding: 16px 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line-2); align-self: center; }
.spec .v { padding: 10px 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3.2vw, 34px); color: var(--bone); text-align: right; border-bottom: 1px solid var(--line-2); text-transform: uppercase; line-height: 1.1; }
.spec .v small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--mute); text-transform: none; letter-spacing: 0; }

/* stat row: huge value, unit, small-caps label (launch-site vehicle stats) */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statrow > div { padding: 20px 18px 18px 0; border-right: 1px solid var(--line-2); }
.statrow > div:last-child { border-right: 0; }
.statrow b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); line-height: 1; color: var(--bone); }
.statrow b small { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.statrow .cap { display: block; margin-top: 8px; color: var(--mute); }

/* buttons: white block, white outline; the primary keeps its arrow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid var(--bone); border-radius: 0; background: var(--bone); color: var(--ink); font-family: var(--wide); font-stretch: 108%; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; user-select: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.btn:hover { background: transparent; color: var(--bone); }
.btn.ghost { background: transparent; color: var(--bone); border-color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.16em; font-size: 12px; }
.btn.ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.orange { background: var(--bone); color: var(--ink); border-color: var(--bone); padding: 0 30px; }   /* the primary; the class name is historical */
.btn.orange::after { content: "\2192"; font-family: var(--body); font-weight: 400; font-size: 18px; transform: translateY(-1px); }
.btn.orange:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: default; }
input[type=text] { width: 100%; min-height: 50px; padding: 0 14px; background: transparent; border: 1px solid rgba(255,255,255,0.45); border-radius: 0; color: var(--bone); font-family: var(--mono); font-size: 13px; }
input[type=text]::placeholder { color: rgba(255,255,255,0.4); }
input[type=text]:focus { outline: none; border-color: var(--bone); }

/* tape */
.tape { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--cream); }
.tape .row { display: flex; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.tape .t { color: var(--mute); flex: 0 0 64px; }
.tape .accepted { color: var(--green); }
.tape .rejected { color: var(--red); }
.tape .verified { color: var(--bone); }
.tape .area { color: var(--accent); }
.tape .pending { color: var(--amber); }

.sect { padding-block: 64px; border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--cream); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: "["; color: var(--accent); margin-right: 8px; font-size: 13px; }
.eyebrow::after { content: "]"; color: var(--accent); margin-left: 8px; font-size: 13px; }
.giant { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(64px, 16vw, 220px); line-height: 0.85; color: var(--bone); text-transform: uppercase; letter-spacing: -0.02em; }

/* dotted vertical timeline: a real-data render on the line, heading left, body right */
.line { position: relative; padding-block: 24px; }
.line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dotted rgba(255,255,255,0.28); transform: translateX(-1px); }
.node { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; align-items: start; padding-block: 48px; }
.node .pic { grid-column: 1 / -1; justify-self: center; position: relative; width: min(360px, 70vw); aspect-ratio: 1; border-radius: 0; border: 1px solid var(--line); overflow: hidden; background: var(--black); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.node .pic canvas, .node .pic img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.node .pic.smooth canvas { image-rendering: auto; }
.node .pic .tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--bone); background: rgba(0,0,0,0.78); padding: 4px 7px; border-radius: 3px; }
.node .dot { position: absolute; left: 50%; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bone); transform: translateX(-50%); }
.node h3 { text-align: right; padding-right: 0; font-size: clamp(28px, 4vw, 44px); margin-top: 36px; }
.node h3 small { display: block; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: 11px; letter-spacing: 0.2em; color: var(--orange); margin-bottom: 10px; text-transform: uppercase; }
.node p { margin: 36px 0 0; max-width: 42ch; font-size: 14.5px; }
.node .slip { font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--bone); padding: 18px 20px; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; white-space: pre; overflow: hidden; }
.node .slip i { color: var(--green); font-style: normal; }
.node .slip s { color: var(--mute); text-decoration: none; }

/* statement with its blurred echo (the reference's "full stack" block) */
.statement { position: relative; }
.statement .echo { position: absolute; inset: 0; filter: blur(12px); opacity: 0.45; color: var(--accent); pointer-events: none; }
.statement .say { position: relative; }

/* footer band: bone, giant wordmark, bracketed links, fine print */
.band { background: var(--bone); color: var(--ink); margin-top: 48px; padding-block: 40px 28px; }
.band .mark { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(54px, 15.6vw, 236px); line-height: 0.8; letter-spacing: -0.03em; color: var(--ink); text-transform: uppercase; margin-top: 8px; }
.band .mark small { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: 0.16em; letter-spacing: 0.02em; vertical-align: baseline; margin-left: 0.2em; }
.band .links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.18); }
.band .links .br { color: var(--ink); font-size: 10.5px; padding: 6px 2px; }
.band .links .br::before, .band .links .br::after { color: rgba(0,0,0,0.45); }
.band .fine { margin-top: 22px; font-size: 11.5px; line-height: 1.6; color: rgba(0,0,0,0.78); text-align: center; max-width: 100ch; margin-inline: auto; }
.band .fine p { margin: 6px 0; }

.foot { padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.foot p { margin: 6px 0; }
.hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 86px); background: rgba(0,0,0, 0.9); border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--cream); z-index: 30; white-space: nowrap; }
@media (max-width: 640px) {
  .spec .v { font-size: 22px; }
  .statrow > div { padding-right: 10px; }
  .node { grid-template-columns: 1fr; gap: 0; padding-block: 36px; }
  .node h3 { text-align: left; margin-top: 28px; }
  .node p { margin-top: 12px; }
  .node .dot { display: none; }
  .hud .tr { top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom, 0px)) + 150px); right: max(10px, env(safe-area-inset-right, 0px)); flex-direction: column; align-items: flex-end; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* status colours, one word each */
.st-open, .st-verified, .st-accepted, .st-done { color: var(--green); }
.st-pending, .st-disputed, .st-baseline { color: var(--amber); }
.st-rejected, .st-suspended { color: var(--red); }
.st-live { color: var(--accent); }
