/* Sparroz Group UK Ltd — v4
   One Swiss grotesk, hairline precision, dark figure panels on a light page.
   The meridian (0°, London) remains the organising idea. */

@font-face { font-family: "Heros"; src: url("fonts/Heros-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/Heros-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Heros"; src: url("fonts/Heros-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0d1524;
  --grey: #6b707b;
  --hair: #e4e5e9;
  --panel: #0d1729;
  --panel-2: #121f36;
  --p-hair: rgba(255, 255, 255, .09);
  --p-text: #e9ecf1;
  --p-grey: #8a93a3;
  --accent: #d23c7e;

  --font: "Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1440px;
  --pad: clamp(1rem, 3.2vw, 2.75rem);
  --col-gap: clamp(1rem, 2vw, 1.75rem);
  --radius: clamp(14px, 1.6vw, 22px);
  --header-h: 64px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
address { font-style: normal; }
::selection { background: var(--ink); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--pad); top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none; border-radius: 6px; }
.skip-link:focus { top: .75rem; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Type scale (one family) ---------- */
.t-mega { font-size: clamp(2.9rem, 7.6vw, 8.4rem); line-height: .94; letter-spacing: -.052em; }
.t-xl { font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.t-l { font-size: clamp(1.6rem, 2.7vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
.t-m { font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.38; letter-spacing: -.018em; }
.t-s { font-size: .9375rem; line-height: 1.5; }
.t-xs { font-size: .8125rem; line-height: 1.45; letter-spacing: 0; }
.grey { color: var(--grey); }
.count { color: var(--grey); font-variant-numeric: tabular-nums; }

/* Section label: small, sentence case, with a hairline above the whole row */
.sec { padding: clamp(5rem, 10vw, 9rem) 0 0; }
.sec-top { border-top: 1px solid var(--hair); padding-top: 1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); align-items: baseline; }
.sec-top h2 { font-size: .9375rem; font-weight: 700; letter-spacing: -.005em; grid-column: span 6; }
.sec-top .count { grid-column: span 6; text-align: right; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .98rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.mark { width: 18px; height: 18px; position: relative; flex: none; }
.mark::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--accent); transform: translateX(-50%); }
.mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.wordmark .light { font-weight: 400; color: var(--grey); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.site-nav a { font-size: .9375rem; text-decoration: none; color: var(--grey); transition: color .2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.header-meta { font-size: .8125rem; color: var(--grey); white-space: nowrap; }
.nav-toggle { display: none; position: relative; z-index: 120; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle { color: #fff; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
@media (max-width: 1099px) { .header-meta { display: none; } }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 110; background: var(--panel); color: #fff;
    padding: calc(var(--header-h) + 2rem) var(--pad) 2rem; display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-open .wordmark { color: #fff; position: relative; z-index: 120; }
  .nav-open .wordmark .light { color: var(--p-grey); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--p-hair); overflow: hidden; }
  .site-nav li:last-child { border-bottom: 1px solid var(--p-hair); }
  .site-nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.045em; color: #fff; transform: translateY(100%); transition: transform .6s var(--ease-out); }
  .site-nav a::after { content: attr(data-n); font-size: .8125rem; letter-spacing: 0; color: var(--p-grey); }
  .nav-open .site-nav a { transform: none; }
  .nav-open .site-nav li:nth-child(2) a { transition-delay: .05s; }
  .nav-open .site-nav li:nth-child(3) a { transition-delay: .1s; }
  .nav-open .site-nav li:nth-child(4) a { transition-delay: .15s; }
  .nav-foot { display: block !important; font-size: .8125rem; color: var(--p-grey); }
}
.nav-foot { display: none; }
.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 7rem); }
.hero h1 { grid-column: 1 / -1; max-width: 12.5em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
.hero-sub { margin-top: clamp(2rem, 4.5vw, 3.75rem); row-gap: 1.5rem; }
.hero-sub .lead { grid-column: 7 / span 6; margin: 0; max-width: 31em; animation: fade 1s .55s both; }
.hero-sub .reg { grid-column: 1 / span 5; align-self: end; animation: fade 1s .65s both; }
.hero-sub .reg span { display: block; }
@media (max-width: 899px) { .hero-sub .lead, .hero-sub .reg { grid-column: 1 / -1; } .hero-sub .reg { order: 2; } }

/* Figure panels */
.fig { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.panel { position: relative; background: var(--panel); color: var(--p-text); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.fig figcaption { display: flex; gap: 1.25rem; margin-top: .9rem; font-size: .8125rem; color: var(--grey); max-width: 60em; }
.fig figcaption b { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Fig. 1 — longitude chart (interactive) */
.chart { --west: 160; --span: 180; height: clamp(300px, 36vw, 500px); cursor: crosshair; touch-action: pan-y; outline: none; }
.chart:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.chart .g { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--p-hair); left: calc((var(--west) + var(--lon)) / var(--span) * 100%); transform-origin: top; animation: draw-y 1.1s var(--ease) both; animation-delay: calc((var(--west) + var(--lon)) * 3ms + 300ms); }
.chart .g.major { background: rgba(255, 255, 255, .17); }
.chart .g span { position: absolute; top: 1rem; left: .5rem; font-size: .75rem; color: var(--p-grey); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart .parallel { position: absolute; left: 0; right: 0; height: 1px; background: var(--p-hair); }
.chart .region { position: absolute; top: 22%; bottom: 22%; left: calc((var(--west) - 141) / var(--span) * 100%); width: calc(88.383 / var(--span) * 100%); background: rgba(255, 255, 255, .045); border-left: 1px solid rgba(255, 255, 255, .35); border-right: 1px solid rgba(255, 255, 255, .35); animation: fade 1s 1s both; }
.chart .region p, .chart .uk p { position: absolute; margin: 0; font-size: .8125rem; line-height: 1.35; color: var(--p-grey); }
.chart .region p { left: 1rem; bottom: 1rem; }
.chart .region strong, .chart .uk strong { display: block; color: #fff; font-weight: 400; font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: -.02em; }
.chart .uk { position: absolute; top: 0; bottom: 0; left: calc(var(--west) / var(--span) * 100%); width: 1.5px; background: var(--accent); transform: translateX(-50%); transform-origin: top; animation: draw-y 1.3s .2s var(--ease) both; }
.chart .uk::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(210, 60, 126, .18); }
.chart .uk p { right: 1rem; top: calc(50% + 1.1rem); text-align: right; white-space: nowrap; }
.chart .cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255, 255, 255, .7); pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.chart .readout { position: absolute; top: 50%; left: .6rem; transform: translateY(-50%); background: #fff; color: var(--ink); font-size: .75rem; line-height: 1.3; padding: .35rem .55rem; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart .readout.flip { left: auto; right: .6rem; }
.chart .readout em { font-style: normal; color: var(--grey); display: block; }
.chart.is-active .cursor { opacity: 1; }
.chart-hint { position: absolute; right: 1rem; bottom: 1rem; font-size: .75rem; color: var(--p-grey); transition: opacity .3s; }
.chart.is-active .chart-hint, .chart.was-used .chart-hint { opacity: 0; }
@media (max-width: 899px) {
  .chart { height: 360px; }
  .chart .g:not(.major) span { display: none; }
  .chart .uk p { top: auto; bottom: 1rem; }
  .chart .region { top: 18%; bottom: 34%; }
  .chart .region p { left: .75rem; bottom: .75rem; }
  .chart-hint { display: none; }
}

/* ---------- About ---------- */
.about .statement { grid-column: 4 / -1; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.about .note { grid-column: 1 / span 3; align-self: start; }
.about .paras { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); color: var(--grey); }
.about .paras p { margin: 0; }
.note { border-top: 1.5px solid var(--accent); padding-top: .9rem; font-size: .875rem; line-height: 1.5; }
.note b { display: block; font-weight: 700; margin-bottom: .35rem; }
@media (max-width: 899px) {
  .about .statement, .about .note, .about .paras { grid-column: 1 / -1; }
  .about .paras { grid-template-columns: 1fr; row-gap: 1rem; margin-bottom: 2.5rem; }
  .about .note { order: 3; }
}

/* ---------- Functions: index rows with a wipe ---------- */
.fn-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.fn { position: relative; border-top: 1px solid var(--hair); isolation: isolate; }
.fn-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; padding: clamp(1.5rem, 3vw, 2.5rem) 0; position: relative; }
.fn h3 { grid-column: 1 / span 7; transition: color .45s var(--ease), transform .6s var(--ease); }
.fn p { grid-column: 8 / -1; margin: 0; color: var(--grey); max-width: 30em; transition: color .45s var(--ease); }
.fn::before { content: ""; position: absolute; inset: -1px calc(var(--pad) * -1) 0; background: var(--panel); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .fn:hover::before { transform: scaleY(1); }
  .fn:hover h3 { color: #fff; transform: translateX(clamp(.5rem, 1.5vw, 1.5rem)); }
  .fn:hover p { color: var(--p-text); }
  .fn:hover + .fn { border-top-color: transparent; }
}
.fn-foot { margin-top: 1.25rem; }
.fn-foot p { grid-column: 8 / -1; margin: 0; }
@media (max-width: 899px) {
  .fn h3, .fn p, .fn-foot p { grid-column: 1 / -1; }
  .fn h3 { margin-bottom: .75rem; }
}

/* ---------- Operating model ---------- */
.model .lede { grid-column: 1 / span 7; margin: 0; }
.model .paras { grid-column: 8 / -1; color: var(--grey); }
.model .paras p:last-child { margin: 0; }
@media (max-width: 899px) { .model .lede, .model .paras { grid-column: 1 / -1; } .model .lede { margin-bottom: 1.75rem; } }

/* Fig. 2 — schematic */
.schematic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); align-items: center; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem); min-height: clamp(300px, 30vw, 420px);
  background-image: linear-gradient(var(--p-hair) 1px, transparent 1px), linear-gradient(90deg, var(--p-hair) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center; }
.node { position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .22); background: var(--panel-2); border-radius: 10px; padding: 1.1rem 1.2rem; }
.node small { display: block; font-size: .75rem; color: var(--p-grey); margin-bottom: .45rem; }
.node strong { display: block; font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: -.025em; color: #fff; line-height: 1.15; }
.node--uk { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(210, 60, 126, .14); }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }
.lane { position: relative; height: 1.6rem; }
.lane span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: .8125rem; color: var(--p-text); background: var(--panel); padding: 0 .6rem; white-space: nowrap; }
.lane::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .28); }
.lane::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0 40%, var(--accent) 48% 52%, transparent 60%) 0 0 / 50% 100% repeat-x;
  animation: flow 3.2s linear infinite; animation-play-state: paused;
}
.lane:nth-child(2)::after { animation-delay: -1.1s; }
.lane:nth-child(3)::after { animation-delay: -2.2s; }
.schematic.in-view .lane::after { animation-play-state: running; }
@media (max-width: 899px) {
  .schematic { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .node--uk { order: 1; } .lanes { order: 2; } .node--ca { order: 3; }
  .lanes { grid-template-columns: repeat(3, 1fr); gap: 0; height: 170px; }
  .lane { height: 100%; }
  .lane::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .lane::after { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent 0 40%, var(--accent) 48% 52%, transparent 60%) 0 0 / 100% 50% repeat-y; animation-name: flow-y; }
  .lane span { top: 50%; transform: translate(-50%, -50%); padding: .3rem 0; font-size: .75rem; }
}
.scope { margin-top: clamp(3rem, 6vw, 5rem); row-gap: 2.5rem; }
.scope > div { grid-column: span 6; }
.scope h3 { font-size: .9375rem; font-weight: 700; padding-bottom: .9rem; border-bottom: 1px solid var(--ink); }
.scope ul { list-style: none; margin: 0; padding: 0; }
.scope li { display: grid; grid-template-columns: 2.25rem 1fr; padding: .85rem 0; border-bottom: 1px solid var(--hair); }
.scope li::before { content: "+"; color: var(--ink); }
.scope .out li { color: var(--grey); }
.scope .out li::before { content: "\2212"; color: var(--accent); }
@media (max-width: 899px) { .scope > div { grid-column: 1 / -1; } }

/* ---------- Corporate information ---------- */
.corp-name { grid-column: 1 / span 6; }
.corp-name p { margin: 1.25rem 0 0; color: var(--grey); max-width: 24em; }
.ledger { grid-column: 7 / -1; margin: 0; border-top: 1px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.ledger dt { color: var(--grey); font-size: .9375rem; }
.ledger dd { margin: 0; }
.ledger .num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.contact { margin-top: clamp(3rem, 6vw, 5rem); row-gap: 2rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact > div { grid-column: span 4; }
.contact h3 { font-size: .9375rem; color: var(--grey); margin-bottom: .5rem; }
.contact .mail { font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; word-break: break-word; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease), color .2s; padding-bottom: .1em; }
.contact .mail:hover { background-size: 0 1px; background-position: 100% 100%; }
@media (max-width: 899px) { .corp-name, .ledger, .contact > div { grid-column: 1 / -1; } .ledger { margin-top: 2.5rem; } }

/* ---------- Footer (dark panel) ---------- */
.site-footer { padding: 0 var(--pad) var(--pad); }
.footer-panel { max-width: calc(var(--maxw) - 2 * var(--pad)); margin: 0 auto; background: var(--panel); color: var(--p-grey); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2rem); font-size: .875rem; }
.footer-panel .wordmark { color: #fff; font-size: 1.05rem; }
.footer-panel .wordmark .light { color: var(--p-grey); }
.footer-panel a { color: var(--p-text); text-decoration: none; }
.footer-panel a:hover { color: #fff; text-decoration: underline; }
.foot-grid { row-gap: 2rem; }
.foot-grid > :nth-child(1) { grid-column: 1 / span 4; }
.foot-grid > :nth-child(2) { grid-column: 5 / span 4; }
.foot-grid > :nth-child(3) { grid-column: 9 / span 2; }
.foot-grid > :nth-child(4) { grid-column: 11 / span 2; }
.foot-grid p { margin: 0 0 .3rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-big { margin: clamp(3rem, 8vw, 6rem) 0 1.25rem; color: #fff; font-size: clamp(2.2rem, 8.6vw, 8.9rem); line-height: .85; letter-spacing: -.06em; white-space: nowrap; overflow: hidden; }
.foot-big .mk { color: var(--accent); }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--p-hair); font-size: .8125rem; }
@media (max-width: 899px) { .foot-grid > * { grid-column: 1 / -1 !important; } .foot-grid > :nth-child(3), .foot-grid > :nth-child(4) { grid-column: span 6 !important; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: clamp(3rem, 7vw, 6rem); }
.legal-hero h1 { grid-column: 1 / -1; }
.legal-hero .summary { grid-column: 4 / span 7; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.legal-hero .meta { grid-column: 1 / span 3; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.legal-main { padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal-main nav { grid-column: 1 / span 3; }
.legal-main nav ol { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .875rem; }
.legal-main nav li { border-bottom: 1px solid var(--hair); }
.legal-main nav a { display: block; padding: .55rem 0; text-decoration: none; color: var(--grey); }
.legal-main nav a:hover { color: var(--ink); }
.legal-body { grid-column: 4 / span 7; }
.legal-body h2 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.15; margin: 3rem 0 .9rem; padding-top: 1rem; border-top: 1px solid var(--hair); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.1rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .4rem; }
.legal-body li::marker { color: var(--accent); }
.legal-body address { margin: 0 0 1em; padding-left: 1rem; border-left: 1.5px solid var(--accent); }
@media (max-width: 899px) {
  .legal-hero .summary, .legal-hero .meta, .legal-body { grid-column: 1 / -1; }
  .legal-hero .meta { order: -1; }
  .legal-main nav { display: none; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes flow-y { from { background-position: 0 -100%; } to { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.chart i { font-style: normal; }
.foot-big { line-height: 1; padding-bottom: .08em; }
@media (max-width: 559px) { .ledger div { grid-template-columns: 1fr; gap: .2rem; } .ledger dt { font-size: .8125rem; } }


/* ================= v5: white page, full-bleed dark zones, more life ================= */

/* Large section headings replace the small hairline labels */
.sec { padding: clamp(6rem, 12vw, 11rem) 0 clamp(6rem, 12vw, 11rem); }
.dark + .sec, .hero + .sec { padding-top: clamp(6rem, 12vw, 11rem); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-head h2 { max-width: 14em; }
.sec-head .count { font-size: clamp(1rem, 1.4vw, 1.25rem); padding-top: .5em; }
.sec-head h2::before { content: ""; display: block; width: 2.25rem; height: 3px; background: var(--accent); margin-bottom: clamp(1.25rem, 2.4vw, 2rem); transform-origin: left; transition: transform .8s var(--ease) .1s; }
.js .reveal-words:not(.is-in)::before { transform: scaleX(0); }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-words .w > span { display: inline-block; transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.js .reveal-words:not(.is-in) .w > span { transform: translateY(110%); }

/* Fade-up for supporting blocks (used sparingly) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Dark zones */
.dark { background: var(--panel); color: var(--p-text); }
.dark .grey, .dark .count { color: var(--p-grey); }
.dark a:hover { color: #f07fb1; }

/* Functions on dark */
.functions { padding-top: 0; overflow: hidden; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--p-hair); padding: clamp(1.25rem, 2.5vw, 2rem) 0; margin-bottom: clamp(5rem, 10vw, 9rem); }
.marquee-track { display: flex; align-items: center; width: max-content; gap: clamp(1.5rem, 3vw, 3rem); animation: marquee 48s linear infinite; }
.marquee span { font-size: clamp(3rem, 8vw, 8.5rem); line-height: 1; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.marquee .mk { flex: none; width: clamp(28px, 3.4vw, 52px); height: clamp(28px, 3.4vw, 52px); position: relative; }
.marquee .mk::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: translateX(-50%); }
.marquee .mk::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .5); transform: translateY(-50%); }
.functions:hover .marquee-track { animation-play-state: paused; }
.dark .fn-list { border-bottom-color: var(--p-hair); }
.dark .fn { border-top-color: var(--p-hair); }
.dark .fn h3 { color: #fff; }
.dark .fn p { color: var(--p-grey); }
.dark .fn::before { background: var(--accent); }
@media (hover: hover) and (min-width: 900px) {
  .dark .fn:hover p { color: #fff; }
  .dark .fn:hover + .fn { border-top-color: transparent; }
}
.dark .fn-foot p { color: var(--p-grey); }

/* Corporate information on dark */
.corp { padding-bottom: 0; }
.corp-title { margin: 0; color: #fff; }
.dark .corp-name p { color: var(--p-grey); }
.dark .ledger { border-top-color: rgba(255, 255, 255, .6); }
.dark .ledger div { border-bottom-color: var(--p-hair); }
.dark .ledger dt { color: var(--p-grey); }
.dark .contact h3 { color: var(--p-grey); }
.dark .contact .mail { color: #fff; }
.dark .contact { border-bottom: 1px solid var(--p-hair); }

/* Footer becomes the continuation of the last dark zone */
.site-footer { padding: 0; background: #0a1222; }
.footer-panel { background: transparent; border-radius: 0; max-width: var(--maxw); padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(1.5rem, 2.5vw, 2rem); }
body.legal-page .site-footer { margin-top: 0; }

/* Model zone stays white; its figure panel gives contrast */
.model .lede { color: var(--ink); }

/* Hero: a touch more presence */
.hero { padding-bottom: clamp(5rem, 10vw, 9rem); }

@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal-words .w > span, .js .reveal { transform: none !important; opacity: 1 !important; }
  .js .reveal-words::before { transform: none !important; }
}
.dark .corp-name .corp-title { color: #fff; }


/* ================= v6: calmer functions zone; corporate info back on white ================= */
.functions { padding-top: clamp(6rem, 12vw, 11rem); }
.corp { padding-bottom: clamp(5rem, 10vw, 9rem); }
.corp .corp-title { color: var(--ink); }
.corp .contact { padding-bottom: 0; }

.dark .fn-row { padding: clamp(1.75rem, 3.2vw, 2.75rem) 0; }
.dark .fn h3 { font-size: clamp(1.6rem, 2.9vw, 3rem); letter-spacing: -.038em; line-height: 1.05; }
.dark .fn::before { background: rgba(255, 255, 255, .035); transform: none; opacity: 0; transition: opacity .45s ease; }
.dark .fn::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .dark .fn:hover::before { transform: none; opacity: 1; }
  .dark .fn:hover::after { transform: scaleX(1); }
  .dark .fn:hover h3 { transform: translateX(clamp(.4rem, 1vw, 1rem)); }
  .dark .fn:hover p { color: var(--p-text); }
  .dark .fn:hover + .fn { border-top-color: var(--p-hair); }
}
.js .fn.reveal:nth-child(2) { transition-delay: .08s; }
.js .fn.reveal:nth-child(3) { transition-delay: .16s; }
.js .fn.reveal:nth-child(4) { transition-delay: .24s; }


/* ================= v7: dark zones as rounded sheets, light footer, tighter rhythm ================= */
.sec, .dark + .sec, .hero + .sec { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.hero { padding-bottom: clamp(4.5rem, 8vw, 7.5rem); }

.dark.zone { margin: 0 calc(var(--pad) * .4); border-radius: clamp(20px, 2.8vw, 40px); overflow: hidden; padding: clamp(4.5rem, 8vw, 7.5rem) 0; transition: transform 1.2s var(--ease-out), border-radius 1.2s var(--ease-out); transform-origin: center top; }
.js .dark.zone:not(.is-in) { transform: scale(.955); }
.dark.zone .wrap { padding-left: calc(var(--pad) * .6); padding-right: calc(var(--pad) * .6); }
.dark .fn::before { inset: -1px -100vw 0; }

.corp.dark .corp-title { color: #fff; }
.corp.dark .contact { border-bottom: 0; padding-bottom: 0; }

/* Scope lists as two quiet cards */
.scope > div { border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 2.4vw, 2rem) clamp(.5rem, 1vw, 1rem); }
.scope h3 { border-bottom: 0; padding-bottom: .5rem; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 400; letter-spacing: -.03em; }
.scope li:last-child { border-bottom: 0; }
.scope li { border-bottom-color: var(--hair); }
.scope .out { background: #f6f7f9; border-color: transparent; }

/* Light footer */
.site-footer { background: var(--bg); }
.footer-panel { color: var(--grey); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-panel .wordmark { color: var(--ink); }
.footer-panel .wordmark .light { color: var(--grey); }
.footer-panel a { color: var(--ink); }
.footer-panel a:hover { color: var(--accent); text-decoration: none; }
.foot-big { color: var(--ink); }
.foot-legal { border-top-color: var(--hair); }


/* v8: fewer repeats of company details */
.foot-grid > :nth-child(1) { grid-column: 1 / span 8; }
.foot-grid > :nth-child(2) { grid-column: 9 / span 2; }
.foot-grid > :nth-child(3) { grid-column: 11 / span 2; }
.foot-legal { margin-top: clamp(2.5rem, 5vw, 4rem); flex-wrap: nowrap; }
.foot-legal span:first-child { max-width: 46em; }
.foot-legal span:last-child { text-align: right; flex: none; max-width: 22em; }
@media (max-width: 899px) {
  .foot-grid > :nth-child(2), .foot-grid > :nth-child(3) { grid-column: span 6 !important; }
  .foot-legal { flex-wrap: wrap; } .foot-legal span:last-child { text-align: left; }
}


/* v9: corporate block without dead space */
.corp .sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.corp-name { display: flex; flex-direction: column; }
.corp-mail { margin-top: auto; padding-top: 2.5rem; display: block; }
.corp-mail .mail { font-size: clamp(1.4rem, 2.4vw, 2.3rem); }
.corp-mail { margin-top: 0; padding-top: clamp(2rem, 3.5vw, 3rem); }


/* v10: meridian globe in the corporate block */
.globe { width: clamp(170px, 17vw, 240px); height: auto; margin-top: auto; padding-top: 2.5rem; overflow: visible; }
.globe-grid * { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.globe .mer { transform-box: fill-box; transform-origin: center; animation: globe-spin 36s cubic-bezier(.37, 0, .63, 1) infinite; animation-delay: calc(var(--d) * -3s); }
.globe-zero { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.globe-dot { fill: var(--accent); }
.globe-ping { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: globe-ping 2.8s ease-out infinite; }
.globe text { font-size: 8.5px; fill: var(--p-text); letter-spacing: 0; }
@keyframes globe-spin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes globe-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
@media (max-width: 899px) { .globe { display: none; } }

.corp-name p:first-child { margin-top: 0; color: var(--p-text); font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.38; letter-spacing: -.018em; max-width: 22em; }
.globe { padding-top: 2rem; }


/* v11: projected globe with UK -> Canada arrow */
.globe { width: clamp(240px, 25vw, 350px); margin: auto; padding-top: 2.5rem; box-sizing: content-box; }
.globe-rim, .globe-lines { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .55; }
.globe-rim { stroke: rgba(255, 255, 255, .34); fill: rgba(255, 255, 255, .02); }
.globe-arc, .globe-head { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.globe-uk { fill: var(--accent); }
.globe-ca { fill: #fff; }
.globe text { font-size: 7.5px; fill: var(--p-text); }
@media (max-width: 899px) { .globe { display: block; width: min(260px, 70vw); margin: 0 auto; } }

.corp-mail { width: fit-content; max-width: 100%; }
.corp-mail .globe { display: block; margin: 2.25rem auto 0; padding-top: 0; max-width: 100%; }
@media (max-width: 899px) { .corp-mail .globe { margin: 2rem auto 0; } }


/* v12: dotted-land globe, Canada -> UK -> Europe */
.globe-land { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.15; stroke-linecap: round; }
.globe-rim { stroke: rgba(255, 255, 255, .18); fill: rgba(255, 255, 255, .025); }
.globe-arc { stroke: var(--accent); stroke-width: 1.1; opacity: .55; fill: none; }
.globe-fan { stroke: var(--accent); stroke-width: .7; opacity: .5; fill: none; }
.globe-nodes { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.globe-pulse { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 9 200; stroke-dashoffset: 9; }
.globe-pulse-main { animation: pulse-main 4.6s linear infinite; }
.globe-fan-pulses .globe-pulse { stroke-width: 1.1; animation: pulse-fan 4.6s linear infinite; }
@keyframes pulse-main { 0% { stroke-dashoffset: 9; } 46%, 100% { stroke-dashoffset: -100; } }
@keyframes pulse-fan { 0%, 44% { stroke-dashoffset: 9; } 82%, 100% { stroke-dashoffset: -100; } }
.globe-ping { vector-effect: non-scaling-stroke; stroke-width: 1; }
@keyframes globe-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

/* v13: operating model drawn with country shapes */
.schematic { display: block; padding: clamp(1rem, 3vw, 2.75rem); min-height: 0; }
.sch { width: 100%; height: auto; display: block; overflow: visible; }
.sch-m { display: none; }
@media (max-width: 899px) { .sch-d { display: none; } .sch-m { display: block; max-width: 420px; margin: 0 auto; } }
.sch .land { fill: none; stroke: rgba(255, 255, 255, .5); stroke-linecap: round; }
.sch .route { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.1; }
.sch .route-pulse { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 200; stroke-dashoffset: 7; animation: route-flow 3.6s linear infinite; animation-delay: calc(var(--d) * -1.2s); animation-play-state: paused; }
.schematic.in-view .route-pulse { animation-play-state: running; }
.sch .route-tag { fill: var(--panel); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.sch .route-label { fill: var(--p-text); }
.sch .dot-ca { fill: #fff; }
.sch .dot-uk { fill: var(--accent); }
.sch .dot-ping { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: globe-ping 2.8s ease-out infinite; }
.sch .name { fill: #fff; letter-spacing: -.02em; }
.sch .place { fill: var(--p-grey); }
@keyframes route-flow { from { stroke-dashoffset: 7; } to { stroke-dashoffset: -100; } }


/* v14: live hero map */
.chart { height: auto; aspect-ratio: 1000 / 358; cursor: crosshair; }
.chart .map { position: absolute; inset: 0; width: 100%; height: 100%; --u: .75; }
.map .px { transform: scale(var(--u)); }
.map .grat line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-land { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 3.5; stroke-linecap: round; }
.map-night { fill: #050a14; opacity: .62; }
.map-zero { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map .tick { font-size: 12px; fill: var(--p-grey); }
.map .tick-zero { fill: var(--accent); }
.map-route { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; }
.map-route-pulse { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 6 200; stroke-dashoffset: 6; animation: route-flow 4s linear infinite; }
.map .pin-ca { fill: #fff; }
.map .pin-uk { fill: var(--accent); }
.map .pin-ping { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: globe-ping 2.8s ease-out infinite; }
.map .pin-name { font-size: 17px; fill: #fff; letter-spacing: -.02em; paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
.map .pin-meta { font-size: 13px; fill: #c3cad6; paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
.map .clock { fill: #fff; font-variant-numeric: tabular-nums; }
.chart .cursor { z-index: 2; }
.chart-hint { z-index: 2; }
@media (max-width: 899px) {
  .chart { height: auto; }
  .map .pin-name { font-size: 14px; }
  .map .pin-meta { font-size: 11.5px; }
}
.chart { aspect-ratio: 1000 / 364; }
.chart-hint { right: auto; left: 1rem; }

/* v15: hero map extras */
.chart { aspect-ratio: 1000 / 413; }
.map-spot { fill: none; stroke: #fff; stroke-width: 4.4; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.chart.is-active .map-spot { opacity: 1; }
.map-land { stroke: rgba(255, 255, 255, .4); }

/* v16: single gap between hero and About */
.hero { padding-bottom: 0; }
