/* =========================================================
   P3 Defence — homepage prototype (light / technical)
   Tokens
   ========================================================= */
:root {
  --ink: #0A1B33;        /* deepest navy: footer, campaign panel */
  --navy: #13294B;       /* primary navy: headings, buttons */
  --text: #13294B;
  --text-muted: #51617A;
  --steel: #5A6E8C;      /* secondary headline tone */
  --mist: #A9B7CA;       /* muted text on dark */
  --line: #E2E8F0;       /* hairlines */
  --line-strong: #CBD5E1;
  --surface: #F5F7FA;    /* cool section ground */
  --tint: #EDF2F8;       /* blue-grey fill */
  --white: #FFFFFF;
  --amber: #E3A13B;      /* accent fills */
  --amber-soft: #FBF0DD;
  --amber-deep: #8F5A0E; /* accent text on light (AA) */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(19,41,75,.06), 0 12px 32px -12px rgba(19,41,75,.18);

  --focus: var(--navy);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }

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

/* Dark surfaces */
.eol-panel, .site-footer { --focus: var(--amber); color: var(--white); }

/* =========================================================
   Type
   ========================================================= */
.h-display {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-sub {
  font-size: 1.25rem;
  font-weight: 700;
  font-variation-settings: "wdth" 105;
  line-height: 1.25;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h-display { margin-bottom: 18px; }
.section-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--text-muted); max-width: 56ch; }
.muted { color: var(--text-muted); }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft);
}

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 24px;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  font-variation-settings: "wdth" 102;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(10,27,51,.12); }
.btn-amber:hover { background: #EDB052; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--ink); }
.btn-outline { border-color: var(--line-strong); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

.link-quiet { font-weight: 600; text-decoration: none; padding: 8px 4px; }
.link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--amber); padding-bottom: 4px;
}
.link-arrow::after { content: ""; width: 14px; height: 2px; background: currentColor; transition: width .2s var(--ease); }
.link-arrow:hover::after { width: 22px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-solid { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
/* source logo is white; invert for the light header (keeps the red accent) */
.brand img { width: 144px; height: auto; filter: invert(1) hue-rotate(180deg) brightness(.55) saturate(1.3); }

.primary-nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 32px; }
.menu-links { display: flex; gap: 2px; }
.menu-links a {
  display: block; text-decoration: none; font-weight: 500; font-size: .9688rem;
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--navy);
  transition: background-color .2s var(--ease);
}
.menu-links a:hover { background: var(--tint); }
.menu-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--navy);
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform .2s var(--ease), background-color .2s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--white); padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu-links { flex-direction: column; gap: 0; }
  .menu-links a { padding: 14px 0; font-size: 1.125rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-links a:hover { background: none; }
  .menu-actions { justify-content: space-between; }
  .site-header:has(.menu.is-open) { background: var(--white); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(56px, 7vw, 88px);
  isolation: isolate;
}
.hero::before { /* fine technical grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
  opacity: .75;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--navy); font-size: .9375rem; margin-bottom: 26px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: .98;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-title .line { display: block; }
.hero-title .line + .line { color: var(--steel); }
.hero-lede { margin-top: 28px; max-width: 46ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-muted); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; padding-bottom: 210px; }
.hero-photo {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4;
  background: var(--tint); box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  transform: scale(1.14); /* trims the letterbox bars in the source photo */
  filter: saturate(.85);
}

/* Signal chart card */
.signal {
  position: absolute; left: clamp(-56px, -4vw, -16px); right: 12%; bottom: 0;
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 14px 16px 10px;
}
.signal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.signal-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; }
.signal-live .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--amber-soft); }
.signal svg { width: 100%; height: auto; display: block; overflow: visible; }
.signal .zone.z1 { fill: #F4F7FB; }
.signal .zone.z2 { fill: #EBF0F7; }
.signal .zone.z3 { fill: var(--amber-soft); }
.signal .gridl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.signal .sep { stroke: var(--line-strong); stroke-width: 1; }
.signal .axis { stroke: var(--navy); stroke-width: 1.5; }
.signal .zlabel { font-family: var(--font); font-size: 13px; font-weight: 700; fill: var(--navy); }
.signal .tick { font-family: var(--mono); font-size: 10.5px; fill: var(--text-muted); }
.signal .curve { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.signal .curve-fill { fill: rgba(19,41,75,.06); }
.signal .pt { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.signal .incident { fill: var(--amber); }

/* Facts */
.facts {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
}
.facts > div { padding: 22px 26px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1.1; color: var(--navy); }
.facts dd { color: var(--text-muted); font-size: .9375rem; margin-top: 4px; }

/* Load sequence: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .hero-photo, .js .signal { opacity: 0; transform: translateY(12px); }
  .js .signal .curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .signal .curve-fill, .js .signal .pt, .js .signal .incident { opacity: 0; }
  .js.is-loaded .hero-copy > *, .js.is-loaded .hero-photo, .js.is-loaded .signal {
    opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js.is-loaded .hero-copy > :nth-child(2) { transition-delay: .06s; }
  .js.is-loaded .hero-copy > :nth-child(3) { transition-delay: .14s; }
  .js.is-loaded .hero-copy > :nth-child(4) { transition-delay: .2s; }
  .js.is-loaded .hero-photo { transition-delay: .1s; }
  .js.is-loaded .signal { transition-delay: .3s; }
  .js.is-loaded .signal .curve { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.6,0,.2,1) .7s; }
  .js.is-loaded .signal .curve-fill { opacity: 1; transition: opacity .8s ease 1.9s; }
  .js.is-loaded .signal .pt { opacity: 1; transition: opacity .3s ease; }
  .js.is-loaded .signal .pt:nth-of-type(1) { transition-delay: 1.15s; }
  .js.is-loaded .signal .pt:nth-of-type(2) { transition-delay: 1.6s; }
  .js.is-loaded .signal .incident { opacity: 1; transition: opacity .3s ease 2.4s; }
}

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .signal { left: 16px; right: 16px; }
}
@media (max-width: 599px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 16px 20px; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding-bottom: 0; }
  .signal { position: relative; left: auto; right: auto; margin: -48px 12px 0; }
  .signal .zlabel { font-size: 20px; }
  .signal .tick { font-size: 16px; }
}

/* =========================================================
   Framework
   ========================================================= */
.framework { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.fw { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px); }
.fw-axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .75rem; color: var(--text-muted); margin-bottom: 10px;
}
.fw-axis span:last-child { color: var(--amber-deep); }
.fw-tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--line);
}
.fw-progress {
  position: absolute; top: -2px; left: 0; height: 2px; width: calc(100% / 3 * var(--step, 1));
  background: linear-gradient(90deg, var(--navy), var(--amber));
  transition: width .5s var(--ease);
}
.fw-tabs [role="tab"] {
  display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
  padding: 24px 20px 24px 0; color: var(--text-muted);
  transition: color .2s var(--ease);
}
.fw-tabs [role="tab"]:hover, .fw-tabs [role="tab"][aria-selected="true"] { color: var(--navy); }
.fw-num {
  width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%;
  font-size: .8125rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-muted); margin-bottom: 8px;
}
.fw-tabs [role="tab"][aria-selected="true"] .fw-num { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fw-name {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.05;
  font-variation-settings: "wdth" 112; letter-spacing: -0.02em;
}
.fw-sum { font-size: 1rem; }
.fw-tabs [role="tab"][aria-selected="false"] .fw-name { color: #94A3B8; }

.fw-panels { margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.fw-panels [role="tabpanel"] { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); border-radius: var(--r-sm); }
.fw-panels [role="tabpanel"][hidden] { display: none; }
.fw-panel-lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 500; max-width: 30ch; }
.ticks li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { padding-top: 2px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--amber);
  box-shadow: inset 0 0 0 5px var(--amber-soft);
}
.ticks li:first-child::before { margin-top: -14px; }

@media (prefers-reduced-motion: no-preference) {
  .fw-panels [role="tabpanel"]:not([hidden]) { animation: panelIn .4s var(--ease); }
  @keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 767px) {
  .fw-tabs [role="tab"] { padding: 18px 8px 18px 0; }
  .fw-sum { display: none; }
  .fw-name { font-size: clamp(1.1rem, 5.2vw, 1.6rem); font-variation-settings: "wdth" 100; }
  .fw-panels [role="tabpanel"] { grid-template-columns: 1fr; }
}

/* =========================================================
   Divisions
   ========================================================= */
.divisions { padding-block: var(--section); }
.division {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.division + .division { margin-top: 16px; }
.division:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.division-name { display: flex; flex-direction: column; gap: 10px; }
.division-p3 {
  align-self: flex-start;
  font-family: var(--mono); font-size: .75rem; color: var(--amber-deep);
  background: var(--amber-soft); padding: 3px 10px; border-radius: 999px;
}
.division-name h3 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 118; letter-spacing: -0.03em;
}
.division-for { font-weight: 700; font-size: 1.125rem; margin-bottom: 10px; }
.division-body p + p { color: var(--text-muted); margin-bottom: 24px; max-width: 46ch; }
.division-list { background: var(--surface); border-radius: var(--r-md); padding: 8px 18px; align-self: start; }
.division-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.division-list li:last-child { border-bottom: 0; }
.division-list b { display: block; font-weight: 700; font-size: .8125rem; color: var(--amber-deep); }

@media (max-width: 1023px) {
  .division { grid-template-columns: 1fr 1fr; }
  .division-name { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}
@media (max-width: 639px) {
  .division { grid-template-columns: 1fr; }
  .division-name { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Topics
   ========================================================= */
.topics { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.section-head-split { max-width: none; display: grid; gap: 28px; justify-items: start; }
.section-head-split > div { max-width: 640px; }
.filter {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.filter button {
  border: 0; background: transparent; border-radius: var(--r-sm);
  padding: 9px 14px; font-size: .9375rem; font-weight: 600; cursor: pointer; color: var(--text-muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filter button:hover { color: var(--navy); background: var(--surface); }
.filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.topic-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-list li[hidden] { display: none; }
.topic-list a {
  display: grid; gap: 4px; align-content: start; height: 100%;
  padding: 20px 48px 22px 20px; position: relative; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease);
}
.topic-list a::after {
  content: ""; position: absolute; right: 20px; top: 26px; width: 8px; height: 8px;
  border-top: 2px solid var(--steel); border-right: 2px solid var(--steel);
  transform: rotate(45deg); transition: right .2s var(--ease), border-color .2s;
}
.topic-list a:hover { border-color: var(--navy); }
.topic-list a:hover::after { right: 16px; border-color: var(--navy); }
.topic-name { font-weight: 700; font-size: 1.0625rem; font-variation-settings: "wdth" 102; line-height: 1.35; }
.topic-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.tag-free {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: var(--amber-soft); color: #6B4208;
}
.topics-more { margin-top: 36px; }

@media (max-width: 1023px) {
  .topic-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .section-head-split { grid-template-columns: 1fr; }
  .filter { justify-self: start; justify-content: flex-start; }
}
@media (max-width: 599px) {
  .topic-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Pathway
   ========================================================= */
.pathway { padding-block: var(--section); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.step {
  background: var(--white); padding: 24px 22px 26px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column; position: relative;
}
/* rising staircase: each step sits higher than the last */
.step:nth-child(1) { min-height: 250px; }
.step:nth-child(2) { min-height: 290px; }
.step:nth-child(3) { min-height: 330px; }
.step:nth-child(4) { min-height: 370px; background: var(--navy); border-color: var(--navy); color: var(--white); }
.step:nth-child(4) .step-for, .step:nth-child(4) p:last-child { color: #D3DCE8; }
.step:nth-child(4) .step-num { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.step-num {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 800; font-size: 1rem;
  color: var(--navy); margin-bottom: auto;
}
.step h3 { margin-top: 28px; font-size: 1.375rem; font-weight: 800; font-variation-settings: "wdth" 108; }
.step-for { font-weight: 600; font-size: .9375rem; color: var(--amber-deep); margin: 2px 0 10px; }
.step p:last-child { color: var(--text-muted); font-size: .9688rem; }

.pathway-foot {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}
.pathway-foot > p { font-weight: 600; max-width: 44ch; }
.pathway-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { min-height: 0; }
  .step h3 { margin-top: 20px; }
}
@media (max-width: 539px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   Training
   ========================================================= */
.training { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.training-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.training-head .h-display { margin-bottom: 18px; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.training-col {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px);
}
.training-col > .h-sub { padding-bottom: 6px; }
.programmes { margin-top: 22px; border-top: 1px solid var(--line); }
.programmes > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 13rem) 1fr; gap: 20px; }
.programmes dt { font-weight: 700; font-variation-settings: "wdth" 104; }
.programmes dd { color: var(--text-muted); }
.included { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--amber-soft); color: #4F3306; font-size: .9688rem; }
.training-ctas { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 899px) {
  .training-grid { grid-template-columns: 1fr; }
}
@media (max-width: 539px) {
  .programmes > div { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   Why P3
   ========================================================= */
.why { padding-block: var(--section); }
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-photo { position: sticky; top: 96px; }
.photo-crop { overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); border-radius: var(--r-lg); }
.photo-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; transform: scale(1.12); }
.why-photo figcaption { margin-top: 12px; font-size: .9375rem; color: var(--text-muted); }
.why-body > .h-display { margin-bottom: 28px; }
.quote { margin-bottom: 26px; padding-left: 22px; border-left: 3px solid var(--amber); }
.quote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3; color: var(--navy); max-width: 28ch;
}
.why-body > p { max-width: 58ch; color: var(--text-muted); }
.credentials { margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.credentials li {
  padding: 8px 14px; font-size: .9375rem; line-height: 1.4;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.reasons > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.reasons dt { font-weight: 800; font-size: 1.0625rem; font-variation-settings: "wdth" 104; margin-bottom: 6px; line-height: 1.3; }
.reasons dd { color: var(--text-muted); font-size: .9375rem; }

@media (max-width: 899px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-photo { position: static; max-width: 520px; }
  .reasons { grid-template-columns: 1fr; }
}

/* =========================================================
   Even One Life
   ========================================================= */
.eol { padding-bottom: var(--section); }
.eol-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); border-radius: clamp(16px, 2.4vw, 28px);
  padding: clamp(28px, 6vw, 80px);
}
.eol-panel::before { /* grid echoes the hero, on dark */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(90% 90% at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(90% 90% at 100% 0%, #000 10%, transparent 70%);
}
.eol-panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 40%, var(--amber));
}
.eol .muted { color: var(--mist); }
.eol-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.eol-name { color: var(--amber); font-weight: 700; font-variation-settings: "wdth" 106; margin-bottom: 20px; }
.eol-title { font-weight: 800; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "wdth" 112; }
.eol-title span { display: block; }
/* each line steps up in scale: one lesson becomes one life */
.eol-title span:nth-child(1) { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--mist); }
.eol-title span:nth-child(2) { font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: #CBD5E3; margin-top: 6px; }
.eol-title span:nth-child(3) { font-size: clamp(2.3rem, 5.2vw, 4.6rem); margin-top: 8px; }
.eol-lede { margin-top: 28px; max-width: 46ch; color: #D3DCE8; font-size: 1.125rem; }
.eol-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.share-status { margin-top: 12px; min-height: 1.6em; color: var(--amber); font-weight: 600; font-size: .9375rem; }

.eol-imagine .h-sub { margin-bottom: 14px; color: var(--white); }
.imagine { margin-bottom: 24px; display: grid; gap: 8px; }
.imagine li {
  padding: 12px 16px; color: #E3E9F1; font-size: 1rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm);
}
.imagine li::first-letter { text-transform: uppercase; }
.eol-imagine b { color: var(--white); }

@media (max-width: 899px) {
  .eol-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: clamp(64px, 8vw, 104px); }
.contact-inner .h-display { margin-bottom: 28px; }
.contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route {
  display: grid; gap: 6px; padding: 24px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.route:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.route-who { color: var(--text-muted); font-size: .9375rem; font-weight: 600; }
.route-what { font-weight: 800; font-size: clamp(1.125rem, 1.6vw, 1.3rem); font-variation-settings: "wdth" 104; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .contact-routes { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); padding-top: clamp(56px, 7vw, 80px); }
.site-footer .muted { color: var(--mist); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 56px; }
.footer-brand img { width: 112px; height: auto; margin-bottom: 20px; }
.footer-motto { font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.25rem; margin-bottom: 6px; }
.footer-h { font-size: .9375rem; font-weight: 700; color: var(--mist); margin-bottom: 14px; }
.site-footer nav li + li { margin-top: 8px; }
.site-footer nav a { text-decoration: none; color: #E3E9F1; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px 32px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .875rem; color: var(--mist);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--mist); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   Inner pages: shared components
   ========================================================= */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(112px, 14vh, 152px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(110% 100% at 80% 20%, #000 15%, transparent 70%);
          mask-image: radial-gradient(110% 100% at 80% 20%, #000 15%, transparent 70%);
  opacity: .75;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--text-muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.page-title {
  font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 112; letter-spacing: -0.03em; text-wrap: balance;
}
.page-lede { margin-top: 24px; max-width: 50ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-muted); }

.side-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.side-panel .h-sub { margin-bottom: 6px; }
.side-panel > p { color: var(--text-muted); font-size: .9688rem; }
.side-panel .btn { margin-top: 20px; }
.hero-figure { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: var(--tint); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform: scale(1.14); }

.check-list { margin-top: 16px; }
.check-list li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber-soft);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 9px;
  border-right: 2px solid var(--amber-deep); border-bottom: 2px solid var(--amber-deep); transform: rotate(45deg);
}

.sec { padding-block: var(--section); }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column;
}
.panel h3 { font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 106; line-height: 1.25; margin-bottom: 8px; }
.panel > p { color: var(--text-muted); font-size: .9688rem; }
.panel .check-list { margin-top: 12px; }
.panel .link-arrow { margin-top: auto; align-self: flex-start; }
.panel .check-list + .link-arrow, .panel > p + .link-arrow { margin-top: 20px; }
.tag {
  align-self: flex-start; display: inline-block; margin-bottom: 14px;
  font-family: var(--mono); font-size: .75rem; color: var(--amber-deep);
  background: var(--amber-soft); padding: 3px 10px; border-radius: 999px;
}

/* Split: heading and text left, content right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.split .section-lede + .section-lede { margin-top: 14px; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.statement {
  margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--amber);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-weight: 600; font-size: 1.0625rem; max-width: 52ch;
}
.sec-alt .statement { background: var(--white); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 28px; display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.3rem; font-weight: 800; font-variation-settings: "wdth" 108; }
.plan-for { font-size: .9375rem; color: var(--text-muted); margin-top: 2px; }
.plan-price { margin: 20px 0 4px; font-size: 2.25rem; font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1; letter-spacing: -0.02em; }
.plan-price small { font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-left: 4px; }
.plan-note { font-size: .875rem; color: var(--text-muted); min-height: 1.5em; }
.plan .check-list { margin: 18px 0 24px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--ink); margin-bottom: 12px; }
.plan-featured { background: var(--navy); border-color: var(--navy); color: var(--white); --focus: var(--amber); }
.plan-featured .plan-for, .plan-featured .plan-price small, .plan-featured .plan-note { color: #C3CEDD; }
.plan-featured .check-list li { border-bottom-color: rgba(255,255,255,.12); }
.plan-featured .check-list li::before { background: rgba(227,161,59,.2); }
.plan-featured .check-list li::after { border-color: var(--amber); }
.plan-enterprise {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.plan-enterprise h3 { font-size: 1.3rem; font-weight: 800; font-variation-settings: "wdth" 108; }
.plan-enterprise p { color: var(--text-muted); margin-top: 2px; }
.plans-foot { margin-top: 20px; font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 1023px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-weight: 700; font-size: 1.0625rem; border-radius: var(--r-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; background: var(--navy);
  transition: transform .25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div { padding: 0 48px 22px 0; color: var(--text-muted); max-width: 70ch; }

/* Closing call to action */
.cta-wrap { padding-block: var(--section); }
.sec:not(.sec-alt) + .cta-wrap { padding-top: 0; }
.cta-panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta-panel .h-display { max-width: 18ch; }
.cta-panel p { margin-top: 14px; color: #D3DCE8; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   Media: video frames, photo stacks, lessons
   ========================================================= */
.hero-media { position: relative; aspect-ratio: 16 / 9; background: #151515; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-toggle {
  position: absolute; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(10,27,51,.55); color: var(--white); font-size: .8125rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  --focus: var(--amber);
}
.media-toggle:hover { background: rgba(10,27,51,.8); }
.media-toggle-icon { position: relative; width: 10px; height: 12px; }
.media-toggle-icon::before, .media-toggle-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.media-toggle-icon::before { left: 0; }
.media-toggle-icon::after { right: 0; }
.media-toggle[aria-pressed="true"] .media-toggle-icon::before {
  width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.media-toggle[aria-pressed="true"] .media-toggle-icon::after { display: none; }

.video-frame {
  border-radius: var(--r-lg); overflow: hidden; background: #151515;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow);
}
.video-frame video { width: 100%; height: 100%; display: block; background: #151515; }
.watch .split { align-items: center; }
.watch + .divisions { padding-top: 0; }

.eol-logo { width: min(260px, 70%); height: auto; margin-bottom: 28px; }
.eol-film { margin-bottom: 28px; border: 1px solid rgba(255,255,255,.12); box-shadow: none; border-radius: var(--r-md); }

.photo-crop img { transform: none; object-position: 50% 30%; }
.hero-figure img { transform: none; }
.hero-figure-tall { aspect-ratio: 4 / 4.2; }
.hero-figure-tall img { object-position: 50% 62%; }

.wide-figure { margin: 0 0 16px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--tint); }
.wide-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

.media-stack { position: relative; padding-bottom: 250px; }
.stack-photo { margin: 0 0 0 auto; width: 82%; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--tint); }
.stack-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.stack-card { position: absolute; left: 0; right: 22%; bottom: 0; }
/* Landscape source shown close to its native size so it stays sharp */
.stack-photo-wide { width: min(82%, 456px); aspect-ratio: 456 / 387; }
.stack-photo-wide img { object-position: 50% 30%; }
@media (min-width: 960px) { .media-stack:has(.stack-photo-wide) { padding-bottom: 300px; } }

.lessons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lessons a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.lessons a:hover { border-color: var(--navy); }
.lessons img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lesson-body { display: grid; gap: 2px; padding: 14px 16px 18px; }
.lesson-cat { font-family: var(--mono); font-size: .75rem; color: var(--amber-deep); }
.lesson-title { font-weight: 700; line-height: 1.3; }
.lessons a:hover .lesson-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }

@media (max-width: 1023px) { .lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .media-stack { padding-bottom: 0; max-width: 560px; }
  .stack-photo { width: 100%; }
  .stack-card { position: relative; left: auto; right: auto; margin: -64px 16px 0; }
}
@media (max-width: 599px) {
  .wide-figure { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Sub-page components
   ========================================================= */
/* Emergency / support notice */
.notice {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  padding: 12px 16px; margin-bottom: 24px; border-radius: var(--r-sm);
  background: var(--amber-soft); color: #4F3306; font-size: .9375rem;
}
.notice strong { font-weight: 700; }

/* Helplines and services: numbers are plain selectable text */
.support-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.support-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); display: grid; gap: 4px; align-content: start; }
.support-name { font-weight: 700; }
.support-number { font-family: var(--mono); font-size: 1.25rem; color: var(--navy); letter-spacing: .01em; user-select: all; }
.support-desc { color: var(--text-muted); font-size: .9375rem; }
.small-print { margin-top: 16px; font-size: .875rem; color: var(--text-muted); max-width: 70ch; }

/* Numbered process (only for real sequences) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: proc; }
.process li { counter-increment: proc; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.process li::before {
  content: counter(proc); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: .9375rem;
}
.process h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 4px; font-variation-settings: "wdth" 104; }
.process p { color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 1023px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .process { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--amber); }
.timeline .when { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--amber-deep); }
.timeline .what { font-weight: 600; }

/* Tables (prices, ages) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9688rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .8125rem; color: var(--text-muted); font-weight: 700; background: var(--surface); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { font-weight: 700; }
.table-title { font-size: 1.125rem; font-weight: 800; margin: 0 0 12px; font-variation-settings: "wdth" 104; }

/* Course meta line inside topic cards */
.topic-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.topic-meta span { font-family: var(--mono); font-size: .6875rem; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.topic-meta .is-free { background: var(--amber-soft); color: #6B4208; }

/* Statistic with its source */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variation-settings: "wdth" 110; color: var(--navy); }
.stat-label { margin-top: 4px; }
.stat-source { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); }

/* Practise-it line under advice panels */
.practise { margin-top: auto; padding-top: 14px; font-size: .875rem; color: var(--text-muted); }
.practise b { color: var(--navy); font-weight: 700; }

/* Request form (prepares an email; nothing is sent automatically) */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { min-height: 1.5em; font-size: .9375rem; color: var(--amber-deep); font-weight: 600; }
.form-note { font-size: .875rem; color: var(--text-muted); }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }

/* Quick exit (coercive control page) */
.quick-exit {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: .9375rem;
  box-shadow: var(--shadow); --focus: var(--amber);
}
.quick-exit:hover { background: var(--ink); }
.quick-exit small { font-weight: 500; opacity: .75; }

.two-col-list { columns: 2; column-gap: 32px; }
.two-col-list li { break-inside: avoid; }
@media (max-width: 639px) { .two-col-list { columns: 1; } }
.sec-tight { padding-top: 0; }

/* Division logos (P3 family: same mark, one accent colour per division) */
.division-logo { display: block; width: min(320px, 80%); height: auto; margin-bottom: 28px; }
.division-logo-sm { width: min(220px, 60%); margin-bottom: 20px; }

.menu-links a[aria-current="page"] { background: var(--tint); font-weight: 700; }

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

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
