/* ============================================================
   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 */
  --serif: "Newsreader", Georgia, 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; }

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

/* ---------- Type scale ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 480;
  letter-spacing: -0.01em;
  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 a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding-block: 26px;
  transition: color 0.2s var(--ease);
}
.nav-links a::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 a:hover { color: var(--midnight); }
.nav-links a:hover::after { transform: scaleX(1); }
.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; }
.nav-open .nav-toggle span::before { background: var(--white); transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { background: var(--white); 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(--s6); padding-bottom: var(--s8); 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) */
.hero-facts {
  margin-top: var(--s8);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-invert);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.fact { display: grid; gap: 4px; align-content: start; }
.fact b {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  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); }

/* 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; } }

/* ---------- 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(--serif);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 480;
  line-height: 1.05;
  color: var(--midnight);
}
.stat span { font-size: 15px; color: var(--text-soft); margin-top: 6px; display: block; }

.access-note {
  margin-top: var(--s5);
  display: flex;
  gap: var(--s2);
  align-items: baseline;
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 760px;
}
.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);
}
.protection-card {
  grid-column: span 4;
  border: 1px solid var(--hairline-invert);
  border-radius: 4px;
  padding: var(--s4);
  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 .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cadet);
  letter-spacing: 0.08em;
  margin-bottom: var(--s2);
}
.protection-card p { font-size: 15.5px; color: var(--text-invert-soft); }
.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); }
.audience .tag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 7px 16px;
}
.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(--serif);
  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(--serif); font-weight: 520; 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 .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); }
.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-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; }
  .mobile-menu ul { list-style: none; display: grid; gap: var(--s3); }
  .mobile-menu a {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--white);
    text-decoration: none;
  }
  .mobile-menu .minor a { font-family: var(--sans); font-size: 17px; 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(--serif);
  font-size: 22px;
  font-weight: 500;
  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(--serif);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  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(--serif); font-size: 20px; font-weight: 500; 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(--serif); font-size: 26px; font-weight: 500; }
.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(--s5);
  min-height: 300px;
  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:
    radial-gradient(120% 90% at 80% -10%, rgba(46, 36, 126, 0.6) 0%, transparent 55%),
    var(--midnight-ink);
  color: var(--white);
  padding-block: clamp(64px, 9vw, 112px);
}
.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 .price { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; 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(--serif); font-size: 15px; 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 {
  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(--serif); font-weight: 520; 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; }
}

/* ---------- 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; }
}
