/* =========================================================
   andreweasyandereson.com — shared stylesheet
   Andrew "Easy" Anderson — I build the complete digital machine

   Rules enforced (non-negotiable):
   - Greens (#005F35, #00B96B) and blues (#0B1F3A, #1A5E99) only
   - NO italics anywhere
   - Minimum 18px font size everywhere — no exceptions
   - WCAG 2.2 AA: 4.5:1 normal text, 3:1 large text / UI / graphics
   - Mobile first, responsive
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Blues */
  --navy:        #0B1F3A;  /* primary text / dark sections — on white: 16.5:1 */
  --blue:        #1A5E99;  /* links, buttons               — on white:  5.6:1 */
  --blue-mid:    #155080;  /* hover darken                 — on white:  7.4:1 */
  --blue-light:  #D6E8F7;  /* tint surface */
  --blue-xlight: #EDF4FB;  /* alt bg */

  /* Greens */
  --green-dark:  #005F35;  /* text accents, eyebrows       — on white:  9.9:1 */
  --green:       #00B96B;  /* large/decorative only        — on white:  2.3:1 */
  --green-light: #D0F2E3;  /* tint surface */
  --green-xlight:#E8F8F1;  /* alt bg */

  /* Neutrals */
  --ink:    #0B1F3A;       /* = navy, primary body text */
  --slate:  #34485A;       /* body copy on white           — on white:  9.0:1 */
  --mid:    #54677A;       /* captions / meta on white     — on white:  5.6:1 */
  --line:   #CBD8E2;
  --bg:     #FFFFFF;
  --bg-alt: #F3F7FA;
  --white:  #FFFFFF;

  /* On-dark text */
  --on-dark:     #EDF4FB;  /* on navy                      — on #0B1F3A: 15.2:1 */
  --on-dark-mid: #A9C6E0;  /* muted on navy                — on #0B1F3A:  8.0:1 */

  --max:    1140px;
  --radius: 16px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "DM Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;            /* hard minimum */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* No italics anywhere */
em, i, cite, address, var, dfn, blockquote, q { font-style: normal; }

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

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--blue-mid); }

::selection { background: var(--green-light); color: var(--navy); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }
.section--flush { border-top: 0; }

.section-eyebrow,
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5em;
}

.section-lede {
  font-size: 1.25rem;        /* 20px */
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.prose p {
  color: var(--slate);
  font-size: 1.175rem;       /* 18.8px */
  margin-bottom: 1.2rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  padding: 14px 22px;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name .nickname { color: var(--green-dark); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--navy); }

.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.18s var(--ease) !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 30px;          /* target size well above 24px */
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}
.btn-lg { padding: 19px 38px; font-size: 19px; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgba(26, 94, 153, 0.7);
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(26, 94, 153, 0.8);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--blue-xlight);
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}

/* ---------- Generic hero (interior + legacy) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 112px;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(0, 185, 107, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(26, 94, 153, 0.09), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.45em;
}
.hero-title .accent { color: var(--green-dark); }

.hero-lede {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }

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

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero .eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-dark);
  flex-shrink: 0;
}

/* ---------- Two-column grid ---------- */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -22px rgba(11, 31, 58, 0.35);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p { color: var(--slate); margin: 0; font-size: 18px; }

/* ---------- Numbered services ---------- */
.services { margin-top: 12px; }
.service {
  display: flex;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 52px;
  padding-top: 2px;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.service p { color: var(--slate); margin: 0; font-size: 18px; max-width: 60ch; }

/* ---------- FAQ accordions ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 0 24px;
  transition: border-left-color 0.2s var(--ease);
}
.faq details[open] { border-left-color: var(--green-dark); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-dark);
  transition: transform 0.22s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--slate);
  font-size: 18px;
  max-width: 64ch;
  margin-bottom: 22px;
  padding-bottom: 4px;
}

/* ---------- CTA banner ---------- */
.section-cta {
  /* darker green endpoint keeps muted lede text >= 4.5:1 across the whole gradient */
  background: linear-gradient(140deg, var(--navy) 0%, #0d3360 55%, #004A29 100%);
  text-align: center;
  border-top: 0;
}
.section-cta .section-title { color: var(--white); }
.section-cta .section-lede  { color: var(--on-dark-mid); margin-inline: auto; }
.cta-inner { max-width: 720px; margin-inline: auto; }

.section-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
.section-cta .btn-primary:hover {
  background: var(--blue-xlight);
  color: var(--blue-mid);
}
.section-cta .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.section-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

/* ==========================================================
   HOME PAGE
   ========================================================== */

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 92px;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 185, 107, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(26, 94, 153, 0.24), transparent 55%),
    var(--navy);
}
.home-hero .eyebrow { color: var(--green); }   /* #00B96B — 6.4:1 on navy */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);  /* sized for the longer headline */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);                 /* 16.5:1 on navy */
  margin-bottom: 0.55em;
  text-wrap: balance;
}
.home-hero-title .accent { color: var(--green); }   /* #00B96B — 6.4:1 on navy */
.home-hero-lede {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);   /* min 19.2px */
  color: var(--on-dark);               /* off-white, ~15:1 on navy */
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.home-hero-lede strong { color: var(--white); font-weight: 700; }

/* CTA buttons on the dark hero */
.home-hero .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.55);
}
.home-hero .btn-primary:hover {
  background: var(--blue-xlight);
  color: var(--blue-mid);
}
.home-hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.home-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- What I Build — machine components ---------- */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 16px;
}
.machine-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.machine-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 20px 44px -22px rgba(11, 31, 58, 0.35);
}
.machine-card--wide { grid-column: 1 / -1; }
.machine-card--wide .machine-name,
.machine-card--wide .machine-desc,
.machine-card--wide .machine-proof { max-width: 62ch; }

/* large faded number watermark — decorative */
.machine-num {
  position: absolute;
  top: -14px;
  right: 10px;
  font-family: var(--font-display);
  font-size: clamp(86px, 11vw, 124px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 95, 53, 0.09);
  pointer-events: none;
  z-index: 0;
}
/* keep real content above the watermark */
.machine-card > :not(.machine-num) { position: relative; z-index: 1; }

.machine-kicker {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);          /* #005F35 — 9.9:1 on white */
  margin-bottom: 12px;
}
.machine-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}
.machine-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 18px;
}
.machine-proof {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);                /* navy on green tint — ~15:1 */
  background: var(--green-xlight);
  border-left: 3px solid var(--green-dark);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
}

/* Portrait */
.hero-portrait { position: relative; justify-self: center; max-width: 420px; width: 100%; }
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;                /* natural ratio — full photo, never stretched or cropped */
  box-shadow: 0 26px 55px -18px rgba(0, 0, 0, 0.7);  /* soft lift off the navy */
}

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy); border-top: 0; }
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding-block: 44px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green);          /* large text on navy — passes 3:1 */
  margin-bottom: 8px;
}
.stat-label {
  font-size: 18px;
  line-height: 1.35;
  color: var(--on-dark-mid);
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pullquote {
  position: relative;
  margin: 32px 0;
  padding: 28px 30px;
  background: var(--blue-xlight);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}

/* Timeline — single vertical line with dots; year labels the entry */
.timeline { display: grid; gap: 0; margin-left: 7px; padding-left: 0; list-style: none; }
.timeline-item {
  position: relative;
  padding: 0 0 30px 34px;
  border-left: 2px solid var(--line);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-dark);   /* 9.9:1 on white — safe graphic */
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-dark);
}
.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 18px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Credentials grid ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.cred-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.cred-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--green-light);
  flex-shrink: 0;
}
.cred-check svg { width: 22px; height: 22px; color: var(--green-dark); }
.cred-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cred-item p { font-size: 18px; color: var(--slate); margin: 0; line-height: 1.55; }

/* ---------- Product / property cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 20px 44px -22px rgba(11, 31, 58, 0.35);
}
.product-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.product-card p { font-size: 18px; color: var(--slate); margin: 0 0 18px; line-height: 1.6; }
.product-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.product-link:hover { color: var(--blue-mid); text-decoration: underline; }
.product-link svg { width: 17px; height: 17px; }

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 12px;
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
}
.book-card.book-card--wide { grid-column: 1 / -1; }
.book-eyebrow {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.book-card p { font-size: 18px; color: var(--slate); margin: 0; line-height: 1.6; }
.book-card .btn { align-self: flex-start; margin-top: 4px; }

.guide-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 0;
  margin: 4px 0;
}
.guide-list li {
  position: relative;
  padding-left: 24px;
  font-size: 18px;
  color: var(--slate);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-dark);
}

/* ==========================================================
   INTERIOR PAGES
   ========================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  padding: 84px 0 60px;
  background:
    radial-gradient(ellipse 65% 90% at 88% 0%, rgba(0, 185, 107, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(26, 94, 153, 0.08), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 0.4em;
  max-width: 22ch;
}
.page-hero p {
  font-size: 1.25rem;
  color: var(--slate);
  max-width: 60ch;
}

/* ---------- Long-form / legal article ---------- */
.article { max-width: 72ch; margin-inline: auto; }
.article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-top: 2.2em;
  margin-bottom: 0.45em;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.article p,
.article li {
  font-size: 1.175rem;       /* 18.8px */
  color: var(--slate);
  line-height: 1.8;
}
.article p { margin-bottom: 1.2rem; }
.article ul,
.article ol { padding-left: 1.5em; margin-bottom: 1.4rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: var(--ink); font-weight: 700; }
.article a { color: var(--blue); }
.article blockquote {
  border-left: 4px solid var(--green-dark);
  margin: 1.8rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Article meta ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 18px;
  color: var(--mid);
  margin-bottom: 0.6em;
}
.post-meta .pill {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 5px 15px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Blog listing ---------- */
.post-list { display: grid; gap: 18px; }
.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-left-color 0.2s var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--green-dark);
  box-shadow: 0 16px 40px -22px rgba(11, 31, 58, 0.35);
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}
.post-card p { color: var(--slate); font-size: 18px; margin: 0; }
.post-card .read-more {
  display: inline-block;
  margin-top: 0.8em;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.post-card .read-more:hover { text-decoration: underline; }

/* ---------- Five Pillars ---------- */
.pillars { display: grid; gap: 16px; counter-reset: pillar; margin-top: 12px; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.pillar-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.pillar p { color: var(--slate); font-size: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.field .req { color: var(--green-dark); }
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.18s var(--ease);
  appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--blue); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-note { font-size: 18px; color: var(--mid); }

.contact-info {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1em;
}
.contact-info dl { display: grid; gap: 20px; }
.contact-info dt {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 2px;
}
.contact-info dd { margin: 0; font-size: 18px; color: var(--ink); }
.contact-info dd a { color: var(--blue); }

/* ---------- Back link ---------- */
.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 1.4em;
}
.back-link:hover { text-decoration: underline; }

/* ==========================================================
   FOOTER
   ========================================================== */

/* Compact footer (interior pages) */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-mid);
  padding: 44px 0;
  font-size: 18px;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--white); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav a { text-decoration: none; font-size: 18px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-tag {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);          /* large-ish bold decorative label on navy */
}

/* Rich footer (home page) */
.footer-rich { padding: 64px 0 40px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 18px; line-height: 1.6; margin-bottom: 8px; }
.footer-brand a { text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; padding: 0; }
.footer-col a { font-size: 18px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(169, 198, 224, 0.22);
  font-size: 18px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
}

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { order: -1; max-width: 340px; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .machine-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid-two { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .pillar { grid-template-columns: 1fr; gap: 12px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .home-hero { padding: 72px 0 64px; }
}

@media (max-width: 680px) {
  /* Keep the Contact CTA reachable; full nav lives in the footer on mobile */
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .hero { padding: 92px 0 80px; }
  .page-hero { padding: 64px 0 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .timeline-item { grid-template-columns: 72px 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .service { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
