/* ==========================================================================
   Pediment Mindworks — Component Styles
   Structure inspired by (dot)connect: hairline borders, pill buttons,
   numbered/eyebrow headers, generous whitespace. Recolored to PMW palette.
   ========================================================================== */

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow { max-width: var(--content-narrow); }
.wrap--default { max-width: var(--content-default); }

.section {
  padding-block: clamp(var(--space-20), 9vw, var(--space-32));
}
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--dark { background: var(--navy); color: var(--color-text-inverse); }
.section--tint { background: var(--light-gray); }
.section--pale { background: color-mix(in oklab, var(--pale-blue) 35%, white); }
/* Warm-paper neutral tint — a second, warmer section background option
   alongside the cool pale-blue tint, for editorial variety (Kindsight-inspired
   pass). Used behind photo+text narrative sections. */
.section--warm { background: var(--color-surface-warm); }

/* ---------------------------------------------------------------------
   Void Navy — genuine dark hero/section surface (deeper than --navy)
   --------------------------------------------------------------------- */
.section--void {
  background: radial-gradient(120% 140% at 82% -10%, color-mix(in oklab, var(--medium-blue) 22%, transparent), transparent 60%),
              var(--void-navy);
  color: var(--bone);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section--void h1, .section--void h2, .section--void h3, .section--void .h1, .section--void .h2, .section--void .h3 { color: var(--bone); }
.section--void p { color: var(--color-text-inverse-muted); }
.section--void p.lede { color: color-mix(in oklab, var(--bone) 88%, var(--pale-blue)); }
.section--void .eyebrow { color: var(--pale-blue); }
.section--void .eyebrow .num { color: var(--gold); }
.section--void a { color: var(--pale-blue); }
.section--void a:hover { color: var(--bone); }
.section--void hr.hairline { border-top-color: var(--color-border-on-void); }
.section--void .btn-outline { color: var(--bone); border-color: var(--color-border-on-void); }
.section--void .btn-outline:hover { border-color: var(--pale-blue); color: var(--pale-blue); }
/* On void surfaces the primary CTA flips to filled Gold for contrast/pop */
.section--void .btn-primary { background: var(--gold); color: var(--navy); }
.section--void .btn-primary:hover { background: #ffb733; color: var(--navy); }

.void-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}
.void-particles canvas { display: block; width: 100%; height: 100%; }
.section--void > .wrap, .section--void > .hero__grid { position: relative; z-index: 1; }

.stack { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); } .gap-8 { gap: var(--space-8); }

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--medium-blue);
  margin-bottom: var(--space-4);
}
.section--dark .eyebrow { color: var(--pale-blue); }
.eyebrow .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
}

/* Major display headlines (H1, big H2 section titles) go whisper-weight
   300 with tight tracking and a compressed line-height — Kindsight's
   "editorial magazine cover" feel rather than a bold corporate headline. */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: var(--navy);
}
.section--dark h1, .section--dark .h1 { color: var(--bone); }

/* Hero H1 trusts scale — sculptural, confident, tight tracking. Every hero
   gets a healthy bump over base H1; the genuine void-navy heroes (home,
   government, flagship program, about) get the full oversized treatment. */
.hero h1, .hero .h1, h1.text-hero, .text-hero {
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.hero--void h1, .hero--void .h1 {
  font-size: var(--text-hero);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.88;
}
/* Longer headlines (e.g. Government's full title) trust scale less aggressively
   so they never crowd the sticky header or overflow at mid-viewport widths. */
.hero--void h1.h1--long, .hero--void .h1--long {
  font-size: var(--text-hero-long);
  line-height: 0.98;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: var(--navy);
}
.section--dark h2, .section--dark .h2 { color: var(--bone); }

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section--dark h3, .section--dark .h3 { color: var(--bone); }

/* Ultra-light weight moment — hero subheads / pull-quotes only, echoing a Dala-style
   weight-200 signature without touching dense/legible body content elsewhere. */
.lede--thin {
  font-family: var(--font-body);
  font-weight: var(--text-weight-thin);
  letter-spacing: -0.005em;
}
.pull-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--navy);
  max-width: 34rem;
}
.section--void .pull-quote, .section--dark .pull-quote { color: var(--bone); }

h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--navy);
}
.section--dark h4, .section--dark .h4 { color: var(--bone); }

p { color: var(--color-text-muted); max-width: 68ch; }
.section--dark p { color: var(--color-text-inverse-muted); }
p.lede { font-size: var(--text-lg); color: var(--color-text); max-width: 60ch; }
.section--dark p.lede { color: var(--bone); }

.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-center { text-align: center; margin-inline: auto; }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-12);
}
.section-head--rule {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}
.section--dark .section-head--rule { border-top-color: var(--color-border-on-dark); }

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
a.underline-link {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--medium-blue) 40%, transparent);
  text-underline-offset: 3px;
}
.section--dark a { color: var(--pale-blue); }
.section--dark a:hover { color: var(--bone); }

/* Gold sparing highlight underline */
.highlight {
  background: linear-gradient(transparent 65%, color-mix(in oklab, var(--gold) 35%, transparent) 65%);
}

/* ---------------------------------------------------------------------
   Signature emphasis move: exactly one italic word per major headline,
   underlined with a hand-drawn-looking gold squiggle (SVG background,
   not a mechanical border-bottom). On light/cream surfaces the word
   stays Navy text with just the gold underline; on dark void-hero
   surfaces the word additionally renders in Gold text, per the brief.
   --------------------------------------------------------------------- */
.accent-word {
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C22 4 44 3 66 6.5S110 12 132 8 176 2.5 198 6' fill='none' stroke='%23F59E0B' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.22em;
  padding-bottom: 0.1em;
}
.section--void .accent-word, .hero--void .accent-word, .section--dark .accent-word {
  color: var(--gold);
}

/* ---------------------------------------------------------------------
   Buttons — pill-shaped, Navy is the one consistent CTA
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}
.btn-primary:hover { background: var(--color-cta-hover); color: var(--bone); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--medium-blue); color: var(--medium-blue); }
.section--dark .btn-outline { color: var(--bone); border-color: var(--color-border-on-dark); }
.section--dark .btn-outline:hover { border-color: var(--pale-blue); color: var(--pale-blue); }

.btn-ghost {
  background: transparent;
  color: var(--medium-blue);
  padding: 0.5rem 0;
  font-weight: 600;
}
.btn-ghost::after { content: '\2192'; margin-left: var(--space-2); transition: transform var(--transition-interactive); }
.btn-ghost:hover::after { transform: translateX(3px); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--text-xs); }
.btn-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: var(--space-6);
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav-links a:hover { color: var(--medium-blue); }
.nav-links a[aria-current="page"] {
  color: var(--medium-blue);
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: var(--space-5); }

.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary.header-cta { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--bone);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-10); }
.mobile-drawer__top img { height: 30px; }
.mobile-drawer__close { border: 1px solid var(--color-border-on-dark); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); color: var(--bone); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-6); margin-bottom: var(--space-10); }
.mobile-drawer ul a { color: var(--bone); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.mobile-drawer .btn-primary { width: 100%; justify-content: center; font-family: var(--font-body); font-size: var(--text-sm); background: var(--gold); color: var(--navy); }
.mobile-drawer .btn-primary:hover { background: #ffb733; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}
.hero h1 { margin-bottom: var(--space-6); }
.hero .lede { margin-bottom: var(--space-8); }
.hero-visual { position: relative; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
}

/* Void hero — genuine dark, oversized, signature-visual hero (home, government,
   flagship program, about). Bigger and more confident than a plain dark band. */
.hero--void {
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
}
.hero--void .eyebrow { color: var(--pale-blue); }
.hero--void .at-a-glance {
  background: color-mix(in oklab, var(--void-navy-raised) 88%, var(--medium-blue) 12%);
  border-color: var(--color-border-on-void);
  color: var(--bone);
}
.hero--void .at-a-glance p { color: var(--bone); }
.hero--void .at-a-glance .at-a-glance__label { color: var(--pale-blue); }

.hero-visual--signature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-visual--signature img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  animation: hero-drift 36s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.025) translate3d(-0.3%, -0.6%, 0); }
}
@media (max-width: 900px) {
  .hero-visual--signature { max-width: 460px; margin-inline: auto; }
}

/* Recurring low-opacity constellation watermark motif on dark surfaces */
.watermark-motif {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
  mix-blend-mode: screen;
}
.watermark-motif img { width: 100%; height: auto; display: block; }

/* At-a-glance direct-answer block (AEO requirement) */
.at-a-glance {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--gold);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  margin-block: var(--space-8) var(--space-12);
  font-size: var(--text-lg);
  color: var(--navy);
  max-width: none;
}
.at-a-glance p { color: var(--navy); font-size: inherit; max-width: none; }
.at-a-glance .at-a-glance__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--medium-blue);
  margin-bottom: var(--space-3);
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card--accent { border-top: 3px solid var(--accent); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent, var(--medium-blue)) 14%, white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent, var(--medium-blue)); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); margin-bottom: 0; }
.card .card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--medium-blue));
  margin-bottom: var(--space-3);
}

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card-link { display: block; height: 100%; transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive); }
.card-link:hover { border-color: var(--accent, var(--medium-blue)); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-link .btn-ghost { margin-top: var(--space-4); }

/* ---------------------------------------------------------------------
   Signature category art — replaces flat icon-in-a-square treatment.
   Constellation-brain artwork tinted per solution color, used as a
   circular/rounded-square crop above the card copy.
   --------------------------------------------------------------------- */
.card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-6);
  background: var(--void-navy);
}
.card-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card-link:hover .card-art img { transform: scale(1.06); }
.card-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--accent, var(--medium-blue)) 28%, transparent) 100%);
  pointer-events: none;
}
.card--art-round .card-art { aspect-ratio: 1/1; width: 96px; border-radius: 50%; margin-bottom: var(--space-5); }

/* ---------------------------------------------------------------------
   Solutions list — alternating landscape cards (replaces the 3-col grid
   that left a 7th card stranded alone on its own row). Image and copy
   swap sides on every other row for editorial rhythm.
   --------------------------------------------------------------------- */
.solutions-list { display: flex; flex-direction: column; gap: var(--space-6); }
.card-landscape {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.card-landscape:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.solutions-list > [data-reveal]:nth-child(even) .card-landscape { flex-direction: row-reverse; }
.card-landscape__media {
  position: relative;
  flex: 0 0 36%;
  min-height: 260px;
  background: var(--void-navy);
  overflow: hidden;
}
.card-landscape__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.card-landscape:hover .card-landscape__media img { transform: scale(1.06); }
.card-landscape__media .card-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
.card-landscape__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--accent) 30%, transparent) 100%);
  pointer-events: none;
}
.card-landscape__body {
  flex: 1;
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
}
.card-landscape__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.card-landscape__body h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); color: var(--navy); }
.card-landscape__body p { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: 0; max-width: 46ch; }
.card-landscape__body .btn-ghost { margin-top: var(--space-4); }
@media (max-width: 760px) {
  .card-landscape, .solutions-list > [data-reveal]:nth-child(even) .card-landscape { flex-direction: column; }
  .card-landscape__media { flex: 0 0 auto; min-height: 200px; }
  .card-landscape__body { padding: var(--space-6); }
}

/* Category art used as a full-bleed muted background behind header content on solution detail pages */
.category-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--void-navy);
  isolation: isolate;
  min-height: clamp(220px, 32vw, 340px);
  display: flex;
  align-items: flex-end;
}
.category-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.42;
  z-index: 0;
}
.category-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in oklab, var(--void-navy) 96%, black) 30%, color-mix(in oklab, var(--void-navy) 70%, transparent) 68%, transparent 100%);
  z-index: 1;
}
.category-banner__content { position: relative; z-index: 2; padding: clamp(var(--space-10), 6vw, var(--space-16)); max-width: 32rem; }
.category-banner__content h1, .category-banner__content .h1 { color: var(--bone); text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.category-banner__content .eyebrow { color: var(--pale-blue); }

/* ---------------------------------------------------------------------
   Framework / pillars (INSPIRE DEVELOP EMPOWER PERFORM)
   --------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: var(--space-6) 0; border-top: 2px solid var(--gold); }
.pillar .pillar-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
  display: block;
}
.section--dark .pillar .pillar-name { color: var(--bone); }
.pillar p { font-size: var(--text-sm); }

/* ---------------------------------------------------------------------
   Tables (pricing) — hairline, zebra-free, clean corporate feel
   --------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--color-surface);
}
table.pricing-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pricing-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--medium-blue);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--light-gray);
}
table.pricing-table td {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
  vertical-align: top;
}
table.pricing-table tr:last-child td { border-bottom: none; }
table.pricing-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.pricing-table .price-cell { color: var(--medium-blue); font-weight: 700; white-space: nowrap; }

.pricing-block { margin-bottom: var(--space-12); }
.pricing-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.pricing-block__head h3 { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   FAQ accordion (plain HTML details/summary — no JS required)
   --------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-2);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-family: var(--font-body); font-size: var(--text-xl); color: var(--medium-blue); transition: transform var(--transition-interactive); flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 var(--space-2) var(--space-6); max-width: 62ch; }
.faq-item .faq-answer p { font-size: var(--text-base); }

/* ---------------------------------------------------------------------
   Lists w/ check marks
   --------------------------------------------------------------------- */
ul.check-list { display: flex; flex-direction: column; gap: var(--space-4); }
ul.check-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  align-items: flex-start;
}
ul.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent, var(--medium-blue));
}
.section--dark ul.check-list li { color: var(--color-text-inverse-muted); }

ul.plain-list { display: flex; flex-direction: column; gap: var(--space-3); }
ul.plain-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.section--dark ul.plain-list li { border-bottom-color: var(--color-border-on-dark); color: var(--color-text-inverse-muted); }

/* Tag chips (used on government page for keyword lists) */
.chip-cloud { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: var(--color-surface);
}
.section--dark .chip { border-color: var(--color-border-on-dark); color: var(--bone); background: transparent; }

/* ---------------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-block: var(--space-6) 0;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-text-faint); }
.breadcrumbs a:hover { color: var(--medium-blue); }
.breadcrumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: var(--bone); }
.cta-band p { color: var(--pale-blue); margin-bottom: 0; }
.cta-band__text { max-width: 34rem; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy); }
.cta-band .btn-primary:hover { background: #ffb733; }
.cta-band .btn-outline { border-color: var(--color-border-on-dark); color: var(--bone); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--pale-blue);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 30px; margin-bottom: var(--space-5); }
.footer-brand p { color: var(--steel-blue); font-size: var(--text-sm); max-width: 26rem; }
.footer-col h4 { color: var(--bone); font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: var(--pale-blue); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  border-top: 1px solid var(--color-border-on-dark);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--steel-blue);
}
.footer-bottom a { color: var(--steel-blue); }
.footer-bottom a:hover { color: var(--bone); }
.footer-note { font-size: var(--text-xs); color: var(--steel-blue); max-width: 60ch; margin-top: var(--space-3); }

/* ---------------------------------------------------------------------
   Forms (contact page)
   --------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-surface);
  color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--medium-blue);
  outline-offset: 1px;
  border-color: var(--medium-blue);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-required::after { content: ' *'; color: var(--accent-change); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
  display: none;
}
.form-status.visible { display: block; }
.form-status--success { background: color-mix(in oklab, var(--accent-strategy) 12%, white); border: 1px solid color-mix(in oklab, var(--accent-strategy) 40%, white); color: #04543f; }
.form-status--error { background: color-mix(in oklab, var(--accent-change) 10%, white); border: 1px solid color-mix(in oklab, var(--accent-change) 40%, white); color: #7a2e07; }

/* ---------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(var(--space-20), 12vw, var(--space-32)); }
.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw + 2rem, 9rem);
  font-weight: 600;
  color: var(--medium-blue);
  line-height: 1;
  margin-bottom: var(--space-4);
}

/* ---------------------------------------------------------------------
   Decorative geometric motifs (no stock imagery)
   --------------------------------------------------------------------- */
.motif-roofline { color: var(--medium-blue); opacity: 0.9; }
.motif-circuit { color: var(--pale-blue); }
.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   Stat callouts (gold sparing accent)
   --------------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }
.stat { border-top: 3px solid var(--gold); padding-top: var(--space-5); }
.stat .stat-num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--navy); display: block; }
.section--dark .stat .stat-num { color: var(--bone); }
.stat p { font-size: var(--text-sm); margin-top: var(--space-2); }

/* ---------------------------------------------------------------------
   Article / resource pages
   --------------------------------------------------------------------- */
.article-body { max-width: 42rem; }
.article-body h2 { font-size: var(--text-xl); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.article-body h3 { font-size: var(--text-lg); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.article-body p { color: var(--color-text-muted); margin-bottom: var(--space-5); max-width: none; font-size: var(--text-base); }
.article-body a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--medium-blue) 35%, transparent); }
.article-meta { display: flex; gap: var(--space-4); align-items: center; color: var(--color-text-faint); font-size: var(--text-xs); margin-bottom: var(--space-6); }
.article-dek { font-size: var(--text-lg); color: var(--color-text); margin-bottom: var(--space-8); max-width: 42rem; }

/* ---------------------------------------------------------------------
   Disclaimer note box
   --------------------------------------------------------------------- */
.note-box {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--light-gray);
}
.section--dark .note-box { background: transparent; border-color: var(--color-border-on-dark); color: var(--pale-blue); }

/* Skip-link, visually-hidden utility already in base.css */

/* Two-col content/side layout for solutions pages */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.side-card { position: sticky; top: 6rem; }

/* ---------------------------------------------------------------------
   Editorial asymmetric "zigzag" storytelling layout — visual on one
   side, oversized text on the other, alternating sides between
   sections (About, Government intro, flagship "who it's for", home
   positioning). Dense data (tables/FAQ/curriculum) stays out of this.
   --------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.editorial__visual { position: relative; }
.editorial__visual img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
}
.editorial__text h2 { margin-bottom: var(--space-5); }
.editorial--reverse .editorial__visual { order: 2; }
.editorial--reverse .editorial__text { order: 1; }
@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__visual,
  .editorial--reverse .editorial__text { order: initial; }
  .editorial__visual { max-width: 420px; margin-inline: auto; }
}

/* Numbered eyebrow badges for solution cards on hub */
.num-badge {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

hr.hairline { border: none; border-top: 1px solid var(--color-border); margin-block: var(--space-8); }
.section--dark hr.hairline { border-top-color: var(--color-border-on-dark); }

/* ---------------------------------------------------------------------
   Ambient scroll-reveal motion — tasteful fade/slide-up on section
   entry, driven by IntersectionObserver in main.js. Respects
   prefers-reduced-motion via base.css's global override plus this
   explicit guard (content is never hidden if JS fails to run).
   --------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--reveal-i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-visual--signature img { animation: none; }
}

/* JS not yet run / no-js fallback: never hide content */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Footer constellation watermark — recurring low-opacity motif reuse of
   the hero signature visual, per brief §1 ("recurring motif watermark") */
.site-footer { position: relative; overflow: hidden; }
.site-footer .watermark-motif {
  right: -8%;
  top: -18%;
  width: 56%;
  min-width: 420px;
}
.site-footer .wrap { position: relative; z-index: 1; }

/* Hover motion for footer + nav links, respecting reduced motion via base.css */
.footer-col a, .nav-links a { position: relative; }

/* ---------------------------------------------------------------------
   Photo-feature editorial sections — warm candid photography paired
   with narrative text, alternating sides between sections (Kindsight's
   feature-section pattern). Reuses the .editorial grid primitive but
   swaps the constellation-art visual for a real photograph: 24px radius,
   at most a hairline shadow, no heavy drop-shadow.
   --------------------------------------------------------------------- */
.photo-feature__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.photo-feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-feature__media--portrait { aspect-ratio: 3 / 4; }
.photo-feature__caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

/* ---------------------------------------------------------------------
   Score-circle data viz — thick-stroke circular progress ring, accent
   gold arc on a muted track, whisper-weight Fraunces number centered.
   Adapted from Kindsight's score-circle stat component, kept subtle and
   editorial rather than a flashy dashboard gauge.
   --------------------------------------------------------------------- */
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 760px) { .score-row { grid-template-columns: 1fr; } }
.score-stat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.score-circle {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}
.score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-circle circle.score-circle__track {
  fill: none;
  stroke: color-mix(in oklab, var(--pale-blue) 45%, white);
  stroke-width: 7;
}
.section--warm .score-circle circle.score-circle__track { stroke: color-mix(in oklab, var(--gold) 16%, white); }
.score-circle circle.score-circle__arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.score-circle__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xl);
  color: var(--navy);
}
.section--dark .score-circle__num { color: var(--bone); }
.score-stat p { font-size: var(--text-sm); margin-top: 0; }

