/* PRIME 88 — apex site styles. Built against tokens.css only.
   DESIGN_LAW check: one accent (used on eyebrows + primary action),
   monoline hairlines, no cards-with-left-border, no stock imagery,
   no gradients except the single metallic sheen on the hero rule. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.rail { max-width: var(--rail); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: var(--measure); }

/* — Masthead — */
.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead-in {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.mark { width: 30px; height: 30px; display: block; }
.brand img.chrome { height: 21px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--font-display);
  font-size: var(--type-caption);
  font-weight: var(--fw-emphasize);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg-strong); }
.actions { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.actions .login {
  font-family: var(--font-display); font-size: var(--type-small);
  font-weight: var(--fw-emphasize); color: var(--fg); text-decoration: none;
}
.actions .login:hover { color: var(--fg-strong); }

/* — Buttons — */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--type-small);
  font-weight: var(--fw-emphasize);
  letter-spacing: 0.02em;
  color: var(--fg-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.btn:hover { background: var(--surface-strong); text-decoration: none; }
.btn-accent { border-color: var(--accent); color: var(--fg-strong); }
.btn-solid { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); }
.btn-solid:hover { background: var(--fg); }

/* — Hero / door — */
.door { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.door .halo {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; opacity: .05; pointer-events: none;
}
.door .wordmark { width: min(430px, 78vw); height: auto; display: block; margin-bottom: 34px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-caption);
  font-weight: var(--fw-announce);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.display {
  font-family: var(--font-display);
  font-size: var(--type-display);
  font-weight: var(--fw-announce);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--fg-strong);
  margin: 0 0 22px;
  max-width: 16ch;
}
.thesis { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--fg); margin: 0 0 18px; max-width: 34ch; }
.lede { color: var(--muted); margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sheen { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* — Sections — */
section.block { padding: clamp(52px, 7vw, 88px) 0; border-top: 1px solid var(--border); }
.kicker {
  font-family: var(--font-display); font-size: var(--type-caption);
  font-weight: var(--fw-announce); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
h1.page {
  font-family: var(--font-display); font-size: var(--type-h1);
  font-weight: var(--fw-announce); letter-spacing: -0.015em;
  line-height: 1.1; color: var(--fg-strong); margin: 0 0 16px;
}
h2.head {
  font-family: var(--font-display); font-size: var(--type-h2);
  font-weight: var(--fw-announce); letter-spacing: -0.01em;
  line-height: 1.15; color: var(--fg-strong); margin: 0 0 14px; max-width: 26ch;
}
.sub { color: var(--muted); margin: 0 0 36px; }
.more { font-family: var(--font-display); font-size: var(--type-small); font-weight: var(--fw-emphasize); }

/* — Numbered rules — */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules li {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px;
  padding: 20px 0; border-top: 1px solid var(--border);
  counter-increment: rule;
}
.rules li:first-child { border-top: 0; padding-top: 4px; }
.rules li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--type-small); color: var(--faint);
  padding-top: 3px;
}
.rules p { margin: 0; max-width: var(--measure); }
.rules strong { color: var(--fg-strong); font-weight: var(--fw-emphasize); }

/* — Parts / rows with state labels — */
.parts { border-top: 1px solid var(--border); }
.part {
  display: grid; grid-template-columns: 220px 1fr; gap: 6px 32px;
  padding: 26px 0; border-bottom: 1px solid var(--border);
}
.part h3 {
  font-family: var(--font-display); font-size: var(--type-h3);
  font-weight: var(--fw-announce); color: var(--fg-strong); margin: 0;
}
.part p { margin: 0; color: var(--muted); max-width: var(--measure); }
.state {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-display); font-size: var(--type-caption);
  font-weight: var(--fw-emphasize); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 3px 10px;
}

/* — Studios / panels — */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 30px; }
.panel h3 { font-family: var(--font-display); font-size: var(--type-h3); font-weight: var(--fw-announce); color: var(--fg-strong); margin: 0 0 8px; }
.panel .tag { color: var(--muted); margin: 0 0 20px; }
.caps { list-style: none; margin: 0 0 24px; padding: 0; }
.caps li { padding: 11px 0; border-top: 1px solid var(--border); }
.caps li:first-child { border-top: 0; padding-top: 0; }
.caps strong { display: block; color: var(--fg-strong); font-weight: var(--fw-emphasize); font-family: var(--font-display); font-size: var(--type-small); letter-spacing: 0.01em; }
.caps span { color: var(--muted); font-size: var(--type-small); line-height: 1.5; display: block; margin-top: 2px; }

/* — Tiers — */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { border: 1px solid var(--border); padding: 26px; background: var(--inset); }
.tier h3 { font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-announce); color: var(--fg-strong); margin: 0 0 4px; }
.tier .who { color: var(--faint); font-size: var(--type-small); margin: 0 0 4px; }
.tier .posture { color: var(--accent); font-size: var(--type-caption); font-family: var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; font-weight: var(--fw-emphasize); margin: 0 0 16px; }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { padding: 7px 0; border-top: 1px solid var(--border); font-size: var(--type-small); color: var(--fg); }
.tier li:first-child { border-top: 0; }

/* — Prose (policies, about) — */
.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--font-display); font-size: 21px; font-weight: var(--fw-announce);
  color: var(--fg-strong); margin: 40px 0 10px; letter-spacing: -0.01em;
}
.prose h2:first-of-type { margin-top: 8px; }
.prose p { margin: 0 0 14px; color: var(--fg); }
.prose .fine { color: var(--faint); font-size: var(--type-small); margin-top: 34px; }
.pagehead { padding: clamp(48px, 7vw, 84px) 0 8px; }

/* — Footer — */
footer { border-top: 1px solid var(--border); padding: 52px 0 44px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
footer .bridge { width: 190px; height: auto; display: block; margin-bottom: 16px; }
footer .tagline { font-family: var(--font-display); color: var(--muted); font-size: var(--type-small); margin: 0; }
footer h4 {
  font-family: var(--font-display); font-size: var(--type-caption);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  font-weight: var(--fw-announce); margin: 4px 0 14px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 9px; }
footer li a { color: var(--muted); text-decoration: none; font-size: var(--type-small); }
footer li a:hover { color: var(--fg-strong); text-decoration: underline; }
.copyright { color: var(--faint); font-size: var(--type-caption); margin-top: 40px; }

@media (max-width: 900px) {
  .duo, .tiers, .foot-grid { grid-template-columns: 1fr; }
  .part { grid-template-columns: 1fr; }
  .nav a:nth-child(3), .nav a:nth-child(4) { display: none; }
  .door .halo { width: 340px; height: 340px; right: -120px; opacity: .04; }
  .brand img.chrome { height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* — Layout utilities (keep inline styles out of the HTML) — */
.flush { margin-bottom: 0; }
.mt20 { margin-top: 20px; } .mt22 { margin-top: 22px; } .mt24 { margin-top: 24px; }
.mt26 { margin-top: 26px; } .mt28 { margin-top: 28px; } .mt30 { margin-top: 30px; }
.note { color: var(--muted); }
.panel-narrow { max-width: 820px; }
.strong { color: var(--fg); }
