/* Goldcrest Advisory — Version 3
   Palette: white ground, darkest brand green for text, pale gold only as a
   fill/rule/hover/globe accent (it fails as text on white: 1.5:1), teals sparingly.
   Spacing on an 8px grid; display type tight, after the fin.com extraction. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f4f2ee;
  --surface: #ffffff;
  --ink: #103f46;          /* 11.3:1 on white */
  --ink-2: #1a4b52;
  --teal: #1a616c;         /* 6.9:1 */
  --muted: #5b6466;        /* 5.9:1 */
  --black: #0d1414;
  --gold: #d7ccb8;         /* fills, rules, hover; text only on green (7.3:1) */
  --gold-deep: #7a6845;    /* 5.3:1, for the rare gold-toned text on white */
  --line: rgba(16, 63, 70, .12);
  --line-2: rgba(16, 63, 70, .24);
  --danger: #a8432a;
  --serif: "Newsreader", "Source Serif 4", "Noto Naskh Arabic", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "IBM Plex Sans Arabic", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 72px;
  --text-col: clamp(280px, 32vw, 460px);
  /* Hero → Our network sit on the "brand" colour; Insights onward is white */
  --brand-bg: #ffffff;
  --brand-ink: var(--ink);
  --brand-muted: var(--muted);
  --brand-accent: var(--teal);
  --brand-line: var(--line-2);
}
/* Option A: lightest banner teal. White text on it is 3.3:1, so large text only. */
[data-theme="a"] { --brand-bg: #279bac; --brand-ink: #ffffff; --brand-muted: rgba(255, 255, 255, .92); --brand-accent: #ffffff; --brand-line: rgba(255, 255, 255, .45); }
/* Option B: darkest brand green. White on it is 11.3:1. */
[data-theme="b"] { --brand-bg: #103f46; --brand-ink: #ffffff; --brand-muted: rgba(255, 255, 255, .8); --brand-accent: #d7ccb8; --brand-line: rgba(255, 255, 255, .3); }

* { box-sizing: border-box; }
/* overflow-anchor: none — the pinned chart redraws and resizes as you scroll; browser scroll anchoring would
   "correct" for that and make the page jump (most visibly after switching to M&A) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); overflow-anchor: none; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a, button, input, select, textarea, label { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
section[id] { scroll-margin-top: var(--header-h); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 16px;
  background: var(--ink); color: var(--bg); font: 500 14px/1 var(--sans);
  transform: translateY(-150%); transition: transform .2s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.draft-ribbon {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, .88); border: 1px solid var(--line-2);
  padding: 8px 14px; backdrop-filter: blur(8px); white-space: nowrap;
}

/* Pause control for the spinning globe (motion > 5s needs a stop) */

/* ---------- Globe layer ---------- */
.globe-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--brand-bg); }
#globe { width: 100%; height: 100%; display: block; }
.globe-labels { position: absolute; inset: 0; }
.g-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -150%);
  font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding: 7px 10px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2);
  opacity: 0; transition: opacity .25s var(--ease-out); white-space: nowrap; will-change: transform;
}
.g-label.big { font-size: 12px; padding: 9px 12px; }
.g-label.hq { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.g-label.hq::before { content: "HQ · "; color: var(--gold); }
.g-label.on { opacity: 1; }
[data-theme] .g-label { background: #fff; border-color: #fff; color: #103f46; }
[data-theme] .g-label.hq { background: #d7ccb8; border-color: #d7ccb8; color: #103f46; }
[data-theme] .g-label.hq::before { color: #103f46; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px; min-height: var(--header-h);
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-tile { width: 32px; height: 44px; display: grid; place-items: center; flex: none; }
.brand-tile img { width: 31px; height: auto; display: block; }
/* Two stacked lines, together about the height of the logo tile */
.brand-name { display: flex; flex-direction: column; font: 400 20px/.9 var(--serif); letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
/* Line the top of "Goldcrest" up with the top of the shield (row 39 of 180 in the crest image), not the crown;
   a transform so the header's height and centring stay as they are */
.brand-name { transform: translateY(6.4px); }
.brand-name .bn-1 { color: #8f7a4e; }   /* logo gold, deepened to stay legible on white */
.brand-name .bn-2 { color: var(--ink); }
.main-nav { display: flex; gap: 32px; margin-left: 16px; }
.main-nav a { position: relative; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color .2s ease; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
[data-theme] .site-header.on-brand .brand-name .bn-1 { color: #d7ccb8; }   /* logo gold */
[data-theme] .site-header.on-brand .brand-name .bn-2 { color: #fff; }
[data-theme] .site-header.on-brand .main-nav a { color: rgba(255, 255, 255, .88); }
[data-theme] .site-header.on-brand .main-nav a::after { background: #fff; }
[data-theme] .site-header.on-brand .lang-more-btn { color: #fff; border-color: rgba(255, 255, 255, .5); }
[data-theme] .site-header.on-brand .btn-gold { background: #fff; border-color: #fff; color: var(--ink); }
[data-theme] .site-header.on-brand.scrolled { background: color-mix(in srgb, var(--brand-bg) 88%, transparent); border-color: rgba(255, 255, 255, .16); }

/* Flag language selector (kohenavocats.com flag row) */
.langs { display: flex; align-items: center; gap: 12px; }
.lang-flags { display: flex; align-items: center; gap: 14px; }
.flag-btn {
  appearance: none; border: 0; padding: 6px; margin: -6px; background: none; cursor: pointer; line-height: 0;
  opacity: .72; filter: saturate(.85); transition: opacity .2s ease, transform .16s var(--ease-out), filter .2s ease;
}
.flag-btn:active { transform: scale(.92); }
.flag-btn svg, .lang-menu svg { width: 20px; height: 14px; display: block; box-shadow: 0 0 0 1px var(--line-2); }
.lang-more { position: relative; }
.lang-more-btn {
  width: 28px; height: 28px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.lang-more-btn svg { width: 17px; height: 17px; }
.lang-more-btn:active { transform: scale(.94); }
.lang-more-btn[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 216px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -16px rgba(16, 63, 70, .22); transform-origin: top right;
  animation: pop .18s var(--ease-out);
}
[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px; border: 0;
  background: none; color: var(--ink); font: 14px var(--sans); cursor: pointer; text-align: start;
  transition: background-color .15s ease;
}
.lang-menu button[aria-current="true"] { background: var(--bg-2); }
.lang-menu button[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--teal); }
.lang-menu .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14.5px/1 var(--sans); letter-spacing: .01em; padding: 16px 24px; cursor: pointer;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--ink); color: var(--bg); border-color: var(--ink); }   /* primary */
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-sm { padding: 12px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Shared text ---------- */
main, .site-footer { position: relative; z-index: 1; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 24px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold-deep); }
.lede { color: var(--muted); font-size: 16px; line-height: 1.65; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.split-text { max-width: var(--text-col); }
.split-text h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; margin-bottom: 24px; }
.split-text h2 em { color: var(--teal); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 1 · Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; text-align: center; padding: 0 var(--gutter); position: relative; }
.hero-inner { position: absolute; inset: 0; will-change: opacity, transform; }
/* Title and buttons sit centred in the space between the header and the globe's rim, leaving the globe clear */
.hero-stack { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + clamp(32px, 8vh, 96px)); bottom: calc(var(--rim-bottom, 38%) + clamp(16px, 3vh, 36px)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 4vh, 40px); }
.hero h1 { max-width: 1100px; margin: 0 auto; white-space: pre-line; }
.hero h1 { font-size: clamp(40px, min(8vw, 12.5vh), 116px); line-height: .96; letter-spacing: -.03em; color: var(--brand-ink); }
.hero-sub { margin: 32px auto 0; max-width: 480px; color: var(--brand-muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }
.hero-cta { display: flex; justify-content: center; }
.hero .btn { padding: 22px 40px; font-size: 16px; }
.hero h1, .hero-sub, .hero-cta { animation: rise .9s var(--ease-out) both; }
.hero-cta { animation-delay: .1s; }
/* Sunlit gold shimmer across the title: as the light passes, the letters warm toward the globe's gold (30% softened) with a
   bright specular core and a faint warm glow, drifting slowly left to right, 2.5s in every 5s, from load */
.hero h1 {
  background: linear-gradient(105deg, var(--brand-ink) 0 35%, #e3dbcd 42%, #cec1a5 46.5%, #fff8e7 50%, #cec1a5 53.5%, #e3dbcd 58%, var(--brand-ink) 65% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: rise .9s var(--ease-out) both, glint 5s cubic-bezier(.45, .05, .55, .95) .4s infinite;
}
@keyframes glint {
  0% { background-position: 100% 0; filter: drop-shadow(0 0 0 rgba(215, 204, 184, 0)); }
  25% { filter: drop-shadow(0 0 14px rgba(215, 204, 184, .25)); }
  50%, 100% { background-position: 0 0; filter: drop-shadow(0 0 0 rgba(215, 204, 184, 0)); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.scroll-cue { position: absolute; bottom: 72px; left: 50%; width: 1px; height: 48px; background: var(--brand-line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--brand-ink); animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- 2 · Journey (scroll space only; the globe does the work) ---------- */
.journey { height: 420vh; position: relative; }

/* ---------- 3 · Our network ---------- */
.network { min-height: 130vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.network h2, .network .lede { color: var(--brand-ink); }
.network .lede { color: var(--brand-muted); }
.network .kicker { color: var(--brand-accent); }
.network h2 em { color: var(--brand-accent); }
[data-theme] .network .kicker::before { background: currentColor; }
[data-theme] .hero .btn-gold { background: #fff; border-color: #fff; color: var(--ink); }
[data-theme] .hero .btn-ghost { background: transparent; border-color: var(--brand-line); color: #fff; }
/* Pressed or keyboard-selected (hover is below, for mouse devices only): both hero buttons turn the globe's gold */
[data-theme] .hero .btn:active, [data-theme] .hero .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
/* Insights onward is opaque white, so it slides over the brand colour and the globe */
.markets, .services, .kpi-band, .contact { position: relative; background: #fff; }

/* ---------- 4 · Insights (usvc.com scroll graph) ---------- */
.markets-track { height: 270vh; position: relative; }   /* lines draw, then the text joins */
.markets-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 16px) var(--gutter) 48px; will-change: opacity, transform; }
.markets-grid {
  --split: 0;
  width: 100%; height: min(620px, 100%); display: grid; align-items: center;
  grid-template-columns: calc(var(--text-col) * var(--split)) minmax(0, 1fr);
  column-gap: calc(clamp(32px, 6vw, 96px) * var(--split));
}
.mk-text { min-width: 0; overflow: hidden; opacity: var(--split); }
.mk-text .split-text { width: var(--text-col); transform: translateX(calc((1 - var(--split)) * -40px)); }
.markets-panel {
  height: 100%; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 36px);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(16, 63, 70, .2);
}
.seg { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--line-2); margin-top: 32px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 500 15.5px/1 var(--sans); letter-spacing: .01em; padding: 18px 34px; min-width: 132px; cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--bg); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--ink); transition: transform .32s var(--ease-in-out), width .32s var(--ease-in-out); }
.chart-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; min-height: 22px; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.lg i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lg b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart { flex: 1; min-height: 200px; position: relative; margin-top: 16px; cursor: crosshair; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.chart text { font: 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.fig-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.fig-title { font: 500 13px/1.3 var(--sans); color: var(--ink); letter-spacing: .01em; }
.chip { flex: none; font: 500 11.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); padding: 6px 10px; border: 1px solid var(--line-2); }
.lg svg { width: 18px; height: 4px; flex: none; }
.chart text.cagr { fill: #7a6845; font-size: 11.5px; font-weight: 600; }
.chart rect[data-i] { cursor: pointer; }
.chart .bar-tip { pointer-events: none; }
.chart .bar-tip text { fill: #fff; font-size: 11.5px; font-weight: 600; }
.chart text.dl { fill: var(--ink); font-size: 11.5px; }
.chart text.dl .dlv { font-weight: 600; }
.chart-tip {
  position: absolute; top: 8px; left: 0; z-index: 3; pointer-events: none; display: grid; gap: 6px; min-width: 180px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 16px 32px -16px rgba(16, 63, 70, .3);
  padding: 10px 12px; font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.chart-tip strong { font-weight: 600; }
.chart-tip span { color: var(--muted); }
.chart-tip .tr { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.tr i { width: 10px; height: 3px; flex: none; }
.tr b { margin-left: auto; padding-left: 16px; font-weight: 600; }
/* Sources sit tight under the axis (less space above than the panel's padding below) */
.chart-note { font-size: 10.5px; line-height: 1.55; color: #6b7375; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.chart-note-below { display: none; }
.chart-note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(107, 115, 117, .45); text-underline-offset: 2px; }
.insights-notes { position: relative; padding: 0 var(--gutter) 12vh; display: grid; gap: 12px; }
.data-table { border-top: 1px solid var(--line); }
.data-table summary { cursor: pointer; padding: 14px 0; font-size: 13.5px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.data-table summary::-webkit-details-marker { display: none; }
.data-table summary::before { content: "+"; width: 16px; color: var(--gold-deep); font-size: 16px; line-height: 1; transition: transform .2s var(--ease-out); }
.data-table[open] summary::before { transform: rotate(45deg); }
.tscroll { overflow-x: auto; padding-bottom: 16px; }
.tscroll table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 100%; }
.tscroll th, .tscroll td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tscroll th:first-child { text-align: left; }
.tscroll thead th { font-weight: 500; color: var(--muted); }
.sources { border-top: 1px solid var(--line); padding-top: 16px; }
.notes-h { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sources li, .disclosure { font-size: 12px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.chart-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- 5 · Services ---------- */
.services { padding: 6vh var(--gutter) 14vh; }
.services-grid { display: grid; grid-template-columns: minmax(0, var(--text-col)) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.services .split-text { position: sticky; top: calc(var(--header-h) + 48px); }
.keywords { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords li { font-size: 12px; letter-spacing: .04em; color: var(--ink); padding: 8px 12px; border: 1px solid var(--line-2); }
.svc-sub { font: italic 400 clamp(18px, 1.6vw, 22px)/1.35 var(--serif); color: var(--teal); margin: -8px 0 24px; }
.transact { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.transact div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
.transact dt { font: 500 11px/1.7 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.transact dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
/* Buy-side | Sell-side switch, same feel as the chart toggle */
.svc-toggle { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--line-2); margin-top: 32px; }
.svc-toggle button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 500 15.5px/1 var(--sans); letter-spacing: .01em; padding: 18px 34px; min-width: 132px; cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.svc-toggle button[aria-selected="true"] { color: #fff; }
.svc-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; background: var(--ink); transition: transform .32s var(--ease-in-out), width .32s var(--ease-in-out); }
.svc-list { animation: fadeUp .35s var(--ease-out); }
.svc-tagline { font: italic 400 22px/1.3 var(--serif); color: var(--teal); margin-bottom: 8px; }
.accordion { border-top: 1px solid var(--line-2); }
.acc-item { border-bottom: 1px solid var(--line-2); }
.acc-item h3 { margin: 0; font: inherit; }
.acc-btn {
  width: 100%; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 16px;
  padding: 28px 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: start;
}
.acc-num { font: 500 12px/1 var(--sans); letter-spacing: .08em; color: var(--gold-deep); }
.acc-title { font: 400 clamp(22px, 2.4vw, 32px)/1.15 var(--serif); letter-spacing: -.015em; }
.acc-icon { position: relative; width: 16px; height: 16px; justify-self: end; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p strong { font-weight: 600; color: var(--ink); }
.acc-inner p { padding: 0 40px 28px 64px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 640px; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s var(--ease-out); }
.acc-item.open .acc-inner p { opacity: 1; transform: none; }

/* ---------- 7 · Connect ---------- */
.contact { padding: 10vh var(--gutter) 12vh; }
.contact-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.contact-head .kicker { justify-content: center; }
.contact-head .kicker::after { content: ""; width: 24px; height: 1px; background: var(--gold-deep); }
.contact-head h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; margin-bottom: 24px; }
.contact-head .lede { max-width: 480px; margin: 0 auto; }
.form-card { max-width: 1080px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 40px); box-shadow: 0 40px 80px -48px rgba(16, 63, 70, .2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { position: relative; border: 0; background: none; color: var(--muted); font: 500 16px var(--sans); padding: 0 0 16px; cursor: pointer; transition: color .2s ease; }
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.inq-form { display: grid; gap: 18px; animation: fadeUp .4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inq-form label, .inq-form legend { display: grid; gap: 8px; font-size: 12.5px; letter-spacing: .01em; color: var(--muted); min-width: 0; }
.inq-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inq-form legend { display: block; margin-bottom: 10px; padding: 0; }
.hint { color: #7b8384; margin-left: 6px; }
.inq-form input:not([type=checkbox]):not([type=radio]), .inq-form select, .inq-form textarea {
  width: 100%; font: 16px var(--sans); color: var(--ink); background-color: #fff;
  border: 1px solid var(--line-2); border-radius: 0; padding: 10px 12px; min-height: 44px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.inq-form ::placeholder { color: #7b8384; }
.inq-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir="rtl"] .inq-form select { background-position: 18px 52%, 13px 52%; }
.inq-form select option { background-color: #fff; color: var(--ink); }
.inq-form textarea { resize: vertical; min-height: 92px; }
.inq-form input:focus-visible, .inq-form select:focus-visible, .inq-form textarea:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold);
}
.inq-form .invalid, .inq-form .invalid input:not([type=radio]) { border-color: var(--danger) !important; }
.form-error { font-size: 13px; color: var(--danger); }
.form-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-form .chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); background: #fff;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.chips label:active span { transform: scale(.97); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.invalid .chips span, .chips.invalid span { border-color: var(--danger); }
.timing-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.or { font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.date-field { display: block !important; width: 200px; }
.range-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.dash { color: var(--muted); }
.ticket-row { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.ticket-row input[name=ticket] { flex: 1; }
.row-need { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; align-items: start; }
.form-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-end .consent { max-width: 560px; }
.form-end .btn { flex: none; min-width: 240px; }
.inq-form .check, .inq-form .consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.check input, .consent input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; }
.inq-form .consent { color: var(--muted); font-size: 13px; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.consent.invalid span { color: var(--danger); }
.form-done { text-align: center; padding: 56px 8px; color: var(--ink); animation: fadeUp .5s var(--ease-out); }
.form-done svg { width: 48px; height: 48px; color: var(--teal); }
.form-done h3 { font-size: 40px; color: var(--ink); margin: 24px 0 8px; }
.form-done p { color: var(--muted); }
.form-done .btn { margin-top: 24px; }

/* ---------- 6 · KPI band (marquee) ---------- */
.kpi-band {
  position: relative; overflow: hidden; background: #fff; padding: 40px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* Soft white edges (overlays, so the brand colour behind the page never shows through) */
.kpi-band::before, .kpi-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
.kpi-band::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.kpi-band::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.kpi-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.kpi-list { display: flex; list-style: none; margin: 0; padding: 0; }
.kpi { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 0 56px; white-space: nowrap; }
.kpi::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; background: var(--gold); transform: translate(50%, -50%) rotate(45deg); }
.kpi b { font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .kpi-track { animation-direction: reverse; }
/* ---------- Footer: dark green with the brand gradient band ---------- */
.site-footer { background: var(--ink); color: var(--bg); }
.footer-main { padding: 64px var(--gutter) calc(88px + env(safe-area-inset-bottom)); }
.footer-top { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand .brand-name .bn-1 { color: #d7ccb8; }
.footer-brand .brand-name .bn-2 { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, .74); font-size: 14px; margin-top: 20px; max-width: 280px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.foot-h { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.footer-cols a { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 10px; transition: color .2s ease; }
.footer-cols address { font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.footer-cols .foot-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; }
.foot-social svg { width: 16px; height: 16px; flex: none; }
.footer-bottom { max-width: 1200px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid rgba(215, 204, 184, .24); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: calc(var(--header-h) + 64px) var(--gutter) 120px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 16px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 48px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: #2b3a3d; font-size: 15.5px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 12px var(--gutter); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.back-link { font-size: 14px; color: var(--muted); }

/* ---------- Hover (mouse only; avoids sticky hover on touch) ---------- */
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover, .back-link:hover { color: var(--ink); }
  .main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .flag-btn:hover { opacity: 1; filter: none; }
  .lang-more-btn:hover { background: var(--gold); border-color: var(--gold); }
  .lang-menu button:hover { background: var(--bg-2); }
  .btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .btn-ghost:hover { background: var(--gold); border-color: var(--gold); }
  .seg button:not([aria-selected="true"]):hover { color: var(--ink); }
  .tabs button:hover { color: var(--ink); }
  .chips label:hover span { border-color: var(--ink); }
  .chips label:hover input:checked + span { background: var(--ink-2); }
  .footer-cols a:hover { color: var(--gold); }
  .kpi-band:hover .kpi-track { animation-play-state: paused; }
  [data-theme] .hero .btn:hover, [data-theme] .site-header.on-brand .btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .acc-btn:hover .acc-title { color: var(--teal); }
  .svc-toggle button:not([aria-selected="true"]):hover { color: var(--ink); }
}

/* ---------- RTL ---------- */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: 16px; }
[dir="rtl"] .header-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hint { margin-left: 0; margin-right: 6px; }

/* ---------- Non-Latin scripts ---------- */
/* Tracking breaks Arabic letter joins; Arabic and Chinese have no true italics */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .kicker, :lang(ar) .btn, :lang(ar) .main-nav a { letter-spacing: 0; }
:lang(ar) em, :lang(zh) em { font-style: normal; }
:lang(ar) .hero h1 { line-height: 1.3; }
:lang(zh) .hero h1 { line-height: 1.15; letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .markets-panel .chart-note { display: none; }
  .chart-note-below { display: block; position: relative; margin: 0 var(--gutter); padding: 16px 0 8vh; border-top: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { gap: 12px; }
  .header-right { gap: 12px; }
  .header-right .btn { display: none; }
  .draft-ribbon { left: auto; right: calc(16px + env(safe-area-inset-right)); transform: none; padding: 8px 10px; font-size: 9.5px; }
  .brand-tile { width: 29px; height: 40px; }
  .brand-tile img { width: 28px; }
  .brand-name { font-size: 17px; transform: translateY(4.7px); }
  .lang-flags { gap: 12px; }
  .lang-flags .flag-btn:nth-child(n+4) { display: none; }
  .hero-sub { max-width: 340px; }
  .journey { height: 360vh; }
  .network { align-items: flex-end; padding-bottom: 18vh; position: relative; }
  .network .split-text { position: relative; }
  .network::before { content: ""; position: absolute; inset: auto 0 0; height: 75vh; background: linear-gradient(color-mix(in srgb, var(--brand-bg) 0%, transparent), color-mix(in srgb, var(--brand-bg) 95%, transparent) 45%); }
  .markets-sticky { padding: calc(var(--header-h) + 8px) 16px 64px; }
  /* Phone: the chart fills the screen, then the text rises over it */
  .markets-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100%; column-gap: 0; row-gap: 14px; align-items: stretch; }
  .mk-text { opacity: 1; overflow: visible; }
  .markets .split-text h2 { font-size: 27px; margin-bottom: 8px; }
  .markets .split-text .kicker { margin-bottom: 12px; }
  .markets .lede { font-size: 13.5px; line-height: 1.5; }
  .markets .seg { margin-top: 14px; }
  .markets .split-text, .services .split-text { max-width: none; }
  /* Phones: no pinning. The chart scrolls with the page (one full screen) and draws in as it arrives, so a
     flick never gets "stuck" on a static chart and then shoots past Services */
  .markets-track { height: auto; }
  .markets-sticky { position: relative; height: 100svh; }
  .chart-note { font-size: 10px; }
  .fig-title { font-size: 12px; }
  .mk-text .split-text { width: auto; transform: none; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services .split-text { position: static; }
  .acc-btn { grid-template-columns: 36px 1fr 20px; padding: 22px 0; }
  .acc-inner p { padding: 0 8px 22px 52px; font-size: 15px; }
  .split-text h2 { font-size: 34px; margin-bottom: 12px; }
  .markets .lede { font-size: 14px; }
  .seg { margin-top: 16px; }
  .seg, .svc-toggle { display: flex; width: 100%; }
  .seg button, .svc-toggle button { flex: 1; min-width: 0; padding: 15px 12px; font-size: 14.5px; }
  .markets-panel { padding: 16px; }
  .contact-head { margin-bottom: 40px; }
  .grid3 { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 96px minmax(0, 1fr); }
  .range-row .dash { display: none; }
  .row-need, .row2 { grid-template-columns: 1fr; }
  .form-end { flex-direction: column; align-items: stretch; }
  .form-end .btn { width: 100%; }
  .hero .btn { padding: 18px 28px; font-size: 15px; }
  .hero h1 { font-size: clamp(34px, 10vw, 60px); line-height: 1.02; }
  .range-row input[name=val_max] { grid-column: 2; }
  .date-field { width: 100%; }
  .inq-form textarea { min-height: 132px; }
  .g-label.big { font-size: 9.5px; padding: 5px 7px; }
  .kpi-band { padding: 28px 0; }
  .kpi { padding: 0 28px; gap: 10px; }
  .kpi b { font-size: 40px; }
  .kpi span { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep opacity fades, drop movement */
  *, *::before, *::after { animation-duration: .2s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero h1, .hero-sub, .hero-cta, .inq-form, .form-done { animation-name: fadeOnly !important; }
  .hero h1 { -webkit-text-fill-color: currentColor; background: none; }   /* no glint */
  .reveal { transform: none; transition: opacity .3s ease !important; }
  /* Finished charts, shown statically without pinning */
  .markets-track { height: auto; }
  .markets-sticky { position: relative; height: auto; min-height: 100vh; }
  .mk-text { opacity: 1; }
  .kpi-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; }
  .kpi-list[aria-hidden] { display: none; }
  .kpi-band::before, .kpi-band::after { display: none; }
  .scroll-cue span { animation: none !important; }
}
@keyframes fadeOnly { from { opacity: 0; } }

/* Honeypot: invisible to people (no off-screen offset, which would scroll RTL pages), still in the form for bots */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
button[aria-busy=true] { opacity: .6; cursor: progress; }

/* ---------- Rounded system: Apple-style soft corners on every box and control, no pills ---------- */
:root { --r-card: 20px; --r-ctl: 12px; --r-field: 10px; --r-sm: 8px; }
.btn { border-radius: var(--r-ctl); }
.btn-sm { border-radius: 10px; }
.seg, .svc-toggle { border-radius: 14px; }
.seg-thumb, .svc-thumb { border-radius: 10px; }
.chips span { border-radius: var(--r-field); }
.chip { border-radius: 6px; }
.lang-more-btn { border-radius: var(--r-sm); }
.markets-panel, .form-card { border-radius: var(--r-card); }
.lang-menu { border-radius: 14px; }
.lang-menu button { border-radius: var(--r-sm); }
.inq-form input:not([type=checkbox]):not([type=radio]), .inq-form select, .inq-form textarea { border-radius: var(--r-field); }
.inq-form input[type=checkbox] { border-radius: 4px; }
