@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap");

/* Terraforge Holdings — one file, no build step, no framework.
   Palette is the one marketing/slot_machine_explainer/src/theme.ts already uses
   (developer-tool slate + run green), so the site and the explainer read as the
   same company. The green is DARKENED for text and links: #22C55E is a run
   indicator on dark, not a legible link colour on white. check_contrast.py
   holds the pairs to AA. Structure adapted from a sibling project's site —
   same stdlib-Python build, deliberately. */
:root{
  --ink:#0F172A;
  --ink-deep:#020617;
  --charcoal:#0F172A;
  --stone:#94A3B8;

  --bg:#ffffff;
  --bg-alt:#f1f5f9;
  --surface:#ffffff;
  --text:#0F172A;
  --text-soft:#475569;
  --rule:#d7dee6;
  --accent:var(--ink);
  --accent-text:#15803D;
  --chip-bg:#dcfce7;

  /* IBM Plex, chosen 2026-08-26 — see design_system.md. Sans carries headings
     and body; Mono carries eyebrows, labels and figures and NEVER goes above
     24px. Real fallbacks, because a blocked font request on a metered line
     must degrade rather than break the page. */
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:var(--sans);
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --measure:38rem;
  --pad:clamp(1.25rem,5vw,2.5rem);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0F172A;
    --bg-alt:#131d31;
    --surface:#1E293B;
    --text:#F8FAFC;
    --text-soft:#CBD5E1;
    --rule:#334155;
    --accent:#22C55E;
    --accent-text:#4ADE80;
    --chip-bg:#14361f;
  }
}
:root[data-theme="dark"]{
  --bg:#0F172A;
  --bg-alt:#131d31;
  --surface:#1E293B;
  --text:#F8FAFC;
  --text-soft:#CBD5E1;
  --rule:#334155;
  --accent:#22C55E;
  --accent-text:#4ADE80;
  --chip-bg:#14361f;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--serif);
  font-size:clamp(1.02rem,0.98rem + 0.25vw,1.12rem);
  line-height:1.66;
  -webkit-text-size-adjust:100%;
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.wrap{max-width:68rem;margin:0 auto;padding-inline:var(--pad)}
p{max-width:var(--measure)}
a{color:var(--accent-text)}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ---------- header ---------- */
.site-head{
  background:#fff;
  border-bottom:1px solid #dfe4e7;--headfg:#0F172A;
  position:sticky;top:0;z-index:20;
}
.site-head .wrap{
  display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem;padding-block:.85rem;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none}
.brand img{display:block;height:34px;width:auto}
.brand span{
  font-family:var(--sans);font-size:.94rem;letter-spacing:.13em;text-transform:uppercase;
  line-height:1.15;color:#0F172A;display:flex;flex-direction:column;font-weight:700;
}
.brand b{font-weight:700;color:#15803D;letter-spacing:.105em}
.nav{display:flex;gap:1.35rem;flex-wrap:wrap;font-family:var(--mono);font-size:.83rem;
  letter-spacing:.04em;text-transform:uppercase}
.nav a{color:#0F172A;text-decoration:none;border-bottom:2px solid transparent;padding-bottom:2px}
.nav a:hover{border-bottom-color:#15803D;color:#15803D}

/* ---------- hero ---------- */
.hero{
  position:relative;
  background:var(--ink-deep);
  color:#fff;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 100% at 12% 0%,rgba(34,197,94,.20) 0%,rgba(34,197,94,.06) 38%,rgba(34,197,94,0) 68%),
    linear-gradient(180deg,rgba(2,6,23,0) 55%,rgba(2,6,23,.55) 100%);
}
.hero .wrap{position:relative;padding-block:clamp(3.5rem,11vw,6.5rem)}
.hero .tagline{
  font-family:var(--mono);font-size:.82rem;letter-spacing:.22em;text-transform:uppercase;
  color:#86EFAC;margin:0 0 1.1rem;
}
.hero h1{
  font-size:clamp(1.85rem,1.2rem + 2.9vw,3.1rem);
  line-height:1.18;margin:0 0 1.4rem;max-width:20ch;font-weight:normal;
}
.hero .lede{font-size:clamp(1.08rem,1rem + 0.5vw,1.3rem);color:#E2E8F0;max-width:33rem;margin:0}
.hero .cta{
  display:inline-block;margin-top:2rem;font-family:var(--sans);font-size:.9rem;
  letter-spacing:.05em;text-transform:uppercase;text-decoration:none;
  background:#22C55E;color:#052e16;padding:.8rem 1.5rem;border-radius:2px;font-weight:600;
}
.hero .cta:hover{background:#4ADE80}
.hero figcaption{
  position:relative;font-family:var(--sans);font-size:.76rem;line-height:1.5;
  color:#94A3B8;padding:0 var(--pad) 1.2rem;max-width:68rem;margin:0 auto;
}

/* ---------- sections ---------- */
section{padding-block:clamp(2.75rem,7vw,4.5rem);border-top:1px solid var(--rule)}
section:nth-of-type(even){background:var(--bg-alt)}
h2{
  font-size:clamp(1.4rem,1.15rem + 1.1vw,2rem);line-height:1.25;
  margin:0 0 1.2rem;font-weight:normal;color:var(--text);
}
h2 .num{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;display:block;
  color:var(--accent-text);text-transform:uppercase;margin-bottom:.6rem;
}
h3{font-family:var(--sans);font-size:1rem;letter-spacing:.02em;margin:2rem 0 .5rem;color:var(--text)}
.pull{
  border-left:4px solid var(--accent);padding:.15rem 0 .15rem 1.15rem;
  margin:1.8rem 0;font-size:1.12rem;max-width:36rem;color:var(--text);
}

/* ---------- vision / mission band ---------- */
section.band{background:var(--ink);color:#fff;border-top:0}
.band h2,.band h3{color:#fff}
.band h2 .num{color:#b6d9f2}
.vm{display:grid;gap:2.5rem 3.5rem;grid-template-columns:repeat(auto-fit,minmax(19rem,1fr));margin-top:.5rem}
.vm h3{
  font-family:var(--sans);font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;
  color:#b6d9f2;margin:0 0 .85rem;
}
.vm blockquote{
  margin:0;font-size:clamp(1.12rem,1.02rem + 0.5vw,1.34rem);line-height:1.5;
  border-left:3px solid #6fb2de;padding-left:1.15rem;max-width:30rem;
}
.vm p{color:#d7e8f5;font-size:.98rem;margin:1.1rem 0 0;max-width:30rem}

/* ---------- cards ---------- */
.cards{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));margin-top:2rem}
.card{background:var(--surface);border:1px solid var(--rule);border-radius:3px;padding:1.4rem}
.card h3{margin-top:0}
.card p{font-size:.96rem;margin:0;max-width:none;color:var(--text-soft)}
.chip{
  display:inline-block;font-family:var(--sans);font-size:.68rem;letter-spacing:.12em;
  text-transform:uppercase;background:var(--chip-bg);color:var(--accent-text);
  padding:.25rem .55rem;border-radius:2px;margin-bottom:.7rem;
}

/* ---------- the ladder ---------- */
.ladder{list-style:none;padding:0;margin:2rem 0 0;counter-reset:rung}
.ladder li{
  border-left:2px solid var(--rule);padding:0 0 1.5rem 1.5rem;position:relative;
}
.ladder li::before{
  counter-increment:rung;content:counter(rung,upper-alpha);
  position:absolute;left:-.85rem;top:0;width:1.6rem;height:1.6rem;border-radius:50%;
  background:var(--accent);color:#fff;font-family:var(--sans);font-size:.75rem;
  display:grid;place-items:center;font-weight:600;
}
.ladder b{display:block;font-family:var(--sans);font-size:.95rem;margin-bottom:.15rem}
.ladder span{color:var(--text-soft);font-size:.95rem}
.ladder li:last-child{border-left-color:transparent;padding-bottom:0}

/* ---------- status ---------- */
.status{
  background:var(--surface);border:1px solid var(--rule);border-left:4px solid var(--accent);
  border-radius:3px;padding:1.5rem;margin-top:2rem;
}
.status ul{margin:1rem 0 0;padding-left:1.15rem;color:var(--text-soft);font-size:.96rem}
.status li{margin-bottom:.45rem}
.status li b{color:var(--text)}

/* ---------- contact ---------- */
.contact-grid{display:grid;gap:1.5rem 2.5rem;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));margin-top:1.5rem}
.contact-grid dt{font-family:var(--sans);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-soft);margin-bottom:.3rem}
.contact-grid dd{margin:0 0 1.2rem;font-size:1.02rem}

footer{
  background:var(--charcoal);color:#d3dadd;padding-block:2.25rem;
  font-family:var(--sans);font-size:.85rem;line-height:1.7;
}
footer .wrap{display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
footer a{color:#4ADE80}
footer .legal{color:#94A3B8;font-size:.79rem;max-width:32rem}

/* Narrow screens: the header stops sticking, or two rows of nav eat the fold.
   ponytail: no hamburger — six links wrap fine and a menu button is JS we
   would have to maintain. Add one if the nav ever outgrows two rows. */
@media (max-width:820px){
  .hero::before{
    background:linear-gradient(180deg,rgba(1,26,45,.84) 0%,rgba(1,30,51,.74) 50%,rgba(1,23,40,.90) 100%);
  }
}
@media (max-width:720px){
  .site-head{position:static}
  .nav{gap:.55rem 1rem;font-size:.75rem}
  .site-head .wrap{padding-block:.7rem}
}

/* ---------- multi-page nav + card links ---------- */
.nav a[aria-current="page"]{color:#15803D;border-bottom-color:#15803D}
.card h3 a{color:inherit;text-decoration:none;border-bottom:2px solid var(--rule)}
.card h3 a:hover{color:var(--accent-text);border-bottom-color:var(--accent)}
/* short pages: footer sits at the bottom of the viewport, not mid-screen */
body{display:flex;flex-direction:column;min-height:100vh}
main{flex:1}

/* ---------- figures ---------- */
.figure{margin:2rem 0;padding:0}
.figure img{display:block;width:100%;height:auto;color:var(--text)}
.figure figcaption{margin-top:.7rem;font-family:var(--sans);font-size:.85rem;
  color:var(--text-soft);max-width:var(--measure)}

/* ---------- Terraforge additions ---------- */
/* The hero is a <section>, not a <figure> — there is no photograph behind it,
   so nothing needs a caption. ponytail: no image, no image markup. */
.hero .wrap{padding-block:clamp(3.25rem,10vw,5.75rem)}
.cta-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-top:2rem;max-width:none}
.cta-alt{
  display:inline-flex;align-items:center;min-height:44px;padding:.8rem .5rem;
  font-family:var(--mono);font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;
  text-decoration:none;color:#4ADE80;
}
.cta-alt:hover{color:#86EFAC}
.hero .cta{display:inline-flex;align-items:center;min-height:44px;margin-top:0}
main .cta{
  display:inline-flex;align-items:center;min-height:44px;
  background:var(--accent-text);color:#fff;padding:.8rem 1.5rem;border-radius:2px;
  font-family:var(--mono);font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;
  text-decoration:none;font-weight:600;
}
main .cta:hover{background:#166534}
.kicker{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent-text);margin:0 0 .5rem;max-width:none;
}
.note{font-size:.88rem;color:var(--text-soft);margin-top:1.25rem}
.card .note{margin-top:.5rem}
.foot-grid{display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;width:100%}
footer .wrap{flex-direction:column;align-items:flex-start}
/* Every nav item and link is a 44px target on touch, per design_system.md. */
.nav a{display:inline-flex;align-items:center;min-height:44px}
