/* =========================================================================
   Leading Group Limited — marketing/IR site
   Design system, modernised from the Dingli Insurance Broker brand DESIGN.md.

   Brand DNA kept: steel-blue #3267AD as the single structural accent; navy
   chrome (#224E93 header, #1B2742 footer); square 0px identity; IBM Plex Mono
   tabular figures; flat, institutional, evidence-led. Figures never animate.

   Modernised for a marketing/IR audience: a dark navy hero ground for drama,
   editorial whitespace, larger (but restrained-weight) display type, layered
   navy-tinted depth, GSAP motion, one bespoke Three.js hero. Corners stay sharp.
   ========================================================================= */

:root {
  /* ---- Brand blue ramp (from DESIGN.md, the confirmed anchor) ---- */
  --primary: #3267AD;
  --primary-hover: #2B5CA0;
  --primary-pressed: #224E93;      /* == header navy: closes the loop with chrome */
  --primary-tint-1: #EAF0F8;
  --primary-tint-2: #D3E0F1;
  --primary-bright: #4E86D6;        /* modernised: a lifted blue for on-dark accents */
  --accent-on-dark: #6E9EE0;        /* small text/eyebrows on navy — AA at 6.2:1 */
  --link: #2B5CA0;

  /* ---- Chrome / dark grounds ---- */
  --header-navy: #224E93;
  --footer-navy: #1B2742;
  --ink-navy: #121B2E;              /* deepest ground, hero */
  --ink-navy-2: #0E1522;

  /* ---- Cool neutral ramp ---- */
  --ink: #1A2230;
  --ink-body: #3D4757;
  --ink-muted: #5E6878;
  --ink-disabled: #98A1B0;
  --canvas: #FFFFFF;
  --surface: #F4F6F9;
  --surface-sunken: #EAEEF3;
  --border: #DDE2EA;
  --border-strong: #C3CAD5;

  /* ---- On-dark text ---- */
  --on-dark: #EEF2F8;
  --on-dark-body: #C3CDDE;
  --on-dark-muted: #8E9BB4;
  --on-dark-border: rgba(255,255,255,0.12);
  --on-dark-surface: rgba(255,255,255,0.04);

  /* ---- Warm signal (from DESIGN.md — fill only, sparing) ---- */
  --signal: #F29500;
  --signal-text: #B35A00;

  /* ---- Semantic ---- */
  --success: #1F7A4D;  --success-tint: #E6F4EC;
  --warning: #9A5B00;  --warning-tint: #FDF3E1;
  --danger: #B71C24;   --danger-tint: #FBEAEA;
  --focus-ring: #3267AD;

  /* ---- Type ---- */
  --font-sans: "IBM Plex Sans", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-cjk: "PingFang SC", "Microsoft YaHei", var(--font-sans);

  /* ---- Spacing scale (8px base, from DESIGN.md) ---- */
  --s-0: 0;   --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px;
  --gutter: 24px;
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 900px;
  --header-h: 76px;

  /* ---- Depth (navy-tinted, never pure black) ---- */
  --e1: 0 0 0 1px var(--border);
  --e2: 0 1px 2px rgba(27,39,66,0.06), 0 6px 20px rgba(27,39,66,0.09);
  --e3: 0 2px 4px rgba(27,39,66,0.08), 0 16px 40px rgba(27,39,66,0.16);
  --e-dark: 0 20px 60px rgba(0,0,0,0.35);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;

  /* ---- Radius: square is the identity ---- */
  --r-0: 0;
  --r-sm: 2px;      /* focus rings, small badges */
  --r-cta: 6px;     /* the one pill: product CTA + tab plate corners */
}

/* ========================= reset / base ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--primary-tint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Browser chrome themed from the palette */
html { accent-color: var(--primary); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ========================= layout ========================= */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--container-wide); }
.wrap--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.band-dark { background: var(--ink-navy); color: var(--on-dark-body); }
.band-navy { background: var(--footer-navy); color: var(--on-dark-body); }
.band-surface { background: var(--surface); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4,
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: var(--on-dark); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ========================= type helpers ========================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 16px;
}
.band-dark .eyebrow, .band-navy .eyebrow { color: var(--primary-bright); }
.display {
  font-size: clamp(38px, 6.2vw, 76px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink);
}
.h-xl { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.025em; }
.h-lg { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.h-md { font-size: clamp(20px, 2.2vw, 24px); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-body); }
.band-dark .lead, .band-navy .lead { color: var(--on-dark-body); }
.muted { color: var(--ink-muted); }
.band-dark .muted, .band-navy .muted { color: var(--on-dark-muted); }
.cjk { font-family: var(--font-cjk); font-weight: 400; }
.measure { max-width: 62ch; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; }
.fig { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* Section heading block */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }
.rule-top { border-top: 3px solid var(--primary); padding-top: 22px; }

/* ========================= buttons ========================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--r-0);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--primary-tint-1); border-color: var(--primary); }
.btn--on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-border); }
.btn--on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn .arw { transition: transform var(--dur-fast) var(--ease-standard); }
.btn:hover .arw { transform: translateX(3px); }

/* Text link with arrow */
.link-arw { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--primary); text-decoration: none; }
.link-arw .arw { transition: transform var(--dur-fast) var(--ease-standard); }
.link-arw:hover .arw { transform: translateX(4px); }
.band-dark .link-arw { color: var(--primary-bright); }

/* ========================= header ========================= */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(18,27,46,0.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--on-dark-border);
  transition: background var(--dur-base) var(--ease-standard);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.brand-name b { color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-name span { color: var(--on-dark-muted); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--on-dark-body); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 0; position: relative;
  transition: color var(--dur-fast);
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--primary-bright);
}
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--on-dark-border); color: #fff; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* mobile drawer */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav, .header-cta { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--ink-navy); border-bottom: 1px solid var(--on-dark-border); padding: 8px var(--gutter) 20px;
  }
  .site-header.is-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--on-dark-border); font-size: 17px; }
  .site-header.is-open .nav a[aria-current="page"]::after { display: none; }
  .site-header.is-open .header-cta { display: block; padding: 16px var(--gutter) 22px; background: var(--ink-navy); position: absolute; top: calc(var(--header-h) + 100%); left:0; right:0; }
}

/* ========================= hero ========================= */
.hero { position: relative; background: var(--ink-navy); color: var(--on-dark-body); overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,27,46,0.94) 0%, rgba(18,27,46,0.86) 30%, rgba(18,27,46,0.30) 55%, rgba(18,27,46,0) 78%),
    radial-gradient(120% 120% at 82% 52%, rgba(78,134,214,0.12) 0%, rgba(18,27,46,0) 44%);
}
.hero__inner { position: relative; z-index: 2; display: grid; align-items: center; min-height: min(88vh, 820px); padding-block: 80px; }
.hero__lede { max-width: 620px; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-body); border: 1px solid var(--on-dark-border); padding: 7px 14px; margin-bottom: 28px; }
.hero__tag .dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(31,122,77,0.25); }
.hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 .accent { color: var(--primary-bright); }
.hero__lede .lead { margin: 26px 0 34px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 26px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; align-items: center; gap: 10px; }
.hero__scroll .bar { width: 46px; height: 1px; background: var(--on-dark-muted); position: relative; overflow: hidden; }
.hero__scroll .bar::after { content:""; position:absolute; inset:0; width: 40%; background: var(--primary-bright); animation: scrollbar 2.4s var(--ease-standard) infinite; }
@keyframes scrollbar { 0%{transform:translateX(-120%)} 100%{transform:translateX(280%)} }

/* ========================= stat band ========================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.band-dark .stat, .band-navy .stat { border-color: var(--on-dark-border); }
.stat__fig { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--primary); }
.band-dark .stat__fig, .band-navy .stat__fig { color: #fff; }
.stat__fig sup { font-size: 0.5em; font-weight: 500; vertical-align: super; color: var(--primary-bright); margin-left: 2px; }
.stat__label { margin-top: 12px; font-size: 15px; color: var(--ink-body); }
.band-dark .stat__label, .band-navy .stat__label { color: var(--on-dark-body); }
.stat__note { margin-top: 4px; font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: 0.01em; }
.band-dark .stat__note, .band-navy .stat__note { color: var(--on-dark-muted); }

/* ========================= tiles / cards ========================= */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--canvas); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; min-height: 260px; transition: background var(--dur-base) var(--ease-standard); position: relative; }
.tile:hover { background: var(--surface); }
.tile__num { font-family: var(--font-mono); font-size: 13px; color: var(--primary); letter-spacing: 0.08em; margin-bottom: auto; }
.tile__icon { width: 44px; height: 44px; margin-bottom: 24px; color: var(--primary); }
.tile h3 { font-size: 21px; margin-bottom: 12px; }
.tile p { font-size: 15px; color: var(--ink-body); line-height: 1.6; }
.tile__link { margin-top: 22px; }

/* editorial media row */
.mediarow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mediarow + .mediarow { margin-top: clamp(56px, 7vw, 104px); }
.mediarow--flip .mediarow__media { order: -1; }
.mediarow__body { max-width: 30em; }
.mediarow__media { position: relative; }
.mediarow__body h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.mediarow__body p + p { margin-top: 16px; }
.figrow { display: flex; gap: 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.figrow .fig-item b { display: block; font-family: var(--font-mono); font-feature-settings:"tnum" 1; font-size: 28px; color: var(--primary); font-weight: 500; letter-spacing: -0.01em; }
.figrow .fig-item span { font-size: 13px; color: var(--ink-muted); }

/* framed visual (svg holders) */
.viz { background: var(--ink-navy); border: 1px solid var(--border); position: relative; aspect-ratio: 4/3; overflow: hidden; }
.viz svg { width: 100%; height: 100%; }
.viz img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band-dark .viz, .mediarow .viz { border-color: var(--on-dark-border); }
.viz--flat { background: var(--surface); }

/* provenance line */
.prov { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.01em; margin-top: 14px; }
.band-dark .prov, .band-navy .prov { color: var(--on-dark-muted); }

/* ========================= data table ========================= */
.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable caption { text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-muted); padding-bottom: 12px; }
.rtable th, .rtable td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.rtable thead th { background: var(--primary); color: #fff; font-weight: 500; font-size: 14px; border-bottom: 0; }
.rtable tbody tr:nth-child(even) { background: var(--surface); }
.rtable td.num, .rtable th.num { text-align: right; font-family: var(--font-mono); font-feature-settings:"tnum" 1; }
.rtable tr.total { background: var(--primary-tint-1); font-weight: 600; color: var(--ink); }
.rtable tr.total td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .table-scroll .rtable { min-width: 480px; } }

/* ========================= leadership ========================= */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.person { background: var(--canvas); padding: 28px; display: flex; gap: 18px; align-items: flex-start; transition: background var(--dur-base); }
.person:hover { background: var(--surface); }
.mono-avatar { width: 56px; height: 56px; flex: none; background: var(--primary-tint-1); color: var(--primary); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 16px; letter-spacing: 0.02em; border: 1px solid var(--primary-tint-2); }
.person__name { color: var(--ink); font-weight: 600; font-size: 17px; }
.person__role { color: var(--ink-muted); font-size: 14px; margin-top: 3px; }
.person__tag { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary-tint-2); padding: 2px 7px; }

/* ========================= portal callout card ========================= */
.portal-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: var(--ink-navy); color: var(--on-dark-body); border: 1px solid var(--on-dark-border);
  padding: clamp(32px, 4vw, 56px); position: relative; overflow: hidden;
}
.portal-card__glow { position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: radial-gradient(circle, rgba(50,103,173,0.35), transparent 62%); pointer-events: none; }
.portal-card h3 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 14px; }
.portal-card .prov { margin-top: 20px; }

/* external glyph */
.ext::after { content: "↗"; font-family: var(--font-mono); margin-left: 7px; font-size: 0.85em; }

/* ========================= footer ========================= */
.site-footer { background: var(--footer-navy); color: var(--on-dark-body); padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-border); }
.footer-brand .brand-name b { font-size: 18px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--on-dark-muted); max-width: 30ch; }
.footer-col h4 { color: var(--on-dark); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--on-dark-body); text-decoration: none; font-size: 15px; padding: 6px 0; transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-hotline { font-family: var(--font-mono); font-feature-settings:"tnum" 1; font-size: 24px; color: #fff; letter-spacing: -0.01em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; padding-top: 32px; }
.footer-bottom p { font-size: 12px; color: var(--on-dark-muted); font-family: var(--font-mono); letter-spacing: 0.01em; }
.footer-legal { max-width: 62ch; font-family: var(--font-sans) !important; line-height: 1.6; letter-spacing: 0 !important; margin-top: 24px; }

/* ========================= forms ========================= */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; height: 48px; padding: 0 14px; font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--border-strong); border-radius: 0;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint-2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; margin-top: 8px; font-size: 13px; color: var(--danger); }
.field.is-invalid .err { display: flex; gap: 6px; align-items: center; }
.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--success); background: var(--success-tint); color: var(--success); font-size: 15px; }
.form-status.is-shown { display: block; }

/* ========================= page masthead ========================= */
.masthead { background: var(--ink-navy); color: var(--on-dark-body); padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.masthead__grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.masthead h1 { color: #fff; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.03em; max-width: 16ch; }
.masthead .lead { margin-top: 22px; max-width: 52ch; }
.masthead__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.masthead__meta .m-item { font-size: 14px; color: var(--on-dark-body); }
.masthead__meta .m-item b { display: block; font-family: var(--font-mono); color: #fff; font-size: 18px; font-weight: 500; }

/* ========================= reveal (GSAP-driven, CSS fallback) ========================= */
.rv { opacity: 0; transform: translateY(13px); }
.rv.is-in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; } }

/* ========================= responsive ========================= */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat { padding: 0 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid--3, .people { grid-template-columns: repeat(2, 1fr); }
  .mediarow { grid-template-columns: 1fr; gap: 28px; }
  .mediarow--flip .mediarow__media { order: 0; }
  .portal-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .people { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px 0; }
  .stat { padding: 0 0 0 16px; border-left: 2px solid var(--border); }
  .band-dark .stat, .band-navy .stat { border-color: var(--on-dark-border); }
  .figrow { gap: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .rtable { font-size: 13px; }
  .rtable th, .rtable td { padding: 10px 12px; }
}

/* =========================================================================
   ELEVATION PASS — agency-led craft, within the brand DNA.
   Precision hairlines, the Dingli hexagon as a recurring device, layered
   navy depth, refined micro-interaction. Square identity + steel-blue only.
   ========================================================================= */

/* ---- scroll progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 300;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright)); pointer-events: none; }

/* ---- hexagon node marker on every eyebrow ---- */
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow::before { content: ""; width: 9px; height: 10px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---- section heading: hairline + hex, replacing the plain rule ---- */
.sec-head.rule-top { border-top: 0; padding-top: 30px; }
.sec-head.rule-top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.sec-head.rule-top { position: relative; }
.band-dark .sec-head.rule-top::before, .band-navy .sec-head.rule-top::before { background: var(--on-dark-border); }
.sec-head.rule-top::after { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 12px; background: var(--primary);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---- dark-band texture: fine hairline column grid + faint hexagon field ---- */
.band-dark, .band-navy, .masthead, .hero, .tech-hero, .portal-card { position: relative; }
.band-dark::before, .masthead::before, .portal-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image:
    repeating-linear-gradient(90deg, rgba(122,166,221,0.05) 0 1px, transparent 1px 120px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56' viewBox='0 0 48 56'%3E%3Cpath d='M24 1L46 14V42L24 55L2 42V14Z' fill='none' stroke='%234E86D6' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-position: center, center;
}
.masthead::before { opacity: 0.7; }
.band-dark > .wrap, .masthead > .wrap, .portal-card > *:not(.portal-card__glow) { position: relative; z-index: 1; }
/* keep the hero/tech-hero canvas untextured (the 3D IS the texture) */

/* ---- buttons: fill sweep on hover ---- */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-standard); }
.btn--primary::after { background: var(--primary-hover); }
.btn--ghost::after { background: var(--primary-tint-1); }
.btn--on-dark::after { background: rgba(255,255,255,0.10); }
.btn:hover::after { transform: scaleX(1); }
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }

/* ---- animated underline on text links ---- */
.link-arw { position: relative; padding-bottom: 3px; }
.link-arw::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur-base) var(--ease-standard); }
.link-arw:hover::after { transform: scaleX(1); transform-origin: left; }

/* nav underline draw-in */
.nav a:not([aria-current="page"])::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--primary-bright); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-standard); }
.nav a:not([aria-current="page"]):hover::after { transform: scaleX(1); }

/* ---- tiles: lift, accent top rule, corner hex ---- */
.tile { transition: background var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-standard); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--e2); background: var(--canvas); z-index: 1; }
.tile:hover::before { transform: scaleX(1); }
.tile__icon { transition: transform var(--dur-base) var(--ease-standard); }
.tile:hover .tile__icon { transform: translateY(-2px) scale(1.04); }

/* ---- media/viz: hairline frame + corner brackets + hover zoom ---- */
.mediarow__media { position: relative; }
.viz { transition: border-color var(--dur-base); }
.viz img { transition: transform var(--dur-slow) var(--ease-standard); }
.mediarow__media:hover .viz img { transform: scale(1.04); }
.mediarow__media::before, .mediarow__media::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none; }
.mediarow__media::before { top: -1px; left: -1px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.mediarow__media::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }

/* ---- stat band: hairline cap + hex tick ---- */
.stat { position: relative; }
.stat__fig { position: relative; }
.stats .stat__fig::before { content: ""; position: absolute; top: -18px; left: 0; width: 8px; height: 9px; background: var(--primary);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: 0.9; }
.band-dark .stats .stat__fig::before, .band-navy .stats .stat__fig::before { background: var(--primary-bright); }

/* ---- people grid: no empty ghost cells (borders on cells, not container bg) ---- */
.people { background: transparent; border: 1px solid var(--border); gap: 0; }
.person { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.person:nth-child(3n) { border-right: 0; }
.mono-avatar { transition: background var(--dur-base), color var(--dur-base); }
.person:hover .mono-avatar { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 960px) { .person:nth-child(3n) { border-right: 1px solid var(--border); } .person:nth-child(2n) { border-right: 0; } }
@media (max-width: 620px) { .person { border-right: 0 !important; } }

/* ---- display type: a touch more confident ---- */
.display, .hero h1, .masthead h1 { letter-spacing: -0.035em; }

/* ---- portal card: sharper corner bracket accent ---- */
.portal-card { border-width: 1px; }
.portal-card::after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 48px; z-index: 1;
  background: var(--primary); clip-path: polygon(100% 0, 100% 100%, 0 0); opacity: 0.85; }

/* ---- footer: large hex watermark + confident wordmark ---- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 380px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116'%3E%3Cpath d='M50 2L96 29V87L50 114L4 87V29Z' fill='none' stroke='%234E86D6' stroke-opacity='0.12' stroke-width='1.5'/%3E%3Cpath d='M50 26L74 40V68L50 82L26 68V40Z' fill='none' stroke='%233267AD' stroke-opacity='0.14' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.site-footer .wrap { position: relative; z-index: 1; }

/* ---- reveal: clip-wipe variant for figures (reveal, never count-up) ---- */
.rv-wipe { clip-path: inset(0 100% 0 0); }
.rv-wipe.is-in { clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease-standard); }

/* =========================================================================
   ELEVATION II — a signature statement section + a cinematic full-bleed band
   ========================================================================= */

/* ---- "At a glance": oversized stacked figures, hairline-divided ---- */
.glance { border-top: 1px solid var(--on-dark-border); }
.glance__row { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: clamp(24px,4vw,64px);
  align-items: baseline; padding: clamp(26px,3.4vw,46px) 0; border-bottom: 1px solid var(--on-dark-border); }
.glance__fig { font-family: var(--font-mono); font-feature-settings:"tnum" 1; font-weight: 500;
  font-size: clamp(46px,8vw,104px); line-height: 0.88; letter-spacing: -0.045em; color: #fff; }
.glance__fig sup { font-size: 0.4em; vertical-align: super; color: var(--primary-bright); font-weight: 500; margin-left: 2px; }
.glance__ctx { padding-top: 10px; }
.glance__label { font-size: clamp(17px,1.9vw,22px); color: var(--on-dark); font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.glance__ctx p { font-size: 15px; color: var(--on-dark-muted); max-width: 46ch; }
.glance-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px,3vw,40px); flex-wrap: wrap; }
@media (max-width: 720px) { .glance__row { grid-template-columns: 1fr; gap: 10px; } .glance__ctx { padding-top: 0; } }

/* ---- full-bleed horizon band ---- */
.horizon-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-navy); }
.horizon-band__img { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center right; }
.horizon-band__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,27,46,0.96) 0%, rgba(18,27,46,0.72) 46%, rgba(18,27,46,0.12) 100%),
    linear-gradient(180deg, rgba(18,27,46,0.55) 0%, rgba(18,27,46,0) 32%, rgba(18,27,46,0.66) 100%); }
.horizon-band__inner { position: relative; z-index: 2; min-height: min(72vh, 640px); display: flex; align-items: center; padding-block: clamp(72px,10vw,130px); }
.horizon-band__inner > div { max-width: 660px; }
.horizon-band h2 { color: #fff; }
.horizon-band .lead { color: var(--on-dark-body); margin: 20px 0 34px; }
.horizon-band .ldin-line { display: flex; align-items: baseline; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--on-dark-border); }
.horizon-band .ldin-line b { font-family: var(--font-mono); font-size: 34px; font-weight: 500; color: #fff; letter-spacing: 0.02em; }
.horizon-band .ldin-line span { font-size: 14px; color: var(--on-dark-muted); }

/* ========================= investment highlights ========================= */
/* The 4 S's (Simplicity · Strategy · Segmentation · Substance) — a 2×2 field.
   Not a sequence, so no ordinals; the shared initial is the informational marker. */
.hl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.hl__cell { background: var(--canvas); padding: clamp(28px, 3vw, 40px); position: relative; transition: background var(--dur-base) var(--ease-standard); }
.hl__cell:hover { background: var(--surface); }
.hl__cell::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-standard); }
.hl__cell:hover::before { transform: scaleX(1); }
.hl__mark { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.hl__initial { font-family: var(--font-mono); font-weight: 500; font-size: 30px; line-height: 1; color: var(--primary); letter-spacing: -0.02em; }
.hl__initial::before { content: ""; display: inline-block; width: 10px; height: 11px; margin-right: 10px; background: var(--primary);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); vertical-align: middle; }
.hl__cell h3 { font-size: 20px; letter-spacing: -0.01em; }
.hl__cell p { font-size: 15px; color: var(--ink-body); line-height: 1.62; margin-top: 10px; }
.hl__cell p + p { margin-top: 12px; }
@media (max-width: 720px) { .hl { grid-template-columns: 1fr; } }

/* ========================= disclosure list (structure & risk) ========================= */
.disc { border-top: 1px solid var(--border); margin-top: 30px; }
.disc__row { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--border); }
.disc__term { font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.disc__term::before { content: ""; display: block; width: 22px; height: 2px; background: var(--primary); margin-bottom: 14px; }
.disc__body { font-size: 15px; color: var(--ink-body); line-height: 1.64; }
@media (max-width: 720px) { .disc__row { grid-template-columns: 1fr; gap: 10px; } .disc__term::before { margin-bottom: 10px; } }

/* ========================= FAQ (native details) ========================= */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 12px; margin-top: -6px;
  background: var(--border-strong); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base); }
.faq__item[open] summary::after { transform: rotate(180deg); background: var(--primary); }
.faq__item summary:hover { color: var(--primary); }
.faq__item summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.faq__a { padding: 0 44px 24px 0; font-size: 15px; color: var(--ink-body); line-height: 1.66; max-width: 68ch; }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--link); }

/* ---- home horizon background: WebP with PNG fallback ---- */
.horizon-band__img--home { background-image: url(../assets/img/horizon-82cd12.png); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .horizon-band__img--home {
    background-image: image-set(
      url("../assets/img/horizon-82cd12.webp") type("image/webp"),
      url("../assets/img/horizon-82cd12.png") type("image/png"));
  }
}

/* ---- hero: on mobile the network sits up top; protect the content below ---- */
@media (max-width: 640px) {
  .hero__veil { background:
    linear-gradient(180deg, rgba(18,27,46,0) 0%, rgba(18,27,46,0.30) 26%, rgba(18,27,46,0.84) 50%, rgba(18,27,46,0.97) 100%); }
}

/* ---- interior masthead motif: a calm Dingli hex-lattice, right-anchored ---- */
.masthead__motif { position: absolute; z-index: 0; top: 50%; right: clamp(-170px, -1vw, 24px);
  transform: translateY(-50%); width: clamp(360px, 44vw, 660px); aspect-ratio: 1; pointer-events: none; }
.masthead__motif svg { width: 100%; height: 100%; display: block; overflow: visible; }
.masthead__motif .spin { transform-box: view-box; transform-origin: 200px 200px; }
.masthead__motif .spin-a { animation: mast-spin 150s linear infinite; }
.masthead__motif .spin-b { animation: mast-spin 105s linear infinite reverse; }
@keyframes mast-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .masthead__motif .spin { animation: none; } }
@media (max-width: 760px) { .masthead__motif { right: -38%; width: 460px; opacity: 0.5; } }

/* ---- contrast: text helpers must use on-dark values on EVERY dark ground ---- */
/* .lead/.muted/.prov/.eyebrow/.link-arw only got the light treatment under
   .band-dark/.band-navy; mastheads, hero, tech-hero and portal cards are dark too. */
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .lead { color: var(--on-dark-body); }
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .muted,
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .prov { color: var(--on-dark-muted); }
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .eyebrow,
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .link-arw { color: var(--accent-on-dark); }
/* .figrow .fig-item span hard-sets --ink-muted (0,3,0); on dark grounds it must lift too */
:is(.band-dark,.band-navy,.masthead,.hero,.tech-hero,.portal-card,.horizon-band) .figrow .fig-item span { color: var(--on-dark-muted); }

/* ---- technology platform band background (WebP + PNG fallback) ---- */
.horizon-band__img--tech { background-image: url(../assets/img/platform-hex-2c7d1a.png); background-position: center right; }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .horizon-band__img--tech {
    background-image: image-set(
      url("../assets/img/platform-hex-2c7d1a.webp") type("image/webp"),
      url("../assets/img/platform-hex-2c7d1a.png") type("image/png"));
  }
}

.horizon-band .ldin-line b { white-space: nowrap; }

/* ---- investor-portal index list (defers detail to the portal) ---- */
.portal-index { list-style: none; margin: 24px 0 0; display: grid; gap: 10px; }
.portal-index li { font-size: 15px; color: var(--on-dark-body); padding-left: 22px; position: relative; }
.portal-index li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 10px;
  background: var(--accent-on-dark); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
