@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
/* =========================================================
   Lantern & Vine — styles.css (Design System v4: Carbon-aligned)
   Goals:
   - Carbon-like semantic tokens + theming structure
   - Productive typography baseline (14px), expressive only when opted-in
   - Layer model (01/02/03) for consistent depth
   - Predictable spacing and component sizing (32/40/48 controls)
   - Clear interaction states (hover/active/disabled) and a11y focus
   ========================================================= */

/* -------------------------
   0) Reset / Base
------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

/* Skip link (keyboard users) */
.skip-link {
  position: absolute;
  left: var(--space-04);
  top: var(--space-04);
  padding: 0.6rem 0.9rem;
  background: var(--layer-01);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-02);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-140%);
  transition: transform var(--transition);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  box-shadow: var(--focus-ring);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
}

/* -------------------------
   1) Brand Tokens (raw palette)
   Keep raw brand colours here. Components use semantic tokens.
------------------------- */
:root {
  /* Brand colours (from logo) */
  --lv-green: #0f513d;
  --lv-green-dark: #0b3f30;
  --lv-green-light: #1b6b53;

  --lv-gold: #c6922e;
  --lv-gold-dark: #a97820;
  --lv-gold-light: #e0b252;

  /* Neutrals (Lantern parchment) */
  --lv-parchment: #f7f4ed;
  --lv-surface: #ffffff;
  --lv-surface-soft: #f1eee6;

  /* Text neutrals */
  --lv-text: #1a1a1a;
  --lv-text-muted: #5c5c5c;

  /* Typography families */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

/* -------------------------
   2) Semantic Tokens (Carbon-ish)
   Components should use these tokens, not raw hex.
------------------------- */
:root {
  /* Background & layers */
  --background: var(--lv-parchment);
  --layer-01: var(--lv-surface);
  --layer-02: var(--lv-surface-soft);
  --layer-03: #ebe7dd; /* optional lifted layer */

  /* Text */
  --text-primary: var(--lv-text);
  --text-secondary: var(--lv-text-muted);

  /* Borders / dividers */
  --border-subtle: rgba(15, 81, 61, 0.20);
  --border-strong: rgba(15, 81, 61, 0.28);
  --divider: rgba(15, 81, 61, 0.16);

  /* Interactive */
  --interactive: var(--lv-green);
  --interactive-hover: var(--lv-green-dark);
  --interactive-active: #083427;
  --interactive-text: #ffffff;

  /* Accent */
  --accent: var(--lv-gold);
  --accent-strong: var(--lv-gold-dark);

  /* Subtle UI states */
  --hover-ui: rgba(15, 81, 61, 0.06);
  --active-ui: rgba(15, 81, 61, 0.10);

  /* Disabled */
  --disabled-bg: rgba(26, 26, 26, 0.06);
  --disabled-border: rgba(26, 26, 26, 0.12);
  --disabled-text: rgba(26, 26, 26, 0.45);

  /* Danger / validation */
  --danger: #b42318;
  --danger-bg: rgba(180, 35, 24, 0.08);
  --danger-border: rgba(180, 35, 24, 0.30);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(15, 81, 61, 0.22),
    0 0 0 1px rgba(198, 146, 46, 0.35);

  /* Shadows (minimal) */
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Motion */
  --transition: 140ms cubic-bezier(0.2, 0, 0.2, 1);

  /* Radii */
  --radius-01: 2px;
  --radius-02: 4px;
  --radius-03: 8px;

  /* Control sizing (2x-grid-ish: 32/40/48) */
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;

  /* Layout */
  --container: 70rem; /* 1120px */
  --gutter: 1rem;

  /* Spacing tokens */
  --space-01: 0.25rem; /* 4 */
  --space-02: 0.5rem;  /* 8 */
  --space-03: 0.75rem; /* 12 */
  --space-04: 1rem;    /* 16 */
  --space-05: 1.5rem;  /* 24 */
  --space-06: 2rem;    /* 32 */
  --space-07: 3rem;    /* 48 */
  --space-08: 4rem;    /* 64 */

  /* Type scale (productive base = 14px) */
  --fs-01: 0.8125rem; /* 13 */
  --fs-02: 0.875rem;  /* 14 */
  --fs-03: 1rem;      /* 16 */
  --fs-04: 1.25rem;   /* 20 */
  --fs-05: 1.5rem;    /* 24 */
  --fs-06: 2rem;      /* 32 */
  --fs-07: 2.5rem;    /* 40 */

  --lh-tight: 1.2;
  --lh-normal: 1.55;
}

/* Dark theme (enable by adding data-theme="dark" on <html>) */
:root[data-theme="dark"] {
  --background: #0e0e0e;
  --layer-01: #141414;
  --layer-02: #101010;
  --layer-03: #1b1b1b;

  --text-primary: #f2f2f2;
  --text-secondary: #b7b7b7;

  --border-subtle: rgba(247, 244, 237, 0.14);
  --border-strong: rgba(247, 244, 237, 0.18);
  --divider: rgba(247, 244, 237, 0.12);

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4);

  --interactive: var(--lv-green-light);
  --interactive-hover: var(--lv-green);
  --interactive-active: var(--lv-green-dark);

  --disabled-bg: rgba(242, 242, 242, 0.08);
  --disabled-border: rgba(242, 242, 242, 0.14);
  --disabled-text: rgba(242, 242, 242, 0.45);

  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.10);
  --danger-border: rgba(255, 107, 107, 0.35);
}

/* -------------------------
   3) Base Typography (Productive default)
------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-02); /* 14px */
  line-height: var(--lh-normal);
  background: var(--background);
  color: var(--text-primary);
  letter-spacing: 0;
}

p {
  margin: 0 0 var(--space-04);
}

small,
.small {
  font-size: var(--fs-01);
}

.muted {
  color: var(--text-secondary);
}

.serif {
  font-family: var(--font-serif);
}

/* Headings (disciplined): now default to serif */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-03);
  line-height: var(--lh-tight);
  letter-spacing: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 600;
}

/* Productive heading sizes */
h1 { font-size: var(--fs-06); font-weight: 700; } /* 32 */
h2 { font-size: var(--fs-05); } /* 24 */
h3 { font-size: var(--fs-04); } /* 20 */
h4 { font-size: var(--fs-03); } /* 16 */

/* Branded heading contexts (opt-in) */
.branded h1,
.branded h2,
.branded h3,
.branded h4,
.hero h1,
.hero h2,
.hero h3 {
  color: var(--lv-green-dark);
}

/* Expressive mode for hero/marketing */
.expressive h1 { font-size: var(--fs-07); } /* 40 */
.expressive h2 { font-size: var(--fs-06); } /* 32 */

/* Editorial serif option (kept; harmless now) */
.editorial h1,
.editorial h2 {
  font-family: var(--font-serif);
  letter-spacing: 0;
}

/* Links */
a.link,
.post-content a {
  color: var(--interactive);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 81, 61, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a.link:hover,
.post-content a:hover {
  color: var(--interactive-hover);
  text-decoration-color: rgba(15, 81, 61, 0.8);
}

/* -------------------------
   4) Accessibility + Focus
------------------------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-01);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* -------------------------
   5) Layout Helpers
------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-05); }
}

.section {
  padding: var(--space-08) 0;
}

/* Stack */
.stack > * + * { margin-top: var(--space-04); }
.stack-tight > * + * { margin-top: var(--space-03); }

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Alignment helpers */
.row {
  display: flex;
  gap: var(--space-04);
  align-items: center;
  flex-wrap: wrap;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-04);
}

/* Layer helpers */
.layer-01 { background: var(--layer-01); }
.layer-02 { background: var(--layer-02); }
.layer-03 { background: var(--layer-03); }

/* -------------------------
   6) Brand / Logo
------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-03);
  text-decoration: none;
}

.logo {
  height: 85px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: var(--fs-03);
  color: var(--lv-green-dark);
  letter-spacing: 0;
}

/* -------------------------
   7) Surfaces (Cards / Panels)
------------------------- */
.card {
  background: var(--layer-01);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-03);
  padding: var(--space-06);
  box-shadow: none;
}

.panel {
  background: var(--layer-02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-03);
  padding: var(--space-06);
  box-shadow: none;
}

/* Accent: calm left rule */
.card-accent {
  border-left: 4px solid var(--accent);
  padding-left: calc(var(--space-06) - 2px);
}

/* Divider */
.hr {
  height: 1px;
  background: var(--divider);
  border: 0;
  margin: var(--space-06) 0;
}

/* -------------------------
   8) Buttons (upgraded states)
------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-02);

  height: var(--control-md); /* 40 */
  padding: 0 var(--space-05);

  border-radius: var(--radius-02);
  border: 1px solid transparent;

  font-weight: 600;
  letter-spacing: 0.01em;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);

  user-select: none;
  white-space: nowrap;
}

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

/* Primary */
.btn-primary {
  background: var(--interactive);
  color: var(--interactive-text);
  border-color: var(--interactive-hover);
}

.btn-primary:hover {
  background: var(--interactive-hover);
}

.btn-primary:active {
  background: var(--interactive-active);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--lv-green-dark);
  border-color: rgba(15, 81, 61, 0.55);
}

.btn-secondary:hover {
  background: var(--hover-ui);
  border-color: rgba(15, 81, 61, 0.70);
}

.btn-secondary:active {
  background: var(--active-ui);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--lv-green-dark);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--hover-ui);
  border-color: rgba(15, 81, 61, 0.12);
}

.btn-ghost:active {
  background: var(--active-ui);
}

/* Sizes */
.btn-sm {
  height: var(--control-sm); /* 32 */
  padding: 0 var(--space-04);
  border-radius: var(--radius-01);
  font-size: var(--fs-01);
}

.btn-lg {
  height: var(--control-lg); /* 48 */
  padding: 0 var(--space-06);
  border-radius: var(--radius-02);
  font-size: var(--fs-03);
}

.btn-block { width: 100%; }

/* Disabled (all variants) */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1;
  background: var(--disabled-bg);
  border-color: var(--disabled-border);
  color: var(--disabled-text);
  transform: none;
}

/* -------------------------
   9) Forms + field structure
------------------------- */
.field {
  display: grid;
  gap: var(--space-02);
}

.field-row {
  display: grid;
  gap: var(--space-04);
}

@media (min-width: 768px) {
  .field-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.label {
  display: block;
  margin: 0 0 var(--space-02);
  font-size: var(--fs-01);
  color: var(--text-secondary);
}

.hint,
.help {
  margin: 0;
  margin-top: var(--space-02);
  font-size: var(--fs-01);
  color: var(--text-secondary);
}

.error-text {
  margin: 0;
  margin-top: var(--space-02);
  font-size: var(--fs-01);
  color: var(--danger);
}

.optional {
  font-weight: 400;
  color: var(--text-secondary);
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-03);
  align-items: start;
  font-size: var(--fs-01);
  color: var(--text-secondary);
}

.checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green-70);
}

.checkbox:focus-visible {
  outline: 2px solid var(--green-70);
  outline-offset: 3px;
}

.consent-row label {
  cursor: pointer;
}

.input,
.select,
.textarea {
  width: 100%;
  height: var(--control-lg); /* 48 */
  padding: 0 var(--space-04);
  border-radius: var(--radius-02);
  border: 1px solid rgba(15, 81, 61, 0.20);
  background: var(--layer-01);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
  box-shadow: none;
}

.textarea {
  height: auto;
  padding: var(--space-03) var(--space-04);
  min-height: 120px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(92, 92, 92, 0.75);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(15, 81, 61, 0.65);
  box-shadow: var(--focus-ring);
}

/* Disabled fields */
.input:disabled,
.select:disabled,
.textarea:disabled {
  cursor: not-allowed;
  background: var(--disabled-bg);
  border-color: var(--disabled-border);
  color: var(--disabled-text);
}

.is-error {
  border-color: var(--danger-border) !important;
  background: var(--danger-bg);
}

.is-success {
  border-color: rgba(34, 197, 94, 0.65) !important;
}

/* -------------------------
   10) Badges / Tags
------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--fs-01);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 81, 61, 0.04);
  color: var(--lv-green-dark);
}

.badge-gold {
  background: rgba(198, 146, 46, 0.10);
  border-color: rgba(198, 146, 46, 0.25);
  color: var(--accent-strong);
}

/* -------------------------
   11) Alerts (Info / Success / Warning)
------------------------- */
.alert {
  border-radius: var(--radius-03);
  padding: var(--space-05);
  border: 1px solid var(--border-subtle);
  background: var(--layer-01);
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.alert-warning {
  border-color: rgba(198, 146, 46, 0.35);
  background: rgba(198, 146, 46, 0.10);
}

.alert-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

/* -------------------------
   12) Header / Nav
------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 237, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-strong);
}

:root[data-theme="dark"] .navbar {
  background: rgba(14, 14, 14, 0.85);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-03) 0;
  gap: var(--space-05);
}

/* Mobile nav toggle (Carbon-ish: clean, predictable) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-md);
  width: var(--control-md);
  border-radius: var(--radius-02);
  border: 1px solid var(--border-subtle);
  background: var(--layer-01);
  color: var(--text-primary);
}

.nav-toggle:hover { background: var(--hover-ui); }
.nav-toggle:active { background: var(--active-ui); }

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars {
  display: block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

/* middle bar */
.nav-toggle-bars {
  background: currentColor;
  height: 2px;
  border-radius: 2px;
  top: 5px;
}

/* Nav container */
.nav {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-02);
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 600;
  color: var(--lv-green-dark);
  padding: 8px 9px;
  border-radius: var(--radius-01);
  font-size: var(--fs-01);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.nav-link:hover {
  background: var(--hover-ui);
}

.nav-link[aria-current="page"] {
  background: rgba(15, 81, 61, 0.10);
  border: 1px solid rgba(15, 81, 61, 0.14);
}

.nav-cta {
  display: none; /* shown on desktop */
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}

/* Mobile menu behavior */
@media (max-width: 767px) {
  .navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    align-items: center;
  }

  .brand { grid-area: brand; }
  .nav-toggle { grid-area: toggle; justify-self: end; }
  .nav { grid-area: nav; }

  .nav {
    display: none;
    width: 100%;
    padding-top: var(--space-03);
  }

  [data-nav].nav-open .nav { display: block; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-02);
    padding: var(--space-03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-03);
    background: var(--layer-01);
  }

  .nav-link {
    padding: 10px 12px;
  }
}

/* -------------------------
   12b) Content patterns
------------------------- */

/* Tables (Carbon-ish): crisp borders, readable cells */
.table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-03);
  background: var(--layer-01);
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  padding: 12px var(--space-04);
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.table th {
  text-align: left;
  font-size: var(--fs-01);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  background: rgba(15, 81, 61, 0.03);
}

.table tr:last-child td { border-bottom: 0; }

/* Pricing cards */
.pricing {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 768px) {
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-02);
  margin: 0;
}

.price strong {
  font-size: var(--fs-06);
  letter-spacing: 0;
}

.price small {
  color: var(--text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 81, 61, 0.04);
  color: var(--lv-green-dark);
  font-size: var(--fs-01);
  font-weight: 600;
}

.pill-gold {
  border-color: rgba(198, 146, 46, 0.28);
  background: rgba(198, 146, 46, 0.10);
  color: var(--accent-strong);
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: calc(var(--space-07) + var(--space-03));
  
}


.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: var(--space-04);
  top: var(--space-04);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 81, 61, 0.04);
  font-weight: 700;
}

/* Testimonials */
.quote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-05);
}

.quote p { margin-bottom: var(--space-03); }

.quote footer {
  color: var(--text-secondary);
  font-size: var(--fs-01);
}

/* FAQ accordion */
.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-03);
  background: var(--layer-01);
  overflow: hidden;
}

.accordion details + details {
  border-top: 1px solid var(--divider);
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-04) var(--space-05);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-04);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary:hover {
  background: var(--hover-ui);
}

.accordion summary::after {
  content: "+";
  font-weight: 700;
  color: var(--text-secondary);
}

.accordion details[open] summary::after { content: "–"; }

.accordion .accordion-body {
  padding: 0 var(--space-05) var(--space-05);
  color: var(--text-primary);
}

/* -------------------------
   13) Hero patterns
------------------------- */
.hero {
  padding: var(--space-08) 0;
}

.hero-title {
  margin-bottom: var(--space-04);
}

.hero-subtitle {
  font-size: var(--fs-04);
  color: var(--text-secondary);
  max-width: 60ch;
}

/* Gold highlight underline */
.highlight {
  background: linear-gradient(transparent 62%, rgba(198, 146, 46, 0.22) 62%);
  padding: 0 2px;
}

/* -------------------------
   13b) About page patterns (IBM-inspired)
------------------------- */

/* Optional extra semantic aliases for page-specific styles */
:root {
  --surface-1: var(--layer-01);
  --surface-2: var(--layer-02);
  --text-muted: var(--text-secondary);
  --border-color: var(--border-subtle);
}

/* About hero cards and media should clip cleanly */
.about-hero .card,
.about-timeline-section .card,
.founder-spotlight .card {
  overflow: hidden;
}

/* Metrics strip */
.metrics-strip {
  margin-top: var(--space-06);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border-color);
  background: var(--border-color);
  border-radius: var(--radius-03);
  overflow: hidden;
}

.metric {
  background: var(--surface-1);
  padding: var(--space-05) var(--space-04);
  display: flex;
  flex-direction: column;
  gap: var(--space-02);
  min-height: 110px;
  justify-content: center;
}

.metric-value {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.metric-label {
  font-size: var(--fs-02);
  color: var(--text-muted);
}

/* Large editorial quote block */
.quote-section {
  padding-top: var(--space-06);
  padding-bottom: var(--space-06);
}

.quote-block {
  border-left: 3px solid var(--border-strong);
  padding-left: var(--space-05);
  max-width: 58rem;
  position: relative;
}

.quote-mark {
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 var(--space-02);
  opacity: 0.18;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.quote-block blockquote {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.quote-credit {
  margin-top: var(--space-04);
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-05);
  margin-top: var(--space-06);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: var(--space-05);
  align-items: start;
  position: relative;
}

.timeline-year {
  font-size: var(--fs-01);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 1rem;
  font-weight: 600;
}

.timeline-card {
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -1.67rem;
  top: 1.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
}

/* Founder spotlight */
.founder-grid {
  gap: var(--space-06);
}

.founder-image-card {
  padding: 0;
}

.founder-image-wrap {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 500ms ease;
}

.founder-image-card:hover .founder-image {
  transform: scale(1.06);
}

.founder-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-04);
}

/* Reveal animation system */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: 80ms;
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 900px) {
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .timeline::before {
    left: 0.4rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-03);
    padding-left: 1.5rem;
  }

  .timeline-year {
    padding-top: 0;
  }

  .timeline-card::before {
    left: -1.45rem;
    top: 1rem;
  }

  .founder-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .metrics-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-image {
    transition: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------
   14) Footer
------------------------- */
.footer {
  padding: var(--space-07) 0;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
}

/* -------------------------
   15) Blog Post Styling
   Editorial long-form layout
------------------------- */

/* Overall article area */
.blog-post-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}


/* ---------------------------------
   Article shell
--------------------------------- */

.post {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
}


/* ---------------------------------
   Article header
--------------------------------- */

.post-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.post-header-inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.post-header .badge {
  margin-bottom: var(--space-05);
}

.post-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--lv-green-dark);
  text-wrap: balance;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-03);
  margin-top: var(--space-05);
  font-size: var(--fs-01);
  color: var(--text-secondary);
}


/* Small decorative divider underneath metadata */
.post-meta::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-left: var(--space-02);
  background: var(--accent);
  opacity: 0.8;
}


/* ---------------------------------
   Featured image
--------------------------------- */

.post-featured {
  max-width: 62rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}

.post-featured-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-03);
  border: 1px solid var(--border-subtle);
  background: var(--layer-02);
}

.post-featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: cover;
}


/* ---------------------------------
   Reading column
--------------------------------- */

.post-body {
  width: 100%;
}

.post-content {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-primary);
}


/* ---------------------------------
   Paragraphs
--------------------------------- */

.post-content p {
  margin: 0 0 1.4rem;
  line-height: 1.78;
  color: var(--text-primary);
}


/* Optional opening paragraph treatment */
.post-content > p:first-child {
  font-size: 1.15rem;
  line-height: 1.7;
}


/* ---------------------------------
   Headings
--------------------------------- */

.post-content h2 {
  position: relative;
  margin: 4rem 0 1.4rem;
  padding-top: 1.6rem;

  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.18;
  font-weight: 600;
  color: var(--lv-green-dark);

  border-top: 1px solid var(--divider);
}

.post-content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;

  width: 3.5rem;
  height: 2px;

  background: var(--accent);
}

.post-content h3 {
  margin: 2rem 0 0.8rem;

  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.3;
  font-weight: 600;

  color: var(--lv-green-dark);
}


/* ---------------------------------
   Links
--------------------------------- */

.post-content a {
  color: var(--interactive);
  font-weight: 500;

  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 81, 61, 0.4);
  text-underline-offset: 4px;

  transition:
    color var(--transition),
    text-decoration-color var(--transition);
}

.post-content a:hover {
  color: var(--interactive-hover);
  text-decoration-color: currentColor;
}


/* ---------------------------------
   Strong / emphasis
--------------------------------- */

.post-content strong {
  font-weight: 650;
}

.post-content em {
  font-style: italic;
}


/* ---------------------------------
   Images and figures
--------------------------------- */

.post-content figure {
  width: min(100%, 34rem);
  margin: 2.75rem auto;
  text-align: center;
}

.post-content figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 34rem;

  margin: 0 auto;

  border-radius: var(--radius-03);
  border: 1px solid var(--border-subtle);

  box-shadow:
    0 14px 34px rgba(15, 81, 61, 0.08);
}

.post-content figcaption {
  margin-top: var(--space-03);

  font-size: var(--fs-01);
  line-height: 1.5;

  color: var(--text-secondary);
}


/* Images added directly through Markdown */
.post-content > img {
  display: block;

  width: auto;
  max-width: min(100%, 34rem);
  max-height: 34rem;

  margin: 2.75rem auto;

  border-radius: var(--radius-03);
  border: 1px solid var(--border-subtle);

  box-shadow:
    0 14px 34px rgba(15, 81, 61, 0.08);
}


/* ---------------------------------
   Blockquotes / recommendation boxes
--------------------------------- */

.post-content blockquote {
  position: relative;

  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;

  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-03);

  background:
    linear-gradient(
      135deg,
      rgba(198, 146, 46, 0.08),
      rgba(255, 255, 255, 0) 60%
    ),
    var(--layer-01);

  color: var(--text-primary);
}

.post-content blockquote p {
  margin-bottom: 0.75rem;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------
   Lists
--------------------------------- */

.post-content ul,
.post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

.post-content ul li {
  list-style: disc;
}

.post-content ol li {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
  line-height: 1.7;
}

.post-content li::marker {
  color: var(--accent-strong);
}


/* ---------------------------------
   Horizontal rules
--------------------------------- */

.post-content hr {
  width: 5rem;
  height: 1px;

  margin: 3.5rem auto;

  border: 0;
  background: var(--border-strong);
}


/* ---------------------------------
   Code
--------------------------------- */

.post-content code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.92em;

  padding: 0.15em 0.35em;

  background: rgba(15, 81, 61, 0.08);
  border-radius: var(--radius-01);
}

.post-content pre {
  margin: var(--space-05) 0;
  padding: var(--space-05);

  overflow-x: auto;

  background: rgba(15, 81, 61, 0.08);
  border: 1px solid rgba(15, 81, 61, 0.12);
  border-radius: var(--radius-03);
}

.post-content pre code {
  padding: 0;
  background: transparent;
}


/* ---------------------------------
   Article footer
--------------------------------- */

.post-footer {
  max-width: 46rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.post-footer-rule {
  height: 1px;
  margin-bottom: var(--space-05);
  background: var(--divider);
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);

  color: var(--lv-green-dark);

  font-weight: 600;
  text-decoration: none;

  transition:
    gap var(--transition),
    color var(--transition);
}

.post-back-link:hover {
  gap: var(--space-03);
  color: var(--interactive-hover);
}


/* ---------------------------------
   Dark theme
--------------------------------- */

:root[data-theme="dark"] .post-title,
:root[data-theme="dark"] .post-content h2,
:root[data-theme="dark"] .post-content h3,
:root[data-theme="dark"] .post-back-link {
  color: var(--text-primary);
}


/* ---------------------------------
   Mobile
--------------------------------- */

@media (max-width: 767px) {

  .blog-post-section {
    padding-top: var(--space-06);
  }

  .post-header {
    margin-bottom: var(--space-07);
  }

  .post-header-inner {
    text-align: left;
  }

  .post-header .badge {
    margin-bottom: var(--space-04);
  }

  .post-title {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1.04;
  }

  .post-meta {
    justify-content: flex-start;
    margin-top: var(--space-04);
  }

  .post-featured {
    margin-top: var(--space-06);
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .post-content > p:first-child {
    font-size: 1.08rem;
  }

  .post-content h2 {
    margin-top: 3rem;
    font-size: 1.65rem;
  }

  .post-content h3 {
    margin-top: 1.75rem;
    font-size: 1.3rem;
  }

  .post-content figure {
    width: min(100%, 25rem);
    margin: 2rem auto;
  }

  .post-content figure img,
  .post-content > img {
    max-height: 28rem;
  }

  .post-content blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  }

  .post-footer {
    margin-top: var(--space-07);
  }
}


/* ---------------------------------
   Very small screens
--------------------------------- */

@media (max-width: 420px) {

  .post-title {
    font-size: 2.15rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content figure {
    width: 100%;
  }
}
/* -------------------------
   16) Blog Cards (Index / Lists)
------------------------- */
.post-card-media {
  display: block;
  margin: calc(var(--space-06) * -1) calc(var(--space-06) * -1) var(--space-05);
  border-radius: var(--radius-03);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--layer-02);
}

.post-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

.post-card-media:hover .post-card-img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

/* Featured hero image */
.post-hero-media {
  display: block;
  margin: calc(var(--space-06) * -1) calc(var(--space-06) * -1) var(--space-05);
  border-radius: var(--radius-03);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--layer-02);
  position: relative;
}

.post-hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.post-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.12)
  );
  pointer-events: none;
}

/* -------------------------
   17) Utilities
------------------------- */
.center { text-align: center; }
.right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-02) !important; }
.mt-4 { margin-top: var(--space-04) !important; }
.mt-6 { margin-top: var(--space-05) !important; }
.mt-8 { margin-top: var(--space-06) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-02) !important; }
.mb-4 { margin-bottom: var(--space-04) !important; }
.mb-6 { margin-bottom: var(--space-05) !important; }
.mb-8 { margin-bottom: var(--space-06) !important; }


/* Border / radius / padding helpers */
.border { border: 1px solid var(--border-subtle); }
.border-strong { border: 1px solid var(--border-strong); }
.round-sm { border-radius: var(--radius-01); }
.round-md { border-radius: var(--radius-02); }
.round-lg { border-radius: var(--radius-03); }
.pad-4 { padding: var(--space-04); }
.pad-5 { padding: var(--space-05); }
.pad-6 { padding: var(--space-06); }
.gap-2 { gap: var(--space-02); }
.gap-4 { gap: var(--space-04); }
.gap-5 { gap: var(--space-05); }

/* Accessible “screen reader only” helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Measure helpers (readable line-length) */
.measure-60 { max-width: 60ch; }
.measure-72 { max-width: 72ch; }

.block { display: block; }

/* Flex alignment helpers */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* List helpers (avoid inline list-style) */
.list {
  padding-left: 1.25rem;
  margin: 0;
}

.list-disc li { list-style: disc; }
.list-decimal li { list-style: decimal; }

.list li + li { margin-top: var(--space-02); }

/* Extra spacing utilities (token-accurate) */
.mt-1 { margin-top: var(--space-01) !important; }
.mt-3 { margin-top: var(--space-03) !important; }
.mt-5 { margin-top: var(--space-05) !important; }
.mt-7 { margin-top: var(--space-07) !important; }

.mb-1 { margin-bottom: var(--space-01) !important; }
.mb-3 { margin-bottom: var(--space-03) !important; }
.mb-5 { margin-bottom: var(--space-05) !important; }
.mb-7 { margin-bottom: var(--space-07) !important; }

/* -------------------------
   18) Print (optional)
------------------------- */
@media print {
  .navbar { position: static; backdrop-filter: none; }
  .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { box-shadow: none; }
}


/* -------------------------
   18) Page-specific IBM-style compositions
------------------------- */
.editorial-hero {
  position: relative;
}

.editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(180px, 24vw, 280px);
  background:
    linear-gradient(90deg, rgba(15, 81, 61, 0.07), rgba(15, 81, 61, 0)),
    linear-gradient(180deg, rgba(198, 146, 46, 0.10), rgba(198, 146, 46, 0));
  pointer-events: none;
}

.editorial-hero .container {
  position: relative;
  z-index: 1;
}

.editorial-hero-grid {
  gap: var(--space-06);
}

.hero-frame {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-06);
}

.hero-aside-card {
  min-height: 180px;
  display: flex;
  align-items: end;
}

.hero-metrics-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-subtle);
  background: var(--layer-01);
  border-radius: var(--radius-03);
  overflow: hidden;
}

.metric-tile {
  padding: var(--space-05);
  border-bottom: 1px solid var(--divider);
}

.metric-tile:last-child {
  border-bottom: 0;
}

.metric-kicker,
.service-index {
  display: inline-block;
  font-size: var(--fs-01);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: var(--space-03);
}

.text-colour-secondary
{
  color: var(--text-secondary);
}

.split-band {
  display: grid;
  gap: var(--space-05);
  align-items: end;
  padding-bottom: var(--space-05);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .split-band {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.service-mosaic,
.service-grid-ibm {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 768px) {
  .service-mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .service-grid-ibm {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .service-grid-ibm > *:nth-child(1) { grid-column: span 7; min-height: 280px; }
  .service-grid-ibm > *:nth-child(2) { grid-column: span 5; }
  .service-grid-ibm > *:nth-child(3) { grid-column: span 4; }
  .service-grid-ibm > *:nth-child(4) { grid-column: span 4; }
  .service-grid-ibm > *:nth-child(5) { grid-column: span 4; }
  .service-grid-ibm > *:nth-child(6) { grid-column: span 12; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.service-card.feature {
  background:
    linear-gradient(180deg, rgba(15, 81, 61, 0.06), rgba(255,255,255,0)),
    var(--layer-01);
}

.steps-rail .step {
  border-left: 1px solid var(--border-subtle);
}

.resource-stage,
.resource-library {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 900px) {
  .resource-stage,
  .resource-library {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
  }
}

.resource-feature,
.resource-library-main {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(198, 146, 46, 0.10), rgba(255,255,255,0) 40%),
    var(--layer-01);
}

.testimonial-stack {
  background:
    linear-gradient(180deg, rgba(15, 81, 61, 0.03), rgba(255,255,255,0)),
    var(--layer-01);
}

.journal-feature,
.blog-feature {
  overflow: hidden;
}

.lesson-sequence {
  position: relative;
}

.lesson-sequence::before {
  content: "";
  position: absolute;
  top: var(--space-06);
  bottom: var(--space-06);
  left: calc(var(--space-06) + 0.55rem);
  width: 1px;
  background: var(--divider);
}

.lesson-sequence .list {
  position: relative;
}

.lesson-sequence .list li {
  position: relative;
}

.contact-shell {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 900px) {
  .contact-shell {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.contact-sidebar {
  position: relative;
}

.form-shell {
  background: var(--layer-01);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-03);
  padding: var(--space-06);
}

.metrics-strip.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.faq-layout,
.policy-grid {
  display: grid;
  gap: var(--space-05);
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pricing-quote {
  align-self: end;
}

.blog-feature .post-hero-img {
  height: 340px;
}

.resource-mini-card {
  min-height: 100%;
}

@media (max-width: 780px) {
  .metrics-strip.compact {
    grid-template-columns: 1fr;
  }

  .lesson-sequence::before {
    display: none;
  }
}

/* -------------------------
   19) Conversion and content-stage additions
------------------------- */
.section-band-dark {
  background: linear-gradient(180deg, rgba(11, 63, 48, 0.985), rgba(15, 81, 61, 0.965));
  color: #f6f3ec;
}

.section-band-dark .container {
  position: relative;
}

.band-grid {
  gap: var(--space-06);
}

.text-on-dark {
  color: #f7f4ed;
}

.muted-on-dark {
  color: rgba(247, 244, 237, 0.76);
}

.badge-outline-light {
  background: transparent;
  color: #f7f4ed;
  border-color: rgba(247, 244, 237, 0.26);
}

.pathfinder-grid,
.focus-panels,
.outcomes-grid,
.resource-usage-grid,
.support-cards,
.contact-reassurance,
.topic-rail,
.pricing-notes,
.policy-notes {
  display: grid;
  gap: var(--space-05);
}

.outcome-rail,
.faq-compact {
  display: grid;
  gap: var(--space-04);
}

.outcome-card {
  border: 1px solid rgba(247, 244, 237, 0.16);
  background: rgba(247, 244, 237, 0.04);
  border-radius: var(--radius-03);
  padding: var(--space-05);
}

.outcome-card.accent {
  background: linear-gradient(135deg, rgba(198, 146, 46, 0.16), rgba(247, 244, 237, 0.06));
}

.outcome-card strong {
  display: inline-block;
  margin-bottom: var(--space-02);
}

.trust-band {
  display: grid;
  gap: var(--space-04);
  padding: var(--space-05);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(15, 81, 61, 0.03), rgba(255, 255, 255, 0));
}

.trust-item {
  padding-right: var(--space-04);
}

.cta-banner {
  display: grid;
  gap: var(--space-05);
  align-items: center;
  padding: var(--space-06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-03);
  background:
    linear-gradient(135deg, rgba(198, 146, 46, 0.11), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(15, 81, 61, 0.05), rgba(255,255,255,0)),
    var(--layer-01);
}

.lesson-sequence-dark {
  background: rgba(247, 244, 237, 0.96);
}

@media (min-width: 768px) {
  .pathfinder-grid,
  .outcomes-grid,
  .resource-usage-grid,
  .contact-reassurance,
  .pricing-notes,
  .policy-notes,
  .topic-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .focus-panels,
  .support-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band,
  .cta-banner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-banner > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .cta-banner .row,
  .trust-band {
    justify-content: flex-start;
  }
}

/* -------------------------
   20) Redesign polish pass
------------------------- */
body {
  background:
    linear-gradient(180deg, rgba(247, 244, 237, 0.98), rgba(241, 238, 230, 0.92)),
    var(--background);
}

.section {
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(15, 81, 61, 0.08);
}

.navbar {
  background: rgba(247, 244, 237, 0.9);
  box-shadow: 0 10px 30px rgba(15, 81, 61, 0.05);
}

.navbar-inner {
  min-height: 76px;
}

.logo {
  height: 72px;
}

.card,
.panel,
.form-shell,
.table-wrap,
.hero-metrics-card,
.metrics-strip,
.cta-banner {
  box-shadow: 0 18px 45px rgba(15, 81, 61, 0.055);
}

.card,
.panel,
.form-shell,
.table-wrap,
.hero-metrics-card,
.metrics-strip,
.cta-banner,
.outcome-card {
  border-color: rgba(15, 81, 61, 0.18);
}

.editorial-hero {
  overflow: hidden;
}

.editorial-hero::before {
  height: 100%;
  background:
    linear-gradient(120deg, rgba(15, 81, 61, 0.12), rgba(15, 81, 61, 0) 48%),
    linear-gradient(180deg, rgba(198, 146, 46, 0.14), rgba(247, 244, 237, 0) 62%);
}

.home-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 var(--space-08);
}

.hero-frame {
  padding: var(--space-07);
  border: 1px solid rgba(15, 81, 61, 0.14);
  border-radius: var(--radius-03);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2)),
    rgba(247, 244, 237, 0.74);
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.94;
}

.hero-subtitle {
  line-height: 1.45;
}

.home-hero .hero-subtitle {
  max-width: 46ch;
}

.highlight {
  background: linear-gradient(transparent 66%, rgba(198, 146, 46, 0.26) 66%);
}

.hero-aside-card {
  min-height: 220px;
  background:
    linear-gradient(145deg, rgba(15, 81, 61, 0.08), rgba(198, 146, 46, 0.08)),
    var(--layer-01);
}

.metric-tile,
.metric,
.trust-item,
.review-card,
.review-feature {
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.card:hover,
.panel:hover,
.metric-tile:hover,
.review-card:hover,
.review-feature:hover {
  border-color: rgba(15, 81, 61, 0.28);
}

.service-card:hover,
.path-card:hover,
.review-card:hover,
.review-feature:hover {
  transform: translateY(-2px);
}

.section-intro h2,
.split-band h2 {
  max-width: 16ch;
}

.pathfinder-grid .card,
.service-mosaic .card,
.outcomes-grid .card,
.contact-reassurance .card,
.focus-panels .panel {
  min-height: 100%;
}

.home-proof {
  padding: var(--space-05);
  border: 1px solid rgba(15, 81, 61, 0.18);
  border-radius: var(--radius-03);
}

.proof-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-04);
  margin-bottom: var(--space-04);
}

.review-snapshots,
.reviews-ledger {
  display: grid;
  gap: var(--space-05);
}

.review-card,
.review-feature {
  background: var(--layer-01);
  border: 1px solid rgba(15, 81, 61, 0.18);
  border-radius: var(--radius-03);
  padding: var(--space-06);
}

.review-card-accent,
.review-feature-accent {
  background:
    linear-gradient(135deg, rgba(198, 146, 46, 0.10), rgba(255, 255, 255, 0) 54%),
    var(--layer-01);
}

.review-card .quote,
.review-feature .quote {
  border-left: 0;
  padding-left: 0;
}

.review-card .quote p,
.review-feature .quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: var(--lv-green-dark);
}

.review-card .quote p::before,
.review-feature .quote p::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: var(--space-04);
  background: var(--accent);
}

.reviews-ledger {
  align-items: stretch;
}

.reviews-ledger .review-feature {
  min-height: 100%;
}

.reviews-hero .metrics-strip {
  margin-top: 0;
}

.cta-banner {
  overflow: hidden;
}

.footer {
  background: rgba(255, 255, 255, 0.38);
}

.footer-grid {
  display: grid;
  gap: var(--space-06);
  align-items: start;
}

.footer-brand .logo {
  height: 68px;
}

.footer-links {
  display: grid;
  gap: var(--space-03);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cta {
  padding: var(--space-05);
  border: 1px solid rgba(15, 81, 61, 0.16);
  border-radius: var(--radius-03);
  background: rgba(255, 255, 255, 0.42);
}

.home-hero-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.home-hero .hero-frame {
  padding: 0;
  overflow: hidden;
}

.home-hero .stack.measure-72 {
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-visual {
  position: relative;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  background: var(--lv-green-dark);
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 63, 48, 0.16), rgba(11, 63, 48, 0)),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(11, 63, 48, 0.22));
  pointer-events: none;
}

.hero-visual-note {
  position: absolute;
  left: var(--space-05);
  right: var(--space-05);
  bottom: var(--space-05);
  z-index: 1;
  max-width: 22rem;
  padding: var(--space-05);
  border: 1px solid rgba(247, 244, 237, 0.46);
  border-radius: var(--radius-03);
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(8px);
}

.hero-metrics-inline {
  margin-top: var(--space-05);
}

@media (min-width: 768px) {
  .hero-metrics-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics-inline .metric-tile {
    border-bottom: 0;
    border-right: 1px solid var(--divider);
  }

  .hero-metrics-inline .metric-tile:last-child {
    border-right: 0;
  }
}

.home-review-section {
  overflow: hidden;
}

.home-review-feature {
  display: grid;
  gap: var(--space-04);
  align-items: start;
  position: relative;
  padding: clamp(1rem, 2.6vw, 2rem) 0;
}

.review-note {
  position: relative;
  border: 0;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    #f7e8a7;
  box-shadow:
    0 18px 34px rgba(61, 46, 12, 0.13),
    0 2px 0 rgba(255, 255, 255, 0.38) inset;
  transform-origin: center;
}

.review-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.85rem;
  width: 5.25rem;
  height: 1.6rem;
  border-radius: 2px;
  background: rgba(198, 146, 46, 0.28);
  box-shadow: 0 1px 4px rgba(61, 46, 12, 0.08);
  transform: translateX(-50%) rotate(-2deg);
}

.review-note-intro {
  padding: var(--space-05);
  align-self: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    #dfeecb;
  transform: rotate(-2.4deg);
}

.review-note-primary {
  transform: rotate(1.2deg);
}

.review-note-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    #f2d7a2;
  transform: rotate(-1.4deg);
}

.review-note:hover {
  transform: translateY(-3px) rotate(0deg);
}

.home-review-feature .review-card .quote p {
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.34;
}

.home-review-feature .review-card .quote p::before {
  width: 36px;
  height: 2px;
  margin-bottom: var(--space-03);
  background: rgba(15, 81, 61, 0.34);
}

.home-review-feature .review-card footer {
  color: rgba(15, 81, 61, 0.72);
}

.home-review-feature .row {
  justify-content: center;
  margin-top: var(--space-03);
}

.pathfinder-compact {
  padding-top: var(--space-05);
  border-top: 1px solid var(--border-subtle);
}

.pathfinder-compact .panel {
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(280px, 0.9fr);
  }

  .home-review-feature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    row-gap: var(--space-05);
  }

  .review-note-intro {
    grid-column: 1 / 4;
    margin-top: var(--space-07);
  }

  .review-note-primary {
    grid-column: 4 / 9;
  }

  .review-note-secondary {
    grid-column: 9 / 13;
    margin-top: var(--space-07);
  }

  .review-note-tertiary {
    grid-column: 10 / 14;
    margin-top: var(--space-04);
  }

  .home-review-feature .row {
    grid-column: 4 / 10;
  }
}

@media (min-width: 900px) {
  .reviews-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-feature:nth-child(2) {
    margin-top: var(--space-07);
  }
}

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

  .hero-frame {
    padding: var(--space-06);
  }

  .home-hero .hero-frame {
    padding: 0;
  }

  .hero-visual-img {
    min-height: 360px;
  }

  .hero-title {
    max-width: 14ch;
  }
}

@media (max-width: 767px) {
  .navbar-inner {
    min-height: auto;
  }

  .logo {
    height: 62px;
  }

  .hero-frame,
  .card,
  .panel,
  .form-shell,
  .cta-banner,
  .review-card,
  .review-feature {
    padding: var(--space-05);
  }

  .home-hero .hero-frame {
    padding: 0;
  }

  .home-hero .stack.measure-72 {
    padding: var(--space-05);
  }

  .hero-visual-note {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: calc(var(--space-05) * -1) var(--space-05) var(--space-05);
  }

  .home-hero {
    padding-top: var(--space-06);
  }

  .hero-title {
    font-size: clamp(2.35rem, 15vw, 3.7rem);
    max-width: 10ch;
  }

  .hero-subtitle {
    font-size: var(--fs-03);
  }

  .proof-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-note,
  .review-note-intro,
  .review-note-primary,
  .review-note-secondary,
  .review-note:hover {
    transform: none;
  }

  .review-note::before {
    left: var(--space-05);
    transform: rotate(-2deg);
  }
}

/* -------------------------
   21) Mobile scaling and overflow guardrails
------------------------- */
html,
body {
  overflow-x: clip;
}

body,
main,
section,
.container,
.grid,
.card,
.panel,
.form-shell,
.cta-banner,
.table-wrap {
  min-width: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
td,
th,
label,
button,
input,
textarea,
select {
  overflow-wrap: anywhere;
}

img,
video {
  height: auto;
}

@media (max-width: 767px) {
  :root {
    --gutter: 1rem;
  }

  body {
    font-size: var(--fs-03);
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.18rem;
  }

  .section {
    padding: var(--space-07) 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .grid,
  .resource-stage,
  .resource-library,
  .contact-shell,
  .faq-layout,
  .policy-grid,
  .pathfinder-grid,
  .focus-panels,
  .outcomes-grid,
  .resource-usage-grid,
  .support-cards,
  .contact-reassurance,
  .topic-rail,
  .pricing-notes,
  .policy-notes,
  .pricing {
    grid-template-columns: 1fr !important;
  }

  .spread {
    align-items: flex-start;
    flex-direction: column;
  }

  .row {
    gap: var(--space-03);
  }

  .row .btn,
  .cta-banner .btn,
  .home-review-feature .btn,
  .resource-stage .btn,
  .contact-shell .btn,
  .form-shell .btn {
    width: 100%;
  }

  .btn {
    min-height: var(--control-lg);
    height: auto;
    padding: 0.72rem var(--space-04);
    white-space: normal;
    text-align: center;
  }

  .badge,
  .pill {
    max-width: 100%;
    white-space: normal;
  }

  .card,
  .panel,
  .form-shell,
  .cta-banner,
  .review-card,
  .review-feature,
  .outcome-card,
  .alert {
    padding: var(--space-05);
  }

  .card-accent {
    padding-left: var(--space-05);
    border-left-width: 3px;
  }

  .navbar {
    position: sticky;
  }

  .navbar-inner {
    gap: var(--space-03);
    padding: var(--space-02) 0;
  }

  .brand {
    min-width: 0;
  }

  .logo,
  .footer-brand .logo {
    height: 56px;
    max-width: min(68vw, 260px);
  }

  .nav-links {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: var(--fs-03);
  }

  .home-hero {
    padding: var(--space-05) 0 var(--space-06);
  }

  .home-hero-grid,
  .editorial-hero-grid {
    gap: 0;
  }

  .home-hero .stack.measure-72 {
    padding: var(--space-05);
  }

  .hero-title {
    max-width: 100%;
    font-size: 2.65rem;
    line-height: 0.98;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: var(--fs-03);
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual-img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .hero-visual-note {
    margin: calc(var(--space-05) * -1) var(--space-04) var(--space-04);
    padding: var(--space-04);
  }

  .hero-metrics-inline {
    margin-top: var(--space-04);
  }

  .hero-metrics-card {
    border-radius: var(--radius-03);
  }

  .metric-tile,
  .metric {
    min-height: auto;
    padding: var(--space-04);
  }

  .home-review-feature {
    display: grid;
    gap: var(--space-05);
    padding: var(--space-04) 0;
  }

  .review-note,
  .review-note-intro,
  .review-note-primary,
  .review-note-secondary,
  .review-note-tertiary,
  .review-note:hover {
    grid-column: auto;
    margin-top: 0;
    transform: none;
  }

  .review-note {
    width: 100%;
    box-shadow: 0 12px 24px rgba(61, 46, 12, 0.12);
  }

  .home-review-feature .review-card .quote p,
  .review-card .quote p,
  .review-feature .quote p {
    font-size: 1.18rem;
    line-height: 1.38;
  }

  .home-review-feature .row {
    margin-top: 0;
  }

  .split-band {
    gap: var(--space-04);
  }

  .section-intro h2,
  .split-band h2,
  .quote-block blockquote {
    max-width: none;
  }

  .service-card {
    min-height: auto;
  }

  .step {
    padding-left: calc(var(--space-06) + var(--space-04));
  }

  .step::before {
    left: var(--space-04);
    top: var(--space-04);
  }

  .trust-band {
    padding: var(--space-04);
  }

  .trust-item {
    padding-right: 0;
  }

  .table-wrap {
    margin-right: calc(var(--gutter) * -1);
    border-right: 0;
    border-radius: var(--radius-03) 0 0 var(--radius-03);
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 42rem;
  }

  .post-card-media,
  .post-hero-media {
    margin: calc(var(--space-05) * -1) calc(var(--space-05) * -1) var(--space-05);
  }

  .post-card-img,
  .post-hero-img,
  .blog-feature .post-hero-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .metrics-strip,
  .metrics-strip.compact {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: var(--space-04);
  }

  .founder-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .footer {
    padding: var(--space-06) 0;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 0.875rem;
  }

  h1,
  .hero-title {
    font-size: 2.25rem;
  }

  .section {
    padding: var(--space-06) 0;
  }

  .card,
  .panel,
  .form-shell,
  .cta-banner,
  .review-card,
  .review-feature,
  .outcome-card,
  .alert {
    padding: var(--space-04);
  }

  .home-hero .stack.measure-72,
  .hero-visual-note {
    padding: var(--space-04);
  }

  .review-note::before {
    width: 4.4rem;
    height: 1.25rem;
  }
}
