/* RoundupForge — static launch site. Self-hosted fonts, no external assets. */
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17181C;
  --surface: #1E2026;
  --text: #E9E5DA;
  --muted: #A8A496;
  --ember: #E4581F;
  --ember-deep: #A84412;
  --line: rgba(233, 229, 218, 0.16);
  --line-hot: rgba(228, 88, 31, 0.55);
  --font-sans: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: 20; inset: 0 0 auto; height: 2px; background: var(--ember); content: ""; pointer-events: none; }
img, picture, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
::selection { background: var(--ember); color: var(--ink); }

.shell { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.wordmark { display: inline-flex; align-items: baseline; min-height: 44px; font-size: 0.93rem; letter-spacing: 0.13em; white-space: nowrap; }
.wordmark span { font-weight: 500; }
.wordmark strong { color: var(--ember); font-weight: 850; }
.eyebrow, .kicker, .station, .hero-stamp, figcaption { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow, .station { color: var(--ember); }
h1, h2, h3 { line-height: 0.98; letter-spacing: -0.045em; }
h1 { font-size: clamp(3.1rem, 8.5vw, 7.8rem); font-weight: 790; }
h1 em { color: var(--ember); font-weight: 560; }
h2 { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 720; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 680; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 1.4rem; padding: 0.75rem 1.2rem; border: 1px solid var(--ember); background: var(--ember); color: var(--ink); font-weight: 750; transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease); }
.button:hover { border-color: var(--ember-deep); background: var(--ember-deep); color: var(--text); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 44px; padding: 0.55rem 0.85rem; font-size: 0.875rem; }
.text-link { display: inline-flex; min-height: 48px; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--muted); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.text-link:hover { border-color: var(--ember); color: var(--ember); }

.site-head { position: absolute; z-index: 10; inset: 2px 0 auto; border-bottom: 1px solid rgba(233, 229, 218, 0.23); background: rgba(23, 24, 28, 0.58); }
.nav-shell { display: grid; min-height: 72px; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.primary-nav { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.25rem); }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.primary-nav a:hover { color: var(--text); }

.hero { position: relative; min-height: 46rem; height: 100svh; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media, .hero-media picture, .hero-media img, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { z-index: 1; display: none; }
.hero-media img { object-fit: cover; object-position: center 50%; transform: scale(1.02); animation: furnace-drift 18s var(--ease) both; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: none; }
.hero-shade { position: absolute; z-index: 2; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(23, 24, 28, 0.08) 0 18%, rgba(23, 24, 28, 0.48) 58%, rgba(23, 24, 28, 0.9) 100%); }
.hero-rule { position: absolute; z-index: 3; top: 50%; right: 2rem; width: 1px; height: 28%; background: var(--ember); opacity: 0.7; }
.hero-copy { position: absolute; z-index: 4; inset: auto 0 clamp(3.5rem, 8vh, 6rem); }
.hero-copy .kicker { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; color: var(--text); }
.live-dot { width: 0.5rem; height: 0.5rem; background: var(--ember); }
.hero-lede { max-width: 44rem; margin-top: 1.5rem; color: var(--text); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero-stamp { position: absolute; z-index: 4; right: 2rem; bottom: 2rem; color: var(--muted); writing-mode: vertical-rl; }
@keyframes furnace-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }

.telemetry { border-bottom: 1px solid var(--line); background: var(--surface) url("assets/texture.jpg") center / 512px auto; background-blend-mode: soft-light; }
.telemetry-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.telemetry-grid > div { min-width: 0; padding: 1.5rem clamp(0.8rem, 2.4vw, 2rem); border-left: 1px solid var(--line); }
.telemetry-grid > div:first-child { border-left: 0; }
.telemetry strong, .telemetry span { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.telemetry strong { color: var(--text); font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.06em; }
.telemetry span { margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.section { padding-block: clamp(5.5rem, 10vw, 9rem); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem); align-items: end; gap: 3rem; }
.section-head h2, .pipeline-section h2 { margin-top: 1rem; }
.section-head > p { max-width: 40ch; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.forge-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.forge-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); }
.forge-media::after { position: absolute; inset: 0; border: 1px solid rgba(233, 229, 218, 0.06); content: ""; pointer-events: none; }
.forge-media img, .forge-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.06); transition: transform 200ms var(--ease), filter 200ms var(--ease); }
.forge-card:hover .forge-media img, .forge-card:hover .forge-media video { transform: scale(1.015); filter: saturate(1) contrast(1.04); }
.forge-card-copy { min-height: 15rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.forge-card h3 { margin-top: 0.85rem; }
.forge-card-copy > p:last-child { max-width: 54ch; margin-top: 1.1rem; color: var(--muted); }

.radar-section { background: var(--surface) url("assets/texture.jpg") center / 512px auto; background-blend-mode: soft-light; }
.radar-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(18rem, 0.87fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.radar-figure { border: 1px solid var(--line); background: var(--ink); }
.radar-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.radar-figure figcaption { padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.radar-copy h2 { margin-top: 1rem; }
.radar-copy > p:not(.eyebrow) { max-width: 56ch; margin-top: 1.5rem; color: var(--muted); }
.assay-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.assay-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.assay-list dt { color: var(--ember); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.assay-list dd { color: var(--muted); }

.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; }
.pipeline::before { position: absolute; top: 1.35rem; right: 12.5%; left: 12.5%; height: 1px; background: var(--line-hot); content: ""; }
.pipeline li { position: relative; display: grid; justify-items: center; gap: 1rem; min-width: 0; text-align: center; }
.pipeline span { z-index: 1; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid var(--ember); background: var(--ink); color: var(--ember); font-family: var(--font-mono); font-size: 0.75rem; }
.pipeline strong { font-family: var(--font-mono); font-size: clamp(0.82rem, 1.5vw, 1rem); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

.invitation { position: relative; overflow: hidden; text-align: center; }
.invitation-inner { position: relative; display: grid; justify-items: center; }
.invitation .kicker { color: var(--ember); }
.invitation h2 { margin-top: 1.25rem; max-width: 18ch; }
.invitation p:not(.kicker):not(.provenance) { max-width: 50ch; margin-top: 1.5rem; color: var(--muted); }
.invitation .button { margin-top: 2.25rem; }
.provenance { margin-top: 1.5rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.provenance a { color: var(--text); border-bottom: 1px solid var(--ember); }

.site-footer { padding-block: 3.5rem 2rem; background: var(--surface); }
.footer-top { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(20rem, 1.2fr); gap: 3rem; }
.footer-top > div > p { max-width: 25rem; margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.footer-top nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 2rem; }
.footer-top nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.footer-top nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.attribution:hover { color: var(--ember); }

/* Legal and company pages */
.legal-page { min-height: 100vh; background: var(--ink) url("assets/texture.jpg") center / 512px auto; background-blend-mode: soft-light; }
.legal-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-head .shell { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 1rem; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.back-link:hover { color: var(--text); }
.legal { width: min(100% - 2.5rem, 48rem); margin-inline: auto; padding-block: clamp(4.5rem, 9vw, 8rem); }
.legal h1 { margin-top: 0.8rem; font-size: clamp(2.6rem, 7vw, 5rem); }
.legal .updated { margin-top: 0.8rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.legal-body { margin-top: 3rem; color: var(--muted); }
.legal-body > * + * { margin-top: 1.15rem; }
.legal-body h2 { max-width: none; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--text); font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.15; }
.legal-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 0.2em; }
.legal-body ul { padding-left: 1.25rem; list-style: square; }
.legal-body li + li { margin-top: 0.5rem; }
.legal-body strong { color: var(--text); }

@media (max-width: 834px) {
  .shell { width: min(100% - 2rem, 75rem); }
  .nav-shell { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .primary-nav { justify-content: flex-end; }
  .primary-nav a { padding-inline: 0.3rem; font-size: 0.75rem; }
  .section-head, .radar-grid { grid-template-columns: 1fr; }
  .radar-grid { gap: 3rem; }
  .radar-figure { max-width: 42rem; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell, .legal { width: min(100% - 1.5rem, 75rem); }
  .site-head { background: rgba(23, 24, 28, 0.88); }
  .nav-shell { min-height: 112px; grid-template-columns: 1fr auto; grid-template-rows: 56px 56px; gap: 0 0.75rem; }
  .nav-shell .wordmark { grid-column: 1; grid-row: 1; }
  .nav-shell .button { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; border-top: 1px solid var(--line); }
  .primary-nav a { padding-inline: 0; font-size: 0.75rem; }
  .button--small { padding-inline: 0.75rem; }
  .hero { min-height: 45rem; }
  .hero-media img { object-position: center 50%; }
  .hero-copy { bottom: 2rem; }
  .hero-copy .kicker { font-size: 0.75rem; }
  .hero-copy h1 br { display: none; }
  .hero-lede { font-size: 1rem; }
  .hero-stamp, .hero-rule { display: none; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-grid > div { border-bottom: 1px solid var(--line); }
  .telemetry-grid > div:nth-child(odd) { border-left: 0; }
  .telemetry-grid > div:nth-child(n+3) { border-bottom: 0; }
  .section-head { gap: 1.5rem; }
  .bento { grid-template-columns: 1fr; margin-top: 3rem; }
  .forge-card-copy { min-height: 0; padding: 1.5rem; }
  .assay-list div { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .pipeline { grid-template-columns: 1fr; gap: 0; margin-top: 3rem; }
  .pipeline::before { top: 1.35rem; right: auto; bottom: 1.35rem; left: 1.35rem; width: 1px; height: auto; }
  .pipeline li { grid-template-columns: 2.75rem 1fr; justify-items: start; align-items: center; gap: 1.25rem; padding-bottom: 1.25rem; text-align: left; }
  .pipeline li:last-child { padding-bottom: 0; }
  .footer-top nav ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: scale(1.02); }
  .button, .forge-media img, .forge-media video { transition: none; }
}
