/* ==========================================================================
   Opportineer — site styles
   Aesthetic: engineering specification sheet. Warm newsprint / blueprint ink,
   surveyor-orange signal accent, monospace instrumentation + editorial serif
   prose. No web fonts, no external assets, no frameworks.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:      #F2EFE7;
  --paper-2:    #EAE6DB;
  --panel:      #FBFAF6;
  --ink:        #14171B;
  --ink-soft:   #3A3F47;
  --muted:      #6E6857;
  --rule:       #D3CCBB;
  --rule-hard:  #14171B;
  --flag:       #AE3E0E;   /* surveyor orange — 5.23:1 on paper, 4.97:1 on flag-wash */
  --flag-wash:  #F6E7DC;
  --pine:       #2C6A4B;   /* approved */
  --pine-wash:  #E4EDE7;
  --code-bg:    #FBFAF6;
  /* solid button is its own pair: the accent is a *background* here, so the
     foreground has to invert per theme rather than track --flag. */
  --solid-bg:   #AE3E0E;
  --solid-fg:   #FFF7F1;   /* 5.67:1 */
  --solid-hover:#92340C;   /* 7.29:1 */
  --shadow:     0 1px 0 rgba(20,23,27,.06);
  --grain:      .045;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
          "Segoe UI Mono", "Roboto Mono", "Liberation Mono", monospace;
  --serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino,
           "Book Antiqua", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --gutter: clamp(1.15rem, 4.2vw, 4.25rem);
  --maxw: 1220px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0E1116;
    --paper-2:    #11151B;
    --panel:      #151A21;
    --ink:        #E9E5DA;
    --ink-soft:   #C3BFB4;
    --muted:      #8D9099;
    --rule:       #262D37;
    --rule-hard:  #616B79;  /* raised from #4A525E: it outlines buttons, which need 3:1 */
    --flag:       #F0793A;
    --flag-wash:  #2A1C13;
    --pine:       #6FBF97;
    --pine-wash:  #16241D;
    --code-bg:    #10151B;
    --solid-bg:   #F0793A;
    --solid-fg:   #14171B;   /* 6.42:1 — off-white on this orange is only 2.64:1 */
    --solid-hover:#F79358;   /* 7.94:1 */
    --shadow:     0 1px 0 rgba(0,0,0,.4);
    --grain:      .05;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain — inline SVG turbulence, no network */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ---------- primitives ---------- */
a { color: inherit; }

.lnk {
  color: var(--flag);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .28s cubic-bezier(.2,.7,.2,1);
  padding-bottom: 1px;
}
.lnk:hover, .lnk:focus-visible { background-size: 100% 1px; }

:focus-visible {
  outline: 2px solid var(--flag);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .65rem 1rem; font-family: var(--mono); font-size: .8rem; z-index: 50;
}
.skip:focus { left: .5rem; top: .5rem; }

code, kbd, pre, .mono { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.lede {
  font-size: clamp(1.09rem, 1rem + .55vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

p { max-width: var(--measure); }
p + p { margin-top: .85em; }

.label {
  font-family: var(--mono);
  font-size: .655rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- stamp ---------- */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .3rem .6rem .26rem;
  border: 1.5px solid currentColor;
  color: var(--flag);
  line-height: 1;
  white-space: nowrap;
}
.stamp.tilt { transform: rotate(-3.5deg); }
.stamp.ok { color: var(--pine); background: var(--pine-wash); }

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(1.4) blur(9px);
}
.masthead .bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem;
  min-height: 62px;
}
.brand {
  display: flex; align-items: center;
  text-decoration: none; margin-right: auto;
  color: var(--ink);
}
/* The lockup is drawn geometry (brand/wordmark.svg) inlined so it costs no request
   and can take its ink from currentColor. Height-driven; width follows the 259:42 box. */
.brand svg { display: block; height: 22px; width: auto; flex: none; }
.brand .ink  { stroke: currentColor; }
.brand .lens { fill: var(--flag); }
/* Compatibility shim: any page still emitting the pre-2026-08 text lockup
   (<b>OPPORTINEER<span class="dot">.</span></b>) keeps rendering correctly. */
.brand b { font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: -.035em; margin-left: .55rem; }
.brand .dot { color: var(--flag); }
.mnav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.35rem; }
.mnav a {
  font-family: var(--mono); font-size: .755rem; letter-spacing: .05em;
  text-decoration: none; color: var(--ink-soft);
}
.mnav a:hover { color: var(--flag); }
.mnav a.cta {
  border: 1px solid var(--rule-hard);
  padding: .48rem .78rem;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.mnav a.cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 620px) {
  .mnav a.ghost { display: none; }
  .masthead .bar { min-height: 54px; padding-block: .5rem; }
  .brand svg { height: 18px; }
  .mnav { gap: .4rem .8rem; }
  .mnav a { font-size: .695rem; }
  .mnav a.cta { padding: .42rem .58rem; }
}
/* Under ~380px the 111px lockup plus the CTA stop sharing a line. The SVG carries
   preserveAspectRatio="xMinYMid slice", so pinning it to a square viewport crops the
   viewBox to the leading 42 units — i.e. the mark alone — with no second element. */
@media (max-width: 380px) {
  .masthead .brand svg { height: 20px; width: 20px; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(2.6rem, 7vw, 5.6rem) 0 clamp(2rem, 5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(115% 78% at 78% 8%, #000 0%, transparent 68%);
  mask-image: radial-gradient(115% 78% at 78% 8%, #000 0%, transparent 68%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(316px, .9fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
}
.eyebrow::after {
  content: ""; height: 1px; flex: 1; background: var(--rule); max-width: 140px;
}

h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.05rem, 1.1rem + 4.35vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  max-width: 15ch;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--flag); }
.hero .lede { margin-top: 1.5rem; max-width: 52ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .03em;
  text-decoration: none;
  padding: .82rem 1.15rem;
  border: 1.5px solid var(--rule-hard);
  transition: transform .16s ease, background .18s ease, color .18s ease;
}
.btn .arw { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arw { transform: translateX(4px); }
.btn.solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.btn.solid:hover { background: var(--solid-hover); border-color: var(--solid-hover); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arw { transition: none; } }

/* title block — engineering drawing */
.titleblock {
  border: 1.5px solid var(--rule-hard);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.tb-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem .85rem;
  border-bottom: 1.5px solid var(--rule-hard);
}
.tb-head span:first-child {
  font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
}
.tb-row { display: grid; grid-template-columns: 7.4rem 1fr; border-top: 1px solid var(--rule); }
.tb-row:first-of-type { border-top: 0; }
.tb-row dt {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  padding: .58rem .6rem .58rem .85rem;
  border-right: 1px solid var(--rule);
}
.tb-row dd {
  padding: .55rem .85rem; font-size: .835rem; line-height: 1.42;
  font-family: var(--mono); letter-spacing: -.015em;
}
.tb-foot {
  border-top: 1.5px solid var(--rule-hard);
  padding: .68rem .85rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; color: var(--muted);
}
.tb-foot .live { color: var(--pine); }

/* capability tape under hero */
.tape {
  max-width: none;
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .95rem 0;
  display: flex; flex-wrap: wrap; gap: .45rem clamp(1.1rem, 2.6vw, 2.6rem);
  font-family: var(--mono); font-size: .715rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.tape b { color: var(--ink); font-weight: 500; }

/* ---------- sections ---------- */
section { padding: clamp(2.7rem, 6.2vw, 4.8rem) 0; }
.sec-head {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0 1rem;
  border-top: 1.5px solid var(--rule-hard);
  padding-top: .85rem;
  margin-bottom: clamp(1.8rem, 3.6vw, 2.9rem);
}
.sec-head .num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--flag); padding-top: .38rem;
}
.sec-head h2 {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.32rem, 1rem + 1.35vw, 2rem);
  letter-spacing: -.038em; line-height: 1.12;
  text-wrap: balance;
}
.sec-head .sub {
  grid-column: 2; margin-top: .7rem; color: var(--ink-soft);
  max-width: 60ch;
}
.sec-head .stamp { grid-column: 2; justify-self: start; margin-top: .95rem; }
@media (max-width: 640px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .num { padding-top: 0; margin-bottom: .45rem; }
  .sec-head .sub, .sec-head .stamp { grid-column: 1; }
}

/* ---------- capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: background .2s ease;
}
.card:hover { background: var(--panel); }
.card .k {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  color: var(--flag);
}
.card h3 {
  font-family: var(--mono); font-size: .985rem; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.25;
}
.card p { font-size: .945rem; color: var(--ink-soft); max-width: none; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps .n {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--flag);
  padding-top: .2rem;
}
.steps h3 {
  font-family: var(--mono); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.032em; margin-bottom: .5rem;
}
.steps p { color: var(--ink-soft); }
@media (max-width: 640px) {
  .steps > li { grid-template-columns: 1fr; }
  .steps .n { padding-top: 0; margin-bottom: .5rem; }
}

/* ---------- pull note ---------- */
.note {
  border-left: 2.5px solid var(--flag);
  background: var(--flag-wash);
  padding: 1.05rem 1.3rem;
  margin-top: 2.1rem;
  max-width: 64ch;
}
.note p { font-size: .965rem; max-width: none; }
.note .label { display: block; margin-bottom: .4rem; color: var(--flag); }

/* ---------- artifacts / code ---------- */
.artifacts { display: grid; gap: 1.6rem; }
/* grid/flex children must be allowed to shrink below their content's
   intrinsic width, otherwise a wide table forces the whole page sideways */
.artifacts > *, .cards > *, .grid2 > *, .facts > *, .ladder > *,
.hero-grid > *, .principal > *, .close > *, .foot-grid > * { min-width: 0; }
.tablewrap { min-width: 0; }
@media (min-width: 1000px) {
  .artifacts { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .artifacts .span2 { grid-column: 1 / -1; }
}
.file {
  border: 1.5px solid var(--rule-hard);
  background: var(--code-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.file-head {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .62rem .9rem;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
  font-family: var(--mono); font-size: .69rem; letter-spacing: .04em;
}
.file-head .path { font-weight: 700; }
.file-head .tag {
  margin-left: auto; color: var(--muted); letter-spacing: .13em; text-transform: uppercase;
  font-size: .62rem;
}
.file pre {
  margin: 0; padding: 1.05rem 1.1rem;
  overflow-x: auto;
  font-size: .765rem; line-height: 1.75;
  tab-size: 2;
}
.file pre code { color: var(--ink-soft); white-space: pre; }
.file .cm { color: var(--muted); font-style: italic; }
.file .kw { color: var(--flag); }
.file .id { color: var(--ink); font-weight: 600; }
.file .st { color: var(--pine); }
.file-note {
  border-top: 1px solid var(--rule);
  padding: .8rem .95rem;
  font-size: .875rem; color: var(--muted);
  background: var(--panel);
}
.file-note p { max-width: none; }

/* AC list */
.aclist { list-style: none; padding: 0; display: grid; gap: 0; }
.aclist li {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: .8rem;
  padding: .82rem 0;
  border-top: 1px solid var(--rule);
  font-size: .93rem;
  color: var(--ink-soft);
}
.aclist li:last-child { border-bottom: 1px solid var(--rule); }
.aclist .ac {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--flag); padding-top: .19rem; font-weight: 700;
}
@media (max-width: 520px) {
  .aclist li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- spec table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--panel); }
table.spec { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
table.spec th {
  text-align: left;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: .75rem .95rem;
  border-bottom: 1.5px solid var(--rule-hard);
  white-space: nowrap;
}
table.spec td {
  padding: .85rem .95rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { color: var(--ink); font-family: var(--mono); font-size: .8rem; letter-spacing: -.01em; }
table.spec strong { color: var(--ink); font-weight: 700; }

/* ---------- two-column prose grid ---------- */
.grid2 {
  display: grid; gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  /* min() so a 320px viewport (283px of content box) cannot be forced to a 290px
     track and pushed sideways under body{overflow-x:hidden}. */
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.grid2 > div { background: var(--paper); padding: 1.45rem 1.4rem 1.55rem; }
.grid2 h3 {
  font-family: var(--mono); font-size: .93rem; font-weight: 700;
  letter-spacing: -.028em; margin-bottom: .48rem;
}
.grid2 p { font-size: .935rem; color: var(--ink-soft); max-width: none; }

/* ---------- principal block ---------- */
.principal {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .8fr);
  align-items: start;
}
@media (max-width: 860px) { .principal { grid-template-columns: 1fr; } }
.principal .body p { font-size: 1.02rem; }
.sig {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--muted); margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.sig b { display: block; color: var(--ink); font-size: .84rem; letter-spacing: -.01em; margin-bottom: .18rem; }

/* ---------- closing CTA ---------- */
.close {
  border: 1.5px solid var(--rule-hard);
  background: var(--panel);
  padding: clamp(1.7rem, 4.5vw, 3.1rem);
  display: grid; gap: clamp(1.4rem, 3.5vw, 2.8rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(min(240px, 100%), .8fr);
  align-items: start;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) { .close { grid-template-columns: 1fr; } }
.close h2 {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.25rem);
  letter-spacing: -.045em; line-height: 1.08; text-wrap: balance;
}
.close p { margin-top: .9rem; color: var(--ink-soft); }
.close ul { margin: 0; padding-left: 1.05rem; font-size: .93rem; color: var(--ink-soft); }
.close ul li { margin-bottom: .38rem; }
.close ul li::marker { color: var(--flag); }

/* ---------- footer ---------- */
footer {
  border-top: 1.5px solid var(--rule-hard);
  padding: 2.4rem 0 3rem;
  font-size: .875rem;
}
.foot-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, .6fr));
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand svg { height: 26px; }
.foot-brand p { color: var(--muted); font-size: .875rem; margin-top: .6rem; max-width: 34ch; }
.foot-col h4 {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .7rem;
}
.foot-col a, .foot-col span {
  display: block; text-decoration: none; color: var(--ink-soft);
  font-family: var(--mono); font-size: .77rem; margin-bottom: .45rem;
}
.foot-col a:hover { color: var(--flag); }
.foot-legal {
  margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--muted);
}

/* ---------- entrance motion ---------- */
.js [data-rise] { opacity: 0; transform: translateY(14px); }
.js [data-rise].in {
  opacity: 1; transform: none;
  transition: opacity .62s cubic-bezier(.2,.7,.2,1), transform .62s cubic-bezier(.2,.7,.2,1);
}
.js .hero [data-rise] { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero [data-rise="1"] { animation-delay: .05s; }
.js .hero [data-rise="2"] { animation-delay: .16s; }
.js .hero [data-rise="3"] { animation-delay: .27s; }
.js .hero [data-rise="4"] { animation-delay: .38s; }
.js .hero [data-rise="5"] { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise],
  .js .hero [data-rise] {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}

/* ---------- engineers-page accents ---------- */
.facts {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  margin-top: clamp(2rem, 5vw, 3rem);
}
.facts > div { background: var(--paper); padding: 1.15rem 1.2rem 1.25rem; }
.facts .v {
  font-family: var(--mono); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -.04em; display: block; margin-bottom: .3rem;
}
.facts .d { font-size: .855rem; color: var(--muted); }

.rules { list-style: none; padding: 0; }
.rules li {
  border-top: 1px solid var(--rule);
  padding: 1.15rem 0;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem;
}
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules .x {
  font-family: var(--mono); font-weight: 700; color: var(--flag); font-size: .95rem;
  padding-top: .1rem;
}
.rules h3 { font-family: var(--mono); font-size: .95rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: .35rem; }
.rules p { color: var(--ink-soft); font-size: .945rem; }

.ladder { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 780px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung { background: var(--paper); padding: 1.5rem 1.4rem 1.7rem; }
.rung .tier {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--flag); margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem;
}
.rung .tier::after { content: ""; height: 1px; flex: 1; background: var(--rule); }
.rung h3 { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; letter-spacing: -.035em; margin-bottom: .5rem; }
.rung p { font-size: .93rem; color: var(--ink-soft); max-width: none; }
.rung .req {
  margin-top: .9rem; font-family: var(--mono); font-size: .715rem; color: var(--muted);
  line-height: 1.6; border-top: 1px dashed var(--rule); padding-top: .75rem;
}
.rung.trusted { background: var(--panel); }

/* ---------- contact routes ----------
   dalton@opportineer.com is reserved but the mailbox is not cut over yet, so the
   address is deliberately NOT a mailto: link — a dead compose window is a worse
   failure than a plain string. The Upwork route is the one that works today. */
.routes { list-style: none; padding: 0; margin-top: 1.4rem; max-width: 62ch; }
.routes li {
  display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .2rem .9rem;
  padding: .8rem 0; border-top: 1px solid var(--rule);
  font-size: .9rem; color: var(--ink-soft);
}
.routes li:last-child { border-bottom: 1px solid var(--rule); }
.routes .rk {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); padding-top: .3rem;
}
.routes .rv { font-family: var(--mono); font-size: .84rem; letter-spacing: -.015em; word-break: break-word; }
.routes .rn { display: block; margin-top: .22rem; font-size: .855rem; color: var(--muted); }
.routes .pending {
  font-family: var(--mono); font-style: normal; font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); padding: .12rem .34rem; margin-left: .4rem;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .routes li { grid-template-columns: 1fr; }
  .routes .rk { padding-top: 0; }
}

.fineprint { margin-top: 1.15rem; font-size: .85rem; color: var(--muted); max-width: 56ch; }
.fineprint .rv {
  font-family: var(--mono); font-size: .8rem; letter-spacing: -.015em;
  color: var(--ink-soft); word-break: break-word;
}

/* visually hidden, still announced */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- small utilities (kept as classes so CSP needs no inline styles) ---------- */
.u-pad   { padding: 1.05rem 1.1rem .3rem; }
.u-mb    { margin-bottom: .78rem; }
.u-mt0   { margin-top: 0; }
.u-mt    { margin-top: 1.3rem; }
.u-mtxl  { margin-top: clamp(2.6rem, 6vw, 4rem); }
.u-flat  { border: 0; }
table.spec caption.cap { text-align: left; padding: .9rem .95rem .15rem; }

ol.apply { padding-left: 1.35rem; font-size: .97rem; color: var(--ink-soft); }
ol.apply li { margin-bottom: .7rem; padding-left: .25rem; }
ol.apply li::marker { font-family: var(--mono); font-size: .8rem; color: var(--flag); }
ol.apply strong { color: var(--ink); }
