/* Homepage (T01) — refreshed: modern/minimal pass over docs/03-homepage-visual-design-direction.md */

[hidden] { display: none !important; }

/* Inset panels: section-scale surfaces float inside the viewport with a small gutter */
.hero, .proof, .section.surface-subtle, .site-footer { margin-inline: var(--inset); }

/* ===================== Notice (RMII) ===================== */
/* Inset announcement banner above the nav: photographic texture, centred message, pill-style action. */
.notice { padding: var(--inset) var(--inset) 0; }
.notice__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  min-height: 52px; padding: 8px 56px;
  border-radius: var(--radius-2);
  background:
    linear-gradient(90deg, rgb(26 17 36 / .78), rgb(56 37 80 / .62)),
    center 40% / cover no-repeat url("../img/hero-800.webp"), var(--purple-950);
  color: #fff; text-align: center;
  font-size: var(--fs-body-sm);
}
.notice__text { color: rgb(255 255 255 / .86); }
.notice__text strong { color: #fff; font-weight: 500; }
.notice__cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 32px; padding: 0 12px 0 14px;
  border-radius: var(--radius-1);
  background: rgb(26 17 36 / .55);
  color: #fff; font-size: var(--fs-caption); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-2);
}
.notice__cta:hover { background: rgb(26 17 36 / .85); }
.notice__cta:hover .chev { transform: translateX(3px); }
.notice__close {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-1); background: transparent; color: rgb(255 255 255 / .75);
}
.notice__close:hover { background: rgb(255 255 255 / .12); color: #fff; }
.notice :focus-visible { outline-color: var(--focus-ring-dark); }
@media (max-width: 767px) {
  .notice__inner { justify-content: flex-start; text-align: left; padding: 12px 52px 12px 16px; font-size: 13px; }
}

/* ===================== H01 Header ===================== */
/* Two-state nav:
   1. Static: sits on the page background under the banner and scrolls away with the page.
   2. Pinned: once the static bar has left the viewport it becomes a fixed white bar that is
      hidden while you scroll down and slides back in as soon as you scroll up.
   Opening any menu (or search) turns the bar white and attaches a full-width panel beneath it. */
.site-header {
  --hdr-fg: var(--text-strong);
  --hdr-fg-muted: var(--text-strong);
  --hdr-hover: rgb(30 21 40 / .06);
  --hdr-active: var(--purple-600);
  --logo-word: var(--purple-900);
  --logo-mark: var(--gold-500);
  position: absolute; left: 0; right: 0;          /* top:auto keeps it right below the banner */
  z-index: var(--z-sticky);
  color: var(--hdr-fg);
  background: transparent;
  transition: background-color .5s cubic-bezier(.16, 1.08, .38, .98), color .5s cubic-bezier(.16, 1.08, .38, .98);
}
.site-header.is-fixed,
.site-header:has([aria-expanded="true"]) { background: #fff; }
.site-header.is-fixed {
  position: fixed; top: 0;
  box-shadow: 0 5px 10px rgb(20 20 20 / .05);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.77, 0, .175, 1), background-color .5s, color .5s;
}
.site-header.is-fixed.is-shown,
.site-header.is-fixed:has([aria-expanded="true"]) {
  transform: none;
  transition: transform .5s cubic-bezier(.26, 1.04, .54, 1), background-color .5s, color .5s;
}
.site-header.no-anim { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header.is-fixed, .site-header.is-fixed.is-shown { transition: none; }
}

.site-header__inner {
  display: flex; align-items: center; gap: var(--space-7);
  height: var(--header-h);
}
.site-header__logo { flex: none; display: block; padding: 4px 0; color: var(--logo-word); }
.logo { width: 96px; height: auto; overflow: visible; }
.logo .logo__word { fill: var(--logo-word); transition: fill .5s cubic-bezier(.16, 1.08, .38, .98); }
.logo .logo__mark { fill: var(--logo-mark); transition: fill .5s cubic-bezier(.16, 1.08, .38, .98); }

.nav { flex: 1; display: none; align-self: stretch; }
.nav__list { display: flex; align-items: stretch; justify-content: flex-start; gap: 4px; height: 100%; }
.nav__entry { position: static; display: flex; align-items: center; }
.nav__item {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border: 0; background: transparent;
  color: var(--hdr-fg-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color .5s cubic-bezier(.16, 1.08, .38, .98);
}
/* active/hover: tinted text with a hairline under the label */
.nav__item::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16, 1.08, .38, .98);
}
.nav__item[data-menu]::after { right: 34px; }
.nav__item:hover, .nav__item[aria-expanded="true"] { color: var(--hdr-active); }
.nav__item:hover::after, .nav__item[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__caret { width: 14px; height: 14px; opacity: .7; transition: transform var(--dur-2) var(--ease-out); }
.nav__item[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.site-header :focus-visible { outline-color: var(--focus-ring-light); }

.site-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 0; border-radius: var(--radius-1);
  background: transparent; color: var(--hdr-fg);
  transition: background-color var(--dur-2), color .5s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hdr-hover); }
.hdr-btn {
  display: none; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--radius-1);
  font-size: var(--fs-body-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-2), color var(--dur-2);
}
.hdr-btn--soft { background: rgb(30 21 40 / .07); color: var(--text-strong); }
.hdr-btn--soft:hover { background: rgb(30 21 40 / .12); }
.hdr-btn--solid { background: var(--purple-950); color: #fff; }
.hdr-btn--solid:hover { background: var(--purple-800); }
.search-btn { background: var(--purple-950); color: #fff; width: 44px; padding: 0; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--purple-800); }
@media (min-width: 768px) { .hdr-btn { display: inline-flex; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hdr-btn--soft { display: none; } }
.menu-btn { padding: 0 16px 0 12px; }
.menu-btn__label { font-size: var(--fs-body-sm); font-weight: 500; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .site-header__inner { gap: var(--space-4); }
  .nav__item { padding: 0 10px; }
  .nav__item::after { left: 10px; right: 10px; }
  .nav__item[data-menu]::after { right: 30px; }
}

/* Full-width panels attached to the bar (mega menu + simple menus share one look) */
.mega, .dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text-body);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 24px 40px rgb(20 20 20 / .08);
}
.mega__inner {
  display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr; gap: var(--space-8);
  padding-block: var(--space-7) var(--space-8);
}
.mega__col--lead { padding-right: var(--space-6); border-right: 1px solid var(--border-subtle); }
.mega__col + .mega__col:not(:last-child) { padding-right: var(--space-6); border-right: 1px solid var(--border-subtle); }
.mega__hub {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -0.01em; line-height: 1.1;
  color: var(--text-strong); text-decoration: none;
}
.mega__hub:hover .chev { transform: translateX(4px); }
.mega__hub .chev { width: .4em; height: .4em; }
.mega__hub-note { margin-top: 10px; color: var(--text-muted); font-size: var(--fs-body-sm); max-width: 32ch; }
.mega__utility { margin-top: var(--space-6); display: grid; gap: 2px; }
.mega__utility a { display: inline-block; padding: 6px 0; color: var(--text-strong); font-weight: 400; text-decoration: none; font-size: var(--fs-body-sm); }
.mega__utility a:hover { color: var(--purple-600); }
.mega__group { font-family: var(--font-body); font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.mega__group:not(:first-child) { margin-top: var(--space-6); }
[data-rmii] + .mega__group { margin-top: var(--space-6); }
.mega__funds a { display: grid; gap: 4px; padding: 10px 0; text-decoration: none; }
.mega__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-strong); font-weight: 400; transition: color .3s; }
.mega__funds a:hover .mega__name { color: var(--purple-600); }
.mega__fig { font-size: var(--fs-caption); color: var(--text-muted); }
.mega__past { margin-top: var(--space-5); font-size: var(--fs-body-sm); }
.dropdown > ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-8);
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--page-x));
  margin-inline: auto;
  padding: var(--space-6) var(--page-x) var(--space-7);
}
.dropdown a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-strong); text-decoration: none; font-size: 1rem;
  transition: color .3s;
}
.dropdown a:hover { color: var(--purple-600); }
.mega:not([hidden]), .dropdown:not([hidden]) { animation: menu-in .4s cubic-bezier(.26, 1.04, .54, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Search panel (inside the white bar) */
.search-panel { border-top: 1px solid var(--border-subtle); background: #fff; color: var(--text-body); }
.search-panel__form { padding-block: var(--space-6) var(--space-7); display: grid; gap: 6px; }
.search-panel__label { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -0.01em; color: var(--text-strong); }
.search-panel__hint { font-size: var(--fs-body-sm); color: var(--text-muted); }
.search-panel__row { display: flex; gap: 8px; margin-top: 10px; }
.search-panel__row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-1);
  background: #fff; color: var(--text-strong); font-size: var(--fs-body);
}
.search-panel__row input:focus-visible { border-color: var(--purple-900); outline-offset: 0; }
.search-panel__row .btn { height: 52px; }
.search-panel__popular { margin-top: 12px; font-size: var(--fs-body-sm); color: var(--text-muted); }
.search-panel__popular a { color: var(--text-strong); text-underline-offset: .25em; text-decoration-color: var(--border-strong); }
.search-panel__popular a:hover { color: var(--purple-600); }

/* Mobile menu (white sheet under the white bar; top set by JS to the bar's bottom edge) */
.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--mm-top, var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--text-strong);
  border-top: 1px solid var(--border-subtle);
  animation: fade-in var(--dur-2) var(--ease-out);
}
.mobile-menu__inner { padding: var(--space-3) var(--page-x) var(--space-9); display: grid; }
.mm-group { border-bottom: 1px solid var(--border-subtle); }
.mm-group summary, .mm-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 2px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--text-strong); text-decoration: none;
  list-style: none; cursor: pointer;
}
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; color: var(--purple-600); transition: transform var(--dur-2) var(--ease-out); }
.mm-group[open] summary::after { transform: rotate(45deg); }
.mm-group ul { padding-bottom: var(--space-4); }
.mm-group li a { display: flex; align-items: center; min-height: 44px; color: var(--text-body); text-decoration: none; }
.mm-group li a:hover { color: var(--purple-600); }
.mm-link { border-bottom: 1px solid var(--border-subtle); }
.mm-link:hover { color: var(--purple-600); }

/* ===================== H02 Hero ===================== */
/* The one bold moment: an inset photograph carrying the headline, with live prices as a frosted
   strip along its foot. The photograph is graded only where text sits so the sky stays open. */
.hero { padding-top: var(--header-h); }
.hero__stage {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(600px, calc(100svh - var(--header-h) - 76px), 880px);
  border-radius: var(--radius-4);
  overflow: hidden;
  /* overflow alone doesn't clip composited layers (scaling image, backdrop-blur strip) at the corners */
  clip-path: inset(0 round var(--radius-4));
  background: var(--purple-950);
  color: #fff;
}
.hero__figure { position: absolute; inset: 0; z-index: -1; }
.hero__figure picture { display: block; width: 100%; height: 100%; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 38%;
  filter: contrast(1.08) saturate(1.08);
}
.hero__figure::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(20 13 28 / .74) 0%, rgb(20 13 28 / .42) 38%, rgb(20 13 28 / 0) 66%),
    linear-gradient(0deg, rgb(20 13 28 / .55) 0%, rgb(20 13 28 / 0) 38%);
}

.hero__copy {
  align-self: center;
  display: grid; gap: var(--space-5); justify-items: start;
  padding-block: var(--space-9) var(--space-8);
}
.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 17ch;
}
.hero__line { font-size: var(--fs-body-lg); line-height: 1.55; max-width: 44ch; color: rgb(255 255 255 / .84); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero__risk { font-size: 13px; color: rgb(255 255 255 / .62); max-width: 52ch; }

/* Latest prices strip */
.glance {
  position: relative;
  border-top: 1px solid rgb(255 255 255 / .14);
  background: rgb(20 13 28 / .46);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.glance__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.glance__head { display: grid; gap: 2px; padding-block: var(--space-4) var(--space-3); }
.glance__title { font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 500; letter-spacing: -0.005em; color: #fff; }
.glance__asat { font-size: 12.5px; color: rgb(255 255 255 / .6); }
.glance__all {
  grid-row: 1; grid-column: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-body-sm); font-weight: 500; color: #fff; text-decoration: none; white-space: nowrap;
}
.glance__all:hover .chev { transform: translateX(3px); }
.glance__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(255 255 255 / .1); }
.gcell { min-width: 0; }
.gcell:nth-child(even) { border-left: 1px solid rgb(255 255 255 / .1); }
.gcell:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .1); }
.gcell__link {
  display: grid; gap: 8px; height: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  color: #fff; text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
.gcell:nth-child(even) .gcell__link { padding-left: var(--space-4); }
.gcell__link:hover { background: rgb(255 255 255 / .06); }
.gcell__name { font-size: 13px; color: rgb(255 255 255 / .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-2); }
.gcell__link:hover .gcell__name { color: #fff; }
.gcell__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.gcell__val { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em; }
.gcell__sub { font-size: 12.5px; color: rgb(255 255 255 / .7); }
.glance .change { font-size: 13px; }
.glance .change--up { color: #7EDDA6; }
.glance .change--down { color: #FF9A8F; }
.glance .change--flat { color: rgb(255 255 255 / .62); font-weight: 500; }
.glance :focus-visible { outline-color: var(--focus-ring-dark); outline-offset: -3px; }

.hero__under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.hero__caption { margin-top: var(--space-3); }
.hero__note { margin-top: var(--space-3); padding-top: var(--space-3); font-size: var(--fs-caption); color: var(--text-muted); }

.change { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.change svg { width: 8px; height: 8px; fill: currentColor; }
.change--up { color: var(--positive); }
.change--down { color: var(--negative); }
.change--flat { color: var(--text-muted); font-weight: 400; }

@media (max-width: 767px) {
  .hero__figure::after {
    background: linear-gradient(0deg, rgb(20 13 28 / .9) 0%, rgb(20 13 28 / .62) 55%, rgb(20 13 28 / .3) 100%);
  }
  /* keep the primary CTA inside the first screen on phones */
  .hero__copy { padding-block: clamp(40px, 10svh, 120px) var(--space-6); gap: var(--space-4); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .gcell__val { font-size: 1.25rem; }
  .gcell__name { white-space: normal; }
}
@media (min-width: 1024px) {
  .glance__inner { grid-template-columns: 168px minmax(0, 1fr) auto; }
  .glance__head { padding-block: 0; padding-right: var(--space-5); }
  .glance__list { grid-column: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .gcell, .gcell:nth-child(n+3) { border-top: 0; border-left: 1px solid rgb(255 255 255 / .1); }
  .gcell__link, .gcell:nth-child(even) .gcell__link { padding: var(--space-5) var(--space-5); }
  .glance__all { grid-row: auto; grid-column: auto; padding-left: var(--space-5); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .glance__inner { grid-template-columns: 128px minmax(0, 1fr) auto; }
  .gcell__name { white-space: normal; }
  .gcell__link, .gcell:nth-child(even) .gcell__link { padding: var(--space-4); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__img { animation: hero-settle 2.2s var(--ease-out-expo) both; }
  .js .glance { animation: strip-in 1s var(--ease-out-expo) .4s both; }
  .js .hero__copy > :not(.hero__title) { animation: rise-in 1s var(--ease-out-expo) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: .1s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .2s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .3s; }
}
@keyframes hero-settle { from { transform: scale(1.06); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes strip-in { from { opacity: 0; transform: translateY(100%); } }

/* ===================== H03 Routes ===================== */
.routes { padding-block: var(--space-10) 0; }
.routes__list { display: grid; }
.route {
  position: relative;
  display: grid; align-content: start; gap: 10px;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-mid);
}
.route__title {
  font-family: var(--font-display); font-size: 1.875rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1;
  padding-right: 56px;
}
.route__line { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 40ch; }
.route__cta { margin-top: 6px; font-size: var(--fs-body-sm); text-decoration: none; color: var(--text-strong); }
.route__cta::after { content: ""; position: absolute; inset: 0; }
/* circular arrow, top-right */
.route::after {
  content: ""; position: absolute; top: var(--space-6); right: 0;
  width: 40px; height: 40px; border-radius: var(--radius-2);
  border: 1px solid var(--border-mid);
  background: center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='255.4 0 42 66'%3E%3Cpath fill='%23382550' d='M272.4 65.8 297 41.2 255.8 0l24 36.2c.2.4 2.9 3.9.7 9.8l-8.1 19.8z'/%3E%3C/svg%3E");
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-3) var(--ease-out-expo);
  pointer-events: none;
}
.route:hover::after { background-color: var(--surface-panel); border-color: var(--text-strong); transform: translateX(4px); }
.route:hover .route__cta .chev { transform: translateX(3px); }
.route__cta:focus-visible { outline: none; }
.route__cta:focus-visible::after { outline: 2px solid var(--focus-ring-light); outline-offset: 6px; border-radius: var(--radius-2); }
/* Secondary audiences: one dark brand panel, split in two */
.routes__util {
  display: grid; grid-auto-flow: row;
  margin-top: var(--space-4);
  background: var(--surface-brand);
  border-radius: var(--radius-3);
  overflow: hidden;
}
.util {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "q arrow" "a arrow";
  align-items: center; column-gap: var(--space-4); row-gap: 2px;
  padding: var(--space-4) var(--space-5);
  color: #fff; text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
.util + .util { border-top: 1px solid var(--border-on-dark); }
.util__q { grid-area: q; font-size: var(--fs-caption); color: var(--text-on-dark-muted); }
.util__a { grid-area: a; font-size: var(--fs-body-sm); font-weight: 500; }
.util__arrow {
  grid-area: arrow; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--radius-2);
  border: 1px solid rgb(255 255 255 / .22); color: #fff;
  transition: border-color var(--dur-2), background-color var(--dur-2), color var(--dur-2), transform var(--dur-3) var(--ease-out-expo);
}
.util__arrow .chev { width: 10px; height: 10px; }
.util:hover { background: var(--purple-800); }
.util:hover .util__arrow { border-color: var(--gold-300); color: var(--gold-300); transform: translateX(3px); }
.util:focus-visible { outline: 2px solid var(--focus-ring-dark); outline-offset: -2px; border-radius: var(--radius-3); }

@media (min-width: 768px) {
  .routes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); }
  .route { padding: var(--space-6) 0 var(--space-7); }
  .routes__util { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .util + .util { border-top: 0; border-left: 1px solid var(--border-on-dark); }
}

/* ===================== Section head ===================== */
.sec-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.sec-head .lead { max-width: 52ch; color: var(--text-muted); }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .sec-head h2 { grid-column: 1 / 7; }
  .sec-head .lead { grid-column: 8 / -1; }
}

/* ===================== H04 Fund ledger ===================== */
/* Both groups share one panel; the trust group is a sub-table, not a second card */
.ledger {
  display: grid; gap: var(--space-6);
  padding: var(--space-5) var(--space-5) var(--space-3);
  background: var(--surface-panel);
  border-radius: var(--radius-3);
}
.ledger__group { position: relative; }
.ledger__group-title {
  font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-strong);
  padding-bottom: var(--space-3);
}
.ledger__cols { display: none; }
.ledger__rows { display: grid; }

.frow { position: relative; border-top: 1px solid var(--border-subtle); }
.frow::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--space-3)); z-index: 0;
  border-radius: var(--radius-2);
  background: var(--surface-page);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.frow:hover::before { opacity: .7; }
.frow > * { position: relative; z-index: 1; }
.funds { position: relative; z-index: 0; overflow-x: clip; }

.frow__inner { display: grid; gap: var(--space-4); padding-block: var(--space-5); }
.frow__id { display: grid; gap: 6px; align-content: start; min-width: 0; }
.frow__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.frow__name a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); text-decoration: none; }
.frow__name a .chev { color: var(--purple-500); width: .38em; height: .38em; }
.frow:hover .frow__name .chev { transform: translateX(4px); color: var(--purple-900); }
.frow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.frow__code { font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); letter-spacing: .04em; }
.frow__desc { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 52ch; }
.frow__isin { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-left: 4px; font-size: var(--fs-as-at); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.frow__sep { color: var(--neutral-300); }
.isin { color: var(--text-strong); letter-spacing: .02em; font-weight: 500; }
.copy-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 32px; height: 32px; margin: -6px 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted);
  transition: background-color var(--dur-1), color var(--dur-1);
}
.copy-btn:hover { background: var(--purple-100); color: var(--purple-900); }
.copy-btn svg { grid-area: 1 / 1; transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); }
.copy-btn__b { opacity: 0; transform: scale(.6); color: var(--positive); }
.copy-btn.is-copied .copy-btn__a { opacity: 0; transform: scale(.6); }
.copy-btn.is-copied .copy-btn__b { opacity: 1; transform: none; }
@media (pointer: coarse) { .copy-btn { width: 44px; height: 44px; margin: -12px -6px; } }

.frow__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.fig { display: grid; align-content: start; gap: 2px; }
.fig dt { font-size: var(--fs-caption); color: var(--text-muted); }
.fig__val { font-size: 1.375rem; font-weight: 450; letter-spacing: -0.01em; color: var(--text-strong); font-variant-numeric: tabular-nums lining-nums; line-height: 1.3; }
.fig__val .change { font-size: 1.0625rem; letter-spacing: 0; }
.fig[data-fig="change"] { align-self: start; }
.fig .chip--warning { margin-top: 2px; justify-self: start; text-align: left; align-items: flex-start; }
.fig .chip--warning .icon { margin-top: 2px; }
.fig__chip { max-width: 100%; }
.fig.is-flash .fig__val { animation: flash-pos var(--dur-4) var(--ease-out); }

.frow__docs { display: grid; gap: 4px; align-content: start; }
.doc-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  min-height: 34px; padding: 6px 0;
  justify-self: start;
  color: var(--text-strong); font-size: var(--fs-body-sm); font-weight: 500; text-decoration: none;
  white-space: nowrap;
}
.doc-link .icon { width: 16px; height: 16px; align-self: center; color: var(--text-muted); transition: color var(--dur-1); }
.doc-link > span:first-of-type { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color var(--dur-2); }
.doc-link:hover > span:first-of-type { text-decoration-color: currentColor; }
.doc-link:hover .icon { color: var(--purple-900); }
.doc-link__meta { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.frow__docs .link { font-size: var(--fs-body-sm); min-height: 34px; text-decoration: none; color: var(--text-strong); }
.frow__docs .link:hover { color: var(--link-hover); }

/* Tablet: fund figures in one row of three, documents side by side */
@media (min-width: 640px) and (max-width: 1199px) {
  .frow__figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frow__docs { grid-auto-flow: column; justify-content: start; column-gap: var(--space-6); }
}
/* The five-column table needs ~1150px of content width to hold its documents column */
@media (min-width: 1200px) {
  .ledger { padding: var(--space-5) var(--space-6) var(--space-3); }
  .ledger { --cols: minmax(0, 4.4fr) minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 2.1fr); }
  .ledger__cols {
    display: grid; grid-template-columns: var(--cols); column-gap: 24px;
    padding: var(--space-2) 0 var(--space-3);
    font-size: var(--fs-caption); font-weight: 400; color: var(--text-muted);
  }
  .ledger__col-num { text-align: right; display: flex; justify-content: flex-end; align-items: center; }
  .ledger__cols > span:last-child { padding-left: var(--space-5); }
  .frow__inner { grid-template-columns: var(--cols); column-gap: 24px; align-items: start; padding-block: var(--space-5); }
  .frow__figs { display: contents; }
  .fig { text-align: right; justify-items: end; padding-top: 2px; }
  .fig .chip--warning { justify-self: end; }
  .fig dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .frow__docs { padding-left: var(--space-5); min-width: 0; }
  /* narrow desktops: file size drops under the label instead of overflowing the panel */
  .doc-link { flex-wrap: wrap; row-gap: 0; white-space: normal; }
  .doc-link__meta { white-space: nowrap; }
}

/* RMII wind-down tracker */
.winddown {
  display: grid; gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--gold-50);
  border-radius: var(--radius-2);
}
.winddown__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.winddown__label { display: inline-flex; align-items: baseline; gap: 8px; font-size: var(--fs-body-sm); color: var(--text-body); }
.winddown__label .icon { color: var(--warning); align-self: center; flex: none; }
.winddown__figure { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--text-strong); margin-right: 4px; }
.winddown__bar {
  position: relative; display: flex; gap: 3px;
  height: 10px; margin-top: 6px;
  border-radius: 999px;
  background: rgb(56 37 80 / .1);
}
.winddown__seg {
  position: relative; flex: 0 0 var(--w);
  background: var(--purple-900);
  border-radius: 2px;
  transform-origin: left;
  outline-offset: 3px;
}
.winddown__seg:nth-child(1) { border-radius: 999px 2px 2px 999px; }
.winddown__seg:nth-child(2) { background: var(--purple-700); }
.winddown__seg:nth-child(3) { background: var(--purple-500); }
.winddown__seg::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  padding: 6px 10px; border-radius: var(--radius-1);
  background: var(--purple-950); color: #fff;
  font-size: var(--fs-caption); font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px);
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
  pointer-events: none; z-index: 2;
}
.winddown__seg:hover::after, .winddown__seg:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.winddown__seg:hover { filter: brightness(1.15); }
.winddown__note { font-size: var(--fs-caption); line-height: 1.6; color: var(--text-muted); max-width: 110ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .winddown.is-pending .winddown__seg { transform: scaleX(0); }
  .js .winddown__seg { transition: transform 1s var(--ease-out-expo); }
  .js .winddown__seg:nth-child(2) { transition-delay: .18s; }
  .js .winddown__seg:nth-child(3) { transition-delay: .36s; }
}

/* Panel footer: small print + CTA, closing the ledger panel */
.funds__foot {
  display: grid; gap: var(--space-4); justify-items: start;
  margin-top: calc(-1 * var(--space-3)); /* tighten the ledger gap above the rule */
  padding-block: var(--space-5) var(--space-3);
  border-top: 1px solid var(--border-subtle);
}
.funds__notes { display: grid; gap: 4px; max-width: 96ch; font-size: var(--fs-caption); line-height: 1.6; color: var(--text-muted); }
.funds__risk { color: var(--text-body); }
.funds__risk strong { color: var(--text-strong); font-weight: 500; }
.funds__risk .link { font-weight: 500; }
@media (min-width: 1024px) {
  .funds__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-8); }
}

/* Data states (demo + production) */
.is-stale .as-at[data-asat] { display: none; }
.fig__na { color: var(--text-muted); }
@keyframes flash-pos { 0% { color: var(--positive); } 100% { color: var(--text-strong); } }

/* ===================== H04b Allocation (RM Alternative Income) ===================== */
/* Categorical slots validated with the dataviz checker (adjacent ring order incl. wrap-around):
   infrastructure → property → debt → cash → specialist. Gold sits below 3:1 on white, so every
   value is also printed as text (direct labels + list). */
.alloc {
  --alloc-1: #5E40A0; /* infrastructure */
  --alloc-2: #D9A21B; /* property */
  --alloc-3: #00968A; /* debt */
  --alloc-4: #2F6FD0; /* cash */
  --alloc-5: #D2547E; /* specialist real estate */
  padding-top: 0; padding-bottom: var(--panel-gap);
}
.section.funds { padding-bottom: var(--panel-gap); }
/* Two-tone: lavender panel (breaks the white-panel run between ledger and proof),
   breakdown list lifted onto a white card so the data stays on paper */
.alloc__panel {
  display: grid; gap: var(--space-6);
  padding: var(--space-6) var(--space-5);
  background:
    radial-gradient(640px circle at 0% 0%, rgb(200 183 131 / .2), transparent 62%),
    radial-gradient(520px circle at 100% 100%, rgb(127 107 160 / .14), transparent 70%),
    linear-gradient(160deg, #EFEAF7 0%, #E6DEF1 100%);
  border-radius: var(--radius-3);
}
.alloc__list {
  padding: var(--space-5);
  background: var(--surface-panel);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-1);
}

/* Left column: title, donut, downloads */
.alloc__side { display: grid; gap: var(--space-5); align-content: space-between; }
.alloc__head { display: grid; gap: var(--space-2); }
.alloc__head h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.alloc__lead { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 40ch; }

/* Donut: asset classes */
.alloc__chart { display: grid; place-items: center; }
.donut { position: relative; width: min(100%, 280px); aspect-ratio: 1; }
.donut__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut__track { fill: none; stroke: rgb(56 37 80 / .08); stroke-width: 22; }
.donut__seg {
  fill: none; stroke: var(--c); stroke-width: 22;
  stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off);
  cursor: pointer;
  transition: stroke-dasharray 1.2s var(--ease-out-expo), stroke-width .35s var(--ease-out), opacity .35s var(--ease-out);
}
.alloc__panel[data-active] .donut__seg:not(.is-active) { opacity: .28; }
.donut__seg.is-active { stroke-width: 28; }
.donut__center {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 2px;
  text-align: center; pointer-events: none;
}
.donut__val { font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); line-height: 1; letter-spacing: -0.015em; color: var(--text-strong); }
.donut__name { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 14ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .alloc__panel.is-pending .donut__seg { stroke-dasharray: 0 100; }
  .js .donut__seg:nth-of-type(3) { transition-delay: .1s, 0s, 0s; }
  .js .donut__seg:nth-of-type(4) { transition-delay: .2s, 0s, 0s; }
  .js .donut__seg:nth-of-type(5) { transition-delay: .3s, 0s, 0s; }
  .js .donut__seg:nth-of-type(6) { transition-delay: .4s, 0s, 0s; }
  .js .donut__seg:nth-of-type(7) { transition-delay: .5s, 0s, 0s; }
}

/* Breakdown list: asset class → sectors */
.alloc__list-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 0 28px var(--space-2) 26px;
  font-size: var(--fs-caption); color: var(--text-muted);
}
.aclasses { display: grid; border-top: 1px solid var(--border-subtle); }
.aclass { border-bottom: 1px solid var(--border-subtle); }
.aclass__head {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px;
  width: 100%; min-height: 50px; padding: 0;
  border: 0; background: none; text-align: left;
  color: var(--text-strong);
}
.aclass__swatch { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.aclass__name { font-size: 1rem; font-weight: 500; }
.aclass__val { font-family: var(--font-display); font-size: 1.3125rem; letter-spacing: -0.01em; }
.aclass__caret { color: var(--text-muted); transition: transform var(--dur-2) var(--ease-out); }
.aclass__head[aria-expanded="true"] .aclass__caret { transform: rotate(180deg); }
.aclass__head:hover .aclass__name { color: var(--purple-600); }
.aclass__head:focus-visible { outline-offset: 2px; }

.asubs { display: grid; gap: 4px; padding: 0 28px var(--space-4) 26px; }
.asubs:not([hidden]) { animation: rise-in .5s var(--ease-out-expo); }
/* one line per sector: name · bar · value */
.asub { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3.25rem; gap: 16px; align-items: center; min-height: 28px; }
.asub__name { font-size: var(--fs-body-sm); color: var(--text-body); }
.asub__val { grid-column: 3; grid-row: 1; text-align: right; font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-strong); }
.asub__track { grid-column: 2; grid-row: 1; height: 6px; border-radius: 3px; background: var(--surface-muted); overflow: hidden; }
/* bars share one scale across all sectors: full width = 20% of the fund */
.asub__fill {
  display: block; height: 100%; width: calc(var(--v) / 20 * 100%);
  border-radius: 3px; background: var(--c);
  transform-origin: left; animation: bar-in .9s var(--ease-out-expo) both;
}
@keyframes bar-in { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .asub__fill, .asubs:not([hidden]) { animation: none; } }
.asub--note { display: block; font-size: var(--fs-body-sm); color: var(--text-muted); }

.alloc__source { margin-top: var(--space-4); font-size: var(--fs-caption); color: var(--text-muted); max-width: 64ch; }
.alloc__source .as-at { font-size: inherit; }
.alloc__docs { display: flex; flex-wrap: wrap; gap: 10px; }
.dl {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgb(56 37 80 / .12); border-radius: var(--radius-2);
  background: rgb(255 255 255 / .72);
  color: var(--text-strong); text-decoration: none;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}
.dl .icon { color: var(--purple-600); }
.dl > span { display: grid; line-height: 1.3; }
.dl__title { font-size: var(--fs-body-sm); font-weight: 500; }
.dl__meta { font-size: 12px; color: var(--text-muted); }
.dl:hover { border-color: var(--purple-900); background: var(--surface-panel); }

@media (max-width: 1023px) {
  /* stack as: title, donut, breakdown, downloads */
  .alloc__side { display: contents; }
  .alloc__head { order: 1; }
  .alloc__chart { order: 2; }
  .alloc__list { order: 3; }
  .alloc__docs { order: 4; }
  .donut { width: min(100%, 220px); }
}
@media (max-width: 479px) {
  .asub { grid-template-columns: minmax(0, 1fr) 3.25rem; gap: 4px 12px; }
  .asub__track { grid-column: 1 / -1; grid-row: 2; }
  .asub__val { grid-column: 2; }
  .asubs, .alloc__list-head { padding-right: 0; }
}
@media (min-width: 768px) {
  .alloc__panel { padding: var(--space-7); }
}
@media (min-width: 1024px) {
  .alloc__panel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch; padding: var(--space-7) var(--space-8); }
  .alloc__side { grid-column: 1 / 6; }
  .alloc__list { grid-column: 6 / -1; align-self: center; padding: var(--space-6) var(--space-7); }
}

/* ===================== H05 Proof ===================== */
.proof {
  --mx: 78%; --my: 30%;
  padding-block: var(--section-y); position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-4); clip-path: inset(0 round var(--radius-4));
}
/* Ambient layer: a fine dot grid, brightest around the pointer (or a resting point on touch / reduced motion). */
.proof::before, .proof::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.proof::before {
  background-image: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.2px);
  background-size: 28px 28px; background-position: center;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0%, rgb(0 0 0 / .25) 45%, transparent 75%);
          mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0%, rgb(0 0 0 / .25) 45%, transparent 75%);
  opacity: .18; transition: opacity var(--dur-5) var(--ease-out);
}
.proof::after {
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgb(127 107 160 / .22), transparent 70%),
    radial-gradient(260px circle at var(--mx) var(--my), rgb(200 183 131 / .07), transparent 70%);
  opacity: .7; transition: opacity var(--dur-5) var(--ease-out);
}
.proof.is-lit::before { opacity: .32; }
.proof.is-lit::after { opacity: 1; }

.proof__grid { display: grid; gap: var(--space-9); }
.proof__lead { display: grid; gap: var(--space-6); align-content: start; justify-items: start; }
.proof__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.875rem);
  line-height: 1.08; letter-spacing: -0.015em; color: #fff;
  text-wrap: balance; max-width: 24ch;
}
.proof__statement em { font-style: normal; color: inherit; }
.proof__facts { container-type: inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
/* Glass tiles: frosted over the dot grid, gold tick on the top edge */
.pfact {
  --pad: clamp(16px, 4cqi, 28px);
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: var(--pad) var(--pad) calc(var(--pad) + 4px);
  background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--radius-3);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 20px 40px -24px rgb(0 0 0 / .5);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
          backdrop-filter: blur(14px) saturate(130%);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.pfact::before {
  content: ""; position: absolute; left: var(--pad); top: -1px; width: 24px; height: 1px; background: var(--gold-300);
  transform-origin: left; transition: transform 1.1s var(--ease-out-expo), width var(--dur-4) var(--ease-out-expo);
}
.pfact__label { order: 2; margin-top: var(--space-2); font-size: var(--fs-body-sm); color: var(--text-on-dark-muted); max-width: 26ch; transition: color var(--dur-2) var(--ease-out); }
/* Sized to the facts column so the longest value ("Edinburgh") never spills into its neighbour. */
.pfact__val {
  order: 1; font-family: var(--font-display); font-weight: 400;
  font-size: min(var(--fs-figure-xl), 8cqi); line-height: 1; letter-spacing: -0.015em; white-space: nowrap;
  color: #fff; font-variant-numeric: lining-nums;
}
/* Qualifiers ("c.", "FRN") read as quiet prefixes so every value holds one line. */
.pfact__pre {
  font-family: var(--font-body); font-size: max(.32em, 13px); font-weight: 500; letter-spacing: .04em;
  color: var(--gold-300); margin-right: .4em;
}
.pfact__asat, .pfact dd:last-child:not(.pfact__val) { order: 3; font-size: var(--fs-as-at); color: var(--text-on-dark-muted); }
.pfact__link { font-size: var(--fs-body-sm); margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .pfact:hover { border-color: rgb(255 255 255 / .18); background-color: rgb(255 255 255 / .03); }
  .pfact:hover::before { width: calc(100% - 2 * var(--pad)); }
  .pfact:hover .pfact__label { color: rgb(255 255 255 / .85); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .pfact.is-pending::before { transform: scaleX(0); }
}
@media (min-width: 1024px) {
  .proof__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .proof__lead { grid-column: 1 / 7; }
  .proof__facts { grid-column: 7 / -1; gap: var(--space-4); }
}

/* ===================== H06 Approach / spectrum ===================== */
.approach__head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.approach__head .lead { color: var(--text-muted); }
@media (min-width: 1024px) {
  .approach__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .approach__head h2 { grid-column: 1 / 7; }
  .approach__head .lead { grid-column: 8 / -1; }
}
.spectrum {
  --label-w: 0px;
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface-panel);
  border-radius: var(--radius-3);
}
.spectrum__axis {
  display: flex; justify-content: space-between; gap: 16px;
  margin-left: var(--label-w);
  padding-bottom: var(--space-3);
  font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted);
}
.spectrum__axis span:last-child { text-align: right; }
.spectrum__rows { position: relative; display: grid; gap: 2px; }
.spectrum__rows::before {
  /* the listed / private divide */
  content: ""; position: absolute; top: -8px; bottom: -8px;
  left: calc(var(--label-w) + (100% - var(--label-w)) * .5);
  border-left: 1px dashed var(--neutral-300);
}
.srow {
  position: relative;
  display: grid; gap: 8px;
  padding: 12px 0;
  border-radius: var(--radius-2);
  transition: opacity var(--dur-3) var(--ease-out);
  outline-offset: 4px;
}
.srow__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-strong); }
.srow__name { display: inline-flex; align-items: center; gap: 6px; }
.srow__label .icon { color: var(--text-muted); }
.srow__desc { font-weight: 400; color: var(--text-muted); font-size: var(--fs-caption); }
.srow__track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-muted); }
.srow__bar {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%);
  border-radius: 999px;
  background: var(--series-1);
  transform-origin: left;
  transition: transform 1s var(--ease-out-expo), background-color var(--dur-2);
  transition-delay: var(--d, 0ms);
}
.srow--pro .srow__bar {
  background: repeating-linear-gradient(135deg, var(--series-1) 0 6px, var(--purple-300) 6px 9px);
}
.srow__marker {
  position: absolute; top: 50%; left: calc(var(--m) * 1%);
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid var(--series-1); border-radius: 50%; background: var(--surface-panel);
  z-index: 1;
}
.srow__link {
  position: absolute; top: 50%; height: 0;
  left: calc(var(--m) * 1%); width: calc((var(--s) - var(--m)) * 1%);
  border-top: 2px dotted var(--neutral-500);
  transform-origin: left;
  transition: transform .8s var(--ease-out-expo) .5s;
}
.spectrum__rows:hover .srow:not(:hover), .spectrum__rows:focus-within .srow:not(:focus-visible):not(:hover) { opacity: .4; }
.srow:hover .srow__bar, .srow:focus-visible .srow__bar { background-color: var(--purple-900); }
.srow--pro:hover .srow__bar, .srow--pro:focus-visible .srow__bar { background: repeating-linear-gradient(135deg, var(--purple-900) 0 6px, var(--purple-300) 6px 9px); }
.spectrum__note { margin-top: var(--space-4); margin-left: var(--label-w); font-size: var(--fs-caption); color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .spectrum.is-pending .srow__bar { transform: scaleX(0); }
  .js .spectrum.is-pending .srow__link { transform: scaleX(0); }
  .js .spectrum.is-pending .srow__marker { transform: scale(0); }
  .js .srow__marker { transition: transform .5s var(--ease-out-expo) .2s; }
}
@media (min-width: 768px) {
  .spectrum { --label-w: 280px; padding: var(--space-7) var(--space-7) var(--space-6); }
  .srow { grid-template-columns: var(--label-w) 1fr; align-items: center; gap: 0; padding: 14px 0; }
  .srow__label { flex-direction: column; gap: 2px; padding-right: var(--space-5); }
}

.principles { display: grid; margin-top: var(--space-9); }
.principle { display: grid; gap: var(--space-3); padding: var(--space-6) 0; border-top: 1px solid var(--border-mid); }
.principle__title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; }
.principle p { max-width: 52ch; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.65; }
.approach__link { justify-self: start; }
@media (min-width: 1024px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-8); }
  .principle { align-content: start; }

  /* fit the whole section in one viewport */
  .approach { padding-block: clamp(32px, 5vh, 64px); }
  .approach__head { grid-template-rows: auto auto; row-gap: var(--space-3); margin-bottom: clamp(16px, 2.6vh, 32px); }
  .approach__head h2 { grid-row: 1 / 3; align-self: end; font-size: clamp(1.875rem, 1.2rem + 1.4vw, 2.5rem); }
  .approach__head .lead { grid-column: 7 / -1; font-size: var(--fs-body); line-height: 1.5; }
  .approach__head .approach__link { grid-column: 7 / -1; justify-self: start; margin-top: 0; }
  .approach .spectrum { --label-w: 340px; padding: clamp(16px, 2.6vh, 32px) var(--space-7) clamp(14px, 2vh, 24px); }
  .approach .spectrum__axis { padding-bottom: var(--space-1); }
  .approach .srow { padding: clamp(3px, .6vh, 10px) 0; }
  .approach .spectrum__note { margin-top: var(--space-2); }
  .approach .principles { margin-top: clamp(16px, 3vh, 40px); }
  .approach .principle { gap: var(--space-2); padding: clamp(12px, 1.8vh, 24px) 0 0; }
  .approach .principle__title { font-size: clamp(1.25rem, 1rem + .5vw, 1.5rem); }
  .approach .principle p { line-height: 1.55; }
}

/* ===================== Inset light panels (assets, insights) ===================== */
.section.surface-subtle { background: var(--surface-panel); border-radius: var(--radius-4); }

/* ===================== H07 Assets mosaic ===================== */
/* Header row (title + note), then two tight rows: photo pair, then sector plate + photo.
   Captions sit on the photographs as frosted chips so the mosaic reads as one block. */
.assets__grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.assets__intro { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.assets__aside { display: grid; gap: var(--space-2); }
.assets__note { font-size: var(--fs-body); color: var(--text-muted); max-width: 46ch; }
.assets__disclaimer { font-size: var(--fs-caption); color: var(--text-muted); }

.asset { position: relative; }
.asset__frame { overflow: hidden; height: 100%; background: var(--neutral-100); border-radius: var(--radius-3); }
.asset__frame picture { display: block; height: 100%; }
.asset__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-5) var(--ease-out-expo); }
.asset:hover .asset__frame img { transform: scale(1.03); }
.asset--a .asset__frame, .asset--d .asset__frame { aspect-ratio: 3 / 2; }
.asset--b .asset__frame { aspect-ratio: 4 / 3; }
.asset .provenance {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  max-width: calc(100% - 24px);
  margin: 0; padding: 7px 12px;
  border-radius: var(--radius-2);
  background: rgb(20 13 28 / .52);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  color: rgb(255 255 255 / .72);
}
.asset .provenance::before { display: none; }
.asset .provenance strong { color: #fff; }

/* Sector plate (data-led tile inside the mosaic) */
.sector {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface-page);
  border-radius: var(--radius-3);
}
.sector__title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.sector__note { font-size: var(--fs-caption); color: var(--text-muted); }
.sector__bars { display: grid; gap: var(--space-4); margin-top: var(--space-3); }
.sbar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.sbar__label { font-size: var(--fs-body-sm); color: var(--text-strong); }
.sbar__val { font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-strong); }
.sbar__track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgb(30 21 40 / .08); overflow: hidden; }
.sbar__fill {
  display: block; height: 100%; width: calc(var(--v) * 1%);
  border-radius: 999px; background: var(--series-1);
  transform-origin: left; transition: transform 1s var(--ease-out-expo), background-color var(--dur-2);
}
.sbar:hover .sbar__fill { background: var(--purple-900); }
.sbar:nth-child(2) .sbar__fill { transition-delay: .08s; }
.sbar:nth-child(3) .sbar__fill { transition-delay: .16s; }
.sbar:nth-child(4) .sbar__fill { transition-delay: .24s; }
.sector__source { margin-top: auto; padding-top: var(--space-3); font-size: var(--fs-caption); color: var(--text-muted); }
.sector__source strong { color: var(--text-body); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .sector.is-pending .sbar__fill { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) { .asset:hover .asset__frame img { transform: none; } }

@media (min-width: 768px) and (max-width: 1023px) {
  .assets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assets__intro, .asset--a, .asset--d { grid-column: 1 / -1; }
  /* pharmacy sits beside the sector plate and matches its height */
  .asset--b .asset__frame { position: relative; aspect-ratio: auto; min-height: 280px; }
  .asset--b img { position: absolute; inset: 0; }
}
@media (min-width: 1024px) {
  .assets__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-4);
    grid-template-rows: auto clamp(340px, 34vw, 500px) auto;
    grid-template-areas:
      "i i i i i i i i i i i i"
      "a a a a a a a a b b b b"
      "c c c c d d d d d d d d";
  }
  .assets__intro {
    grid-area: i; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-4);
    align-items: end; margin-bottom: var(--space-6);
  }
  .assets__intro h2 { grid-column: 1 / 7; }
  .assets__aside { grid-column: 8 / -1; }
  .asset--a { grid-area: a; }
  .asset--b { grid-area: b; }
  .asset--c { grid-area: c; }
  .asset--d { grid-area: d; }
  /* Photos fill their grid cell; the sector plate sets row 3's height */
  .asset--a .asset__frame, .asset--b .asset__frame, .asset--d .asset__frame { position: relative; aspect-ratio: auto; }
  .asset--a img, .asset--b img, .asset--d img { position: absolute; inset: 0; }
  .asset--d .asset__frame { min-height: 360px; }
}

/* ===================== H08 People ===================== */
.people__grid { display: grid; gap: var(--space-8); }
.people__intro { display: grid; gap: var(--space-4); align-content: start; justify-items: start; }
.people__intro p { max-width: 40ch; color: var(--text-muted); }
.people__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-4); }
.person__link { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.person__photo { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--neutral-100); margin-bottom: var(--space-3); border-radius: var(--radius-3); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: transform 1s var(--ease-out-expo), filter .8s var(--ease-out); }
.person__link:hover .person__photo img { transform: scale(1.035); filter: grayscale(0); }
.person__name { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.person__role { font-size: var(--fs-body-sm); color: var(--text-muted); }
.person__line { margin-top: 6px; font-size: var(--fs-body-sm); color: var(--text-body); line-height: 1.5; }
@media (min-width: 1024px) {
  .people__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .people__intro { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .people__list { grid-column: 5 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  .person:nth-child(even) { margin-top: var(--space-9); }
}

/* ===================== H09 Insights ===================== */
.insights__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--space-8); }
.insights__grid { display: grid; gap: var(--space-8); }
.feature { position: relative; display: grid; gap: var(--space-4); }
.feature__media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--neutral-100); border-radius: var(--radius-3); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__play {
  position: absolute; left: 20px; bottom: 20px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgb(255 255 255 / .9); color: var(--purple-900);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform var(--dur-3) var(--ease-out-expo);
}
.feature__play .icon { fill: currentColor; stroke: none; margin-left: 3px; }
.feature:hover .feature__play { transform: scale(1.08); }
.feature__meta, .ilist__meta { display: flex; align-items: center; gap: 10px; }
.feature__title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.feature__title a { text-decoration: none; color: inherit; }
.feature__title a::after { content: ""; position: absolute; inset: 0; }
.feature__by { font-size: var(--fs-body-sm); color: var(--text-muted); }
.insights__side { display: grid; gap: var(--space-6); align-content: start; }
.ilist__item { position: relative; display: grid; gap: 10px; padding: var(--space-5) 0; border-bottom: 1px solid var(--border-subtle); }
.ilist__item:first-child { padding-top: 0; }
.ilist__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.ilist__title a { text-decoration: none; color: inherit; transition: color var(--dur-2); }
.ilist__title a::after { content: ""; position: absolute; inset: 0; }
.ilist__item:hover .ilist__title a { color: var(--link-hover); }
.webinar {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5);
  padding: var(--space-5);
  background: var(--surface-page);
  border-radius: var(--radius-3);
}
.webinar__date {
  display: grid; place-content: center; text-align: center;
  width: 76px; height: 84px; border-radius: var(--radius-2);
  background: var(--purple-950); color: #fff;
}
.webinar__day { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 1; letter-spacing: -0.01em; }
.webinar__month { font-size: var(--fs-caption); font-weight: 500; color: var(--gold-300); }
.webinar__body { display: grid; gap: 6px; align-content: start; }
.webinar__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); }
.webinar__label .chip { background: var(--surface-panel); }
.webinar__title { font-size: var(--fs-h4); font-weight: 500; }
.webinar__when { font-size: var(--fs-body-sm); color: var(--text-body); }
.webinar__actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; font-size: var(--fs-body-sm); }
.webinar__ics { border: 0; background: none; padding: 0; min-height: 32px; font-weight: 500; }
@media (min-width: 1024px) {
  .insights__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .feature { grid-column: 1 / 8; }
  .insights__side { grid-column: 9 / -1; }
}

/* ===================== H10 Stewardship ===================== */
.stew__grid { display: grid; gap: var(--space-8); align-items: center; }
.stew__copy { display: grid; gap: var(--space-5); justify-items: start; }
.stew__copy > p { max-width: 54ch; color: var(--text-muted); }
.stew__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }

/* Owner's cycle: three beats on a shared rule, gold tick marks each step */
.stew__cycle { display: grid; gap: var(--space-5); width: 100%; margin-block: var(--space-2); counter-reset: step; }
.stew__step { position: relative; display: grid; gap: 4px; align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--border-mid); counter-increment: step; }
.stew__step::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--gold-300); }
.stew__when { font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); }
.stew__when::before { content: "0" counter(step) " · "; font-variant-numeric: tabular-nums; color: var(--text-accent-on-light); }
.stew__verb { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h4); line-height: 1.2; color: var(--text-strong); }
.stew__step p { font-size: var(--fs-body-sm); line-height: 1.55; color: var(--text-muted); max-width: 28ch; }

/* Library card: latest report as a cover, the rest as a document list */
.stew__lib {
  display: grid; gap: var(--space-5);
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-3);
  box-shadow: 0 1px 2px rgb(30 21 40 / .04), 0 24px 48px -24px rgb(30 21 40 / .14);
}
.stew__lib-title { font-family: var(--font-body); font-size: var(--fs-caption); font-weight: 500; color: var(--text-muted); }
.plate { display: grid; grid-template-columns: 112px 1fr; gap: var(--space-4); align-items: end; text-decoration: none; color: inherit; perspective: 900px; }
.plate__cover {
  position: relative; display: grid; align-content: start; gap: 4px;
  aspect-ratio: 4 / 5; padding: 16px;
  background: var(--purple-950); color: #fff;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 2px 4px rgb(30 21 40 / .12), 0 18px 36px rgb(30 21 40 / .22);
  transform-origin: left center;
  transition: transform .9s var(--ease-out-expo), box-shadow .9s var(--ease-out-expo);
  overflow: hidden;
}
.plate__cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgb(0 0 0 / .3), transparent); }
.plate__cover::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 1px; background: var(--gold-300); }
.plate__logo { width: 46px; height: auto; margin-bottom: auto; }
.plate__kicker { margin-top: 32%; font-size: 11px; font-weight: 500; color: var(--gold-300); }
.plate__title { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.05; letter-spacing: -0.01em; }
.plate__year { font-family: var(--font-display); font-weight: 400; font-size: .875rem; color: var(--gold-300); }
.plate:hover .plate__cover, .plate:focus-visible .plate__cover { transform: rotateY(-12deg) translateY(-3px); box-shadow: 0 2px 4px rgb(30 21 40 / .12), 18px 18px 36px rgb(30 21 40 / .26); }
.plate__doc { display: grid; gap: 6px; justify-items: start; padding-bottom: 4px; }
.plate__tag { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-highlight); color: var(--text-accent-on-light); font-size: 12px; font-weight: 500; }
.plate__doc-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h4); line-height: 1.25; color: var(--text-strong); transition: color var(--dur-1); }
.plate:hover .plate__doc-title { color: var(--link-hover); }

.stew__docs { display: grid; border-top: 1px solid var(--border-subtle); }
.stew__doc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding-block: 14px; border-bottom: 1px solid var(--border-subtle);
  text-decoration: none; color: inherit;
}
.stew__docs li:last-child .stew__doc { border-bottom: 0; padding-bottom: 0; }
.stew__doc > .icon { color: var(--text-muted); transition: color var(--dur-1); }
.stew__doc > span { display: grid; gap: 2px; }
.stew__doc-title { font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-strong); transition: color var(--dur-1); }
.stew__doc .chev { color: var(--text-muted); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1); }
.stew__doc:hover .stew__doc-title, .stew__doc:hover > .icon, .stew__doc:hover .chev { color: var(--link-hover); }
.stew__doc:hover .chev { transform: translateX(3px); }
@media (min-width: 640px) {
  .stew__cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate { grid-template-columns: 168px 1fr; gap: var(--space-5); }
}
@media (max-width: 639px) {
  .plate__cover { padding: 12px; gap: 2px; }
  .plate__cover::after { left: 12px; right: 12px; bottom: 12px; }
  .plate__logo { width: 36px; }
  .plate__kicker { margin-top: 18%; font-size: 11px; }
  .plate__title { font-size: .875rem; }
  .plate__year { font-size: .75rem; }
}
@media (min-width: 1024px) {
  .stew__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .stew__copy { grid-column: 1 / 7; }
  .stew__lib { grid-column: 8 / -1; }
}
@media (prefers-reduced-motion: reduce) { .plate__cover, .stew__doc .chev { transition: none; } }

/* ===================== H13 Footer ===================== */
.site-footer {
  margin-block: clamp(48px, 6vw, 80px) var(--inset);
  border-radius: var(--radius-4);
  background: var(--surface-brand-deep); color: var(--purple-100);
  padding-block: var(--space-9) var(--space-7);
}
/* Top row: brand strap left, newsletter panel right */
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-bottom: var(--space-9); margin-bottom: var(--space-8); border-bottom: 1px solid var(--border-on-dark); }
.footer__brand { display: grid; gap: var(--space-6); align-content: space-between; }
.footer__logo img { width: 220px; height: auto; }
.footer__strap {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); color: #fff; max-width: 20ch;
}
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); padding-bottom: var(--space-8); border-bottom: 1px solid var(--border-on-dark); }
.footer__col--offices { grid-column: 1 / -1; display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__col--offices .footer__h { grid-column: 1 / -1; }
.footer__h { font-family: var(--font-body); font-size: var(--fs-caption); font-weight: 500; color: var(--text-on-dark-muted); margin-bottom: var(--space-3); }
.footer__col--offices .footer__h { margin-bottom: 0; }
.site-footer address { font-size: var(--fs-body-sm); line-height: 1.6; color: var(--text-on-dark-muted); }
.site-footer address strong { color: #fff; font-weight: 500; }
.footer__col ul { display: grid; gap: 0; }
.footer__col a, .footer__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0;
  border: 0; background: none;
  font-size: var(--fs-body-sm); color: #fff; text-decoration: none; text-align: left;
  transition: color var(--dur-1);
}
.footer__col a:hover, .footer__btn:hover { color: var(--gold-300); }
.footer__legal { display: grid; gap: var(--space-3); padding-top: var(--space-6); font-size: var(--fs-caption); color: var(--text-on-dark-muted); }
.footer__risk {
  display: grid; gap: var(--space-3); justify-items: start;
  padding: var(--space-5); margin-bottom: var(--space-3);
  border: 1px solid var(--border-on-dark); border-radius: var(--radius-3);
  background: rgb(255 255 255 / .03);
}
.footer__risk p { font-size: var(--fs-body-sm); line-height: 1.65; color: var(--purple-100); }
.footer__risk strong { color: #fff; font-weight: 500; }
.footer__risk .link { font-size: var(--fs-body-sm); font-weight: 500; }
.footer__scam { color: var(--purple-200); }
@media (pointer: coarse) { .footer__col a, .footer__btn { min-height: 44px; } }
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch; }
  .footer__brand { grid-column: 1 / 7; }
  .subscribe { grid-column: 7 / -1; }
  .footer__nav { grid-template-columns: 1.6fr 1.3fr 1fr 1.3fr 1fr; }
  .footer__col--offices { grid-column: auto; grid-template-columns: 1fr; align-content: start; }
}

/* ===================== H11 Subscribe (footer panel) ===================== */
/* Brand plum card raised off the footer's night, gold rule ties it to the strap */
.subscribe {
  position: relative; display: grid; gap: var(--space-5); align-content: start;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-3);
  background: var(--surface-brand);
  border: 1px solid var(--border-on-dark);
  scroll-margin-top: 96px;
}
.subscribe::before {
  content: ""; position: absolute; top: -1px; left: clamp(24px, 3vw, 36px);
  width: 40px; height: 2px; background: var(--gold-300);
}
.sub__head { display: grid; gap: var(--space-2); }
.sub__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15;
  font-size: var(--fs-h3); color: #fff;
}
.sub__hint { font-size: var(--fs-body-sm); color: var(--text-on-dark-muted); max-width: 52ch; }
.sub__form { display: grid; gap: 6px; }
.sub__label { font-weight: 500; font-size: var(--fs-caption); color: var(--text-on-dark-muted); }
.sub__row {
  display: flex; gap: 6px;
  padding: 5px; border-radius: var(--radius-2);
  background: rgb(0 0 0 / .18);
  border: 1px solid var(--border-on-dark);
  transition: border-color var(--dur-1);
}
.sub__row:hover { border-color: rgb(255 255 255 / .24); }
.sub__row:focus-within { border-color: rgb(255 255 255 / .4); }
.sub__row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 0; border-radius: var(--radius-1);
  background: transparent; color: #fff; font-size: var(--fs-body);
}
.sub__row input::placeholder { color: rgb(255 255 255 / .38); }
.sub__row input:focus-visible { outline: none; }
.sub__row:has(input:focus-visible) { outline: 2px solid var(--focus-ring-dark); outline-offset: 3px; }
.sub__row:has(input[aria-invalid="true"]) { border-color: var(--gold-300); }
.sub__row .btn { height: 46px; min-height: 46px; border-radius: var(--radius-1); }
.sub__error { display: flex; align-items: center; gap: 8px; color: #fff; font-size: var(--fs-body-sm); font-weight: 500; margin-top: 4px; }
.sub__error .icon { color: var(--gold-300); }
.sub__privacy { font-size: var(--fs-caption); color: var(--text-on-dark-muted); margin-top: 6px; }
.sub__privacy .link { font-weight: 500; }
.sub__success { display: flex; gap: 14px; color: #fff; animation: rise-in var(--dur-3) var(--ease-out-expo); }
.sub__success .icon { color: var(--gold-300); flex: none; }
.sub__success-title { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.25; margin-bottom: 6px; }
.sub__success p:not(.sub__success-title) { color: var(--text-on-dark-muted); font-size: var(--fs-body-sm); }
.sub__retry { border: 0; background: none; padding: 0; color: #fff; text-decoration: underline; font-weight: 500; }
@media (max-width: 479px) {
  .sub__row { flex-direction: column; }
  .sub__row input { flex: none; width: 100%; } /* flex-basis 0 collapsed the field in a column */
  .sub__row .btn { width: 100%; justify-content: center; }
}

/* ===================== H00 Audience gate ===================== */
.gate { width: 560px; border-radius: var(--radius-3); box-shadow: var(--shadow-2); overflow: hidden; }
.gate__form { display: grid; max-height: min(90vh, 860px); grid-template-rows: auto 1fr auto; }
.gate__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 24px; background: var(--surface-brand-deep); }
.gate__bar img { width: 76px; height: auto; }
.gate__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.gate__close:hover { background: rgb(255 255 255 / .1); }
.gate__close:focus-visible { outline-color: var(--focus-ring-dark); }
.gate__close--light { color: var(--text-strong); }
.gate__close--light:hover { background: var(--surface-page); }
.gate__close--light:focus-visible { outline-color: var(--focus-ring-light); }
.gate__body { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-6) var(--space-4); overflow-y: auto; }
.gate__title { font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.gate__dest { font-size: var(--fs-body-sm); color: var(--text-muted); }
.gate__error { display: flex; align-items: center; gap: 8px; color: var(--negative); font-size: var(--fs-body-sm); font-weight: 500; }
.gate__options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.gopt {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  min-height: 60px; padding: 14px 16px;
  border: 1px solid var(--border-mid); border-radius: var(--radius-2);
  cursor: pointer;
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.gopt:hover { border-color: var(--border-strong); }
.gopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gopt__mark { width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--neutral-500); border-radius: 50%; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.gopt:has(input:checked) { border-color: var(--purple-900); background: var(--purple-50); box-shadow: inset 0 0 0 1px var(--purple-900); }
.gopt:has(input:checked) .gopt__mark { border-color: var(--purple-900); box-shadow: inset 0 0 0 4px var(--purple-50), inset 0 0 0 10px var(--purple-900); }
.gopt:has(input:focus-visible) { outline: 2px solid var(--focus-ring-light); outline-offset: 2px; }
.gopt__text { display: grid; gap: 2px; }
.gopt__label { font-weight: 500; color: var(--text-strong); }
.gopt__desc { font-size: var(--fs-body-sm); color: var(--text-muted); }
.gate__decl { font-size: var(--fs-body-sm); color: var(--text-body); min-height: 3em; }
.gate__terms { font-size: var(--fs-body-sm); }
.gate__terms summary { cursor: pointer; color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: .25em; min-height: 32px; display: inline-flex; align-items: center; }
.gate__terms p { margin-top: 8px; color: var(--text-body); }
.gate__terms .link { margin-top: 8px; }
.gate__foot { display: grid; gap: 10px; padding: var(--space-4) var(--space-6) var(--space-6); border-top: 1px solid var(--border-subtle); background: var(--surface-panel); }
.gate__skip-hint { font-size: var(--fs-caption); color: var(--text-muted); }
.gate__btns { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 599px) {
  .gate { width: 100vw; max-width: 100vw; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: var(--radius-3) var(--radius-3) 0 0; }
  .gate__form { max-height: calc(100dvh - 16px); }
  .gate__body { padding: var(--space-5) var(--space-4) var(--space-3); }
  .gate__foot { padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); }
  .gate__btns { flex-direction: column-reverse; }
  .gate__btns .btn { width: 100%; }
}

/* ===================== H00b Cookie banner + settings ===================== */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-overlay);
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--surface-panel);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -12px 40px rgb(30 21 40 / .12);
  max-height: 45vh; overflow-y: auto; overflow-x: hidden;
  width: 100%;
}
.cookie__inner, .cookie__done { display: grid; gap: var(--space-4); padding: var(--space-5) var(--page-x); max-width: calc(var(--container) + 2 * var(--page-x)); margin-inline: auto; }
.cookie__title { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 500; margin-bottom: 4px; }
.cookie__text p { font-size: var(--fs-body-sm); color: var(--text-muted); max-width: 90ch; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie__actions .cookie__manage { grid-column: 1 / -1; padding-block: 4px; min-height: 40px; }
.cookie__inner { gap: var(--space-3); padding-block: var(--space-4); }
@media (max-width: 599px) {
  .cookie__text p { font-size: 14px; line-height: 1.5; }
  .cookie__actions .btn { min-height: 44px; padding-inline: 12px; }
}
.cookie__manage { border: 0; background: none; padding: 10px 4px; min-height: 44px; color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: .25em; }
.cookie__done { grid-template-columns: 1fr auto; align-items: center; }
.cookie__done-msg { font-size: var(--fs-body-sm); }
@media (min-width: 900px) {
  .cookie { left: 24px; right: 24px; bottom: 24px; border: 0; border-radius: var(--radius-3); max-width: calc(var(--container)); margin-inline: auto; box-shadow: var(--shadow-2); }
  .cookie__inner { grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-7); padding: var(--space-5) var(--space-6); }
  .cookie__actions { grid-template-columns: none; grid-auto-flow: column; align-items: center; }
  .cookie__actions .cookie__manage { grid-column: auto; }
  .cookie { width: auto; }
  .cookie__done { padding: var(--space-4) var(--space-6); }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: sheet-up var(--dur-3) var(--ease-out-expo) .6s both; }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(16px); } }

.cookies-dlg { width: 600px; border-radius: var(--radius-3); box-shadow: var(--shadow-2); }
.cookies-dlg__form { display: grid; gap: var(--space-4); padding: var(--space-6); max-height: min(88vh, 820px); overflow-y: auto; }
.cookies-dlg__head { display: flex; align-items: center; justify-content: space-between; }
.cookies-dlg__head h2 { font-size: 2rem; }
.cookies-dlg__intro { font-size: var(--fs-body-sm); color: var(--text-muted); }
.cs-list { display: grid; border-top: 1px solid var(--border-subtle); }
.cs-item { display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.cs-item h3 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 500; margin-bottom: 2px; }
.cs-item p { font-size: var(--fs-body-sm); color: var(--text-muted); }
.cs-always { font-size: var(--fs-caption); font-weight: 500; color: var(--positive); white-space: nowrap; padding-top: 4px; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: var(--neutral-400); transition: background-color var(--dur-2); }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform var(--dur-2) var(--ease-out); }
.switch input:checked + .switch__ui { background: var(--purple-900); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--focus-ring-light); outline-offset: 2px; }
.cookies-dlg__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 599px) {
  .cookies-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-3) var(--radius-3) 0 0; }
  .cookies-dlg__form { padding: var(--space-5) var(--space-4); }
  .cookies-dlg__foot .btn { flex: 1 1 100%; }
}

/* ===================== Responsive refinements ===================== */
/* Phones: tighter nested padding so content gets the width, not the frames */
@media (max-width: 639px) {
  .ledger { padding: var(--space-4) var(--space-4) var(--space-2); }
  .alloc__panel { padding: var(--space-5) var(--space-4); }
  .alloc__list { padding: var(--space-4); }
  .spectrum { padding: var(--space-5) var(--space-4) var(--space-4); }
  .sector { padding: var(--space-5); }
  .stew__lib { padding: var(--space-4); }
  .footer__risk { padding: var(--space-4); }

  /* ISIN + copy stay together on their own line */
  .frow__isin { flex-basis: 100%; margin-left: 0; }
  .frow__isin > span:first-child { flex-basis: 100%; }
  .frow__sep { display: none; }

  /* wind-down: headline figure on its own line, icon pinned to the top */
  .winddown { padding: var(--space-4); }
  .winddown__label { align-items: start; }
  .winddown__label .icon { align-self: start; margin-top: 6px; }
  .winddown__figure { display: block; }

  /* listed/private divide: a tick on each track rather than a line through the labels */
  .spectrum__rows::before { display: none; }
  .srow__track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px dashed var(--neutral-400); }

  /* 1 + 2 + 1: the AUM headline and the FCA tile (it carries a link) take full rows */
  .proof__grid { gap: var(--space-8); }
  .pfact:first-child, .pfact:last-child { grid-column: 1 / -1; }
  .pfact:first-child .pfact__val { font-size: var(--fs-figure-xl); }
  .pfact:last-child .pfact__val { font-size: var(--fs-figure-xl); }

  /* webinar card: compact date chip, actions stacked */
  .webinar { gap: var(--space-4); padding: var(--space-4); }
  .webinar__date { width: 60px; height: 68px; }
  .webinar__day { font-size: 1.75rem; }
  .webinar__actions { flex-direction: column; align-items: flex-start; gap: 0; }

  /* footer: the long legal list spans the row in two columns */
  .footer__nav > .footer__col:nth-child(4) { grid-column: 1 / -1; }
  .footer__nav > .footer__col:nth-child(4) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .site-footer { padding-block: var(--space-8) var(--space-6); }
  .footer__top { padding-bottom: var(--space-8); margin-bottom: var(--space-7); }
}

/* Tablets: use the width instead of stacking phone layouts */
@media (min-width: 768px) and (max-width: 1023px) {
  .people__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-4); }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); }
  .principle { align-content: start; }
  .principle__title { font-size: 1.5rem; }
}

/* Short landscape phones: the hero sizes to its content */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 64px; }
  .hero__stage { min-height: 0; }
  .hero__copy { padding-block: var(--space-5) var(--space-5); gap: var(--space-3); }
  .hero__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem); max-width: 22ch; }
  .mobile-menu__inner { padding-bottom: var(--space-6); }
}

/* Touch: every standalone control gets a 44px target (WCAG 2.5.5 / Apple HIG / Material 48dp) */
@media (pointer: coarse) {
  .notice__close { width: 44px; height: 44px; right: 4px; }
  .notice__cta { position: relative; }
  .notice__cta::after { content: ""; position: absolute; inset: -6px -4px; }
  .glance__all, .link, .doc-link, .frow__docs .link, .webinar__ics, .frow__name a, .footer__logo, .mega__utility a { min-height: 44px; }
  .footer__logo { display: inline-flex; align-items: center; }
  .frow__docs { gap: 0; }
  /* links inside running text are exempt and keep their line height */
  p .link, .link--inline { min-height: 0; }
  .cookie__manage { min-height: 44px; }
}
/* No sticky hover states after a tap */
@media (hover: none) {
  .asset:hover .asset__frame img, .feature:hover .feature__media img, .person__link:hover .person__photo img { transform: none; }
  .route:hover::after { transform: none; background-color: transparent; border-color: var(--border-mid); }
}

/* ===================== Print ===================== */
@media print {
  .site-header, .notice, .cookie, .subscribe, .glance, .toast-region { display: none !important; }
  .hero__stage { color: var(--text-strong); background: none; min-height: 0; }
  .hero__title, .hero__line, .hero__risk { color: var(--text-strong); }
}
