/* ============================================================
   HansonCore, LLC — Global Styles
   Aesthetic: Elevated dark advisory. Same canvas + single green as
   Five Acre Code (the studio arm), dialed up for the senior parent:
   more air, quieter type, no studio ornament. One green accent, one
   mint data tone for measured results.
   Type: Inter Tight (headings) + Inter (body) + JetBrains Mono (labels)
   Fonts load via <link> in layouts/base.njk.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces — shared near-black canvas with the Five Acre family */
  --ink:          #0F0F0F;
  --ink-soft:     #141614;
  --ink-mid:      #1B1E1B;
  --rule:         #2A2D2A;
  --ghost:        rgba(255, 255, 255, 0.04);
  --ghost-bd:     rgba(255, 255, 255, 0.08);

  /* Text — cream, matches the family */
  --paper:        #F5F6F3;
  --paper-mid:    #B8BCB6;
  --paper-dim:    #6E726D;

  /* Brand green — ONE green, identical to Five Acre Code */
  --accent:       #2E7D5B;
  --accent-hover: #3A9A6F;
  --accent-soft:  rgba(46, 125, 91, 0.12);

  /* Data mint — reserved for measured results: numbers, outcomes */
  --data:         #8FCFAE;

  /* Type */
  --ff-head:      'Inter Tight', 'Inter', system-ui, sans-serif;
  --ff-body:      'Inter', system-ui, sans-serif;
  --ff-mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:          1160px;
  --gutter:       clamp(20px, 5vw, 64px);
  --radius:       3px;
}

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

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { color: var(--paper-mid); max-width: 64ch; }

em { font-style: italic; color: var(--accent); }

.label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.data-value {
  color: var(--data);
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
}

/* ── Layout ─────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 12px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  padding: 0 var(--gutter);
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}

.brand-lockup img { height: 26px; width: 26px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.site-nav a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--paper); }

.site-nav .nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible { background: var(--accent-hover); color: var(--ink); }

@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.9rem;
  padding: 0 1.5rem;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--ghost-bd);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: rgba(255, 255, 255, 0.25); background: var(--ghost); }

/* ── Section rhythm ──────────────────────────────────────── */

main { display: block; }

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--rule);
}

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .label { display: inline-block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }

.eyebrow { /* legacy alias → label */
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 13vw, 168px) 0 clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--rule);
}

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero .label { display: inline-block; margin-bottom: 26px; }

.hero h1 {
  max-width: 18ch;
  margin-bottom: 28px;
  line-height: 1.02;
}

.hero .lede {
  max-width: 58ch;
  margin-bottom: 40px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--paper-mid);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn { min-width: 210px; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 76px);
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 6px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--ink);
}

.hero-proof strong {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.01em;
  color: var(--data);
}

.hero-proof span {
  color: var(--paper-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .hero-proof { grid-template-columns: 1fr; }
}

/* ── Hairline card grid (shared family device) ───────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
}

.card {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--ink);
}

.card .label { display: block; margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--paper-mid); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: gap 0.2s ease, color 0.2s ease;
}
.card-link:hover { gap: 11px; color: var(--accent-hover); }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

/* ── Outcomes (measured results, mint data) ──────────────── */

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  list-style: none;
}

.outcome {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--ink);
}

.outcome-stat {
  font-family: var(--ff-mono);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: 0.01em;
  color: var(--data);
}

.outcome p { font-size: 15px; color: var(--paper-mid); margin: 0; }

@media (max-width: 900px) {
  .outcomes { grid-template-columns: 1fr; }
}

/* ── Split (background) ──────────────────────────────────── */

.section-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-lead .label { display: inline-block; margin-bottom: 16px; }
.split-lead h2 { margin-bottom: 18px; }
.split-lead p { margin-bottom: 28px; }
.split-lead a.inline-link { color: var(--accent); }
.split-lead a.inline-link:hover { color: var(--accent-hover); }

.timeline { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); list-style: none; }

.timeline li {
  padding: clamp(22px, 3vw, 30px);
  background: var(--ink);
  border-left: 2px solid var(--accent);
}

.timeline-tag {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
}

.timeline p { margin: 0; font-size: 15px; color: var(--paper-mid); }

@media (max-width: 820px) {
  .section-split { grid-template-columns: 1fr; }
}

/* ── Relationship / spec band ────────────────────────────── */

.relation p { margin-bottom: 28px; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.spec-row:first-of-type { border-top: 1px solid var(--rule); }

.spec-label {
  flex-shrink: 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}

.spec-value {
  text-align: right;
  font-family: var(--ff-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--data);
}

/* ── CTA / Contact ───────────────────────────────────────── */

.cta { padding: clamp(64px, 9vw, 120px) 0; }

.cta-head { max-width: 56ch; margin-bottom: clamp(32px, 5vw, 48px); }
.cta-head .label { display: inline-block; margin-bottom: 16px; }
.cta-head h2 { margin-bottom: 18px; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
  max-width: 760px;
}

.field { display: grid; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-mid);
}

.field .optional { color: var(--paper-dim); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  font: inherit;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea { resize: vertical; min-height: 8.5rem; }

.field select {
  appearance: none;
  padding-right: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: right 1rem center, right 0.75rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option { color: var(--paper); background: var(--ink-mid); }

.field input::placeholder,
.field textarea::placeholder { color: var(--paper-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-mid);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .cf-turnstile { grid-column: 1 / -1; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status { margin: 0; font-size: 0.95rem; color: var(--paper-mid); }
.form-status.is-error { color: #F0A08A; }
.form-status.is-success { color: var(--data); }

.cta-fallback {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--paper-dim);
}
.cta-fallback a { color: var(--accent); font-weight: 500; }
.cta-fallback a:hover { color: var(--accent-hover); }

@media (max-width: 620px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.25rem;
  font-size: 0.9rem;
}

.footer-brand {
  display: block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-meta { color: var(--paper-dim); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-mid);
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link { transition: none; }
}
