/* ==========================================================================
   Andrew Sweet — Site Stylesheet
   Direction: B (The Operator)
   Palette: Navy / Cream / Electric Blue / Slate
   Typography: Playfair Display (display) · Inter (body) · IBM Plex Mono (numerals/labels)

   Sizing convention:
   - rem for font-size (respects user's browser-default font-size preference)
   - px for layout (padding, margin, gap, border) — predictable structure
   - 1rem = 16px at default; 1.0625rem = 17px (body base)
   ========================================================================== */

:root {
  --navy: #0A1628;
  --navy-soft: #142339;
  --cream: #F8F6F1;
  --signal: #2563EB;
  --signal-deep: #1d4ed8;
  --slate: #94A3B8;
  --slate-deep: #475569;
  --rule-dark: rgba(248, 246, 241, 0.14);
  --rule-light: #E5E1D6;

  --container: 1320px;
  --gutter: 48px;
  --gutter-sm: 24px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* offset for fixed nav */
}

body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: inter-variable, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; /* 17px at default */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Skip link for keyboard / screen reader users */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--signal);
  color: var(--cream);
  padding: 12px 20px;
  font-family: ibm-plex-mono, monospace;
  font-size: 0.8125rem; /* 13px */
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s;
}
.skip-to-content:focus {
  top: 16px;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Nav (sticky, fixed)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.3125rem; /* 21px */
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
}
.nav-anchors ul {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}
.nav-anchors a {
  color: var(--slate);
  text-decoration: none;
  font-size: 1rem; /* 13px */
  font-weight: 400;
  transition: color 0.15s;
}
.nav-anchors a:hover,
.nav-anchors a.is-active {
  color: var(--cream);
}
.nav-cta {
  font-size: 0.8125rem; /* 13px */
  padding: 10px 18px;
  border: 1px solid var(--cream);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--cream);
  color: var(--navy);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.dark-band {
  background: var(--navy);
  color: var(--cream);
}
.light-band {
  background: var(--cream);
  color: var(--navy);
}

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

.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

.section-label {
  font-family: ibm-plex-mono, monospace;
  font-size: 1 rem; /* 14px — bumped from 12px */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0;
  padding-top: 8px;
}
.section-label-dark {
  color: var(--signal);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  font-family: inter-variable, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--signal);
  color: var(--cream);
  border: 1px solid var(--signal);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--rule-dark);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--cream);
}

.btn-large {
  padding: 18px 32px;
  font-size: 0.9375rem; /* 15px */
}
.btn-arrow {
  transition: transform 0.15s;
}
.btn-primary:hover .btn-arrow,
.btn-primary:focus-visible .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 96px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: ibm-plex-mono, monospace;
  font-size: 1.375rem; /* 14px — bumped from 12px */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 36px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5.5rem); /* 40px → 88px */
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 1100px;
  color: var(--cream);
}
.hero-headline em {
  font-style: italic;
  color: var(--signal);
  font-weight: 500;
}
.hero-sub {
  font-size: 1.1875rem; /* 19px */
  line-height: 1.55;
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 40px;
}
.hero-meta {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.875rem; /* 14px — bumped from 12px */
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  max-width: 640px;
  margin: 0 0 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Approach (What I Do)
   ========================================================================== */

.approach {
  padding: 120px var(--gutter);
}
.approach .band-inner.two-col {
  padding: 0;
}
.approach-statement {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.875rem); /* 28px → 46px */
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  max-width: 980px;
  color: var(--navy);
}
.approach-statement em {
  font-style: italic;
  color: var(--signal);
}
.approach-para {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: var(--slate-deep);
  max-width: 720px;
  margin: 0;
}

/* ==========================================================================
   Pillars
   ========================================================================== */

.pillars {
  padding: 0 var(--gutter) 120px;
}
.pillars .band-inner {
  padding: 0;
  max-width: var(--container);
  margin: 0 auto;
}
.pillars-header {
  margin-bottom: 64px;
  padding-top: 80px;
  border-top: 1px solid var(--rule-light);
}
.pillars-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem); /* 32px → 44px */
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 720px;
  color: var(--navy);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.pillar {
  padding: 40px 32px;
  border-top: 1px solid var(--rule-light);
  border-left: 1px solid var(--rule-light);
  display: flex;
  flex-direction: column;
}
.pillar:nth-child(2n) {
  border-right: 1px solid var(--rule-light);
}
.pillar:nth-child(n+3) {
  border-bottom: 1px solid var(--rule-light);
}
.pillar-num {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.875rem; /* 14px — bumped from 12px */
  color: var(--signal);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.pillar-label {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.93rem; /* 13px — bumped from 11px */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-deep);
  margin: 0 0 16px;
}
.pillar-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.6875rem; /* 27px */
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--navy);
}
.pillar-body {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.65;
  color: var(--slate-deep);
  margin: 0 0 28px;
}
.pillar-proof {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.9375rem; /* 15px — bumped from 13px */
  color: var(--navy);
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: auto 0 0;
  min-height: calc(20px + 4 * 1.7em + 1px);
}

/* ==========================================================================
   Evidence
   ========================================================================== */

.evidence {
  padding: 120px var(--gutter);
}
.evidence .band-inner {
  padding: 0;
  max-width: var(--container);
  margin: 0 auto;
}
.evidence-intro {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.625rem, 3.5vw, 2.375rem); /* 26px → 38px */
  line-height: 1.25;
  font-weight: 400;
  max-width: 920px;
  margin: 32px 0 96px;
  color: var(--cream);
}
.megastat-wrap {
  padding: 64px 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.megastat {
  font-family: ibm-plex-mono, monospace;
  font-size: clamp(3rem, 10vw, 8rem); /* 48px → 128px */
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
}
.megastat em {
  color: var(--signal);
  font-style: normal;
  padding: 0 12px;
}
.megastat-context {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.9375rem; /* 15px — bumped from 13px */
  color: var(--slate);
  margin: 32px 0 0;
  max-width: 720px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 64px;
}
.stat {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.stat:nth-child(even) {
  border-right: none;
  padding-left: 32px;
  padding-right: 0;
}
.stat:nth-child(n+3) {
  border-bottom: none;
  padding-top: 40px;
}
.stat-value {
  font-family: ibm-plex-mono, monospace;
  font-size: clamp(2rem, 4vw, 3rem); /* 32px → 48px */
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--cream);
}
.stat-value-sub {
  font-size: 0.7em;
  color: var(--signal);
}
.stat-context {
  font-size: 0.9375rem; /* 15px — bumped from 13px */
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Trusted to Build For
   ========================================================================== */

.trusted {
  padding: 0 var(--gutter) 120px;
}
.trusted-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 0 0;
  border-top: 1px solid var(--rule-dark);
}
.trusted-intro {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; /* 28px */
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin: 32px 0 40px;
}
.trusted-list {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 2;
  color: var(--cream);
  margin: 0;
  max-width: 1180px;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.trusted-list em {
  color: var(--slate);
  font-style: italic;
  font-weight: 300;
}

/* ==========================================================================
   Career
   ========================================================================== */

.career {
  padding: 120px var(--gutter);
}
.career .band-inner.two-col {
  padding: 0;
}
.career-list {
  width: 100%;
}
.career-row {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-light);
}
.career-row:first-child {
  padding-top: 0;
}
.career-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.career-role {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem); /* 22px → 28px */
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--navy);
}
.career-role strong {
  font-weight: 600;
}
.career-acquirer {
  color: var(--slate-deep);
  font-weight: 400;
  font-size: 0.85em;
}
.career-stage {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.875rem; /* 14px — bumped from 12px */
  letter-spacing: 0.04em;
  color: var(--slate-deep);
  margin: 0 0 18px;
}
.career-body {
  font-size: 1rem; /* 16px */
  line-height: 1.7;
  color: var(--slate-deep);
  margin: 0;
  max-width: 880px;
}
.career-body strong {
  color: var(--navy);
  font-weight: 500;
}

/* FICO highlight — inline editorial sub-callout (Option A) */
.fico-highlight {
  margin: 28px 0 0;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--signal);
  max-width: 900px;
  font-style: italic;
}
.fico-highlight-label {
  font-family: ibm-plex-mono, monospace;
  font-style: normal;
  font-size: 0.8125rem; /* 13px — bumped from 11px */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 12px;
}
.fico-highlight-body {
  font-size: 1rem; /* 16px */
  line-height: 1.7;
  color: var(--slate-deep);
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 120px var(--gutter);
  border-top: 1px solid var(--rule-light);
}
.about .band-inner.two-col {
  padding: 0;
}
.about-body {
  max-width: 820px;
}
.about-body p {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
  color: var(--slate-deep);
  margin: 0 0 24px;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-lead {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.375rem, 2.5vw, 1.625rem) !important; /* 22px → 26px */
  line-height: 1.4 !important;
  font-weight: 400;
  color: var(--navy) !important;
  margin: 0 0 32px !important;
}
.about-body strong {
  color: var(--navy);
  font-weight: 500;
}
.about-location {
  font-family: ibm-plex-mono, monospace;
  font-size: 0.9375rem !important; /* 15px — bumped from 13px */
  letter-spacing: 0.04em;
  color: var(--slate-deep) !important;
  margin: 32px 0 0 !important;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
}

/* ==========================================================================
   Contact (Let's Talk)
   ========================================================================== */

.contact {
  padding: 120px var(--gutter);
}
.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}
.contact .section-label-dark {
  display: block;
  margin: 0 0 32px;
  padding-top: 0;
}
.contact-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem); /* 28px → 44px */
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--cream);
}
.contact-sub {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--slate);
  margin: 0 0 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.contact-cta-copy {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem; /* 22px */
  line-height: 1.4;
  color: var(--cream);
  margin: 0 0 40px;
}
.contact-cta-copy em {
  font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--rule-dark);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ibm-plex-mono, monospace;
  font-size: 0.9375rem; /* 15px — bumped from 13px */
  color: var(--slate);
  gap: 16px;
}
.footer-left {
  margin: 0;
}
.footer-link {
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--signal);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 160px 1fr;
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  /* Nav: hide mid links, keep brand and CTA */
  .nav-anchors {
    display: none;
  }
  .nav-inner {
    padding: 14px var(--gutter-sm);
  }

  /* Layout: collapse two-col to single */
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero */
  .hero {
    padding: 110px var(--gutter-sm) 72px;
    min-height: auto;
  }
  .hero-headline { font-size: 2.5rem; /* 40px */ }
  .hero-sub { font-size: 1.0625rem; /* 17px */ }

  /* Approach / About / Career sections */
  .approach,
  .pillars,
  .evidence,
  .trusted,
  .career,
  .about,
  .contact {
    padding-left: var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }
  .approach,
  .evidence,
  .career,
  .about,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* Pillars stack */
  .pillars {
    padding-bottom: 72px;
  }
  .pillars-header {
    padding-top: 56px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar,
  .pillar:nth-child(2n),
  .pillar:nth-child(n+3) {
    border: 1px solid var(--rule-light);
    border-bottom: none;
  }
  .pillar:last-child {
    border-bottom: 1px solid var(--rule-light);
  }

  /* Evidence stats stack */
  .megastat {
    font-size: 3.5rem; /* 56px */
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat,
  .stat:nth-child(even),
  .stat:nth-child(n+3) {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-dark);
    padding-left: 0;
    padding-right: 0;
  }
  .stat:last-child {
    border-bottom: none;
  }

  /* Trusted */
  .trusted-inner {
    padding-top: 72px;
  }
  .trusted-intro {
    font-size: 1.375rem; /* 22px */
  }
  .trusted-list {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.9;
  }

  /* Career */
  .career-row {
    padding: 28px 0;
  }
  .fico-highlight {
    padding-left: 20px;
    margin-top: 24px;
  }

  /* About */
  .about-body p {
    font-size: 1rem; /* 16px */
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Reduced motion — disable smooth scroll for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* Print — hide nav/footer, simplify */
@media print {
  .nav,
  .footer,
  .skip-to-content,
  .hero-cta,
  .nav-cta,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .dark-band {
    background: white !important;
    color: black !important;
  }
}
