/* ==========================================================================
   Systems for Mission
   One-page site. Mobile first. No framework.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (exact) */
  --ink: #1B1B1B;
  --pine: #1F3A2E;
  --tangerine: #F36F2D;
  --lavender: #C9B4E8;
  --citron: #B7C646;
  --apricot: #F7B38B;
  --taupe: #D9C8BB;
  --warm-cream: #F9F4EC;
  --ivory: #FEFBF6;

  /* Tints mixed from the palette with Ivory */
  --lavender-tint: #ECE3F5;
  --apricot-tint: #FCE6D7;
  --sand: #EFE7DF;          /* Taupe softened, for section backgrounds */
  --manila-back: #E6DAD0;   /* Taupe, folder back panel and tabs */
  --manila-front: #F2EBE4;  /* Taupe, folder front panel */

  /* Text */
  --text: var(--ink);
  --text-secondary: #5C554F; /* passes AA on every light background used here */
  --line: rgba(27, 27, 27, 0.12);
  --line-strong: rgba(27, 27, 27, 0.26);
  --line-on-dark: rgba(254, 251, 246, 0.22);

  /* Type */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-quote: "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-hero: clamp(2.5rem, 0.9rem + 4vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2vw, 3rem);
  --fs-h3: clamp(1.075rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-small: 0.875rem;
  --fs-label: 0.78rem;

  /* Spacing: 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 80px;
  --s-9: 96px;

  --section-y: clamp(72px, 4rem + 4vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1240px;

  /* Shape */
  --r-sm: 10px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-panel: 22px;

  --shadow-soft: 0 1px 2px rgba(27, 27, 27, 0.04), 0 10px 28px -14px rgba(27, 27, 27, 0.16);
  --shadow-lift: 0 2px 4px rgba(27, 27, 27, 0.05), 0 18px 36px -18px rgba(27, 27, 27, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-mid: 220ms;

  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

p { text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 600; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus: always visible, outline plus offset, never color alone */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.how :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--lavender); }

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* ---------- 3. Type ---------- */
.label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--s-3);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--citron);
  transform: translateY(-1px);
}
.label-on-dark { color: var(--warm-cream); }
.label-on-dark::before { background: var(--lavender); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro {
  margin-top: var(--s-4);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------- 4. Icons ---------- */
.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-ui { width: 22px; height: 22px; stroke-width: 2; }

.icon-box {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lavender-tint);
  color: var(--pine);
  transition: background-color var(--t-mid) ease;
}
.icon-box-warm { background: var(--apricot-tint); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color var(--t-fast) ease,
    box-shadow var(--t-mid) ease,
    translate var(--t-fast) ease;
}
.btn-sm { min-height: 50px; padding: 0 18px; font-size: 0.9375rem; }

.btn-primary {
  background: var(--tangerine);
  border-color: var(--tangerine);
  color: var(--ink);
}
.btn-primary:hover {
  background: #F68A52;
  border-color: #F68A52;
  box-shadow: 0 10px 20px -12px rgba(243, 111, 45, 0.9);
  translate: 0 -1px;
}
.btn-primary:active {
  background: #E8662A;
  border-color: #E8662A;
  box-shadow: none;
  translate: 0 0;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--lavender-tint); translate: 0 -1px; }
.btn-secondary:active { background: var(--lavender); translate: 0 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

.text-link {
  gap: 0.35em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  transition: text-decoration-thickness var(--t-fast) ease;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 251, 246, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 10px;
}

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta { display: none; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-fast) ease;
}
.menu-toggle:hover { background: var(--lavender-tint); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.enhanced .menu-toggle { display: inline-grid; }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: var(--s-2) var(--gutter) var(--s-4);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -16px rgba(27, 27, 27, 0.18);
}
.site-nav.is-open { display: block; }

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
}
.nav-cta-mobile { width: 100%; margin-top: var(--s-4); }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .nav-cta-mobile { display: none; }
}

@media (min-width: 960px) {
  .enhanced .menu-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    margin-left: auto;
  }
  .nav-list { display: flex; gap: var(--s-1); }
  .nav-list a {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--r-sm);
    font-size: 0.9375rem;
    transition: background-color var(--t-fast) ease;
  }
  .nav-list a:hover { background: var(--lavender-tint); }
}

/* ---------- 7. Hero (open editorial two-column) ---------- */
.hero {
  overflow: clip;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-title span { display: block; }

.hero-lead {
  margin-top: var(--s-4);
  max-width: 33em;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.hero-copy .btn-row { margin-top: var(--s-5); }

/* Image sits on a lavender module that runs off the right edge,
   echoing the sidebar in the screenshot itself. */
.hero-media {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-4);
}
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 18%;
  right: calc(-1 * var(--gutter) - 50vw);
  border-radius: var(--r-panel) 0 0 var(--r-panel);
  background: var(--lavender-tint);
}
.hero-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 559px) {
  .hero-copy .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
  }
  .hero-media { padding-block: var(--s-6); }
  .hero-media::before { left: 24%; }
}

/* ---------- 8. Organizations (minimal strip, full-color logos) ---------- */
.orgs {
  padding-block: clamp(44px, 5vw, 64px);
  border-block: 1px solid var(--line);
}

.orgs-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}

.orgs-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.orgs-copy p {
  margin-top: var(--s-2);
  max-width: 30em;
  color: var(--text-secondary);
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
}
/* All four marks are round badges, so one diameter balances them.
   Shown in their original colors, with one consistent thin frame. */
.logo-item img {
  width: clamp(76px, 5vw + 48px, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(27, 27, 27, 0.35);
  transition: translate var(--t-mid) var(--ease), box-shadow var(--t-mid) ease;
}
.logo-item:hover img {
  translate: 0 -2px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 18px -10px rgba(27, 27, 27, 0.4);
}
.logo-item span {
  max-width: 15ch;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .logo-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .orgs-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: var(--s-7); }
}

/* ---------- 9. Section shells ---------- */
.section { padding-block: var(--section-y); }
.section-cream { background: var(--warm-cream); }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
}
@media (min-width: 768px) {
  .card { padding: 26px; }
}

/* ---------- 10. Pain points (one cohesive grid) ---------- */
.pain-grid {
  display: grid;
  gap: var(--s-3);
}
.pain-intro { padding-bottom: var(--s-3); }

.pain-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition:
    translate var(--t-mid) var(--ease),
    box-shadow var(--t-mid) ease,
    border-color var(--t-mid) ease;
}
.pain-card p { color: var(--text-secondary); font-size: 0.98rem; }
.pain-card:hover {
  translate: 0 -3px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--s-4);
  }
  .pain-intro { padding: var(--s-2) var(--s-4) 0 0; }
}
@media (min-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 11. Services: file folders ---------- */
.folders { display: grid; gap: var(--s-6); }
.folder-list { display: grid; gap: var(--s-2); }

.folder:nth-of-type(3n + 2) { --tab: 1; }
.folder:nth-of-type(3n) { --tab: 2; }
.folder {
  position: relative;
  isolation: isolate;
  padding-top: 46px;
  transition: translate var(--t-mid) var(--ease);
}

/* Back panel */
.folder::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 16px 0 0 0;
  border-radius: 14px;
  background: var(--manila-back);
}

/* Tab: real folders stagger their tabs, so each card's tab sits in one of three positions */
.folder-tab {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  width: 36%;
  height: 28px;
  border-radius: 12px 12px 0 0;
  background: var(--manila-back);
  transform: translateX(calc(var(--tab, 0) * 85%));
  transition: background-color var(--t-mid) ease;
}

/* The sheet of paper peeking out of the folder */
.folder-paper {
  position: absolute;
  z-index: -1;
  top: 24px;
  left: 14px;
  right: 14px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    repeating-linear-gradient(to bottom, rgba(27, 27, 27, 0.10) 0 2px, transparent 2px 8px) 16px 8px / 48% 10px no-repeat,
    var(--ivory);
  transition: translate var(--t-mid) var(--ease);
}

/* Front panel */
.folder-front {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: 20px;
  border-radius: 6px 6px 14px 14px;
  background: var(--manila-front);
  box-shadow: 0 -1px 0 rgba(27, 27, 27, 0.05), 0 -6px 12px -10px rgba(27, 27, 27, 0.25);
  transition: box-shadow var(--t-mid) ease;
}

.folder-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.folder-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-wrap: balance;
  cursor: pointer;
}
/* The whole front panel is the click target */
.folder-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px 6px 14px 14px;
}
.folder-toggle:focus-visible { outline: none; }
.folder-toggle:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.icon-plus {
  width: 30px;
  height: 30px;
  padding: 6px;
  margin-top: -3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  stroke-width: 2;
  transition: transform var(--t-mid) var(--ease), background-color var(--t-mid) ease, border-color var(--t-mid) ease;
}

.folder-desc {
  display: grid;
  grid-template-rows: 1fr;
}
.folder-desc > div { overflow: hidden; }
.folders.is-measuring .folder-desc[hidden] { display: grid !important; }
.folder-desc p {
  padding-top: var(--s-2);
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* JS keeps visibility and aria-expanded synchronized for mouse, keyboard and touch. */
.enhanced .folder-desc {
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--t-mid) var(--ease), opacity var(--t-mid) ease;
}

/* Open state: tapped / clicked / toggled by keyboard */
.folder.is-open .folder-desc { grid-template-rows: 1fr; opacity: 1; }
.folder.is-open .icon-plus { transform: rotate(45deg); background: var(--ivory); border-color: var(--ink); }
.folder.is-open .folder-tab { background: var(--lavender); }
.folder.is-open .folder-paper { translate: 0 -10px; }

/* Desktop with a mouse: hover and focus reveal too, and the card lifts */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .folder:hover,
  .folder:focus-within { translate: 0 -4px; }
  .folder:hover .folder-tab,
  .folder:focus-within .folder-tab { background: var(--lavender); }
  .folder:hover .folder-paper,
  .folder:focus-within .folder-paper { translate: 0 -10px; }
  .folder:hover .folder-front,
  .folder:focus-within .folder-front { box-shadow: 0 -1px 0 rgba(27, 27, 27, 0.05), var(--shadow-lift); }
  .folder:hover .icon-plus,
  .folder:focus-within .icon-plus { background: var(--ivory); border-color: var(--ink); }
}

/* Phones and tablets: a compact stacked drawer, icon beside the title */
@media (max-width: 1023px) {
  .folder-front {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: var(--s-3);
    align-items: center;
    padding: 16px 18px;
  }
  .folder-toggle { align-items: center; }
  .folder.is-open .folder-front > .icon-box { align-self: start; }
}

@media (min-width: 1024px) {
  .folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
    align-items: end;
  }
  .folders-intro {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0 var(--s-7);
    align-items: end;
    margin-bottom: var(--s-3);
  }
  .folders-intro .label,
  .folders-intro .section-title { grid-column: 1; }
  .folders-intro .intro { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }
  .folder-list { display: contents; }
  .folder-front { padding: 24px; }
}
@media (min-width: 1200px) {
  .folders { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
  .folder-front { padding: 22px; }
}

/* Desktop with a mouse: every folder shares one fixed height (set by script.js
   from the longest description), so opening one never moves anything else. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .enhanced .folder-front {
    height: var(--folder-h, auto);
    min-height: 13.5rem;
  }
  .enhanced .folder-content { margin-top: auto; }
  /* The icon steps aside when the description opens, so the folders can stay compact */
  .enhanced .folder-front > .icon-box {
    position: absolute;
    top: 22px;
    left: 22px;
    transition: opacity var(--t-mid) ease, scale var(--t-mid) var(--ease);
  }
  .enhanced .folder.is-open .folder-front > .icon-box { opacity: 0; scale: 0.85; }
  .folders.no-anim .folder-desc,
  .folders.no-anim .icon-box { transition: none !important; }
  .folders.is-measuring .folder-front { height: auto; min-height: 0; }
  .folders.is-measuring .folder-desc { grid-template-rows: 1fr; transition: none; }
}

/* ---------- 12. How It Works (Pine, process flow) ---------- */
.how {
  background: var(--pine);
  color: var(--ivory);
}
.how-head { margin-bottom: clamp(40px, 5vw, 72px); }

.steps {
  --track-x: 6px;
  position: relative;
  display: grid;
  gap: var(--s-5);
}
/* Track */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 0;
  left: var(--track-x);
  width: 2px;
  border-radius: 2px;
}
.steps::before { background: var(--line-on-dark); }
.steps::after {
  background: var(--lavender);
  transform-origin: top;
}

.step {
  position: relative;
  padding-left: var(--s-6);
}
.step-node {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--lavender);
  background: var(--lavender);
  transition: background-color var(--t-mid) ease;
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: -16px;
  margin-bottom: var(--s-2);
}
.step-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lavender);
}
.icon-step { width: 32px; height: 32px; color: var(--warm-cream); margin-top: 8px; }

.step .card-title { font-size: 1.25rem; color: var(--ivory); }
.step p { margin-top: var(--s-1); color: rgba(254, 251, 246, 0.84); font-size: 0.98rem; max-width: 30em; }

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .steps::before,
  .steps::after {
    top: 6px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
  .steps::after { transform-origin: left; }
  .step { padding: var(--s-6) var(--s-5) 0 0; }
  .step-head { margin-top: 0; }
}

/* ---------- 13. Pricing (apricot editorial) ---------- */
.pricing { background: var(--apricot-tint); }

.pricing-grid { display: grid; gap: var(--s-4); }
.pricing-title { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); }
.pricing-body {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  max-width: 36em;
}
.pricing-lead {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.pricing strong {
  font-weight: 700;
  white-space: nowrap;
}
.pricing-body .btn { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-7);
    align-items: start;
  }
  .pricing-title { padding-top: var(--s-3); border-top: 2px solid var(--ink); }
  .pricing-body { padding-top: var(--s-3); border-top: 1px solid var(--line-strong); }
}
@media (max-width: 559px) {
  .pricing-body .btn { width: 100%; }
}

/* ---------- 14. Examples (complete HTML previews) ---------- */
.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 7vw, 104px); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
}

.case-file {
  min-width: 0;
  position: relative;
  transition: translate var(--t-mid) var(--ease);
}
.case-file:hover { translate: 0 -3px; }

.case-tab {
  display: inline-block;
  max-width: calc(100% - 48px);
  padding: 10px 20px 8px;
  border-radius: 12px 12px 0 0;
  background: var(--manila-back);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
}

.case-media {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--manila-back);
  border-radius: 0 var(--r-panel) var(--r-panel) var(--r-panel);
  background: var(--ivory);
  transition: box-shadow var(--t-mid) ease;
}
.case-file:hover .case-media { box-shadow: var(--shadow-lift); }

/* Responsive live website viewport with native internal scrolling. */
.site-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 34px;
  padding: 0 var(--s-2);
  border-radius: 10px 10px 0 0;
  background: var(--warm-cream);
  border-bottom: 1px solid var(--line);
}
.site-dots { display: inline-flex; gap: 5px; }
.site-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--taupe); }
.site-url {
  min-width: 0;
  flex: 1;
  max-width: 22rem;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--ivory);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-frame {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: var(--ivory);
}
.site-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.site-frame iframe:focus-visible { outline-offset: -3px; }
.case-link { display: inline-block; padding-block: 11px; margin-top: var(--s-1); }

.case-copy { padding-inline: var(--s-1); }
.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2.125rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.case-copy p { margin-top: var(--s-3); max-width: 30em; font-size: var(--fs-lead); line-height: 1.6; }

@media (min-width: 900px) {
  .case {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); /* visual about 58% */
    gap: clamp(40px, 5vw, 72px);
  }
  .case-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .case-flip .case-file { order: 2; }
  .case-copy { padding: 0; }
}

/* ---------- 15. Testimonials (lavender editorial) ---------- */
.testimonials-section { background: var(--lavender); }

.testimonials { display: grid; }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-block: var(--s-5);
}
.quote + .quote { border-top: 1px solid rgba(27, 27, 27, 0.22); }
.quote:first-child { padding-top: 0; }

.quote blockquote { flex: 1; }
.quote blockquote p {
  max-width: 32em;
  font-family: var(--font-quote);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.5;
  text-indent: -0.42em; /* hangs the opening quotation mark in the margin */
}
.quote figcaption {
  display: grid;
  gap: 2px;
  font-size: 1rem;
  line-height: 1.4;
}
.quote figcaption span { color: var(--pine); }

@media (min-width: 900px) {
  .testimonials-section .container {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--s-7);
    align-items: start;
  }
  .testimonials-section .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
}

/* A single editorial quote with space for future approved testimonials. */
.testimonials { gap: var(--s-4); }
.quote.quote-card {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: var(--r-card);
  background: var(--warm-cream);
  box-shadow: 0 1px 2px rgba(27, 27, 27, 0.04);
  transition: translate var(--t-mid) var(--ease), box-shadow var(--t-mid) ease;
}
.quote-card + .quote-card { border-top: 1px solid rgba(27, 27, 27, 0.08); }

/* ---------- 16. Who it's for ---------- */
.audience-grid { display: grid; gap: var(--s-6); align-items: start; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-top: var(--s-5);
}
.tags li {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--citron);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  cursor: default;
  transition: background-color var(--t-mid) ease, translate var(--t-mid) var(--ease);
}
.tags li:hover { translate: 0 -2px; background: var(--lavender); }

.audience-list {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--warm-cream);
}
.audience-list-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--s-1);
}
.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--s-2);
  align-items: start;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list li { transition: translate var(--t-mid) var(--ease); }
.check-list li:hover { translate: 0 -2px; }
.check-list li:hover .icon-check { background: var(--lavender); }
.icon-check {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 7px;
  background: var(--citron);
  color: var(--ink);
  stroke-width: 3;
  transition: background-color var(--t-mid) ease;
}

@media (min-width: 960px) {
  .audience-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
}

/* ---------- 17. About ---------- */
.about-grid { display: grid; gap: var(--s-4); align-items: center; }

.about-photo { width: 100%; max-width: 480px; }
.about-photo img {
  width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 14px 18px;
}

.about-lead {
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 30em;
}
.about-copy p + p { margin-top: var(--s-3); max-width: 36em; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--s-7); }
}

/* ---------- 18. Final CTA + footer (Ink) ---------- */
.final-cta {
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(80px, 10vw, 136px);
}
.final-cta-inner { display: grid; justify-items: center; text-align: center; }

.final-title {
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.final-lead {
  margin-top: var(--s-4);
  max-width: 34em;
  font-size: var(--fs-lead);
  color: rgba(254, 251, 246, 0.86);
}
.btn-row-center { justify-content: center; margin-top: var(--s-5); gap: var(--s-3) var(--s-5); }
.final-cta .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 559px) {
  .btn-row-center { flex-direction: column; width: 100%; }
  .btn-row-center .btn { width: 100%; }
}

.site-footer {
  border-top: 1px solid var(--line-on-dark);
  background: var(--ink);
  color: var(--ivory);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-5);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.wordmark-light { color: var(--ivory); }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
  color: rgba(254, 251, 246, 0.84);
  transition: color var(--t-fast) ease;
}
.footer-nav a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 0.3em; }
.footer-legal { font-size: var(--fs-small); color: rgba(254, 251, 246, 0.72); }

/* ---------- 19. Filing motion: services only, never hide content ---------- */
@media (prefers-reduced-motion: no-preference) {
  .enhanced .folder { transition: transform 420ms var(--ease), translate var(--t-mid) var(--ease); }
  .enhanced .folders.is-filing .folder { transform: translateY(10px) rotate(-0.5deg); }
  .enhanced .folders.is-filing .folder:nth-child(even) { transform: translateY(10px) rotate(0.5deg); }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .folder:hover,
  .folder:focus-within,
  .pain-card:hover,
  .case-file:hover,
  .quote-card:hover,
  .tags li:hover,
  .check-list li:hover,
  .logo-item:hover img,
  .btn:hover { translate: none; }
}

/* Progressive navigation: all links remain usable if JavaScript is unavailable. */
@media (max-width: 959px) {
  html:not(.enhanced) .site-header { position: static; }
  html:not(.enhanced) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.enhanced) .site-nav { position: static; display: block; order: 3; width: 100%; padding: 0; box-shadow: none; }
  .site-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
}
@media (max-width: 559px) {
  .folder-front { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .folder-front > .icon-box { width: 40px; height: 40px; border-radius: 10px; }
  .folder-front .icon-box .icon { width: 24px; height: 24px; }
  .folder-toggle { gap: 8px; text-wrap: pretty; }
  .folder-desc { margin-left: -52px; }
  .folder-desc p { padding-top: 16px; }
  .nowrap { white-space: normal; }
}

/* Each live overview scales the whole document, including the bottom and right edges. */
.system-preview { padding: 10px; }
.system-overview { position: relative; width: 100%; aspect-ratio: var(--sheet-ratio, 1.4); overflow: hidden; background: var(--ivory); }
.system-overview iframe { position: absolute; inset: 0 auto auto 0; border: 0; transform-origin: top left; pointer-events: none; visibility: hidden; }
.system-preview.is-ready iframe { visibility: visible; }
.preview-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; font-size: var(--fs-small); text-align: center; background: var(--ivory); }
.system-preview.is-ready .preview-fallback { display: none; }
.preview-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 10px; padding: 8px 14px; background: var(--warm-cream); border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.preview-open:hover { background: var(--lavender-tint); }
.preview-open:focus-visible { outline-offset: -3px; }
.preview-dialog { width: min(1400px, calc(100vw - 40px)); max-width: none; height: min(920px, calc(100dvh - 40px)); max-height: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--ivory); color: var(--ink); }
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-dialog::backdrop { background: rgba(27, 27, 27, .65); }
.preview-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.preview-toolbar h2 { align-self: center; font: 700 clamp(1.125rem, 2vw, 1.5rem)/1.3 var(--font-display); }
.preview-toolbar p { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--text-secondary); }
.preview-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; border: 1px solid var(--ink); border-radius: 10px; background: var(--ivory); color: var(--ink); font: 600 0.875rem var(--font-body); cursor: pointer; }
.preview-close:hover { background: var(--lavender-tint); }
.preview-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.preview-fit { min-height: 44px; padding: 8px 16px; font-size: var(--fs-small); }
.preview-fit[aria-pressed="true"] { background: var(--lavender); }
.preview-direct { font-size: var(--fs-small); }
.preview-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.preview-viewport iframe { display: block; width: 100%; height: 100%; border: 0; transform-origin: top left; }
body.preview-is-open { overflow: hidden; }
@media (max-width: 559px) {
  .preview-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 12px; }
  .preview-toolbar { padding: 12px; gap: 8px 12px; }
}
