/* ============================================================
   TFOS — design system
   Investec design DNA × TFOS brand. See DESIGN_PROPOSAL.md
   ============================================================ */

:root {
  /* Brand */
  --midnight: #2E247E;
  --midnight-deep: #17123F;
  --midnight-ink: #0F0C2A;
  --ink: #1A1A18;
  --teal: #508CA4;
  --teal-deep: #3E7089;
  --cadet: #91AEC1;
  --columbia: #BFD7EA;
  --paper: #FBFAF7;
  --white: #FFFFFF;

  /* Derived */
  --tint: #EEF4F9;               /* columbia at low strength on white */
  --hairline: rgba(26, 26, 24, 0.14);
  --hairline-invert: rgba(255, 255, 255, 0.18);
  --text-soft: rgba(26, 26, 24, 0.68);
  --text-invert-soft: rgba(255, 255, 255, 0.72);

  /* Type — brandbook headline face is Museo Sans 900; Mulish (ex-Muli) is its
     closest Google-fonts match. Swap --display to Museo Sans once a web licence
     is sourced. No serif faces: the brand is sans-only. */
  --display: "Mulish", "Segoe UI", sans-serif;
  --sans: "Mulish", "Segoe UI", sans-serif;

  /* Rhythm (8px grid) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --s12: 96px; --s16: 128px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --shadow-1: 0 8px 16px rgba(15, 12, 42, 0.10), 0 0 2px rgba(15, 12, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Anchor jumps land "a touch past the seam" (user call): with the 76px fixed
   header and 96px section-top padding, 28px here tucks the seam behind the
   header so the kicker arrives ~48px below it — no empty field on landing.
   Do NOT add scroll-margin on targets on top of this — offsets add up.
   (scroll-snap tried & rejected: sticky.) */
html { scroll-padding-top: 28px; }

::selection { background: var(--columbia); color: var(--midnight-deep); }

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: inherit;
}
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal);
}
.on-dark .kicker { color: var(--cadet); }
.on-dark .kicker::before { background: var(--cadet); }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-soft); }
.on-dark .lede { color: var(--text-invert-soft); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; }

/* ---------- Links & buttons ---------- */
.link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease);
}
.link:hover { color: var(--teal); }
.on-dark .link:hover { color: var(--columbia); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-solid { background: var(--midnight); color: var(--white); }
.btn-solid:hover { background: var(--midnight-deep); }

.btn-ghost { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.on-dark .btn-solid { background: var(--white); color: var(--midnight-deep); }
.on-dark .btn-solid:hover { background: var(--columbia); }
.on-dark .btn-ghost { border-color: var(--hairline-invert); color: var(--white); }
.on-dark .btn-ghost:hover { border-color: var(--white); }

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

/* ---------- Header (Investec-pattern: solid white trust chrome) ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--hairline);
  transition: box-shadow 0.35s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1360px;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(26, 26, 24, 0.10); }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 26px;
  transition: color 0.2s var(--ease);
}
.nav-links > li > a::after,
.nav-links > li > button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 2px;
  background: var(--midnight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > button:hover,
.has-sub:hover > button, .has-sub.open > button { color: var(--midnight); }
.nav-links > li > a:hover::after, .nav-links > li > button:hover::after,
.has-sub:hover > button::after, .has-sub.open > button::after { transform: scaleX(1); }

.has-sub > button svg { transition: transform 0.25s var(--ease); }
.has-sub:hover > button svg, .has-sub.open > button svg { transform: rotate(180deg); }

/* Dropdown panel — hover/focus on desktop, click toggles .open for touch */
.sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 236px;
  padding: 10px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(15, 12, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.sub a:hover { background: var(--tint); color: var(--midnight); }
.sub .sub-note {
  padding: 4px 14px 8px;
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
/* The header stays white above the overlay, so the close cross must stay ink */
.nav-open .nav-toggle span::before { background: var(--ink); transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { background: var(--ink); transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu exists in the DOM at all widths — visible only ≤820px */
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(46, 36, 126, 0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 12% 110%, rgba(80, 140, 164, 0.22) 0%, transparent 60%),
    var(--midnight-ink);
  color: var(--white);
  min-height: min(660px, calc(100svh - 220px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero .container { padding-top: var(--s4); padding-bottom: var(--s5); position: relative; z-index: 2; }

/* Abstract backdrop — hairline field; right half reserved for the hero visual */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 220px);
}

/* Hero element, guilloche variants.
   -lace: three woven bands, half off-canvas, edges dissolve into the field.
   -seal: single engraved seal shown whole (a cropped seal reads as broken) — milled edge is the point. */
.hero-el-lace {
  position: absolute;
  top: 50%;
  right: clamp(-240px, -6vw, -60px);
  transform: translateY(-50%);
  width: min(760px, 54vw);
  aspect-ratio: 1 / 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.hero-el-rosette {
  position: absolute;
  top: 50%;
  right: clamp(20px, 5vw, 110px);
  transform: translateY(-50%);
  width: min(620px, 42vw);
  aspect-ratio: 1 / 1;
}

/* Hero visual placeholder — marks the slot for the final background element */
.hero-el-mock {
  position: absolute;
  top: 10%;
  right: clamp(40px, 5vw, 96px);
  width: min(37%, 700px);
  height: 56%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(191, 215, 234, 0.35);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(191, 215, 234, 0.55);
}

/* Hero element, map variants: black-field renders blended in with `screen`,
   so only the dots and arcs remain over the midnight gradient — no rectangular seam.
   Confined to the upper-right quadrant, clear of the copy and the facts strip. */
.hero-el-map {
  position: absolute;
  top: 4%;
  right: clamp(8px, 2vw, 48px);
  width: min(54%, 980px);
  height: 72%;
  object-fit: cover;
  object-position: 74% 42%;
  mix-blend-mode: screen;
  opacity: 0.9;
  /* the render's field is near-black, not pure black — dissolve the box edges
     so the blend never draws a visible rectangle */
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 58% 46%, #000 52%, transparent 96%);
  mask-image: radial-gradient(ellipse 62% 60% at 58% 46%, #000 52%, transparent 96%);
}

/* Hero element, variant B: photographic right panel fading into the midnight field */
.hero-el-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(0.6) brightness(0.82);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.hero h1 { max-width: 26ch; font-size: clamp(38px, 4.4vw, 58px); }
.hero .lede { max-width: 52ch; margin-top: var(--s3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Facts strip — the hero's single trust surface (no boxes, hairline dividers).
   Kept tight so it stays above the fold on 1536×740 (125%-scaled laptops). */
.hero-facts {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-invert);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.fact { display: grid; gap: 4px; align-content: start; }
.fact b {
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.15;
}
.fact span { font-size: 14px; line-height: 1.5; color: var(--text-invert-soft); }
.fact-links { margin-top: 2px; }
.fact-links a { font-weight: 600; color: var(--columbia); white-space: nowrap; }

/* staggered reveal */
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero [data-stagger="1"] { animation-delay: 0.15s; }
.hero [data-stagger="2"] { animation-delay: 0.3s; }
.hero [data-stagger="3"] { animation-delay: 0.45s; }
.hero [data-stagger="4"] { animation-delay: 0.6s; }
.hero [data-stagger="5"] { animation-delay: 0.78s; }
.hero [data-stagger="6"] { animation-delay: 0.92s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Short desktop viewports (1366×768, aggressively-scaled laptops): compress the
   hero stack so the trust facts stay above the fold. Width-gated so it never
   touches the mobile layout. */
@media (max-height: 700px) and (min-width: 821px) {
  .hero { min-height: 0; }
  .hero .container { padding-top: var(--s3); padding-bottom: var(--s4); }
  .hero h1 { font-size: clamp(32px, 3.2vw, 40px); }
  .hero .lede { font-size: 16.5px; max-width: 60ch; margin-top: var(--s2); }
  .hero-actions { margin-top: var(--s3); }
  .hero-actions .btn { padding: 14px 24px; }
  .hero-facts { margin-top: var(--s3); padding-top: var(--s2); }
  .fact b { font-size: 17px; }
  .fact span { font-size: 13px; }
}

/* ---------- News & events bar (top of page) ---------- */
.newsbar {
  margin-top: 76px;
  height: 44px;
  display: flex;
  align-items: stretch;
  background: var(--midnight);
  color: var(--white);
  overflow: hidden;
}
.newsbar-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: var(--gutter) 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--columbia);
  background: var(--midnight-deep);
  position: relative;
  z-index: 2;
}
.newsbar-label::after {
  content: "";
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 1px;
  background: var(--hairline-invert);
}
.newsbar-items {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.newsbar-items::-webkit-scrollbar { display: none; }
.newsbar-items a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding-inline: 22px;
  font-size: 14px;
  color: var(--text-invert-soft);
  text-decoration: none;
  border-right: 1px solid var(--hairline-invert);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.newsbar-items a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.newsbar-items a b {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--columbia);
  border: 1px solid rgba(191, 215, 234, 0.45);
  border-radius: 3px;
  padding: 2px 9px;
}
.newsbar-items a b.is-live {
  color: var(--midnight-deep);
  background: var(--columbia);
  border-color: var(--columbia);
}
.newsbar-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 22px var(--gutter);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--columbia);
  text-decoration: none;
  border-left: 1px solid var(--hairline-invert);
  transition: color 0.2s var(--ease);
}
.newsbar-all:hover { color: var(--white); }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--hairline-invert);
  background: var(--midnight-ink);
  color: var(--cadet);
  overflow: hidden;
  padding-block: 14px;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 34px;
  border-right: 1px solid var(--hairline-invert);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-top: var(--s2); }
.section-head .lede { margin-top: var(--s2); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Global access ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.stat {
  padding: var(--s4) var(--s3) var(--s4) 0;
  border-bottom: 1px solid var(--hairline);
}
.stat + .stat { border-left: 1px solid var(--hairline); padding-left: var(--s3); }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--midnight);
}
.stat span { font-size: 15px; color: var(--text-soft); margin-top: 6px; display: block; }

/* One running sentence — never split it into flex columns */
.access-note {
  margin-top: var(--s5);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 70ch;
}
.access-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Protection ---------- */
.protection { background: var(--midnight-deep); color: var(--white); }
.protection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3);
}
/* Four across in one row: a 2×2 grid pushed the section past one screen */
.protection-card {
  grid-column: span 3;
  border: 1px solid var(--hairline-invert);
  border-radius: 4px;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.protection-card:hover { border-color: var(--cadet); background: rgba(255, 255, 255, 0.03); }
a.protection-card { text-decoration: none; color: inherit; }
a.protection-card .link { text-decoration: underline; text-underline-offset: 3px; }
.protection-card .card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cadet);
  margin-bottom: var(--s1);
}
.protection-card p { font-size: 14.5px; line-height: 1.55; color: var(--text-invert-soft); }
.protection-card h3 { font-size: clamp(19px, 1.6vw, 22px); }
.protection-card .link { font-size: 15px; margin-top: auto; }
.protection-fineprint {
  margin-top: var(--s5);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-invert-soft);
  max-width: 900px;
}

/* ---------- Audiences ---------- */
.audiences .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.audience {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.audience:hover { box-shadow: var(--shadow-1); transform: translateY(-3px); }
/* Plain label with a short kicker-style tick, deliberately not a pill — the
   pill tag already lives on the events cards, and a full-width underline reads
   as a link */
.audience .tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.audience .tag::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
  margin-top: 10px;
}
.audience ul { list-style: none; display: grid; gap: 10px; }
.audience li {
  padding-left: 22px;
  position: relative;
  font-size: 15.5px;
  color: var(--text-soft);
}
.audience li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 1px;
  background: var(--teal);
}
.audience .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Service pillars ---------- */
.pillars { background: var(--white); border-block: 1px solid var(--hairline); }
.pillar-list { border-top: 1px solid var(--hairline); }
.pillar {
  display: grid;
  grid-template-columns: 72px minmax(0, 340px) 1fr;
  gap: var(--s4);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--hairline);
}
.pillar .num {
  font-family: var(--display);
  font-size: 17px;
  color: var(--cadet);
}
.pillar p { color: var(--text-soft); font-size: 16px; max-width: 62ch; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s5);
}
.member {
  padding-block: var(--s3);
  border-bottom: 1px solid var(--hairline);
}
.member b { font-family: var(--display); font-weight: 700; font-size: 20px; display: block; }
.member span { font-size: 14.5px; color: var(--text-soft); margin-top: 4px; display: block; }

/* ---------- Contact (light, between the dark events block and the dark footer) ---------- */
.contact { background: var(--white); border-top: 1px solid var(--hairline); overflow: hidden; }
.contact .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.contact h2 { max-width: 14ch; }
.contact .lede { margin-top: var(--s2); }
.contact .btn { margin-top: var(--s4); }
.contact-details { display: grid; gap: var(--s3); align-content: start; padding-top: 10px; }
.contact-details .row { border-bottom: 1px solid var(--hairline); padding-bottom: var(--s2); }
.contact-details .label {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 6px;
}
.contact-details a { color: var(--ink); }
.contact-details p, .contact-details a { font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight-ink);
  color: var(--text-invert-soft);
  border-top: 1px solid var(--hairline-invert);
  padding-block: var(--s8) var(--s5);
  font-size: 13px;
  line-height: 1.65;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.footer-top img { height: 26px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s3); list-style: none; }
.footer-nav a { color: var(--text-invert-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
/* Cap the legal copy line length — full-width fine print is unreadable.
   900px matches .protection-fineprint. */
.legal { max-width: 900px; }
.legal p + p { margin-top: var(--s2); }
.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-invert);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-el-rosette, .hero-el-lace, .hero-el-panel, .hero-el-map, .hero-el-mock { display: none; }
  .protection-card { grid-column: span 6; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hairline); padding-left: var(--s3); }
  .pillar { grid-template-columns: 48px 1fr; }
  .pillar p { grid-column: 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to the burger early — six two-word labels crowd below ~1100px */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--midnight-ink);
    z-index: 40;
    flex-direction: column;
    justify-content: center;
    padding: var(--gutter);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-open .mobile-menu { opacity: 1; pointer-events: auto; overflow-y: auto; }
  .mm-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5) var(--s4);
    max-width: 560px;
  }
  .mm-group { display: grid; gap: 10px; align-content: start; }
  .mm-group > p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cadet);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline-invert);
    margin-bottom: 4px;
  }
  .mm-group a {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
  }
  .mm-group a.minor { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text-invert-soft); }
}

@media (max-width: 820px) {
  .hero-facts { grid-template-columns: 1fr; gap: var(--s3); }
  .audiences .cols { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; }
  .protection-card { grid-column: span 12; }
  .hero .container { padding-top: var(--s6); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 24px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13px; }
  .nav-cta { gap: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 30px; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
}

.hero .container { width: 100%; }

/* ============================================================
   Showcase — large switchable block (advantages / platform / events)
   ============================================================ */
.showcase { background: var(--midnight-ink); color: var(--white); }
.showcase-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.showcase-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline-invert);
}
.showcase-tab {
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline-invert);
  color: var(--text-invert-soft);
  font-family: var(--sans);
  padding: var(--s3) var(--s2);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.showcase-tab b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.showcase-tab span { font-size: 14.5px; line-height: 1.5; display: block; }
.showcase-tab:hover { background: rgba(255, 255, 255, 0.04); }
.showcase-tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 3px 0 0 var(--teal);
  color: var(--text-invert-soft);
}
.showcase-tab:last-of-type { border-bottom: 0; }

.showcase-stage { position: relative; min-height: 460px; }
.showcase-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline-invert);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.showcase-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.sp-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 80% 0%, rgba(46, 36, 126, 0.75) 0%, transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(80, 140, 164, 0.3) 0%, transparent 60%),
    var(--midnight-deep);
}
.sp-placeholder {
  position: absolute;
  inset: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  border: 1px dashed rgba(191, 215, 234, 0.35);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(191, 215, 234, 0.55);
}

.sp-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 18px var(--s3);
  font-weight: 600;
  font-size: 16px;
  border-top: 1px solid var(--hairline-invert);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.25s var(--ease);
}
.sp-caption svg { transition: transform 0.25s var(--ease); }
.showcase-panel:hover .sp-caption { background: rgba(255, 255, 255, 0.08); }
.showcase-panel:hover .sp-caption svg { transform: translateX(4px); }

/* advantages panel: photo + tidy stat grid */
.sp-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 42, 0.25) 0%, rgba(15, 12, 42, 0.85) 100%);
}
.sp-chipgrid {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sp-chip {
  background: rgba(15, 12, 42, 0.55);
  border: 1px solid var(--hairline-invert);
  border-radius: 6px;
  padding: 14px 18px;
  backdrop-filter: blur(6px);
}
.sp-chip b {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.sp-chip span { font-size: 12.5px; color: var(--text-invert-soft); }

/* platform panel: full-bleed render */
.sp-media-canvas { padding: 0; }
.sp-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 0.6s var(--ease);
}
.showcase-panel:hover .sp-media { transform: scale(1.03); }

/* events panel: fanned cards */
.sp-events { padding: var(--s4); }
.sp-event {
  position: absolute;
  width: min(46%, 260px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-invert);
  border-radius: 6px;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.sp-event b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; margin-block: 6px 4px; }
.sp-event .date {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--columbia);
}
.sp-event .loc { font-size: 13px; color: var(--text-invert-soft); }
.sp-event.e1 { left: 6%; top: 10%; }
.sp-event.e2 { right: 6%; top: 26%; }
.sp-event.e3 { left: 14%; bottom: 12%; }

/* ============================================================
   Phone mockup (pure CSS, illustrative)
   ============================================================ */
.phone {
  background: #0B0920;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(11, 9, 32, 0.45);
  position: relative;
}
.phone-lg { width: min(320px, 78vw); }
.phone-sm { width: 220px; border-radius: 30px; padding: 9px; }
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #0B0920;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #1B1550 0%, var(--midnight-ink) 70%);
  border-radius: 26px;
  padding: 34px 18px 18px;
  color: var(--white);
  overflow: hidden;
}
.phone-sm .phone-screen { border-radius: 21px; padding: 20px 14px 14px; }
.ps-top { display: grid; gap: 2px; margin-bottom: 12px; }
.ps-top span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cadet);
}
.ps-top b { font-family: var(--display); font-size: 26px; font-weight: 700; }
.phone-sm .ps-top b { font-size: 20px; }
.ps-top em { font-style: normal; font-size: 12.5px; color: #7FD1AE; }
.ps-spark { width: 100%; height: 44px; color: var(--teal); margin-bottom: 12px; }
.phone-sm .ps-spark { height: 34px; }
.ps-seg {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
}
.ps-seg span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-invert);
  color: var(--text-invert-soft);
}
.ps-seg .on { background: var(--white); color: var(--midnight-deep); border-color: var(--white); }
.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
}
.ps-row i {
  flex: none;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 215, 234, 0.16);
  color: var(--columbia);
}
.ps-crypto i { background: rgba(80, 140, 164, 0.28); color: #9FD8C4; }
.ps-row span { flex: 1; display: grid; line-height: 1.25; }
.ps-row span em { font-style: normal; font-size: 11px; color: var(--cadet); }
.ps-row b { font-weight: 600; color: #7FD1AE; }
.ps-row b.down { color: #E8919B; }
.ps-row b:first-letter { letter-spacing: 0; }

/* ---------- App section ---------- */
.app { background: var(--white); border-block: 1px solid var(--hairline); overflow: hidden; }
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.app-copy h2 { margin-top: var(--s2); }
.app-copy .lede { margin-top: var(--s2); }
.app-features {
  list-style: none;
  display: grid;
  gap: var(--s2);
  margin-block: var(--s4);
  border-top: 1px solid var(--hairline);
}
.app-features li {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: var(--s2);
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
}
.app-features b { font-size: 15.5px; }
.app-features span { font-size: 15px; color: var(--text-soft); }
.app-fineprint { margin-top: var(--s3); font-size: 13px; color: var(--text-soft); max-width: 56ch; }
.app-visual { display: flex; justify-content: center; }

/* Terminal composition: real web terminal + phone overlay */
.terminal-compo { position: relative; width: 100%; max-width: 640px; padding-bottom: 48px; }
.browser {
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 32px 80px rgba(23, 18, 63, 0.28);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--midnight-ink);
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.browser-bar span {
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cadet);
}
.browser img { display: block; width: 100%; height: auto; }
.terminal-mock {
  aspect-ratio: 16 / 10;
  margin: 12px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--hairline);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--paper);
}
.terminal-compo .phone-app {
  position: absolute;
  right: -22px;
  bottom: -8px;
  width: 200px;
  transform: rotate(2deg);
  filter: drop-shadow(0 24px 40px rgba(11, 9, 32, 0.45));
}

/* ============================================================
   Events gallery (cards carousel)
   ============================================================ */
.events {
  background: linear-gradient(180deg, var(--midnight-ink) 0%, var(--midnight-deep) 55%, var(--midnight-ink) 100%);
  color: var(--white);
}
.events .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.events-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s3);
}
.events-nav { display: flex; gap: 10px; }
.events-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline-invert);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.events-btn:hover { border-color: var(--white); background: var(--white); color: var(--midnight-deep); }
.events-all { font-size: 15px; font-weight: 600; }
.events-rail {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: var(--s2);
  scrollbar-width: none;
}
.events-rail::-webkit-scrollbar { display: none; }
.event-card {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-height: 260px;
  border-radius: 6px;
  padding: var(--s3);
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--hairline-invert);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--cadet); }
/* Card bases sit two steps lighter than the section field so every card reads as a card */
.ec-a { background: radial-gradient(120% 100% at 85% 0%, rgba(80, 140, 164, 0.30) 0%, transparent 55%), linear-gradient(180deg, #262060 0%, #1B1550 100%); }
.ec-b { background: radial-gradient(120% 100% at 15% 0%, rgba(46, 36, 126, 0.95) 0%, transparent 60%), #1E1854; }
.ec-c { background: radial-gradient(120% 100% at 85% 100%, rgba(80, 140, 164, 0.35) 0%, transparent 55%), #221C5C; }
.ec-d { background: radial-gradient(120% 100% at 20% 100%, rgba(46, 36, 126, 0.9) 0%, transparent 60%), #1C164F; }
.ec-e { background: radial-gradient(120% 100% at 80% 10%, rgba(80, 140, 164, 0.28) 0%, transparent 60%), #201A58; }
.ec-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--midnight-deep);
  background: var(--columbia);
  border-radius: 999px;
  padding: 5px 12px;
}
.ec-body { margin-top: auto; }
.ec-body h3 { font-size: 24px; margin-bottom: 8px; }
.ec-body p { font-size: 14.5px; color: var(--text-invert-soft); max-width: 30ch; }
.ec-meta {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cadet);
  border-top: 1px solid var(--hairline-invert);
  padding-top: 14px;
}

/* ---------- Contact extra ---------- */
.contact-more { margin-top: var(--s3); font-size: 15.5px; }

/* ============================================================
   Sub-pages (fees / advantages / documents / team)
   ============================================================ */
.page-hero {
  margin-top: 76px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 220px),
    radial-gradient(120% 90% at 80% -10%, rgba(46, 36, 126, 0.6) 0%, transparent 55%),
    radial-gradient(90% 70% at 8% 120%, rgba(80, 140, 164, 0.18) 0%, transparent 60%),
    var(--midnight-ink);
  color: var(--white);
  padding-block: clamp(48px, 6.5vw, 80px);
}
.page-hero h1 { font-size: clamp(36px, 4.6vw, 58px); margin-top: var(--s2); max-width: 22ch; }
.page-hero .lede { margin-top: var(--s3); max-width: 58ch; }
.page-hero .btn { margin-top: var(--s4); }

/* Plan cards */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.plan {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.plan.featured { border-color: var(--midnight); box-shadow: var(--shadow-1); }
.plan .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 6px 14px;
}
.plan h3 { font-size: 26px; }
.plan-desc { font-size: 14.5px; color: var(--text-soft); }
.plan .price { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: var(--midnight); }
.plan .price small { font-family: var(--sans); font-size: 13.5px; color: var(--text-soft); display: block; margin-top: 4px; font-weight: 400; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-block: var(--s2); }
.plan li { padding-left: 22px; position: relative; font-size: 15px; color: var(--text-soft); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--teal); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Comparison / documents tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 6px; background: var(--white); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.cmp-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.cmp-table td { color: var(--text-soft); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .group th {
  background: var(--tint);
  color: var(--midnight-deep);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc-version {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.table-note { margin-top: var(--s3); font-size: 13.5px; color: var(--text-soft); max-width: 80ch; }

/* Advantage cards grid */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.adv-card:hover { box-shadow: var(--shadow-1); transform: translateY(-3px); }
.adv-card .num { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--teal-deep); letter-spacing: 0.08em; }
.adv-card h3 { font-size: 23px; }
.adv-card p { font-size: 15px; color: var(--text-soft); }
.adv-card .link { font-size: 15px; margin-top: auto; }

.pillar .link { display: inline-block; margin-top: 14px; font-size: 15px; }

/* Featured advantages: top-3 dark cards */
.adv-grid + .adv-grid { margin-top: var(--s3); }
.adv-card.featured {
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(46, 36, 126, 0.75) 0%, transparent 60%),
    var(--midnight-ink);
  border-color: transparent;
  color: var(--white);
  padding: clamp(32px, 3.6vw, 48px);
}
.adv-card.featured h3 { font-size: clamp(26px, 2.2vw, 30px); }
.adv-card.featured p { color: var(--text-invert-soft); font-size: 15.5px; }
.adv-card.featured .num { color: var(--columbia); }
.adv-card.featured .link { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.4); }
.adv-card.featured:hover .link { color: var(--columbia); }

/* Team page */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.team-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: var(--s4);
}
.team-card .avatar-photo {
  height: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--tint);
  margin-bottom: var(--s2);
  display: block;
}
.team-card b { font-family: var(--display); font-weight: 700; font-size: 21px; display: block; }
.team-card span { font-size: 14.5px; color: var(--text-soft); margin-top: 4px; display: block; }

/* ---------- Responsive: new blocks ---------- */
@media (max-width: 1024px) {
  .showcase-wrap { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; border-top: 0; }
  .showcase-tab { flex: 1; border-bottom: 0; border-top: 1px solid var(--hairline-invert); }
  .showcase-tab.is-active { box-shadow: inset 0 3px 0 var(--teal); }
  .showcase-tab span { display: none; }
  .showcase-progress { display: none; }
  .showcase-stage { min-height: 420px; }
  .plans, .adv-grid, .team-page-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
  .app-visual { order: -1; }
  .terminal-compo { padding-bottom: 0; }
  .terminal-compo .phone-app { display: none; }
}

@media (max-width: 820px) {
  .newsbar-label { display: none; }
  .sp-chipgrid { grid-template-columns: 1fr 1fr; }
  .showcase-stage { min-height: 400px; }
  .sp-event { position: static; width: 100%; margin-bottom: 12px; }
  .sp-events { display: flex; flex-direction: column; justify-content: center; }
  .plans, .adv-grid, .team-page-grid { grid-template-columns: 1fr; }
  .app-features li { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------- Hero photo (variant 3: real app in hand over Cape Town) ---------- */
.hero-el-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  filter: saturate(.9) brightness(.92);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hero-el-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, rgba(15,12,42,0) 0%, rgba(15,12,42,.78) 55%, rgba(15,12,42,.95) 100%);
}

/* ---------- Hero partner band (USP next to the trust facts) ---------- */
.hero-partner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  margin-top: var(--s3); padding: 12px 18px;
  max-width: 640px;
  border: 1px solid rgba(191,215,234,.35); border-left: 3px solid var(--columbia);
  border-radius: 6px; background: rgba(46,36,126,.38);
}
.hero-partner b { font-size: 15px; white-space: nowrap; }
.hero-partner span { font-size: 14px; color: var(--text-invert-soft); }
.hero-partner .link { font-weight: 700; white-space: nowrap; }

/* ---------- Global access: copy + live exchange net ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s6); align-items: center; margin-bottom: var(--s6); }
.access-grid .section-head { margin-bottom: 0; }
.access-net { position: relative; height: 440px; }
.anet-caption { position: absolute; right: 0; bottom: -6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.access-net svg { width: 100%; height: 100%; }
.anet-line { fill: none; stroke: rgba(46,36,126,.5); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 6 10; animation: dashflow 1.4s linear infinite; }
.anet-line.closed { stroke: rgba(26,26,24,.16); stroke-dasharray: 4 12; animation-duration: 3.2s; }
@keyframes dashflow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .anet-line { animation: none; } }
.anet-hub { fill: var(--midnight); }
.anet-hub-ring { fill: none; stroke: rgba(46,36,126,.45); stroke-width: 1; }
.anet-hublabel { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .16em; fill: var(--teal-deep); }
.anet-node { fill: var(--cadet); }
.anet-node.open { fill: var(--midnight); }
.anet-label { font-family: var(--sans); font-size: 17px; font-weight: 800; letter-spacing: .08em; fill: var(--ink); }
.anet-status { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; fill: rgba(26,26,24,.38); }
.anet-status.open { fill: var(--teal-deep); }

/* ---------- Platform section: real screenshots ----------
   PREVIEW ONLY: the light Tradernet screenshot is shown inverted to read as a
   dark theme. Production swaps in a genuine dark-theme screenshot from the
   team; we never repaint UI or numbers. */
.terminal-dark { display: block; width: 100%; filter: invert(1) hue-rotate(180deg) saturate(.85) brightness(.92); }

/* ---------- Listing cards (News / Insights / Events pages) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 6px;
  padding: var(--s4); text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: rgba(46,36,126,.3); }
.post-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.post-card h3 { font-size: 21px; line-height: 1.3; }
.post-card p { font-size: 15px; color: var(--text-soft); }
.post-meta { margin-top: auto; padding-top: var(--s2); font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-meta::after { content: "\2192"; font-weight: 700; color: var(--teal-deep); transition: transform .25s var(--ease); }
.post-card:hover .post-meta::after { transform: translateX(4px); }
.post-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.post-when { font-size: 13px; font-weight: 800; color: var(--midnight); white-space: nowrap; text-align: right; }
.post-date { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--midnight); line-height: 1.1; }
.post-date small { display: block; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }

/* ---------- Article page ---------- */
.article-body { max-width: 72ch; font-size: 17px; }
.article-body p + p { margin-top: var(--s2); }
.article-body h2 { font-size: clamp(24px, 2.4vw, 30px); margin: var(--s5) 0 var(--s2); }
.article-cta { margin-top: var(--s5); }

/* ---------- Partner page: downloads ---------- */
.dl-list { display: grid; gap: 12px; max-width: 760px; }
.dl-item {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--white);
}
.dl-item b { font-size: 16px; }
.dl-item small { display: block; font-size: 13px; color: var(--text-soft); }
.dl-soon { color: var(--text-soft); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 1024px) {
  .access-grid { grid-template-columns: 1fr; }
  .access-net { height: 420px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .post-grid { grid-template-columns: 1fr; }
  .access-net { display: none; }
}

/* ---------- Section rhythm ----------
   UNIFORM TOP 96px (user call, 18 Aug 2026: tried 48px, reverted): every
   section opens with the same air above its kicker. Total heights are tuned
   via padding-BOTTOM only: showcase & audiences run denser so each fits a
   Full HD screen. Must stay AFTER the base .section rules in the cascade. */
.section { padding-top: clamp(64px, 7vw, 96px); }
.showcase, .audiences, .app, .protection { padding-bottom: clamp(48px, 5vw, 64px); }
.app-features { margin-block: var(--s3) var(--s2); }
.app-features li { padding-block: 9px; }
.app-fineprint { margin-top: var(--s2); }
.protection-fineprint { margin-top: var(--s4); }
.showcase .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.showcase-stage { min-height: 420px; }
.showcase-tab { padding: 20px var(--s2); }
.audiences .section-head { margin-bottom: clamp(24px, 3vw, 32px); }
.audience { padding: clamp(24px, 3vw, 36px); gap: var(--s2); }
.audience ul { gap: 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero [data-stagger], .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .ticker-track { animation: none; }
  .showcase-progress span { animation: none !important; }
  .showcase-panel { transition: none; }
  .btn, .audience, .protection-card, .event-card, .adv-card { transition: none; }
  .events-rail { scroll-behavior: auto; }
}

/* ============================================================
   02 Sep 2026 (team pick "C"): every inner page = left rail + content.
   Rail: section name, one-line standfirst, sub-navigation, one useful line.
   Light throughout; the only dark surface on inner pages is the footer.
   ============================================================ */
.rail-layout { margin-top: 76px; padding-block: clamp(36px, 4.5vw, 56px) clamp(64px, 8vw, 96px); }
.rail-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.rail { position: sticky; top: 100px; }
.rail h1, .rail .rail-title { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; font-size: clamp(30px, 2.6vw, 38px); margin-top: var(--s2); }
.rail-lede { font-size: 15px; line-height: 1.55; color: var(--text-soft); margin-top: var(--s2); }
.rail-nav { display: grid; margin-top: var(--s3); border-top: 1px solid var(--hairline); }
.rail-nav a { padding: 11px 0; border-bottom: 1px solid var(--hairline); font-weight: 600; font-size: 15px; color: var(--text-soft); text-decoration: none; transition: padding .2s var(--ease), color .2s var(--ease); }
.rail-nav a:hover { color: var(--ink); }
.rail-nav a.is-active { color: var(--midnight); box-shadow: inset 3px 0 0 var(--midnight); padding-left: 14px; }
.rail-note { margin-top: var(--s3); font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.rail-note a { color: var(--midnight); font-weight: 600; }
.rail .btn { margin-top: var(--s3); }
.rail-body { min-width: 0; }
.rail-body > * + * { margin-top: var(--s3); }
.rail-body .post-grid { grid-template-columns: 1fr 1fr; }
.rail-body .post-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.rail-body .plans, .rail-body .adv-grid { gap: 16px; }
.rail-body .adv-grid + .adv-grid { margin-top: 16px; }
.rail-body .plan, .rail-body .adv-card { padding: 24px; }
.rail-body .plan h3 { font-size: 22px; }
.rail-body .adv-card.featured h3 { font-size: 24px; }
.rail-body .plan .price { font-size: 28px; }
.rail-body .plan li, .rail-body .plan-desc { font-size: 14px; }
.rail-body .rb-h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: var(--s5); margin-bottom: var(--s3); }
.rail-body > .rb-h2:first-child { margin-top: 0; }
.rail-body .rb-h2 + .lede { margin-top: calc(-1 * var(--s2)); margin-bottom: var(--s3); font-size: 16px; }
.rail-body .table-note { margin-top: var(--s3); }
.rail-body .team-page-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rail-body .team-card { padding: var(--s3); }
.rail-body .hero-actions { margin-top: var(--s3); }
.rail-body .article-head { max-width: 72ch; padding-bottom: var(--s3); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s4); }
.rail-body .article-head h1 { font-size: clamp(30px, 3vw, 42px); margin-top: var(--s2); }
.rail-body .article-head .lede { margin-top: var(--s2); font-size: 17px; }
.rail-body .article-body { max-width: 72ch; }
@media (max-width: 1024px) { .rail-body .team-page-grid, .rail-body .post-grid.cols3, .rail-body .adv-grid, .rail-body .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .rail-grid { grid-template-columns: 1fr; } .rail { position: static; } }
@media (max-width: 820px) { .rail-body .post-grid, .rail-body .post-grid.cols3, .rail-body .team-page-grid, .rail-body .adv-grid, .rail-body .plans { grid-template-columns: 1fr; } }

/* ---------- 2026-09-07 fixes: a11y, mobile, reveal without JS ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--midnight); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 16px; }
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"], .site-footer a[aria-current="page"] { font-weight: 800; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.in { opacity: 1; transform: none; }
.table-wrap { position: relative; }
.table-wrap::after { z-index: 2; }
.swipe-hint { display: none; }
@media (max-width: 820px) {
  .table-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95)); }
  .swipe-hint { display: block; font-size: 13px; color: var(--text-soft); margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .showcase-tabs { flex-wrap: wrap; }
  .showcase-tab { flex: 1 1 50%; min-width: 0; }
  .showcase-tab b { overflow-wrap: anywhere; }
}

/* ---------- 2026-09-07 evening: team feedback ---------- */
a.newsbar-label { color: inherit; text-decoration: none; }
a.newsbar-label:hover, a.newsbar-label:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.access-net { position: relative; }
.anet-caption { pointer-events: none; }
.brand img { height: 32px; }
.footer-top > img { height: 34px; width: auto; }
@media (max-width: 1100px) { .brand img { height: 26px; } }

/* ---------- 2026-09-08: nav consistency (section pages), external-link markers ---------- */
.rail-body .section-head { max-width: none; }
.rail-body .access-grid { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.rail-body .access-net { height: 420px; }
.rail-body .protection-band { background: var(--midnight-deep); color: var(--white); padding: var(--s4); border-radius: 8px; }
.rail-body .protection-band .section-head { margin-bottom: var(--s4); }
.rail-body .app-grid { grid-template-columns: 1fr; gap: var(--s4); }
.rail-body .app-visual { order: 1; }
.nav-links a[target="_blank"]::after, .mobile-menu a[target="_blank"]::after, .footer-nav a[target="_blank"]::after, .rail-nav a[target="_blank"]::after { content: " \2197"; font-size: 0.8em; opacity: 0.7; }

/* ---------- 2026-09-08 late: rail-page redesign (stats strip, 2x2 protection cards) ---------- */
.rail-body .stats { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); margin-top: var(--s4); }
.rail-body .stat { padding: 18px 16px 18px 0; }
.rail-body .stat + .stat { padding-left: 16px; }
.rail-body .stat b { font-size: clamp(26px, 2.3vw, 34px); white-space: nowrap; letter-spacing: -0.01em; line-height: 1.1; }
.rail-body .stat span { font-size: 14px; margin-top: 4px; }
.rail-body .protection-card { grid-column: span 6; }
.rail-body .protection-band .section-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.rail-body .protection-band { padding: var(--s4) var(--s4) var(--s3); }
.rail-body .access-note { margin-top: var(--s4); }
@media (max-width: 820px) { .rail-body .stats { grid-template-columns: 1fr 1fr; } .rail-body .protection-card { grid-column: span 12; } }

/* ---------- mobile exchange list (map hidden below 820px) ---------- */
.anet-list { display: none; }
@media (max-width: 820px) {
  .anet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; list-style: none; padding: 0; margin: 0 0 var(--s3); }
  .anet-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-weight: 800; letter-spacing: 0.06em; font-size: 14px; color: var(--ink); }
  .anet-list .st { font-weight: 700; font-size: 11px; letter-spacing: 0.12em; color: rgba(26,26,24,0.45); }
  .anet-list .st.open { color: var(--teal-deep); }
}

/* ---------- showcase: video panel (Why TFOS) ---------- */
.sp-panel-video { cursor: default; }
.sp-video-el { object-fit: cover; background: #000; transform: none !important; }
.sp-panel-video .sp-caption { text-decoration: none; color: inherit; display: flex; }
.sp-panel-video:hover .sp-media { transform: none; }

/* ---------- 2026-09-08: card images (layout A) ---------- */
.post-card { overflow: hidden; }
.post-card .post-img { display: block; width: calc(100% + 2 * var(--s4)); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 2px; border-bottom: 1px solid var(--hairline); }
.post-card .post-meta { margin-top: auto; }
.source-line { font-size: 14px; color: var(--text-soft); border-left: 3px solid var(--columbia); padding: 6px 12px; margin: 0 0 18px; }
.article-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin: 0 0 22px; }

/* ---------- 2026-09-10: mobile rail compact + reveal fix ---------- */
@media (max-width: 900px) {
  .rail-nav { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; margin-top: var(--s2); }
  .rail-nav a { padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 14px; background: var(--white); }
  .rail-nav a.is-active { box-shadow: none; padding-left: 14px; border-color: var(--midnight); color: var(--midnight); }
  .rail-lede { font-size: 14.5px; }
  .rail-note { margin-top: var(--s2); }
  .rail .btn { margin-top: var(--s2); }
  .rail-grid { gap: var(--s3); }
}
