/* Self-hosted fonts (Google Fonts, latin + latin-ext subsets). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Archivo-normal-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Archivo-normal-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-italic-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-italic-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-normal-400-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-normal-400-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-normal-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Tallystone — "precision instrument" system.
   Slate ground, brass accent, the tally-mark motif. Fraunces display,
   Archivo body, IBM Plex Mono for instrument labels. */

:root {
  --slate: #10151d;
  --slate-2: #161d28;
  --slate-3: #1e2734;
  --line: #2b3644;
  --line-bright: #3c4a5c;
  --paper: #f4efe6;
  --ink: #e8eaed;
  --ink-soft: #a4afbd;
  --ink-faint: #6b7686;
  --brass: #cf9d5b;
  --brass-bright: #e8b970;
  --brass-deep: #a97b3d;
  --sky: #7fa8c9;

  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--slate);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* atmospheric brass glow, top-right — the light source */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  right: -20vw;
  width: 80vw;
  height: 90vh;
  background: radial-gradient(
    ellipse at center,
    rgba(207, 157, 91, 0.10),
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

em { font-style: italic; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 21, 29, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 68px;
}
.brand {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .mark {
  width: 20px;
  height: 20px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav-links a { color: var(--ink-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--brass-bright); }
.nav-cta {
  border: 1px solid var(--brass);
  color: var(--brass-bright) !important;
  padding: 8px 16px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--brass); color: var(--slate) !important; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  width: 40px;
  height: 36px;
  border-radius: 3px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--slate);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  background: var(--brass-bright);
  box-shadow: 0 8px 30px rgba(207, 157, 91, 0.28);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--brass-bright);
}
.btn.ghost:hover {
  background: rgba(207, 157, 91, 0.08);
  box-shadow: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 118px 0 96px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* the tallystone: a blade casting a long diagonal shadow across the hero */
.hero .dial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  max-width: 15ch;
  margin: 20px 0 26px;
}
.hero h1 em { color: var(--brass-bright); }
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-aside {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--slate-2), var(--slate));
  border-radius: 6px;
  padding: 28px;
}
.hero-aside .label { margin-bottom: 16px; display: block; }
.dial-readout {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 2.1;
}
.dial-readout .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 3px 0;
}
.dial-readout .row:last-child { border-bottom: none; }
.dial-readout b { color: var(--brass-bright); font-weight: 500; }
.dial-readout .ok { color: var(--sky); }
.dial-readout .flag { color: var(--brass-bright); }

/* reveal on load */
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */

section { position: relative; z-index: 1; }

.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.band.tight { padding: 64px 0; }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .label { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.step {
  background: var(--slate-2);
  padding: 34px 28px 40px;
}
.step .n {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.step h3 { font-size: 23px; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* offerings */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  background: var(--slate-2);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.card .tagrow { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  color: var(--ink-soft);
}
.pill.live { color: var(--brass-bright); border-color: var(--brass-deep); }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.card a.more {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brass-bright);
  letter-spacing: 0.04em;
}
.card a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* feature list with hairline rules */
.rows { border-top: 1px solid var(--line); }
.rows .r {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.rows .r h3 { font-size: 21px; }
.rows .r p { color: var(--ink-soft); }
@media (max-width: 720px) {
  .rows .r { grid-template-columns: 1fr; gap: 8px; }
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { background: var(--slate); padding: 40px 26px; }
.stat b {
  font-family: var(--display);
  font-size: 46px;
  color: var(--brass-bright);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat span { color: var(--ink-soft); font-size: 14px; }

/* CTA band */
.cta-band {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(207,157,91,0.12), transparent 60%),
    var(--slate);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.cta-band p { color: var(--ink-soft); font-size: 18px; max-width: 52ch; margin: 0 auto 30px; }

/* prose pages */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.prose .lede { color: var(--ink-soft); font-size: 19px; margin-bottom: 40px; }
.prose h2 { font-size: 27px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 3px; }
/* A .btn inside .prose was being styled as a prose link: (0,1,1) beats the
   (0,1,0) of .btn, so buttons rendered brass-on-brass and underlined -
   contrast 1.35, effectively invisible. Restate the button styling at equal
   specificity so it wins on source order. */
.prose a.btn { color: var(--slate); text-decoration: none; }
.prose a.btn.ghost { color: var(--brass-bright); }

/* form */
.form { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--slate-2);
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(207, 157, 91, 0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

/* footer */
.footer {
  padding: 60px 0 48px;
  color: var(--ink-faint);
  font-size: 14px;
}
.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.footer .brand { color: var(--ink); margin-bottom: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-weight: 400;
}
.footer-col a { display: block; color: var(--ink-faint); margin-bottom: 7px; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--slate-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .wrap { padding: 0 22px; }
}
