/* ==========================================================================
   eLEA.to — site stylesheet
   Nexint Systems, S.L.

   Palette: the established eLEA.to brand tokens (navy + gold), on the warm
   cream of the 2026 business card. Every text pair below is measured:

     navy    #1B365D on cream #FBFAF7 = 11.61:1  (AAA)
     ink     #1A1A2E on cream         = 16.34:1  (AAA)
     muted   #5A6270 on cream         =  5.89:1  (AA)
     goldink #8F6A23 on cream         =  4.73:1  (AA, small text)
     golddsp #B08736 on cream         =  3.16:1  (AA, large text only)
     gold    #D4A853 on navy          =  5.50:1  (AA, any size)
     goldlt  #E8C882 on navy          =  7.51:1  (AAA)
     pale    #8FA4C4 on navy          =  4.78:1  (AA)

   The brand gold #D4A853 measures only 2.11:1 on cream, so it is used at full
   strength wherever it sits on navy — the decision dot, the CTA button, footer
   headings, progress fills — and steps down one shade for text on cream.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --navy-900: #0F1F3A;
  --navy:     #1B365D;
  --navy-700: #2A4A7A;
  --navy-400: #5A6270;
  --navy-200: #8FA4C4;
  --blue-mid: #5B7AA3;

  --gold:         #D4A853;   /* brand gold — on navy, or as a graphic */
  --gold-light:   #E8C882;
  --gold-dark:    #B9923F;
  --gold-display: #B08736;   /* large display text on cream */
  --gold-ink:     #8F6A23;   /* small text on cream */
  --gold-dim:     #E8C882;

  --cream:    #FBFAF7;
  --cream-2:  #F4F1EA;
  --cream-3:  #EDE8DD;
  --grey:     #CBD0D6;

  --ink:          #1A1A2E;
  --ink-muted:    var(--navy-400);
  --rule:         #E2DED4;
  --rule-strong:  #D3CDBE;

  --on-navy:        #FBFAF7;
  --on-navy-muted:  var(--navy-200);

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap:   1160px;
  --wrap-n: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 58, .05);
  --shadow:    0 2px 8px rgba(15, 31, 58, .06), 0 12px 32px -18px rgba(15, 31, 58, .22);
  --shadow-lg: 0 4px 14px rgba(15, 31, 58, .07), 0 28px 60px -30px rgba(15, 31, 58, .30);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.4rem); letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p  { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: rgba(27, 54, 93, .32); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }

strong { font-weight: 650; }

::selection { background: var(--gold-dim); color: var(--navy-900); }

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

/* ------------------------------------------------------------- utilities -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-n); }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100%;
  z-index: 200; background: var(--navy); color: var(--on-navy);
  padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: .75rem; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt  { background: var(--cream-2); }
.section--navy {
  background: var(--navy);
  color: var(--on-navy);
}
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
/* Scoped away from .btn: a button sets its own colours, and letting the link
   rule win here painted gold text onto the gold CTA button. */
.section--navy a:not(.btn) { color: var(--gold); text-decoration-color: rgba(212, 168, 83, .45); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-head--centred { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-head--centred .eyebrow { justify-content: center; }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.section--navy .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.075rem, 1.7vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.62;
}
.section--navy .lede { color: var(--on-navy-muted); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--on-navy);
  --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--rule-strong); }
.btn--ghost:hover { --btn-bd: var(--navy); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); --btn-bd: var(--gold); }

/* The application link. Gold so it reads as the one "go in and use it" action,
   distinct from the navy sales CTA beside it. Navy-900 on gold is 9.3:1. */
.btn--app {
  --btn-bg: var(--gold); --btn-fg: var(--navy-900); --btn-bd: var(--gold);
  padding: .6rem 1.15rem; font-size: .84rem;
  letter-spacing: .07em; text-transform: uppercase;
}
.btn--app:hover { --btn-bg: var(--gold-light); --btn-bd: var(--gold-light); }

.section--navy .btn--ghost { --btn-fg: var(--on-navy); --btn-bd: rgba(251, 250, 247, .35); }
.section--navy .btn--ghost:hover { --btn-bd: var(--on-navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--navy);
}
.arrow-link span.chev { transition: transform .2s var(--ease); }
.arrow-link:hover span.chev { transform: translateX(4px); }
.arrow-link::after { content: ""; }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 1px 12px rgba(15,31,58,.05); }

.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 34px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 861px) and (max-width: 1120px) {
  .nav { gap: .8rem; }
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: .88rem; }
  .nav .btn { padding-inline: 1.1rem; font-size: .88rem; }
}
.nav__links a {
  font-family: var(--font-display); font-size: .93rem; font-weight: 500;
  text-decoration: none; color: var(--navy); position: relative; padding-block: .35rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* language switcher */
.lang {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 2px; flex: none;
}
.lang a {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-muted);
  padding: .3rem .6rem; border-radius: 999px; line-height: 1;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lang a:hover { color: var(--navy); }
.lang a[aria-current="true"] { background: var(--navy); color: var(--on-navy); }

.nav__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--navy);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.75rem; margin: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  /* Inline elements ignore vertical padding for layout and draw their border
     around the text box only, which left each row underlined halfway across.
     Block links give a full-width divider and a proper 44px tap target. */
  .nav__links a {
    display: block; padding: .85rem 0;
    border-bottom: 1px solid var(--rule); font-size: 1.05rem;
  }
  .nav__links a::after { display: none; }
  .nav .lang { margin-top: 1.25rem; align-self: flex-start; }
  .nav__actions {
    display: flex; gap: .65rem; margin-top: 1.25rem;
  }
  .nav__actions .btn { flex: 1 1 auto; justify-content: center; margin-top: 0; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--rule);
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(.7rem, 1.35vw, .8rem);
  font-weight: 600; letter-spacing: .175em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 1.35rem; line-height: 1.5;
}
.hero h1 { margin-bottom: 1.15rem; }
.hero h1 .decision { color: var(--gold-display); display: block; }

.hero__lede {
  font-size: clamp(1.075rem, 1.85vw, 1.24rem);
  line-height: 1.6; color: var(--ink-muted);
  max-width: 34rem; margin-bottom: 2rem;
}
.hero .btn-row { margin-bottom: 1.6rem; }

.hero__note {
  font-size: .875rem; color: var(--ink-muted);
  display: flex; align-items: flex-start; gap: .55rem;
}
.hero__note .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  flex: none; margin-top: .62em;
}

@media (max-width: 720px) {
  .hero { padding-block: 2.25rem 3rem; }
  .hero__lede { font-size: 1.02rem; margin-bottom: 1.5rem; }
  .hero .btn-row { margin-bottom: 1.1rem; }
  .hero .btn { flex: 1 1 auto; justify-content: center; }
}

/* ----------------------------------------------- hero: data-point field -- */
.dotfield {
  --dot: 13px;
  --gap: clamp(12px, 2.4vw, 22px);
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.dotfield__caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.15rem, 2.4vw, 1.6rem);
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule);
}
.dotfield__title {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted);
}
.dotfield__count {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap;
}

.dotfield__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), 1fr);
  gap: var(--gap);
  place-items: center;
}

.dotfield__dot {
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--grey);
  border: 0; padding: 0; margin: 0;
  position: relative; cursor: default;
  transform: scale(.55); opacity: .5;
  transition: background-color .45s var(--ease), transform .35s var(--ease), opacity .45s var(--ease);
}
.dotfield__dot.is-filled { background: var(--navy); transform: scale(1); opacity: 1; }
/* Everything after the review date: collected in the rest of the year, not
   part of this decision. Pale, present, and deliberately not navy. */
.dotfield__dot.is-pending { background: var(--grey); transform: scale(1); opacity: .85; }
.dotfield__dot.is-pending[data-label]:hover,
.dotfield__dot.is-pending[data-label].is-active { background: var(--navy-400); }
.dotfield__dot.is-decision {
  background: var(--gold); transform: scale(1.25); opacity: 1;
  box-shadow: 0 0 0 0 rgba(212, 168, 83, .55);
  animation: decision-pulse 2.6s var(--ease) infinite;
}
@keyframes decision-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(212, 168, 83, .5); }
  70%  { box-shadow: 0 0 0 13px rgba(212, 168, 83, 0); }
  100% { box-shadow: 0 0 0 0   rgba(212, 168, 83, 0); }
}

/* hover / tap reveal */
.dotfield__dot[data-label] { cursor: pointer; }
.dotfield__dot[data-label]::after {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 11px); left: 50%;
  transform: translate(-50%, 4px);
  background: var(--navy-900); color: var(--on-navy);
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1;
  padding: .45rem .6rem; border-radius: var(--r-sm);
  white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 5;
}
.dotfield__dot[data-label]::before {
  content: ""; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--navy-900);
  opacity: 0; visibility: hidden; transition: opacity .16s var(--ease), visibility .16s;
  z-index: 5;
}
.dotfield__dot[data-label]:hover,
.dotfield__dot[data-label].is-active { transform: scale(1.55); background: var(--navy-900); }
.dotfield__dot.is-decision[data-label]:hover,
.dotfield__dot.is-decision[data-label].is-active { background: var(--gold); transform: scale(1.65); }
.dotfield__dot[data-label]:hover::after,
.dotfield__dot[data-label].is-active::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dotfield__dot[data-label]:hover::before,
.dotfield__dot[data-label].is-active::before { opacity: 1; visibility: visible; }

/* edge dots flip their tooltip inward so it never clips */
.dotfield__dot[data-edge="left"]::after  { left: 0; transform: translate(0, 4px); }
.dotfield__dot[data-edge="left"]:hover::after,
.dotfield__dot[data-edge="left"].is-active::after { transform: translate(0, 0); }
.dotfield__dot[data-edge="right"]::after { left: auto; right: 0; transform: translate(0, 4px); }
.dotfield__dot[data-edge="right"]:hover::after,
.dotfield__dot[data-edge="right"].is-active::after { transform: translate(0, 0); }

/* legend-chip filtering: highlight one instrument type across the field */
.dotfield__grid.is-filtered .dotfield__dot.is-dim { opacity: .2; }
.dotfield__grid.is-filtered .dotfield__dot.is-highlight {
  background: var(--navy-900); transform: scale(1.35); opacity: 1;
  box-shadow: 0 0 0 3px rgba(212, 168, 83, .35);
}
.dotfield__grid.is-filtered .dotfield__dot.is-highlight.is-decision { background: var(--gold); }

.dotfield__legend {
  margin-top: clamp(1.25rem, 2.6vw, 1.75rem);
  padding-top: 1.1rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; padding-inline: 0; margin-bottom: 0;
}
.dotfield__legend li { margin: 0; }
.dotfield__legend button {
  background: var(--cream-2); border: 1px solid var(--rule);
  border-radius: 999px; padding: .32rem .7rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 500;
  color: var(--ink-muted); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.dotfield__legend button:hover,
.dotfield__legend button[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: var(--on-navy);
}
.dotfield__legend .is-pending-chip button { border-style: dashed; }
.dotfield__legend .is-decision-chip button { border-color: var(--gold); color: var(--gold-ink); }
.dotfield__legend .is-decision-chip button:hover,
.dotfield__legend .is-decision-chip button[aria-pressed="true"] {
  background: var(--gold); border-color: var(--gold); color: var(--navy-900);
}

.dotfield__status {
  margin-top: 1rem; font-size: .84rem; color: var(--ink-muted); min-height: 1.4em;
}
.dotfield__status b { color: var(--navy); font-weight: 600; }

@media (max-width: 560px) {
  .dotfield { --dot: 11px; }
  .dotfield__caption { flex-direction: column; gap: .25rem; }
}

/* ------------------------------------------------------------- problems -- */
.problems { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
@media (min-width: 800px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem { background: var(--cream); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.problem__n {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; color: var(--gold-ink); margin-bottom: .9rem;
}
.problem h3 { margin-bottom: .55rem; }
.problem p { color: var(--ink-muted); font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------- principles -- */
.approach-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 1000px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}
.approach-grid .section-head { margin-bottom: 0; }

.principles { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
@media (min-width: 620px)  { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .principles { grid-template-columns: repeat(4, 1fr); } }

.principle {
  border: 1px solid rgba(251, 250, 247, .18);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.8vw, 1.9rem);
  background: rgba(251, 250, 247, .04);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.principle:hover { border-color: rgba(212, 168, 83, .55); background: rgba(251, 250, 247, .07); transform: translateY(-3px); }
.principle__mark { display: flex; gap: 5px; margin-bottom: 1.2rem; align-items: center; }
.principle__mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-200); display: block; }
.principle__mark i.on { background: var(--gold); }
.principle h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.principle p { color: var(--on-navy-muted); font-size: .945rem; margin: 0; }

.principles-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem; border-top: 1px solid rgba(251, 250, 247, .16);
  font-size: .9rem; color: var(--on-navy-muted); max-width: 58rem;
}
.principles-note cite { font-style: normal; color: var(--gold); }

/* ------------------------------------------- competency progress panel -- */
/* Sits inside the navy approach section: what proportionality looks like once
   the data points are in. Illustrative figures, labelled as such on the page. */
.rubric {
  background: rgba(251, 250, 247, .05);
  border: 1px solid rgba(251, 250, 247, .18);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.rubric__head {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: flex-start; justify-content: space-between;
  padding-bottom: .9rem; margin-bottom: .4rem;
  border-bottom: 1px solid rgba(251, 250, 247, .18);
}
.rubric__title {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--on-navy);
}
.rubric__sub {
  display: block; margin-top: .35rem;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .01em; text-transform: none;
  color: var(--on-navy-muted);
}
.rubric__tag {
  font-family: var(--font-display); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(212, 168, 83, .5); border-radius: 4px; padding: .14rem .42rem;
}

.rubric__rows { list-style: none; margin: 0; padding: 0; }
.rubric__row {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(251, 250, 247, .11);
}
.rubric__row:last-child { border-bottom: 0; padding-bottom: 0; }

.rubric__label { grid-column: 1; min-width: 0; }
.rubric__label b {
  display: block; font-weight: 500; font-size: .96rem; color: var(--on-navy);
}
.rubric__label span {
  display: block; font-size: .78rem; color: var(--on-navy-muted); margin-top: .12em;
}
.rubric__count {
  grid-column: 2; justify-self: end;
  font-family: var(--font-display); font-size: .84rem; font-weight: 600;
  color: var(--on-navy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rubric__bar {
  grid-column: 1 / -1; margin-top: .45rem;
  height: 7px; border-radius: 99px;
  background: rgba(251, 250, 247, .16); overflow: hidden;
}
.rubric__bar i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--gold);
  width: 0;
  transition: width 1.1s var(--ease) .15s;
}
.rubric__bar i.is-met { background: var(--gold-light); }
.reveal.is-in .rubric__bar i, .rubric.is-in .rubric__bar i { width: var(--pct, 0%); }

@media (min-width: 680px) {
  .rubric__row {
    grid-template-columns: minmax(12rem, 1.3fr) minmax(0, 1.05fr) auto;
    gap: 0 1.25rem;
  }
  .rubric__bar { grid-column: 2; margin-top: 0; }
  .rubric__count { grid-column: 3; }
}

.rubric__note {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid rgba(251, 250, 247, .18);
  font-size: .82rem; color: var(--on-navy-muted);
}

/* --------------------------------------------------------------- personas -- */
.personas { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 680px)  { .personas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .personas { grid-template-columns: repeat(3, 1fr); } }

.persona {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.8vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rule-strong); }
.persona__role {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.persona__role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.persona__usp { font-size: 1.0rem; line-height: 1.58; margin-bottom: 1.35rem; }
.persona__usp .if   { color: var(--ink-muted); }
.persona__usp .then { font-weight: 600; color: var(--navy); }
.persona__usp .so   { color: var(--ink); }
.persona a.arrow-link { margin-top: auto; }

/* --------------------------------------------------------------- features -- */
.feature-groups { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .feature-groups { grid-template-columns: repeat(2, 1fr); } }

.fgroup { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.fgroup__step {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem;
}
.fgroup h3 { margin-bottom: 1.25rem; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.fgroup li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .62rem 0; border-bottom: 1px solid var(--rule); font-size: .97rem;
}
.fgroup li:last-child { border-bottom: 0; }
.fgroup li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
  flex: none; margin-top: .55em;
}
.fgroup li.is-roadmap { color: var(--ink-muted); }
.fgroup li.is-roadmap::before { background: transparent; border: 1.5px solid var(--grey); }
.tag {
  font-family: var(--font-display); font-size: .63rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 4px; margin-left: auto; flex: none;
  align-self: flex-start; margin-top: .15em; white-space: nowrap;
}
.tag--phase2 { background: var(--cream-3); color: var(--gold-ink); }

/* ------------------------------------------------------------------ facts -- */
.facts { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 620px)  { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--cream); padding: clamp(1.5rem, 3vw, 2rem); }
.fact__n {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600; letter-spacing: -.03em; color: var(--navy); line-height: 1; margin-bottom: .6rem;
}
.fact__l { font-size: .92rem; color: var(--ink-muted); margin: 0; }

.evidence { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); margin-top: clamp(2rem, 4vw, 2.75rem); }
@media (min-width: 820px) { .evidence { grid-template-columns: repeat(2, 1fr); } }
.evidence blockquote {
  margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--gold);
  font-size: .99rem; line-height: 1.6;
}
.evidence cite {
  display: block; margin-top: .7rem; font-style: normal;
  font-size: .82rem; color: var(--ink-muted);
}

/* ----------------------------------------------------------------- values -- */
.values { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 640px)  { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
.value h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.value p { font-size: .93rem; color: var(--ink-muted); margin: 0; }

/* --------------------------------------------------------------- boundary -- */
.boundary {
  border: 1px solid var(--rule-strong); border-radius: var(--r-lg);
  background: var(--cream); padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 900px) { .boundary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.boundary h3 { margin-bottom: .75rem; }
.boundary ul { list-style: none; margin: 0; padding: 0; }
.boundary li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; font-size: .95rem; color: var(--ink-muted); }
.boundary li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1.5px; background: var(--grey);
}
.boundary li:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- cta -- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 52rem; }
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band p { color: var(--on-navy-muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--navy-900); color: var(--on-navy); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a:not(.btn) { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__top { display: grid; gap: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }
@media (min-width: 820px) { .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer__brand svg { height: 34px; width: auto; margin-bottom: 1.1rem; }
.footer__tag { color: var(--on-navy-muted); font-size: .95rem; max-width: 26rem; }
.site-footer h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.site-footer li { margin: 0; }
.footer__bottom {
  border-top: 1px solid rgba(251, 250, 247, .14); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center;
  font-size: .85rem; color: var(--on-navy-muted);
}
.footer__bottom .spacer { margin-left: auto; }

/* ------------------------------------------------------------------ page -- */
.page-hero { padding-block: clamp(3rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 1rem; }
.page-hero .lede { max-width: 42rem; }

.breadcrumb { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin-inline: .4rem; opacity: .6; }

/* ------------------------------------------------------------------ blog -- */
.post-list { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 720px)  { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--cream);
  padding: clamp(1.5rem, 2.8vw, 1.9rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__meta {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
}
.post-card__meta .sep { color: var(--grey); }
.post-card h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.post-card h3 a { text-decoration: none; }
.post-card p { color: var(--ink-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.post-card .arrow-link { margin-top: auto; }

.lang-chip {
  font-family: var(--font-display); font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  padding: .1rem .3rem; color: var(--ink-muted);
}

/* --------------------------------------------------------------- article -- */
.article { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.article__body { max-width: var(--wrap-n); margin-inline: auto; font-size: 1.09rem; line-height: 1.72; }
.article__body > * + * { margin-top: 1.2em; }
.article__body h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem); margin-top: 2.4em; margin-bottom: .6em;
  padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.article__body h3 { font-size: 1.2rem; margin-top: 2em; margin-bottom: .5em; }
.article__body ul, .article__body ol { padding-left: 1.3rem; }
.article__body li { margin-bottom: .55em; }
.article__body li::marker { color: var(--gold-ink); }
.article__body blockquote {
  margin: 2em 0; padding: 1.25rem 1.5rem;
  background: var(--cream-2); border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.04rem;
}
.article__body blockquote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .86rem; color: var(--ink-muted); }
.article__body .pull {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600; line-height: 1.35; letter-spacing: -.015em;
  color: var(--navy); margin: 2em 0; padding-left: 1.25rem; border-left: 3px solid var(--gold);
}
.article__body .note {
  font-size: .95rem; background: var(--cream-2); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 1.1rem 1.35rem; color: var(--ink-muted);
}
.article__body .note strong { color: var(--navy); }
.article__body .refs { font-size: .88rem; color: var(--ink-muted); }
.article__body .refs li { margin-bottom: .45em; }

.article__meta {
  max-width: var(--wrap-n); margin: 0 auto 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
  font-size: .88rem; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
}

.article-cta {
  max-width: var(--wrap-n); margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg);
}
.article-cta h3 { color: var(--on-navy); margin-bottom: .6rem; }
.article-cta p { color: var(--on-navy-muted); margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------ form -- */
.form-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 940px) { .form-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--navy);
}
.field .req { color: var(--gold-ink); }
.field .hint { font-size: .8rem; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .95rem;
  background: var(--cream); border: 1.5px solid var(--rule-strong); border-radius: var(--r-sm);
  font-size: 1rem; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5C78' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 54, 93, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B23B3B; }
.field .err { font-size: .82rem; color: #8E2B2B; font-weight: 500; }

.field--row { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--ink-muted); }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: .22em; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy); }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.1rem 1.35rem; border-radius: var(--r); font-size: .96rem; margin-bottom: 2rem; border: 1px solid; }
.alert--ok   { background: #EEF6F1; border-color: #BBD9C7; color: #1F5138; }
.alert--err  { background: #FBEFEF; border-color: #E4C2C2; color: #8E2B2B; }
.alert strong { display: block; margin-bottom: .25rem; font-family: var(--font-display); }
/* The result banner is focused programmatically so a screen reader announces the
   outcome. It is a region, not a control, so it does not need a focus ring. */
.alert[tabindex="-1"]:focus { outline: none; }
.alert ul { margin: .5rem 0 0; padding-left: 1.1rem; }

.aside-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--cream-2); padding: clamp(1.5rem, 3vw, 2rem);
}
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.aside-card p, .aside-card li { font-size: .93rem; color: var(--ink-muted); }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.aside-card ul li { display: flex; gap: .6rem; align-items: flex-start; }
.aside-card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; margin-top: .55em; }

/* ---------------------------------------------------------- scroll reveal -- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal[data-delay="1"].is-in { transition-delay: .07s; }
.reveal[data-delay="2"].is-in { transition-delay: .14s; }
.reveal[data-delay="3"].is-in { transition-delay: .21s; }
.reveal[data-delay="4"].is-in { transition-delay: .28s; }
.reveal[data-delay="5"].is-in { transition-delay: .35s; }

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rubric__bar i { transition: none; width: var(--pct, 0%); }
  .dotfield__dot { transform: scale(1); opacity: 1; }
  .dotfield__dot.is-decision { animation: none; }
  .btn:hover, .persona:hover, .post-card:hover, .principle:hover { transform: none; }
}

/* --------------------------------------------------------------- printing -- */
@media print {
  .site-header, .nav, .cta-band, .dotfield, .site-footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
}
