/* ==========================================================================
   Azimute — insurance brokers
   Design tokens follow the Azimute brand manual (Manual de Normas Gráficas, 2018):
   primary navy #1c3660, black, grey #595a59; complementary gold #ce9d41.
   Typeface: the brand uses Futura. Jost (OFL, self-hosted) is used here as a
   web-safe geometric stand-in; swap the @font-face below if a Futura web
   licence is acquired.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --navy: #1c3660;
  --navy-deep: #132746;
  --navy-ink: #0d1c33;
  --sky: #9cc6e8;          /* light blue from the brand stationery */
  --gold: #ce9d41;         /* complementary — used sparingly */
  --black: #000;
  --grey: #595a59;

  /* Surfaces & text */
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --paper-3: #e9edf2;
  --line: #dde2e9;
  --line-strong: #c4ccd7;
  --text: #3d4044;
  --muted: #595a59;
  --heading: #1c3660;

  /* Roles. The business line uses navy; .theme-private (private clients) swaps these. */
  --accent: #1c3660;
  --accent-deep: #132746;
  --accent-tint: rgba(28, 54, 96, .12);
  --surface-dark: #1c3660;
  --on-dark-accent: #9cc6e8;
  --on-dark-text: #dfe7f2;
  --on-dark-muted: #c6d3e4;
  --footer-bg: #0d1c33;
  --footer-text: #b9c5d6;
  --footer-legal: #8f9db2;
  --red: #d61120;
  --green: #007853;

  /* Type */
  --font: "Jost", "Futura", "Futura PT", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.76rem;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --radius: 2px;
  --header-h: 92px;

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

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
html:has(.index-bar) { scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
.lead, .statement__text, .definition__body { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--paper-2); }
.section--navy { background: var(--surface-dark); color: var(--on-dark-text); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section + .section:not(.section--soft):not(.section--navy) { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); line-height: 1.4;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.on-dark .eyebrow, .section--navy .eyebrow { color: var(--on-dark-accent); }

.display { font-size: var(--fs-display); font-weight: 340; letter-spacing: -0.02em; line-height: 1.04; }
.h2 { font-size: var(--fs-h2); font-weight: 360; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.lead { font-size: var(--fs-lead); font-weight: 350; line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font: 500 0.95rem/1 var(--font); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-deep); --btn-bd: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--accent); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--paper-3); --btn-bd: var(--paper-3); --btn-fg: var(--accent-deep); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 500; text-decoration: none; letter-spacing: .02em;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color .25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover svg { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 68px; width: auto; }
.brand__logo--light, .brand__logo--private, .brand__logo--wealth { display: none; }
.theme-private .brand__logo--dark { display: none; }
.theme-private .brand__logo--private { display: block; }
.theme-wealth .brand__logo--dark { display: none; }
.theme-wealth .brand__logo--wealth { display: block; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative; text-decoration: none; color: var(--text);
  font-size: 0.95rem; font-weight: 450; letter-spacing: 0.02em; padding: 8px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__phone { display: none; font-size: 0.9rem; color: var(--muted); text-decoration: none; letter-spacing: .02em; white-space: nowrap; padding: 8px 0; }
.header-cta { display: none; }
.nav__phone:hover { color: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 24px; }
.lang-switch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.82rem; font-weight: 500; letter-spacing: .1em; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid transparent; transition: color .2s var(--ease); }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current] { color: var(--heading); border-bottom-color: currentColor; }
.lang-switch span { color: var(--line-strong); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--accent); position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__phone { display: none; }
}
@media (max-width: 1000px) {
  .nav { gap: 24px; }
  .nav__list { gap: 22px; }
}

/* Transparent header while it sits over the dark hero (home page, top of page). */
.site-header--over-dark:not(.is-scrolled):not(.menu-open) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .brand__logo--dark { display: none; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .brand__logo--light { display: block; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .brand__logo--private,
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .brand__logo--wealth { display: none; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__link { color: rgba(255,255,255,.82); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__link:hover,
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__link[aria-current="page"] { color: #fff; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__link::after { background: #fff; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__phone { color: rgba(255,255,255,.66); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav__phone:hover { color: #fff; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .lang-switch a { color: rgba(255,255,255,.7); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .lang-switch a:hover,
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .lang-switch a[aria-current] { color: #fff; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .lang-switch span { color: rgba(255,255,255,.35); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .btn { --btn-bg: #fff; --btn-fg: var(--accent); --btn-bd: #fff; }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .btn:hover { --btn-bg: var(--paper-3); --btn-bd: var(--paper-3); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav-toggle { background: transparent; border-color: rgba(255,255,255,.32); }
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav-toggle__bars,
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav-toggle__bars::before,
.site-header--over-dark:not(.is-scrolled):not(.menu-open) .nav-toggle__bars::after { background: #fff; }
.site-header--over-dark :focus-visible { outline-color: currentColor; }
@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .brand img { height: 56px; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: 12px; }
  .header-cta { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 0.85rem; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 24px; }
  .nav__phone { display: block; text-align: center; font-size: 1rem; }
  .nav__cta .btn { width: 100%; }
  .lang-switch { justify-content: center; font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   Hero — a living chart: drifting contour lines (terrain or seabed), a
   graticule, and a plotted course in gold. Drawn by assets/js/hero-chart.js.
   The hero slides under the transparent header (see .site-header--over-dark).
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero--chart {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  background:
    radial-gradient(90% 75% at 82% 28%, rgba(52, 92, 150, .55) 0%, rgba(28, 54, 96, 0) 70%),
    linear-gradient(160deg, #1c3660 0%, #172f55 55%, #11233f 100%);
  color: var(--on-dark-text);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__canvas--bg {
  z-index: 0; opacity: 0; transition: opacity 2s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.4) 42%, #000 74%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.4) 42%, #000 74%);
}
.hero__canvas--bg.is-ready { opacity: 1; }
.hero__canvas--fg { z-index: 1; }

.hero__content { position: relative; z-index: 2; padding-top: clamp(72px, 11vh, 132px); }
.hero__title { margin-top: 28px; }
.hero__lead { margin-top: 28px; }
.hero .actions { margin-top: 40px; }
.hero--chart .display { color: #fff; }
.hero--chart .lead { color: #c3d0e2; }
.hero--chart .eyebrow { color: var(--sky); }
.hero__chart { display: none; }

@media (min-width: 861px) {
  .hero--chart { min-height: min(940px, 100vh); }
  .hero__content { padding-bottom: clamp(150px, 21vh, 230px); }
  .hero__content > * { max-width: min(700px, 58%); }
}
@media (max-width: 860px) {
  .hero__content { padding-top: 48px; padding-bottom: 8px; }
  .hero__chart { display: block; position: relative; height: clamp(260px, 78vw, 380px); }
  .hero__canvas--bg {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.38) 50%, #000 72%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.38) 50%, #000 72%);
  }
}

/* Smaller page hero (inner pages) */
.page-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; gap: 40px; align-items: end; }
.page-hero .display { margin-top: 24px; max-width: 14em; }
.page-hero .lead { max-width: 34em; }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 1.25fr 1fr; gap: 72px; }
}
/* A small sail crossing the horizon, with the same gaps as in the logo. */
.page-hero__rule { --R: clamp(24px, 12vw, 200px); position: relative; margin-top: clamp(48px, 6vw, 80px); height: 1.5px; background: var(--black); }
.page-hero__rule::before {
  content: ""; position: absolute; top: -2px; height: 6px; right: calc(var(--R) - 6px); width: 36px; background: var(--paper);
}
.page-hero__rule::after {
  content: ""; position: absolute; right: var(--R); top: -55px; width: 14px; height: 78px;
  background: var(--accent); clip-path: polygon(0 0, 100% 71.3%, 0 100%);
}

/* --------------------------------------------------------------------------
   Intro statement
   -------------------------------------------------------------------------- */
.statement { display: grid; gap: 32px; }
.statement__text { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 340; line-height: 1.35; color: var(--heading); letter-spacing: -0.01em; }
.statement__text em { font-style: normal; color: var(--black); }
.theme-private .statement__text em { color: var(--accent); }
.statement__aside { display: grid; gap: 18px; align-content: start; }
.statement__cols { display: grid; gap: 24px; margin-top: 40px; color: var(--muted); }
@media (min-width: 700px) { .statement__cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 960px) {
  .statement { grid-template-columns: 280px 1fr; gap: 72px; }
}

/* --------------------------------------------------------------------------
   The name — definition + compass
   -------------------------------------------------------------------------- */
.name-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .name-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.definition { border-left: 1px solid var(--accent); padding-left: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.definition__word { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); line-height: 1; }
.definition__meta { font-size: 0.95rem; color: var(--muted); letter-spacing: .04em; }
.definition__meta i { font-style: italic; }
.definition__body { font-size: var(--fs-lead); font-weight: 350; line-height: 1.55; color: var(--text); }
.compass { width: min(100%, 440px); margin-inline: auto; color: var(--accent); }
.compass text { font-family: var(--font); }
/* "AZIMUTE" opens up to the logo's wide tracking as the section appears. */
.js .definition__word { transition: letter-spacing 1.8s var(--ease) .15s; }
html.js:not(.no-reveal) .definition:not(.is-visible) .definition__word { letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   Course (process steps)
   -------------------------------------------------------------------------- */
.course { position: relative; display: grid; gap: 0; counter-reset: step; }
.course__step { --i: 0; position: relative; padding: 28px 0 32px; display: grid; gap: 12px; align-content: start; }
.course__num { font-size: 0.8rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 500; }
/* The course line (one segment per step) and its waypoint marker. */
.course__step::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-strong); transform-origin: left center;
}
.course__step::before {
  content: ""; position: absolute; z-index: 1; top: -4px; left: 0; width: 9px; height: 9px;
  background: var(--accent); transform: rotate(45deg);
}
.course__step p { color: var(--text); max-width: 32em; }
@media (min-width: 900px) {
  .course { grid-template-columns: repeat(4, 1fr); }
  .course__step { padding: 36px 32px 0 0; }
  .course__step::after { background: var(--black); }
  /* On one row, the steps play in sequence: the line reaches each marker in turn. */
  .course__step:nth-child(2) { --i: 1; }
  .course__step:nth-child(3) { --i: 2; }
  .course__step:nth-child(4) { --i: 3; }
}

/* Timeline animation: line draws, marker settles, then number, title and text. */
.js .course__step.reveal { opacity: 1; transform: none; transition: none; }
.js .course__step::after {
  transform: scaleX(0);
  transition: transform .6s linear calc(var(--i) * .6s);
}
.js .course__step::before {
  transform: rotate(45deg) scale(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .6s);
}
.js .course__step > * {
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * .6s + .15s);
}
.js .course__step > :nth-child(2) { transition-delay: calc(var(--i) * .6s + .25s); }
.js .course__step > :nth-child(3) { transition-delay: calc(var(--i) * .6s + .35s); }
.js .course__step.is-visible::after { transform: scaleX(1); }
.js .course__step.is-visible::before { transform: rotate(45deg) scale(1); }
.js .course__step.is-visible > * { opacity: 1; transform: none; }
.no-reveal .course__step::after { transform: none !important; }
.no-reveal .course__step::before { transform: rotate(45deg) !important; }
.no-reveal .course__step > * { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   Facts band
   -------------------------------------------------------------------------- */
.facts { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.fact { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; gap: 10px; align-content: start; }
.fact__value { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 300; color: #fff; line-height: 1; letter-spacing: -0.01em; }
.fact__value small { font-size: 0.5em; letter-spacing: .02em; }
.fact__label { color: var(--on-dark-muted); max-width: 22em; font-size: 0.98rem; }
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { padding-right: 32px; }
  .fact:nth-child(even) { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.18); }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .fact { border-bottom: 0; padding: 8px 32px; border-left: 1px solid rgba(255,255,255,.18); }
  .fact:nth-child(odd) { padding-right: 32px; }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Values
   -------------------------------------------------------------------------- */
.values { display: grid; gap: 0; }
.value { display: grid; gap: 14px; padding: 36px 0; border-top: 1px solid var(--line); }
.value__head { display: flex; align-items: baseline; gap: 20px; }
.value__num { font-size: 0.8rem; color: var(--muted); letter-spacing: .2em; font-weight: 500; }
.value p { max-width: 34em; }
@media (min-width: 800px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: 72px; }
}

/* --------------------------------------------------------------------------
   Industry tiles (home teaser)
   -------------------------------------------------------------------------- */
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  padding: 32px 28px 28px; min-height: 260px; background: #fff; text-decoration: none; color: var(--text);
  transition: background-color .3s var(--ease);
}
.tile__icon { width: 40px; height: 40px; color: var(--accent); }
.tile__title { font-size: 1.2rem; font-weight: 500; color: var(--heading); line-height: 1.3; }
.tile__text { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }
.tile__more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tile__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tile:hover { background: var(--paper-2); }
.tile:hover .tile__more svg { transform: translateX(4px); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tile:hover::after { transform: scaleX(1); }
.tile--cta { background: var(--surface-dark); color: var(--on-dark-muted); }
.tile--cta .tile__icon, .tile--cta .tile__title, .tile--cta .tile__more { color: #fff; }
.tile--cta .tile__text { color: var(--on-dark-muted); }
.tile--cta:hover { background: var(--accent-deep); }
.tile--cta::after { background: var(--on-dark-accent); }
.theme-private .tile--cta:hover { background: #26262a; }

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.people { display: grid; gap: 24px; }
@media (min-width: 700px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: flex; gap: 22px; align-items: center; padding: 28px; border: 1px solid var(--line); background: #fff; }
.person__mono {
  flex: none; width: 72px; height: 72px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.1rem; letter-spacing: .14em; font-weight: 400;
}
.person__name { font-size: 1.15rem; font-weight: 500; color: var(--heading); line-height: 1.3; }
.person__role { color: var(--muted); font-size: 0.95rem; }
.person--contact { background: var(--paper-2); border-color: var(--paper-2); }
.person--contact .person__mono { background: transparent; border: 1px solid var(--line-strong); color: var(--accent); }
.person--contact .person__mono svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--surface-dark); color: var(--on-dark-text); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 32px; padding-block: clamp(72px, 9vw, 128px); }
.cta-band h2 { color: #fff; max-width: 15em; }
.cta-band__text { max-width: 34em; color: var(--on-dark-muted); font-size: var(--fs-lead); font-weight: 350; text-wrap: pretty; }
.cta-band__sail {
  position: absolute; right: clamp(-40px, 6vw, 160px); bottom: -12%; height: 125%; aspect-ratio: 23.77 / 134.83;
  background: rgba(255,255,255,.06); clip-path: polygon(0 0, 100% 71.3%, 0 100%);
}
@media (min-width: 960px) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

/* --------------------------------------------------------------------------
   Industries page
   -------------------------------------------------------------------------- */
.index-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.96); border-block: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.index-bar__list { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.index-bar__list::-webkit-scrollbar { display: none; }
.index-bar a {
  flex: none; display: inline-block; padding: 8px 14px; font-size: 0.88rem; letter-spacing: .02em;
  color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); white-space: nowrap;
}
.index-bar a:hover { color: var(--accent); border-color: var(--line); }
.index-bar a.is-active { color: var(--accent); border-color: var(--accent); }

.industry { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.industries > .industry:first-child { border-top: 0; }
.industry__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .industry__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; } }
.industry__head { display: grid; gap: 22px; align-content: start; }
.industry__meta { display: flex; align-items: center; gap: 18px; }
.industry__icon { width: 52px; height: 52px; color: var(--accent); padding: 12px; border: 1px solid var(--line-strong); box-sizing: border-box; }
.industry__icon svg { width: 100%; height: 100%; }
.industry__num { font-size: 0.8rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 500; }
.industry__title { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 360; }
.industry__text { max-width: 34em; }
.industry__who { display: flex; flex-wrap: wrap; gap: 8px; }
.industry__who li { font-size: 0.85rem; padding: 6px 12px; background: var(--paper-2); color: var(--text); border-radius: var(--radius); }
.industry__head .btn { justify-self: start; margin-top: 8px; }

.cover { border-top: 1px solid var(--black); }
.cover__title { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); padding: 18px 0 6px; }
.cover li { display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cover li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--accent); transform: translateY(-2px) rotate(45deg); }

.note-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .note-grid { grid-template-columns: 1fr 1fr; } }
.note { padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.note.theme-private { border-top: 2px solid var(--accent); } /* a card that belongs to the private line */

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 96px; } }
.contact-details { display: grid; gap: 0; border-top: 1px solid var(--black); }
.contact-details > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-details dt { font-size: var(--fs-eyebrow); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-details dd { margin: 0; color: var(--heading); font-size: 1.1rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--paper-2); }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.9rem; font-weight: 500; color: var(--heading); letter-spacing: .02em; }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--black);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c3660' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 0.85rem; color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__status { padding: 18px 20px; background: #fff; border-left: 2px solid var(--accent); color: var(--heading); }
.form__status[hidden] { display: none; }
/* Spam trap: invisible to people, filled in by bots (FormSubmit discards those). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* After a successful send, the form gives way to the confirmation. */
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent { align-content: start; }
.form.is-sent .form__status { font-size: 1.05rem; padding: 24px; }
.form__status:focus { outline: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__top { display: grid; gap: 48px; padding-block: clamp(56px, 7vw, 88px); }
.footer__brand img { height: 72px; width: auto; }
.footer__brand p { margin-top: 24px; max-width: 22em; }
.footer__col h3 { color: #fff; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col li + li { margin-top: 10px; }
.footer__col address { font-style: normal; line-height: 1.7; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 28px 36px; display: grid; gap: 16px; font-size: 0.8rem; line-height: 1.6; color: var(--footer-legal); }
.footer__legal-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* --------------------------------------------------------------------------
   Private clients line — same system, its own identity: the red logo,
   black headings, red accents, warm neutrals.
   -------------------------------------------------------------------------- */
.theme-private {
  --accent: #d61120;
  --accent-deep: #a80d19;
  --accent-tint: rgba(214, 17, 32, .14);
  --heading: #161616;
  --surface-dark: #1a1a1c;
  --on-dark-accent: #f4a6ab;
  --on-dark-text: #ededed;
  --on-dark-muted: #c4c4c4;
  --footer-bg: #111113;
  --footer-text: #b8b8b8;
  --footer-legal: #8a8a8a;
  --paper-2: #f5f3f0;
  --paper-3: #ebe8e3;
}

/* The CTA band's sail watermark takes the line's colour. */
.theme-private .cta-band__sail { background: rgba(214, 17, 32, .22); }

/* Transparent header over the light hero of the private page. */
.site-header--over-light:not(.is-scrolled):not(.menu-open) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* Private hero: the sail crossing the horizon, as in the logo. */
.hero--horizon {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  background: linear-gradient(180deg, var(--paper-2) 0%, #f9f8f6 100%);
}
.horizon {
  --H: clamp(240px, 56vh, 560px);            /* sail height */
  --W: calc(var(--H) * 0.1763);              /* sail width (logo ratio) */
  --R: clamp(28px, 13vw, 240px);             /* sail's right edge, from the right */
  --B: clamp(32px, 5vw, 64px);               /* sail's bottom, from the bottom */
  --Y: calc(var(--B) + var(--H) * 0.2867);   /* horizon height, from the bottom */
  --T: max(1.5px, calc(var(--H) * 0.0055));  /* horizon stroke (logo ratio) */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.horizon__sail { position: absolute; right: var(--R); bottom: var(--B); height: var(--H); width: var(--W); color: var(--accent); }
.horizon__sail svg { width: 100%; height: 100%; transform-origin: 50% 71%; }
.horizon__line { position: absolute; bottom: var(--Y); height: var(--T); background: var(--black); }
.horizon__line--left { left: 0; right: calc(var(--R) + var(--W) + var(--H) * 0.2125); }
.horizon__line--right { right: 0; width: max(0px, calc(var(--R) - var(--H) * 0.0702)); }
@media (min-width: 861px) {
  .hero--horizon { min-height: min(860px, 100vh); }
  .hero--horizon .hero__content { padding-bottom: calc(clamp(32px, 5vw, 64px) + clamp(240px, 56vh, 560px) * 0.2867 + 96px); }
  .hero--horizon .hero__content > * { max-width: min(700px, calc(100% - 220px)); }
}
@media (max-width: 860px) {
  .hero--horizon .hero__content { padding-top: 48px; padding-bottom: 24px; }
  .horizon { position: relative; inset: auto; height: calc(var(--B) + var(--H) + 8px); --H: clamp(200px, 58vw, 320px); --R: 22%; }
}
@keyframes sail-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-0.6deg); }
}
.horizon__sail svg { animation: sail-bob 7s ease-in-out 1.8s infinite; }

/* Two lines of business ("doors") on the home page. */
.doors { display: grid; gap: 24px; }
@media (min-width: 980px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door {
  --c: var(--navy);
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px;
  padding: clamp(28px, 4vw, 48px); min-height: 380px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.door--private { --c: var(--red); }
.door--wealth { --c: var(--green); }
.door::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.door:hover { border-color: var(--line-strong); }
.door:hover::after { transform: scaleX(1); }
.door__mark { width: 54px; height: 64px; color: var(--c); margin-bottom: 18px; }
.door__mark svg { width: 100%; height: 100%; overflow: visible; }
.door__eyebrow { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--c); }
.door__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 360; color: var(--c); line-height: 1.15; }
.door--private .door__title { color: #161616; } /* same black as the private line's headings */
.door--wealth .door__title { color: #12261f; }  /* the wealth line's heading colour */
.door__text { color: var(--muted); max-width: 30em; }
.door__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; color: var(--c); margin-top: 12px; }
.door__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.door:hover .door__more svg { transform: translateX(4px); }

/* Three-step course (private page). */
@media (min-width: 900px) { .course--3 { grid-template-columns: repeat(3, 1fr); } }

/* Office block (private page). */
.office { display: grid; gap: 48px; }
@media (min-width: 960px) { .office { grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: start; } }
.office__side { display: grid; gap: 24px; }

/* Footer: two offices. */
.footer__col address + address { margin-top: 18px; }
.footer__col address strong { display: block; color: #fff; font-weight: 500; }
.footer__label { display: block; font-size: 0.8rem; color: var(--footer-legal); }

/* --------------------------------------------------------------------------
   Talk to an expert — choose a line, then the matching pipeline.
   Without JavaScript both pipelines are simply shown one after the other.
   -------------------------------------------------------------------------- */
.contact-intro { display: grid; gap: 24px; max-width: 760px; }
.line-choice { display: none; }
.js .line-choice { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 1100px) { .js .line-choice { grid-template-columns: repeat(3, 1fr); } }
.line-option {
  --c: var(--navy);
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  width: 100%; padding: 24px 26px; text-align: left; cursor: pointer;
  background: #fff; color: var(--text); font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease);
}
.line-option--private { --c: var(--red); }
.line-option--wealth { --c: var(--green); }
.line-option:hover { border-color: var(--c); }
.line-option:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.line-option__mark { width: 40px; height: 48px; color: var(--c); }
.line-option__mark svg { display: block; width: 100%; height: 100%; }
.line-option__title { display: block; font-size: 1.2rem; font-weight: 500; color: var(--c); line-height: 1.3; }
.line-option__text { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
.line-option__radio { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.line-option[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.line-option[aria-pressed="true"] .line-option__radio { border-color: var(--c); }
.line-option[aria-pressed="true"] .line-option__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c); }
.line-choice.has-choice .line-option[aria-pressed="false"] { opacity: .62; }
.line-choice.has-choice .line-option[aria-pressed="false"]:hover { opacity: 1; }
.contact-fallback { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.contact-fallback a { color: var(--heading); }

.pipeline { margin-top: clamp(48px, 6vw, 80px); }
.pipeline + .pipeline { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.js .pipeline { display: none; }
.js .pipeline.is-active { display: block; animation: pipeline-in .6s var(--ease); }
.js .pipeline + .pipeline { padding-top: 0; border-top: 0; }
@keyframes pipeline-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pipeline__side { display: grid; gap: 28px; align-content: start; }
.pipeline__side h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 360; }
/* Small screens: heading, then the form, then the office details. */
@media (max-width: 999px) {
  .pipeline .contact-grid { display: flex; flex-direction: column; gap: 28px; }
  .pipeline__side { display: contents; }
  .pipeline .form { order: 1; }
  .pipeline__side .contact-details, .pipeline__side .person { order: 2; }
}
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { margin-bottom: 12px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.95rem; color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.chip span:hover { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Investment & wealth line — the green logo, deep green surfaces, gold for
   growth (both from the brand's complementary palette).
   -------------------------------------------------------------------------- */
.theme-wealth {
  --accent: #007853;
  --accent-deep: #005b3f;
  --accent-tint: rgba(0, 120, 83, .14);
  --heading: #12261f;
  --surface-dark: #0c2e23;
  --on-dark-accent: #9fd6bf;
  --on-dark-text: #e6efea;
  --on-dark-muted: #bcd0c6;
  --footer-bg: #08201a;
  --footer-text: #b3c4bb;
  --footer-legal: #84988e;
  --paper-2: #f2f5f3;
  --paper-3: #e4ebe7;
}
.theme-wealth .cta-band__sail { background: rgba(206, 157, 65, .16); }
.theme-wealth .tile--cta:hover { background: #0f3a2c; }
.theme-wealth .statement__text em { color: var(--accent); }

/* Wealth hero: protected capital, with growth on top (illustrative). */
.hero--wealth {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  background:
    radial-gradient(80% 70% at 85% 30%, rgba(26, 110, 82, .55) 0%, rgba(12, 46, 35, 0) 70%),
    linear-gradient(160deg, #0f3a2c 0%, #0c2e23 55%, #08221a 100%);
  color: var(--on-dark-text);
}
.hero--wealth .display { color: #fff; }
.hero--wealth .lead { color: var(--on-dark-muted); }
.hero--wealth .eyebrow { color: var(--on-dark-accent); }
.growth { position: relative; z-index: 1; margin: 0; }
.growth svg { display: block; width: 100%; height: auto; overflow: visible; }
.growth text { font-family: var(--font); }
@media (min-width: 861px) {
  .hero--wealth { min-height: min(860px, 100vh); }
  .hero--wealth .hero__content { padding-bottom: clamp(110px, 16vh, 180px); }
  .hero--wealth .hero__content > * { max-width: min(640px, 54%); }
  .growth {
    position: absolute; bottom: clamp(48px, 8vh, 96px); width: min(42vw, 540px);
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }
}
@media (max-width: 860px) {
  .hero--wealth .hero__content { padding-top: 48px; padding-bottom: 32px; }
  .growth { margin: 0 var(--gutter) 48px; }
}
.growth__base, .growth__cap { transform-box: fill-box; transform-origin: 50% 100%; }
.growth__sail { transform-box: fill-box; transform-origin: 50% 71%; animation: sail-bob 7s ease-in-out 2.6s infinite; }
@keyframes grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.js .growth__base { animation: grow-up .9s var(--ease) both; animation-delay: calc(.25s + var(--i) * .07s); }
.js .growth__cap { animation: grow-up .7s var(--ease) both; animation-delay: calc(1s + var(--i) * .09s); }
.js .growth__fade { animation: fade-in 1s var(--ease) both; animation-delay: .9s; }
.js .growth__fade--late { animation-delay: 2.1s; }

/* Protection ↔ growth scale. */
.spectrum__bar {
  position: relative; height: 6px; border-radius: 3px; margin-top: 64px;
  background: linear-gradient(90deg, var(--green) 0%, #79a98f 52%, var(--gold) 100%);
}
.spectrum__marker {
  position: absolute; top: 50%; left: var(--x); width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--heading); transform: translate(-50%, -50%);
}
.spectrum__marker span {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.8rem; font-weight: 500; letter-spacing: .08em; color: var(--heading);
}
.spectrum__ends {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.spectrum__items { display: grid; gap: 0 48px; margin-top: 48px; }
@media (min-width: 860px) { .spectrum__items { grid-template-columns: repeat(3, 1fr); } }
.spectrum__item { display: grid; gap: 10px; align-content: start; padding: 24px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .spectrum__marker span { font-size: 0.7rem; letter-spacing: .02em; } }

/* Important information (risk notice). */
.disclaimer {
  max-width: 72em; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-size: 0.9rem; color: var(--muted); display: grid; gap: 10px;
}
.disclaimer strong { color: var(--heading); font-weight: 500; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__content > * { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__content > :nth-child(2) { transition-delay: .08s; }
.js .hero__content > :nth-child(3) { transition-delay: .16s; }
.js .hero__content > :nth-child(4) { transition-delay: .24s; }
.js .is-loaded .hero__content > * { opacity: 1; transform: none; }

.js .horizon__sail { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease) .15s, transform 1.4s var(--ease) .15s; }
.js .horizon__line { transform: scaleX(0); transition: transform 1.5s var(--ease); }
.js .horizon__line--left { transform-origin: right; }
.js .horizon__line--right { transform-origin: left; }
.js .is-loaded .horizon__sail { opacity: 1; transform: none; }
.js .is-loaded .horizon__line { transform: scaleX(1); }
.no-reveal .reveal, .no-reveal .hero__content > *, .no-reveal .horizon__sail, .no-reveal .horizon__line { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal, .js .hero__content > *, .js .horizon__sail, .js .horizon__line { opacity: 1; transform: none; }
  .js .course__step::after { transform: none; }
  .js .course__step::before { transform: rotate(45deg); }
  .js .course__step > * { opacity: 1; transform: none; }
  .js .growth__base, .js .growth__cap { transform: none; }
  .js .growth__fade { opacity: 1; }
}
