/* ==========================================================================
   Investment Readiness Protocol 360° — Aggelakakis & Associates · Global Group
   Locked palette (Production Spec v3.0 §A4): #024263 petrol · #B63626 brick
   ========================================================================== */

:root {
  --navy: #024263;
  --navy-deep: #012c3f;
  --brick: #b63626;
  --brick-light: #ff9a85;      /* brick is illegible on navy — light tint for the Index eyebrow */
  --white: #ffffff;
  --surface: #f8f9fa;
  --neutral: #d0cfcd;
  --tint: #e1e8ed;             /* navy tint — secondary container */
  --tint-hover: #d3dfe7;
  --blue: #0067c8;
  --teal: #00617f;

  /* Muted tiers are alpha-only derivations of --navy so the locked palette holds.
     Levels chosen so every one clears WCAG AA (4.5:1) at 13–15px on --white and
     --surface; on the darker --neutral panels the two rules further down switch
     to solid navy, which 0.78 alpha cannot reach (4.33:1). */
  --ink: var(--navy);
  --ink-muted: rgba(2, 66, 99, 0.78);
  --ink-faint: rgba(2, 66, 99, 0.72);
  --ink-quiet: rgba(2, 66, 99, 0.76);
  --hairline: rgba(2, 66, 99, 0.18);

  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.82);
  --on-dark-faint: rgba(255, 255, 255, 0.7);

  --shell: 108rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --r-shell: 48px;
  --r-panel: 40px;
  --r-card-lg: 32px;
  --r-card: 24px;
  --r-inner: 16px;
  --r-pill: 9999px;

  --sh-1: 0 1px 3px rgba(0, 0, 0, 0.08);
  --sh-2: 0 4px 12px rgba(0, 0, 0, 0.14);
  --sh-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
  --sh-hover-dark: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------- base ---- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 8px;
}

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

/* ------------------------------------------------------------ layout ---- */

.page { position: relative; display: flex; flex-direction: column; width: 100%; }

.shell { max-width: var(--shell); margin: 0 auto; }

/* Anchor targets must clear the sticky header. */
section[id] { scroll-margin-top: 124px; }
#hero { scroll-margin-top: 0; }

.section { padding: 0 24px clamp(64px, 8vw, 96px); }
.section--first { padding-top: clamp(64px, 8vw, 96px); }
.section--tight { padding-bottom: clamp(48px, 6vw, 72px); }
.section--slim { padding-bottom: clamp(40px, 5vw, 64px); }

@media (min-width: 1000px) {
  /* rem, not em: WordPress global styles set a body font-size, and an em here
     would silently rescale the page gutters. 4rem renders identically. */
  .edge-pad { padding-left: 4rem; padding-right: 4rem; }
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brick);
  margin-bottom: 12px;
}
.eyebrow--quiet { color: var(--ink-muted); }
.eyebrow--on-dark { color: var(--brick-light); }

.h2 {
  color: var(--navy);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h2--sm { font-size: clamp(28px, 3vw, 40px); }
.h2--on-dark { color: var(--on-dark); }

.lede {
  color: var(--ink-muted);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
}

.note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }

.nodes-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
}

/* ----------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(2, 66, 99, 0.12);
  overflow-wrap: break-word;
  transition: background 300ms var(--ease), color 300ms var(--ease),
              box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.btn:active { transform: scale(0.95); }
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn--filled { background: var(--navy); color: var(--on-dark); }
.btn--filled:hover {
  background: rgba(2, 66, 99, 0.9);
  color: var(--on-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.btn--tonal { background: var(--tint); color: var(--navy); }
.btn--tonal:hover {
  background: var(--tint-hover);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.btn--outline {
  background: transparent;
  border-color: rgba(2, 66, 99, 0.45);
  color: var(--navy);
}
.btn--outline:hover { background: rgba(2, 66, 99, 0.06); color: var(--navy); }

.btn--on-dark { background: var(--white); color: var(--navy); }
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn--ghost-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--on-dark);
  height: 44px;
  padding: 0 26px;
  font-size: 14px;
}
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }

.btn--lg { height: 56px; padding: 0 36px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 24px; font-size: 14px; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
}
.link-cta:hover { color: var(--brick); }
.link-cta .icon { width: 16px; height: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; align-items: stretch; width: fit-content; gap: 8px; }
.brand__logo { height: 38px; width: auto; }
.brand__sub {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--brick);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand--footer .brand__logo { height: 40px; }
.brand--footer .brand__sub { font-size: 17px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: rgba(2, 66, 99, 0.1); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-contact {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 300ms var(--ease);
}
.header-contact:hover { background: rgba(2, 66, 99, 0.1); color: var(--navy); }
@media (min-width: 1240px) { .header-contact { display: inline-flex; } }

.header-cta { flex: none; white-space: nowrap; }

.nav-mobile { display: none; position: relative; }
.nav-mobile > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  list-style: none;
  cursor: pointer;
  transition: background 300ms var(--ease);
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:hover { background: var(--tint-hover); }
.nav-mobile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 15rem;
  background: var(--surface);
  border-radius: 28px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.nav-mobile__panel a {
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--navy);
  transition: background 200ms var(--ease);
}
.nav-mobile__panel a:hover { background: rgba(2, 66, 99, 0.1); color: var(--navy); }

/* Must out-specify `.nav-mobile__panel a`, or the text renders navy-on-navy. */
.nav-mobile__panel .nav-mobile__cta {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 500;
  text-align: center;
}
.nav-mobile__panel .nav-mobile__cta:hover { background: rgba(2, 66, 99, 0.9); color: var(--on-dark); }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
}

/* -------------------------------------------------------------- hero ---- */

.hero { padding: 24px 24px 0; }

.hero__shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  border-radius: var(--r-shell);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  padding: clamp(48px, 7vw, 104px) clamp(28px, 5vw, 72px) clamp(40px, 5vw, 72px);
}

.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__media .photo,
.hero__media .photo img { position: absolute; inset: -6%; width: 112%; height: 112%; }
.hero__media .photo img { transform: scale(1.02); object-fit: cover; }
/* The prototype's scrim ran dark-at-the-bottom (0.75) → light-at-the-top (0.15),
   which suited the earlier two-column hero. Once the 360° wheel was dropped the
   hero became single-column with every line of text at the TOP-LEFT — i.e. over
   the weakest part of the scrim, measuring 2.56:1 for the H1 (AA needs 3:1).
   The scrim is now weighted toward the text column instead, so the photo stays
   clearly visible on the open right-hand side where nothing overlaps it. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(2, 20, 30, 0.80) 0%,
      rgba(2, 20, 30, 0.72) 38%,
      rgba(2, 20, 30, 0.34) 72%,
      rgba(2, 20, 30, 0.18) 100%),
    linear-gradient(to top,
      rgba(2, 20, 30, 0.45) 0%,
      rgba(2, 20, 30, 0.10) 40%,
      rgba(2, 20, 30, 0.00) 100%);
}

/* Below the split, text spans the full width — the scrim must too. */
@media (max-width: 860px) {
  .hero__scrim {
    background:
      linear-gradient(to right, rgba(2, 20, 30, 0.78) 0%, rgba(2, 20, 30, 0.70) 100%),
      linear-gradient(to top, rgba(2, 20, 30, 0.35) 0%, rgba(2, 20, 30, 0.10) 60%, rgba(2, 20, 30, 0) 100%);
  }
}

.hero__body { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.badge__dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--brick); }

.hero h1 {
  color: var(--on-dark);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 44rem;
  margin-bottom: 24px;
}
.hero__lede {
  color: var(--on-dark-muted);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 34rem;
  margin-bottom: 24px;
}
.hero__claims {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}
.hero__claims .sep { color: rgba(255, 255, 255, 0.4); }
.hero__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero__caveat {
  color: var(--on-dark-faint);
  font-size: 13px;
  line-height: 1.6;
  max-width: 30rem;
}
.hero__actions .btn--ghost-on-dark { margin-top: 6px; }

.hero__marquee {
  width: 100%;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* ----------------------------------------------------------- marquee ---- */

.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }

.marquee-city {
  margin: 0 10px;
  flex: none;
  white-space: nowrap;
  color: var(--on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.marquee-city .sep { margin-left: 20px; color: rgba(255, 255, 255, 0.35); }

.marquee-chip {
  margin: 0 24px;
  flex: none;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------- cards ---- */

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--sh-1);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.card:hover { box-shadow: var(--sh-hover); transform: scale(1.02); }

.card--navy { background: var(--navy); color: var(--on-dark); box-shadow: var(--sh-2); }
.card--brick { background: var(--brick); color: var(--on-dark); box-shadow: var(--sh-2); }
.card--tint { background: var(--tint); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.card--navy:hover,
.card--brick:hover,
.card--tint:hover { box-shadow: var(--sh-hover-dark); transform: scale(1.02); }

.card--white { background: var(--white); border-radius: var(--r-card-lg); }

.card__title { color: var(--navy); font-size: 24px; font-weight: 500; line-height: 1.3; }
.card__title--sm { font-size: 22px; }
.card__text { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }

.card--navy .card__title,
.card--brick .card__title { color: var(--on-dark); }
.card--navy .card__text,
.card--brick .card__text { color: rgba(255, 255, 255, 0.88); }
.card--tint .card__text { color: var(--navy); }

.numeral {
  width: 48px; height: 48px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}
.card--navy .numeral { background: rgba(255, 255, 255, 0.18); color: var(--on-dark); }

/* 02 — Exposure */
.exposure-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.exposure-card__label { font-size: 24px; font-weight: 500; line-height: 1.3; margin-bottom: 16px; }
.exposure-card__figure { font-size: 28px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.exposure-card__note { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.card--navy .exposure-card__note { color: rgba(255, 255, 255, 0.86); }

/* 03 — Engine */
.panel {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  border-radius: var(--r-shell);
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px);
}
.panel--surface { background: var(--surface); }
.panel--navy { background: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.panel__content { position: relative; z-index: 10; }

.engine-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.engine-card .photo { width: 100%; height: 120px; border-radius: 20px; }

/* 04 — Distinction */
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 24px 32px;
}
.cmp-head { padding: 0 8px 16px; }
.cmp-head__cell { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--navy); }
.cmp-head__cell--muted { color: var(--ink-muted); }

.cmp-rows { display: flex; flex-direction: column; gap: 16px; }
.cmp-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px;
  transition: box-shadow 300ms var(--ease);
}
.cmp-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.cmp-card__label { color: var(--navy); font-size: 24px; font-weight: 500; line-height: 1.3; }
.cmp-card__market { color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
.cmp-card__ours {
  background: var(--tint);
  border-radius: var(--r-inner);
  padding: 20px 24px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.65;
}
.cmp-mobile-label {
  display: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.cmp-card__market .cmp-mobile-label { color: var(--ink-muted); }
.cmp-card__ours .cmp-mobile-label { color: var(--navy); }

/* 04b — Pull quote */
.pullquote {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--brick);
  border-radius: var(--r-panel);
  padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pullquote__eyebrow { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.pullquote__text {
  color: var(--on-dark);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 46ch;
}

/* 05 — Process */
.step-card { min-height: 320px; display: flex; flex-direction: column; gap: 20px; }
.step-card__num {
  width: 56px; height: 56px;
  flex: none;
  border-radius: var(--r-inner);
  background: var(--navy);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
}
.step-card__num--brick { background: var(--brick); }

/* 05b — Mid-page CTA */
.cta-band {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--tint);
  border-radius: var(--r-panel);
  padding: clamp(32px, 4vw, 48px) clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band__text {
  color: var(--navy);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 34rem;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 06 — Pillars */
.pillar-grid { grid-auto-rows: 1fr; }
.pillar-grid > * { aspect-ratio: 16 / 9; overflow: hidden; }

.pillar-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border: none;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.pillar-card:hover { box-shadow: var(--sh-hover); transform: scale(1.02); }
.pillar-card--tint { background: var(--tint); }

.pillar-card__badge {
  width: 30px; height: 30px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}
.pillar-card__badge--brick { background: var(--brick); color: var(--on-dark); }

.pillar-card__title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pillar-card__body {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pillar-card--tint .pillar-card__body { color: var(--navy); }

.pillars-footer { margin-top: 32px; text-align: center; }

/* 07 — Index */
.index-card { background: var(--white); border-radius: var(--r-card-lg); padding: clamp(28px, 4vw, 48px); }

.iri-grades,
.iri-bar { display: grid; grid-template-columns: 45fr 15fr 15fr 15fr 10fr; }
.iri-grades { gap: 4px; margin-bottom: 12px; }
.iri-grades span { font-size: 22px; font-weight: 500; color: var(--navy); text-align: center; }
.iri-grades span.is-low { color: var(--brick); }

.iri-bar { gap: 3px; height: 14px; }
.iri-bar span { border-radius: var(--r-pill); }
.iri-bar span:nth-child(1) { background: var(--neutral); }
.iri-bar span:nth-child(2) { background: #b9c6cf; }
.iri-bar span:nth-child(3) { background: #7fa2b4; }
.iri-bar span:nth-child(4) { background: var(--teal); }
.iri-bar span:nth-child(5) { background: var(--navy); }

.iri-scale { position: relative; height: 28px; margin-top: 12px; }
.iri-scale span {
  position: absolute;
  top: 0;
  font-size: 13px;
  color: var(--ink-muted);
  transform: translateX(-50%);
}
.iri-scale span:first-child { left: 0; transform: none; }
.iri-scale span:last-child { left: auto; right: 0; transform: none; }

.iri-legend { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--neutral); gap: 20px; }
.iri-legend > div { display: flex; flex-direction: column; gap: 10px; }
.iri-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--neutral);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.iri-chip--tint { background: var(--tint); }
.iri-chip--navy { background: var(--navy); color: var(--on-dark); }
/* must not use a bare `.iri-legend p` — it would out-specify the chip colours */
.iri-legend .iri-desc { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }

.index-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 48rem;
}

/* 08 — Audience */
.audience-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.audience-photo-row .photo { min-height: 220px; border-radius: var(--r-card); }
.audience-aside {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.audience-aside p { color: var(--navy); font-size: 18px; line-height: 1.55; }

.audience-card { min-height: 260px; display: flex; flex-direction: column; gap: 16px; }

.not-for {
  margin-top: 32px;
  background: var(--neutral);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.not-for__list { color: var(--navy); font-size: 15px; line-height: 1.8; max-width: 62rem; }
/* --neutral is too dark for the alpha-muted tier — solid navy is 6.85:1 there. */
.not-for .eyebrow--quiet,
.boundaries .eyebrow--quiet { color: var(--navy); }

/* 09 — Proof */
.stat-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--navy);
}
.stat-tile .photo,
.stat-tile .photo img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  border-radius: 0;
}
.stat-tile .photo img { transform: scale(1.02); object-fit: cover; }
.stat-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(2, 20, 30, 0.78) 0%, rgba(2, 20, 30, 0.2) 48%, rgba(2, 20, 30, 0.02) 72%);
  pointer-events: none;
}
.stat-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.stat-num {
  color: var(--on-dark);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-label { color: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.4; }

.hubs-row { background: var(--surface); border-radius: var(--r-card); padding: 32px; }
.hubs-row__text { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.hubs-row__marquee { overflow: hidden; }

/* 10 — Screening */
.screening-panel {
  max-width: var(--shell);
  margin: 40px auto 0;
  background: var(--surface);
  border-radius: var(--r-card-lg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.screening-panel .btn { height: 52px; }
.disclaimer { color: var(--ink-quiet); font-size: 13px; line-height: 1.7; max-width: 52rem; }

/* 11 — Boundaries */
.boundaries {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--neutral);
  border-radius: var(--r-card-lg);
  padding: clamp(32px, 4vw, 48px);
}
.boundaries__text { color: var(--navy); font-size: 16px; line-height: 1.8; }

/* 12 — Final CTA */
.final-cta {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--navy);
  border-radius: var(--r-shell);
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.final-cta__body { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; }
.final-cta h2 {
  color: var(--on-dark);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 24ch;
}
.final-cta__caveat {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 38rem;
}
.final-cta .btn--ghost-on-dark { margin-top: 20px; height: 46px; padding: 0 28px; }

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

.site-footer { padding: 48px 24px 40px; background: var(--white); }
.site-footer__inner { max-width: var(--shell); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: flex-end;
}
.site-footer__hubs { color: var(--ink-muted); font-size: 14px; }
.site-footer__link {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms var(--ease);
}
.site-footer__link:hover { background: rgba(2, 66, 99, 0.1); color: var(--navy); }
.site-footer__link--filled { background: var(--navy); color: var(--on-dark); }
.site-footer__link--filled:hover { background: rgba(2, 66, 99, 0.85); color: var(--on-dark); }

.site-footer__seo { color: rgba(2, 66, 99, 0.72); font-size: 14px; line-height: 1.7; max-width: 62rem; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tint);
  padding-top: 20px;
}
.site-footer__copyright { color: var(--ink-faint); font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links button {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(2, 66, 99, 0.72);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.legal-links button:hover { color: var(--navy); }

/* ------------------------------------------------- image placeholders ---- */

.photo { position: relative; overflow: hidden; border-radius: 12px; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--surface);
  border: 1px dashed rgba(2, 66, 99, 0.28);
}
.photo--empty::after {
  content: attr(data-placeholder);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  max-width: 22rem;
}
/* On dark tiles the frame is the tile itself — drop the dashed box and let the
   caption centre on the full tile rather than on the -6% bleed box. */
.stat-tile .photo--empty,
.hero__media .photo--empty { border: 0; background: transparent; inset: 0; width: 100%; height: 100%; }
.stat-tile .photo--empty::after,
.hero__media .photo--empty::after { color: rgba(255, 255, 255, 0.45); }

/* -------------------------------------------------- decorative blobs ---- */

.blob { position: absolute; pointer-events: none; }
.blob--hero-teal {
  top: -12%; right: -8%;
  width: 42rem; height: 26rem;
  border-radius: 100px;
  border-top-right-radius: 20px;
  background: var(--teal);
  filter: blur(64px);
  opacity: 0.45;
}
.blob--hero-brick {
  bottom: -30%; left: -10%;
  width: 34rem; height: 34rem;
  border-radius: var(--r-pill);
  background: var(--brick);
  filter: blur(72px);
  opacity: 0.35;
}
.blob--engine {
  top: -20%; left: -6%;
  width: 30rem; height: 30rem;
  border-radius: var(--r-pill);
  background: var(--tint);
  filter: blur(64px);
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.blob--index {
  bottom: -32%; right: -6%;
  width: 32rem; height: 32rem;
  border-radius: var(--r-pill);
  background: var(--brick);
  filter: blur(72px);
  opacity: 0.4;
}
.blob--cta-brick {
  top: -30%; right: -8%;
  width: 36rem; height: 36rem;
  border-radius: var(--r-pill);
  background: var(--brick);
  filter: blur(64px);
  opacity: 0.55;
}
.blob--cta-tint {
  bottom: -40%; left: -10%;
  width: 32rem; height: 32rem;
  border-radius: 100px;
  border-top-right-radius: 20px;
  background: var(--tint);
  filter: blur(64px);
  opacity: 0.3;
}

.glow { position: absolute; inset: 0; pointer-events: none; }
.glow--hero { background: radial-gradient(circle at 78% 18%, rgba(0, 103, 200, 0.2) 0%, transparent 42%); }
.glow--engine { background: radial-gradient(circle at 88% 12%, rgba(2, 66, 99, 0.16) 0%, transparent 44%); }

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.06); }
}
.blob--float { animation: floatSlow 22s ease-in-out infinite; will-change: transform; }
.blob--float-alt { animation: floatSlow 30s ease-in-out infinite reverse; will-change: transform; }

/* ------------------------------------------------------ scroll reveal ---- */

.om-pre { opacity: 0; transform: translate3d(0, 28px, 0); }
.om-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.om-bar { transform: scaleX(0); transform-origin: left center; }
.om-bar-in { transform: scaleX(1); transition: transform 1100ms var(--ease); }

/* ----------------------------------------------------- side timeline ---- */

.side-timeline {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 80vh;
}
.side-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline);
  transform: translateX(-50%);
  z-index: -1;
}
.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin: 5px 0;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid rgba(2, 66, 99, 0.3);
  color: rgba(2, 66, 99, 0.76);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  transition: all 250ms var(--ease);
}
.timeline-dot:hover { border-color: var(--navy); color: var(--navy); transform: scale(1.18); }
.timeline-dot.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
  transform: scale(1.28);
}
.timeline-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  opacity: 0;
  pointer-events: none;
  transition: all 200ms var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.timeline-dot:hover .timeline-tip,
.timeline-dot:focus-visible .timeline-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (min-width: 1300px) { .side-timeline { display: flex; } }

/* ------------------------------------------------------------ modals ---- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 20, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__dialog {
  width: 90vw;
  max-width: 1100px;
  height: 90vh;
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.modal__dialog--sm { max-width: 720px; height: auto; max-height: 90vh; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--tint);
  flex: none;
}
.modal__title { font-size: 20px; font-weight: 500; color: var(--navy); }
.modal__kicker { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--brick); }
.modal__close {
  width: 36px; height: 36px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.modal__close:hover { background: var(--tint); }

.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  color: rgba(2, 66, 99, 0.85);
  font-size: 15px;
  line-height: 1.75;
}
.modal__body p + p { margin-top: 1em; }
.modal__body [hidden] { display: none; }

.pillar-detail__title { color: var(--navy); font-size: 22px; font-weight: 500; line-height: 1.3; margin-bottom: 16px; }
.pillar-detail__text { color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
.pillar-detail__lock {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tint);
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------------------------------------------- cookie banner ---- */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
/* Reserve room so the fixed banner never covers the footer's legal links. */
.cookie-banner-open .site-footer { padding-bottom: calc(40px + var(--cookie-h, 96px)); }
.cookie-banner p { color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.6; max-width: 56rem; }
.cookie-banner a { color: var(--on-dark); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex: none; }
.cookie-banner__btn {
  height: 42px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.cookie-banner__btn:hover { background: rgba(255, 255, 255, 0.88); }
.cookie-banner__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--on-dark);
}
.cookie-banner__btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ------------------------------------------------------- sticky CTA ---- */

.sticky-cta { display: none; }

/* ------------------------------------------------------- responsive ---- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .grid-3, .nodes-row { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cmp-row { grid-template-columns: 1fr; gap: 16px; }
  .cmp-head { display: none; }
  .cmp-mobile-label { display: block; }
  .hero__shell { border-radius: var(--r-card); }
}

@media (max-width: 720px) {
  .audience-photo-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .btn {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .btn--auto,
  .header-cta { width: auto; }
  .hero__actions,
  .screening-panel,
  .final-cta__body { align-self: stretch; width: 100%; }
  .cta-band__actions { width: 100%; }
}

@media (max-width: 430px) {
  section[id] { scroll-margin-top: 84px; }
  .brand__sub { display: none; }
  /* Production Spec §Ζ1 — at ≤430px the header is brand + menu only. The CTA
     lives in the Sections menu and in the sticky bottom bar instead, so it can
     never be clipped off the right edge. */
  .header-cta { display: none; }
  .nav-mobile__panel .nav-mobile__cta { display: flex; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--neutral);
  }
  .page { padding-bottom: 82px; }
  .cookie-banner { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .om-pre, .om-bar { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .side-timeline, .cookie-banner, .sticky-cta, .site-header { display: none !important; }
  .om-pre { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   WordPress layer
   Everything below is theme-integration only: the utility classes that replaced
   the prototype's inline styles, plus the interior templates (blog, archives,
   search, comments) and the core markup WordPress emits.
   ========================================================================== */

/* ------------------------------------------- utilities from inline styles -- */

.split--header { margin-bottom: 48px; }
.h2--section { margin-bottom: 48px; }
.h2--spaced { margin-bottom: 32px; }
.lede--lg { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }
.note--after-grid { margin-top: 24px; max-width: 46rem; }
.eyebrow--flush { margin-bottom: 0; }
.engine-card--lead { border-radius: var(--r-card-lg); }
.pillar-photo { border-radius: var(--r-card); }
.step-list { list-style: none; margin: 0; padding: 0; }
.proof-grid { margin-bottom: 48px; }
.section--final { padding: 0 24px 24px; }

/* --------------------------------------------------------- navigation ---- */

.nav-links__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile__panel .nav-links__list { flex-direction: column; align-items: stretch; gap: 2px; }
.site-footer__nav .nav-links__list { gap: 8px; }
.site-footer__nav a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms var(--ease);
}
.site-footer__nav a:hover { background: rgba(2, 66, 99, 0.1); color: var(--navy); }

/* ------------------------------------------------------ accessibility ---- */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  height: auto;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  transition: top 200ms var(--ease);
}
/* Core's .screen-reader-text:focus (block-library) sets background/padding at
   (0,2,0) and would otherwise repaint this as the default grey box — every
   property it touches has to be restated here at matching specificity. */
.skip-link:focus {
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

/* -------------------------------------------------------------- logo ---- */

/* theme.json emits a global heading colour on the ELEMENT selector
   (h1..h6 { color: navy }). An element selector still beats inheritance, so any
   heading on a dark surface that relied on inheriting --on-dark renders
   navy-on-navy — invisible. Restate it for every dark container. */
.card--navy :is(h1, h2, h3, h4, h5, h6),
.card--brick :is(h1, h2, h3, h4, h5, h6),
.panel--navy :is(h1, h2, h3, h4, h5, h6),
.final-cta :is(h1, h2, h3, h4, h5, h6),
.hero :is(h1, h2, h3, h4, h5, h6),
.pullquote :is(h1, h2, h3, h4, h5, h6) { color: var(--on-dark); }

.custom-logo { height: 38px; width: auto; }
.brand--footer .custom-logo { height: 40px; }

/* --------------------------------------------------- interior layout ---- */

.shell--reading { max-width: 62rem; }

.page-header { margin-bottom: 40px; }
.page-header .h2 { margin-bottom: 12px; }
.page-header__actions { margin-top: 24px; }
.archive-description { color: var(--ink-muted); font-size: 16px; line-height: 1.7; max-width: 46rem; }

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 14px;
}
.entry-meta .sep { color: var(--ink-faint); }

.entry-media {
  margin: 0 0 40px;
  border-radius: var(--r-card);
  overflow: hidden;
}
.entry-media img { width: 100%; height: auto; }

/* ------------------------------------------------------ entry content ---- */

.entry-content { color: rgba(2, 66, 99, 0.86); font-size: 17px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.5em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.entry-content h2 { font-size: clamp(26px, 2.6vw, 32px); }
.entry-content h3 { font-size: clamp(21px, 2vw, 24px); }
.entry-content h4 { font-size: 19px; }

.entry-content a { text-decoration: underline; text-underline-offset: 0.15em; }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }

.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 32px;
  border-left: 3px solid var(--brick);
  background: var(--surface);
  border-radius: 0 var(--r-inner) var(--r-inner) 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.6;
}
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-muted); font-style: normal; }

.entry-content code,
.entry-content kbd {
  background: var(--tint);
  border-radius: 6px;
  padding: 0.15em 0.45em;
  font-size: 0.9em;
}
.entry-content pre {
  background: var(--navy);
  color: var(--on-dark);
  border-radius: var(--r-inner);
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }

.entry-content img,
.entry-content figure img { border-radius: var(--r-inner); height: auto; }
.entry-content figcaption,
.wp-caption-text {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tint);
  text-align: left;
}
.entry-content th { color: var(--navy); font-weight: 500; }

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--tint);
  margin: 3em 0;
}

/* Tables and wide code must scroll inside themselves, never the page. */
.entry-content .wp-block-table { overflow-x: auto; }

/* ------------------------------------------------ core alignment API ---- */

.alignleft  { float: left;  margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignwide { width: min(68rem, 100%); margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }
.entry-content .alignfull img { border-radius: 0; }

@media (max-width: 782px) {
  .alignleft, .alignright { float: none; margin: 0 0 1em; }
}

.sticky .card__title::before { content: "★ "; color: var(--brick); }
.bypostauthor > .comment-body { border-left: 2px solid var(--tint); padding-left: 16px; }

/* ---------------------------------------------------------- post list ---- */

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .post-list { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; gap: 20px; padding: 0; overflow: hidden; }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 0 32px 32px; }
.post-card:not(:has(.post-card__media)) .post-card__body { padding-top: 32px; }
.post-card .card__title a { color: var(--navy); }
.post-card .card__title a:hover { color: var(--brick); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.entry-tags a {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
}
.entry-tags a:hover { background: var(--tint-hover); color: var(--navy); }

.no-results { display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------------------------------- navigation ---- */

.post-navigation,
.comment-navigation,
.pagination {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tint);
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr; } }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; color: var(--ink-faint); font-size: 13px; margin-bottom: 4px; }
.nav-title { color: var(--navy); font-size: 17px; font-weight: 500; line-height: 1.35; }
.post-navigation a:hover .nav-title { color: var(--brick); }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  transition: background 200ms var(--ease);
}
.pagination .page-numbers:hover { background: var(--tint); color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); color: var(--on-dark); }
.pagination .dots:hover { background: none; }

.page-links { margin-top: 2em; display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ------------------------------------------------------- search form ---- */

.search-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.search-form__field {
  flex: 1 1 16rem;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}
.search-form__field::placeholder { color: var(--ink-faint); }
.search-form__field:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.search-form__submit { flex: none; }

/* ---------------------------------------------------------- comments ---- */

.comments-area { margin-top: 8px; }
.comments-title, .comment-reply-title { margin-bottom: 32px; }

.comment-list { list-style: none; margin: 0 0 48px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 24px 0 0 32px; padding: 0; }
@media (max-width: 640px) { .comment-list ol.children { margin-left: 16px; } }

.comment-body {
  padding: 24px 0;
  border-bottom: 1px solid var(--tint);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: var(--r-pill); }
.comment-author .fn { color: var(--navy); font-weight: 500; font-style: normal; }
.comment-metadata a { color: var(--ink-faint); font-size: 13px; }
.reply a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.reply a:hover { color: var(--brick); }

.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-inner);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}
.comment-form textarea { min-height: 9rem; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.comment-form .comment-notes,
.comment-form .form-submit { margin: 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--ink-muted); }

/* ---------------------------------------------------------- widgets ---- */

.site-footer__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 32px;
  padding-bottom: 12px;
}
.widget-title { color: var(--navy); font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: 8px; }
.widget a { color: var(--ink-muted); font-size: 15px; }
.widget a:hover { color: var(--navy); }
