/* JRMedia Solutions — production stylesheet
   Design tokens per handoff README. Squared edges, no shadows, no motion beyond color. */

:root {
  --ink: #12181C;
  --ink-deep: #0B0F12;
  --paper: #F7F6F3;
  --paper-alt: #EDEAE3;
  --rule: #DCD9D2;
  --rule-alt: #D6D2C9;
  --rule-strong: #C9C5BC;
  --accent: #C2500F;
  --accent-hover: #A64109;
  --accent-light: #E8863F;
  --link: #B14A0E;
  --link-hover: #8E3A08;
  --body-muted: #414D56;
  --muted: #6B7681;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
input, textarea, button, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dark :focus-visible, .dark-sec :focus-visible { outline-color: var(--accent-light); }

/* ---------- Header ---------- */
.hdr {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(247,246,243,0.12);
}
.hdr-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  color: var(--paper);
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark:hover { color: var(--paper); text-decoration: none; }
.wordmark span {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: rgba(247,246,243,0.82); font-weight: 600; font-size: 15px; }
.nav-link:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent);
  color: #fff;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  border-radius: 2px;
  display: inline-block;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-sm { font-size: 15px; padding: 10px 16px; white-space: nowrap; }
.btn-lg { font-size: 18px; padding: 17px 28px; }
.btn-out {
  color: var(--paper);
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 15px 24px;
  border: 2px solid rgba(247,246,243,0.35);
  border-radius: 2px;
  display: inline-block;
}
.btn-out:hover { border-color: var(--accent-light); color: var(--accent-light); text-decoration: none; }
.ulink {
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
}
.ulink:hover { color: var(--accent-light); text-decoration: none; }

/* ---------- Sections ---------- */
.sec { padding: clamp(48px, 9vw, 96px) 20px; }
.sec-compact { padding: clamp(40px, 7vw, 76px) 20px; }
.dark-sec { background: var(--ink); color: var(--paper); }
.alt-sec { background: var(--paper-alt); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-prose { max-width: 900px; margin: 0 auto; }

.eyebrow {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.eyebrow-light { color: var(--link); }

h1, h2, h3 { font-family: Archivo, sans-serif; }
.h1 {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(38px, 8.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h1-sub {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(34px, 7.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2-col {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: clamp(26px, 5.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h3-phase { margin: 0 0 10px; font-weight: 700; font-size: clamp(22px, 5vw, 28px); line-height: 1.15; }
.h3-card { margin: 0 0 10px; font-weight: 700; font-size: 20px; line-height: 1.2; }

.lede-hero {
  margin: 0 0 32px;
  font-size: clamp(18px, 4.4vw, 23px);
  line-height: 1.45;
  color: rgba(247,246,243,0.86);
  text-wrap: pretty;
}
.lede {
  margin: 0 0 40px;
  font-size: clamp(17px, 4vw, 20px);
  line-height: 1.5;
  color: var(--body-muted);
  text-wrap: pretty;
}
.lede-dark { color: rgba(247,246,243,0.82); }
.body { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body-muted); text-wrap: pretty; }
.body-dark { color: rgba(247,246,243,0.78); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.subnote {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(247,246,243,0.14);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(247,246,243,0.66);
  max-width: 60ch;
}

/* ---------- Card grids ---------- */
.hairline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.hairline-grid-alt { background: var(--rule-alt); border-color: var(--rule-alt); }
.hairline-grid > div { background: #fff; padding: 26px 24px; }

.find-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 40px; }
.find-item { border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.find-label { margin: 0 0 8px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 18px; }

.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.phase { padding-top: 18px; }
.phase-1 { border-top: 3px solid var(--accent-light); }
.phase-2 { border-top: 3px solid rgba(232,134,63,0.55); }
.phase-3 { border-top: 3px solid rgba(232,134,63,0.35); }
.phase-4 { border-top: 3px solid rgba(232,134,63,0.2); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

.panel {
  background: rgba(247,246,243,0.06);
  border-left: 4px solid var(--accent);
  padding: 24px 24px 26px;
  margin-top: 36px;
}

/* ---------- Commitment ---------- */
.commit {
  margin-top: 44px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 6vw, 48px);
}
.commit-stmt {
  margin: 0 0 18px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 26ch;
  text-wrap: balance;
}

/* ---------- Lists ---------- */
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--body-muted); }
.dash-list li::before { content: "—"; color: var(--accent); font-weight: 700; flex: none; }
.dash-list-dark li { color: rgba(247,246,243,0.82); }
.dash-list-dark li::before { color: var(--accent-light); }
.dash-list b { font-family: Archivo, sans-serif; font-weight: 700; color: var(--ink); }
.dash-list-dark b { color: var(--paper); }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plain-list li { font-size: 17px; line-height: 1.55; color: var(--body-muted); }

.card-white { background: #fff; border: 1px solid var(--rule); padding: 28px 26px; }

.tl-item { border-left: 3px solid var(--rule); padding-left: 16px; }
.tl-label { margin: 0 0 6px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px; }

.note { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- Form ---------- */
.form-panel {
  background: rgba(247,246,243,0.06);
  border: 1px solid rgba(247,246,243,0.14);
  padding: clamp(20px, 5vw, 30px);
  display: grid;
  gap: 16px;
}
.form-panel label { display: grid; gap: 7px; font-weight: 600; font-size: 15px; color: rgba(247,246,243,0.9); }
.form-panel input, .form-panel textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 14px;
  font-size: 17px;
  width: 100%;
}
.form-panel textarea { resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 17px 20px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.form-submit:hover { background: var(--accent-hover); }

.contact-phone {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--accent-light);
}
.contact-phone:hover { color: #fff; }
.contact-detail { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: rgba(247,246,243,0.7); }
.contact-detail a { color: var(--accent-light); font-weight: 600; }
.contact-detail a:hover { color: #fff; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink-deep); color: var(--paper); padding: 30px 20px 40px; }
.ftr-in {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 15px;
}
.ftr-name { font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px; color: var(--paper); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 22px; }
.ftr-links a { color: rgba(247,246,243,0.7); }
.ftr-links a:hover { color: var(--accent-light); }
.ftr-copy { color: rgba(247,246,243,0.7); }

/* ---------- Refinements ---------- */

/* Sticky-header offset so in-page anchors don't land under the bar. */
.anchor { scroll-margin-top: 72px; }

/* Colour-only transitions. No movement, no scale, nothing that draws attention
   to the interface instead of the words. */
a, .btn, .btn-out, .ulink, .form-submit, .nav-link, .contact-phone {
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
@media (prefers-reduced-motion: reduce) {
  a, .btn, .btn-out, .ulink, .form-submit, .nav-link, .contact-phone { transition: none; }
}

/* Headings hold together better when the last line isn't a single orphan word. */
.h2-col, .h3-phase, .h3-card, .find-label, .tl-label { text-wrap: balance; }

/* Lining, tabular figures so dollar amounts read as data rather than prose. */
.commit-stmt, .find-item b, .contact-phone {
  font-variant-numeric: tabular-nums lining-nums;
}
.find-item b { font-family: Archivo, sans-serif; font-weight: 700; color: var(--ink); }

/* Header: the wordmark, a nav link and a button will not fit on a 360px phone.
   Drop the secondary link and tighten the mark rather than let them collide. */
@media (max-width: 560px) {
  .hdr-in { padding: 11px 16px; gap: 10px; }
  .wordmark { font-size: 16px; gap: 6px; white-space: nowrap; }
  .wordmark span { font-size: 10px; letter-spacing: 0.1em; }
  .nav { gap: 14px; }
  .nav .nav-link { display: none; }
  .btn-sm { font-size: 14px; padding: 9px 13px; }
  .anchor { scroll-margin-top: 60px; }
}

/* Full-width tap targets on phones. A 44px-tall button beside another button
   is a mis-tap; stacked full-width ones are not. */
@media (max-width: 520px) {
  .btn-row { gap: 12px; }
  .btn-lg, .btn-out { width: 100%; text-align: center; }
}

/* Cards were tuned for three-up. Give them more room when they stack. */
@media (max-width: 700px) {
  .hairline-grid > div { padding: 22px 20px; }
  .find-grid { gap: 22px 32px; }
}

/* The thanks page is dark end to end. */
body.dark { background: var(--ink); color: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
body.dark main { flex: 1; }
body.dark .h2-col { color: var(--paper); }

/* Long-form prose on the audit page reads better slightly looser. */
.wrap-prose .body { line-height: 1.6; }

/* Print: someone will hand this to a partner. */
@media print {
  .hdr, .btn, .btn-out, .form-panel { display: none; }
  body { background: #fff; color: #000; }
  .dark-sec, .commit { background: #fff; color: #000; }
  .body-dark, .lede-dark, .lede-hero { color: #000; }
}

/* Below ~420px the "PHOENIX" tag pushes the wordmark into a second line
   and strands itself. The header still says Phoenix in every other way. */
@media (max-width: 420px) {
  .wordmark { font-size: 15px; }
  .wordmark span { display: none; }
}

/* Closing line of the thesis band carries the argument — give it weight. */
.alt-sec .body b { font-family: Archivo, sans-serif; font-weight: 700; color: var(--ink); }

/* ---------- Hero value triptych ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 34px 0 30px;
  border-top: 1px solid rgba(247,246,243,0.16);
  border-bottom: 1px solid rgba(247,246,243,0.16);
}
.triptych > div { padding: 22px 26px 22px 0; }
.triptych > div + div {
  border-left: 1px solid rgba(247,246,243,0.16);
  padding-left: 26px;
}
.tri-stmt {
  margin: 0 0 6px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(21px, 4.6vw, 27px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.tri-note { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(247,246,243,0.62); }
@media (max-width: 620px) {
  .triptych > div { padding: 18px 0; }
  .triptych > div + div { border-left: 0; border-top: 1px solid rgba(247,246,243,0.16); padding-left: 0; }
}

/* ---------- The number ---------- */
.bignum {
  margin: 0 0 6px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 15vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums;
}
.bignum-cap {
  margin: 0 0 20px;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 4.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
.num-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 48px; align-items: start; }

/* ---------- Merged identity section ---------- */
.id-col + .id-col { margin-top: 0; }
.id-lead {
  margin: 0 0 10px;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 4.2vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.for-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 36px; margin-top: 8px; }
.for-item { border-top: 2px solid var(--accent); padding-top: 14px; }
.for-label { margin: 0 0 6px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px; }
