/* ============================================================
   GTS HOLDINGS — site styles
   Brand: GTS Branding Direction (Sebgency, October 2026, p.8)
   Order: tokens → base → utilities → buttons → header + menu
          → hero → ticker → sections → about → global presence → group companies
          → contact → footer → motion → responsive
   ============================================================ */

:root {
  /* Brand palette + working tints */
  --green-950: #031A15;
  --green-900: #04271F;   /* Deep green */
  --green-800: #073D30;   /* Green */
  --green-700: #0C4B3B;
  --green-600: #135A47;
  --gold:      #BA8415;   /* Gold */
  --gold-soft: #D6A43A;
  --gold-pale: #E9CE8A;
  --cream:     #CDC4AB;   /* Cream */
  --cream-100: #E9E3D2;
  --cream-50:  #F3EFE4;
  --paper:     #FBF9F4;
  --ivory:     #EDE6D3;   /* headline colour on dark */
  --ink:       #062E24;
  --ink-soft:  rgba(6,46,36,.72);
  --ink-faint: rgba(6,46,36,.45);

  --line:        rgba(205,196,171,.14);
  --line-strong: rgba(205,196,171,.28);
  --line-gold:   rgba(186,132,21,.5);
  --line-ink:    rgba(7,61,48,.12);

  /* Brand face is Halenoir (Bold + Compact Regular). Figtree stands in until a web licence is installed. */
  --font-display: "Halenoir", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Halenoir Compact", "Halenoir", "Figtree", "Helvetica Neue", Arial, sans-serif;

  --radius-xl: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --header-h: 72px;

  /* Texture: film grain, inline SVG */
  --grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green-900); color: var(--cream); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--green-950); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--green-950); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.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; }

/* ---------- Utilities ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-soft); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow .num { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .1em; padding: 4px 7px 3px; border: 1px solid var(--line-gold); border-radius: 5px; line-height: 1; }
.on-light .eyebrow { color: #8F6510; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.5em; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; overflow: hidden; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 12px 30px -14px rgba(186,132,21,.8); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(214,164,58,.9); }
.btn-gold:hover::after { transform: translateX(130%); }
.btn-ghost { color: var(--ivory); border-color: var(--line-strong); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-pale); transform: translateY(-2px); }
.btn-glass { background: rgba(205,196,171,.1); border-color: var(--line-strong); color: var(--cream); }
.btn-glass:hover { background: rgba(205,196,171,.18); }
.btn-glass.ok { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.btn-sm { padding: .78em 1.15em; font-size: 14px; }

/* ---------- Header: floating pill ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: max(12px, env(safe-area-inset-top, 0px)); pointer-events: none; }
header.site .wrap { pointer-events: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(4,39,31,.5); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
header.site.scrolled .bar { background: rgba(4,39,31,.9); border-color: rgba(205,196,171,.22); box-shadow: 0 20px 50px -26px rgba(0,0,0,.75); }
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
nav.main { display: flex; align-items: center; gap: 10px; }
nav.main ul { display: flex; gap: 2px; }
nav.main a.link { position: relative; display: block; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px; color: var(--cream); transition: background .3s var(--ease), color .3s var(--ease); }
nav.main a.link:hover { background: rgba(205,196,171,.08); color: #fff; }
nav.main a.link[aria-current="true"] { color: var(--gold-pale); }
nav.main a.link[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-soft); }

.menu-btn { display: none; align-items: center; gap: 10px; background: rgba(205,196,171,.08); border: 1px solid transparent; color: var(--cream); padding: 11px 14px 11px 16px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background .3s; }
.menu-btn:hover { background: rgba(205,196,171,.14); }
.menu-btn .lines { position: relative; width: 18px; height: 12px; }
.menu-btn .lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.menu-btn .lines i:nth-child(1) { top: 0; }
.menu-btn .lines i:nth-child(2) { top: 5.25px; }
.menu-btn .lines i:nth-child(3) { top: 10.5px; }
.menu-open .menu-btn .lines i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu-open .menu-btn .lines i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .lines i:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Full-screen mobile menu */
.menu-overlay { position: fixed; inset: 0; z-index: 35; display: grid; align-content: center; padding: calc(var(--header-h) + 24px) var(--gutter-r) 40px var(--gutter-l); background: var(--green-950); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; overflow: hidden; }
.menu-overlay::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 100%, rgba(186,132,21,.16), transparent 60%); }
.menu-overlay .mark { position: absolute; right: -18%; bottom: -6%; width: 70vw; max-width: 520px; opacity: .08; pointer-events: none; }
.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu-overlay nav { position: relative; }
.menu-overlay a.m-link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 8.5vw, 52px); letter-spacing: -.03em; color: var(--ivory); opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .3s; }
.menu-overlay a.m-link small { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--gold-soft); text-transform: uppercase; }
.menu-overlay a.m-link:hover { color: var(--gold-pale); }
.menu-open .menu-overlay a.m-link { opacity: 1; transform: none; transition-delay: calc(90ms + var(--i, 0) * 70ms); }
.menu-overlay .m-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; opacity: 0; transition: opacity .6s .45s; }
.menu-open .menu-overlay .m-foot { opacity: 1; }
.menu-overlay .m-foot a.mail { text-decoration: none; color: var(--cream); font-size: 15px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-900); padding-top: calc(var(--header-h) + 20px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,39,31,0) 78%, var(--green-900) 100%), radial-gradient(70% 60% at 0% 100%, rgba(186,132,21,.16), transparent 60%), radial-gradient(60% 50% at 100% 0%, rgba(12,75,59,.95), transparent 65%); }   /* bottom fade so the hero blends into About */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .18; mix-blend-mode: overlay; }
.hero-mark { position: absolute; left: -4%; bottom: -10%; width: min(60vw, 760px); opacity: .075; pointer-events: none; animation: floaty 16s ease-in-out infinite alternate; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100vh - var(--header-h) - 20px); min-height: calc(100svh - var(--header-h) - 20px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-copy { display: grid; gap: clamp(22px, 2.6vw, 32px); align-content: center; }
/* Hero title: the logo's own letterforms (Halenoir), cut from assets/wordmark.png and used as masks so they can be recoloured */
.hero h1 { display: grid; gap: clamp(14px, 1.6vw, 22px); justify-items: start; }
.hero h1 .w { display: block; background-color: currentColor; -webkit-mask: var(--m) no-repeat left center / contain; mask: var(--m) no-repeat left center / contain; }
.hero h1 .w-gts { --m: url("assets/wordmark-gts.png"); color: var(--gold); width: clamp(160px, 21vw, 290px); aspect-ratio: 430 / 175; }
.hero h1 .w-holdings { --m: url("assets/wordmark-holdings.png"); color: var(--ivory); width: min(100%, 600px); aspect-ratio: 1087 / 168; }
.hero .lede { color: var(--cream); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.facts { display: flex; flex-wrap: wrap; margin: 8px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-right: clamp(20px, 2.6vw, 36px); margin-right: clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--line); }
.facts > div:last-child { border: 0; margin: 0; padding: 0; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ivory); }
.facts dt { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(205,196,171,.6); }

.hero-photo-wrap { position: relative; width: 100%; max-width: 560px; justify-self: end; }
.frame { position: absolute; inset: -14px; border: 1px solid rgba(186,132,21,.28); border-radius: calc(var(--radius-xl) + 14px); pointer-events: none; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 5 / 6; max-height: 660px; border-radius: var(--radius-xl); overflow: hidden; background: var(--green-800); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 50%; transform: translateY(calc(var(--py, 0px) - 6%)); will-change: transform; }
.hero-photo .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,39,31,.1), rgba(4,39,31,0) 30%, rgba(4,39,31,0) 55%, rgba(4,39,31,.8) 100%), linear-gradient(90deg, rgba(4,39,31,.35), transparent 40%); }
.hero-photo .grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .32; mix-blend-mode: overlay; pointer-events: none; }

.scroll-cue { position: absolute; left: var(--gutter-l); bottom: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(205,196,171,.6); text-decoration: none; }
.scroll-cue i { position: relative; width: 36px; height: 1px; background: rgba(205,196,171,.3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold-soft); transform: translateX(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { transform: translateX(100%); } }
@keyframes floaty { to { transform: translateY(-18px); } }

/* ---------- Capabilities ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--green-950); overflow: hidden; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: flex; width: max-content; animation: slide 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--font-display); font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: rgba(205,196,171,.62); }
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); opacity: .9; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: calc(var(--header-h) + 20px); }
.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }
.section h2 { font-size: clamp(36px, 4.8vw, 64px); color: var(--ivory); }
.section h2 em { font-style: normal; color: var(--gold-soft); }
.on-light { background: var(--cream-50); color: var(--ink); }
.on-light h2 { color: var(--ink); }
.on-light h2 em { color: var(--gold); }
.on-light .lede { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split .col-label { align-self: stretch; }
.split .col-label .sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.split .col-body { display: grid; gap: 24px; }

/* ---------- About ---------- */
.about { background: var(--green-900); }
.about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 100% 20%, rgba(186,132,21,.08), transparent 60%); pointer-events: none; }
.about .wrap { position: relative; }

.heritage { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4.5vw, 64px); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(186,132,21,.14), rgba(186,132,21,0) 55%), var(--green-800); border: 1px solid var(--line); overflow: hidden; }
.heritage::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.heritage-mark { position: relative; aspect-ratio: 1; width: min(100%, 380px); margin-inline: auto; display: grid; place-items: center; }
.heritage-mark::before, .heritage-mark::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(186,132,21,.28); }
.heritage-mark::before { inset: 0; }
.heritage-mark::after { inset: 11%; border-style: dashed; opacity: .7; animation: spin 90s linear infinite; }
.heritage-mark .glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(186,132,21,.35), transparent 70%); filter: blur(14px); }
.heritage-mark img { position: relative; width: 68%; }
.heritage-copy { position: relative; display: grid; gap: 18px; }
.heritage-copy h3 { font-size: clamp(26px, 2.8vw, 38px); color: var(--ivory); }
.heritage-copy p { color: rgba(205,196,171,.85); max-width: 52ch; }
.heritage-copy .vals { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 6px; }   /* always one line */
.heritage-copy .vals span { flex: 0 1 auto; min-width: 0; white-space: nowrap; text-align: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-gold); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-pale); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Global presence ---------- */
.presence { background: var(--cream-50); border-radius: 40px 40px 0 0; }
.presence .wrap { position: relative; }
.presence-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; margin-top: clamp(44px, 5vw, 64px); }

/* Globe panel */
.globe-panel { position: relative; display: grid; place-items: center; padding: clamp(18px, 3vw, 34px); border-radius: var(--radius-xl); background: radial-gradient(70% 60% at 50% 42%, var(--green-700), var(--green-900) 78%); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.globe-panel::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
.globe { position: relative; z-index: 1; width: min(100%, 500px); height: auto; display: block; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline: none; border-radius: 50%; }
.globe.dragging { cursor: grabbing; }
.globe:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 10px; }
.globe .limb { fill: none; stroke: #D6A43A; stroke-width: 1.2; stroke-opacity: .85; }
.globe .grid-front { fill: none; stroke: #D6A43A; stroke-width: .8; stroke-opacity: .28; }
.globe .grid-back { fill: none; stroke: #D6A43A; stroke-width: .8; stroke-opacity: .07; }
.globe .borders-front { fill: none; stroke: #E9CE8A; stroke-width: .9; stroke-opacity: .72; stroke-linejoin: round; stroke-linecap: round; }
.globe .borders-back { fill: none; stroke: #E9CE8A; stroke-width: .8; stroke-opacity: .09; stroke-linejoin: round; }
.globe .route-front { fill: none; stroke: #fff; stroke-width: 2.4; stroke-opacity: .9; stroke-dasharray: 1 8; stroke-linecap: round; animation: flow 4s linear infinite; }
.globe .route-back { fill: none; stroke: #fff; stroke-width: 2; stroke-opacity: .14; stroke-dasharray: 1 8; stroke-linecap: round; }
.globe .fill { fill: #D6A43A; fill-opacity: .3; stroke: #E9CE8A; stroke-width: 1.1; stroke-opacity: .9; stroke-linejoin: round; cursor: pointer; transition: fill-opacity .3s, fill .3s; }
.globe .fill:hover, .globe .fill.is-active { fill-opacity: .5; }
.globe .fill.is-selected { fill: #E9CE8A; fill-opacity: .6; stroke: #fff; }
.globe .pin { cursor: pointer; transition: opacity .2s linear; }
.globe .pin .dot { fill: var(--gold-soft); stroke: var(--green-950); stroke-width: 2; transition: fill .3s; }
.globe .pin .leader { stroke: rgba(255,255,255,.55); stroke-width: 1; display: none; }
.globe .pin .halo { fill: none; stroke: var(--gold-soft); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.globe .pin:nth-child(2) .halo { animation-delay: .6s; } .globe .pin:nth-child(3) .halo { animation-delay: 1.2s; } .globe .pin:nth-child(4) .halo { animation-delay: 1.8s; } .globe .pin:nth-child(5) .halo { animation-delay: 2.4s; }
.globe .pin:nth-child(6) .halo { animation-delay: .3s; } .globe .pin:nth-child(7) .halo { animation-delay: .9s; } .globe .pin:nth-child(8) .halo { animation-delay: 1.5s; } .globe .pin:nth-child(9) .halo { animation-delay: 2.1s; }
.globe .pin:nth-child(10) .halo { animation-delay: .45s; } .globe .pin:nth-child(11) .halo { animation-delay: 1.35s; } .globe .pin:nth-child(12) .halo { animation-delay: 2.25s; }
.globe .pin text { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .02em; fill: #fff; paint-order: stroke; stroke: rgba(4,39,31,.9); stroke-width: 4px; stroke-linejoin: round; transition: fill .3s, opacity .25s; }
.globe .pin.is-crowded text { opacity: 0; }   /* no clear room: hidden until the globe turns or the country is hovered/chosen */
.globe .pin.is-crowded:hover text { opacity: 1; }
.globe .pin:hover .dot, .globe .pin.is-active .dot, .globe .pin.is-selected .dot { fill: #fff; }
.globe .pin.is-selected .dot { r: 6.5; }
.globe .pin:hover text, .globe .pin.is-active text, .globe .pin.is-selected text { fill: var(--gold-pale); }
@keyframes flow { to { stroke-dashoffset: -45; } }
@keyframes halo { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

/* Flag table */
.table-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-ink); border-radius: var(--radius-xl); overflow: hidden; }
.flag-table { width: 100%; flex: 1; border-collapse: collapse; }
.flag-table th, .flag-table td { padding: 8px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-ink); }
.flag-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* column names kept for screen readers only */
.flag-table tbody tr { cursor: pointer; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.flag-table tbody tr:hover, .flag-table tbody tr.is-active { background: rgba(186,132,21,.09); }
.flag-table tbody tr.is-selected { background: rgba(186,132,21,.14); box-shadow: inset 3px 0 0 var(--gold); }
.country-btn { all: unset; cursor: pointer; font: inherit; color: inherit; }
.country-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.flag-table td.idx { width: 1%; white-space: nowrap; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; font-weight: 600; color: var(--ink-faint); }
.flag-table td:has(> .flag) { width: 1%; white-space: nowrap; padding-right: 6px; }   /* flag column hugs its content */
.flag-table .flag { display: block; width: 40px; max-width: none; height: 30px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(6,46,36,.14); }
.flag-table th[scope="row"] { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.table-foot { margin: 0; padding: 13px 18px; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-faint); border-top: 1px solid var(--line-ink); background: rgba(7,61,48,.03); }

/* ---------- Group companies ---------- */
.group { background: var(--green-900); }
/* Glow fades in from the top so About and Group blend without a visible seam */
.group::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 0% 38%, rgba(12,75,59,.85), transparent 62%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); pointer-events: none; }
.group .wrap { position: relative; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(44px, 5vw, 64px); }
.co-card { position: relative; display: flex; flex-direction: column; min-height: clamp(460px, 46vw, 580px); border-radius: var(--radius-xl); overflow: hidden; background: var(--green-800); isolation: isolate; border: 1px solid var(--line); }
.co-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.78) brightness(.95); transition: transform 1.4s var(--ease-out), filter 1.4s var(--ease-out); }
.co-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,39,31,.15) 0%, rgba(4,39,31,.25) 40%, rgba(4,39,31,.94) 100%); }
.co-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.co-card:hover > img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.co-card:focus-within { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.co-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.co-top .idx { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; color: var(--gold-pale); font-weight: 600; }
.co-top .tag { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(233,206,138,.4); background: rgba(4,39,31,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-pale); }
.co-body { margin-top: auto; padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 14px; }
.co-body h3 { font-size: clamp(30px, 3.4vw, 44px); color: var(--ivory); letter-spacing: -.03em; }
.co-body p { max-width: 44ch; color: rgba(205,196,171,.88); font-size: 16px; }
.co-body .go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 600; color: var(--gold-pale); text-decoration: none; width: max-content; }
.co-body .go::before { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.co-body .go .arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(233,206,138,.5); transition: background .35s, color .35s, transform .35s var(--ease), border-color .35s; }
.co-card:hover .go .arrow { background: var(--gold); color: var(--green-950); border-color: var(--gold); transform: translateX(4px); }

.united { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 20px 20px 20px 28px; border-radius: var(--radius); background: var(--cream-50); color: var(--ink); }
.united .u { display: flex; align-items: center; gap: 18px; }
.united .u img { width: 54px; height: auto; }
.united small { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.united strong { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- Contact ---------- */
.contact { background: var(--cream-50); }
.contact-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); color: var(--cream); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(32px, 6vw, 80px); background: var(--green-800); isolation: isolate; box-shadow: 0 50px 90px -60px rgba(7,61,48,.7); }
.contact-card .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .35; filter: saturate(.8); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--green-900) 25%, rgba(4,39,31,.78) 60%, rgba(4,39,31,.45)); }
.contact-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.contact h2 { font-size: clamp(38px, 5.4vw, 76px); color: var(--ivory); margin-top: 18px; }
.contact .copy p { margin-top: 18px; max-width: 46ch; font-size: 17px; color: rgba(205,196,171,.9); }
.contact .topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.contact .topics span { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.mailbox { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius); background: rgba(4,39,31,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.mailbox small { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(205,196,171,.65); }
.mailbox a.mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.1vw, 27px); letter-spacing: -.02em; color: var(--gold-pale); text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.mailbox a.mail:hover { color: #fff; }
.mailbox .row { display: flex; flex-wrap: wrap; gap: 10px; }
.mailbox .note { font-size: 13px; color: rgba(205,196,171,.6); }
.mailbox .note a { color: rgba(205,196,171,.85); }

/* ---------- Footer ---------- */
footer { position: relative; background: var(--green-950); color: var(--cream); overflow: hidden; }
footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 100% 100%, rgba(186,132,21,.1), transparent 60%); pointer-events: none; }
.rule-emblem { position: relative; display: flex; align-items: center; gap: 22px; padding-top: 56px; }
.rule-emblem::before, .rule-emblem::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-emblem img { width: 56px; height: auto; opacity: .9; }
.foot-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-block: 52px 44px; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; color: rgba(205,196,171,.72); }
.foot-col h4 { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-size: 15px; color: rgba(205,196,171,.82); transition: color .3s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px 34px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(205,196,171,.6); }
.foot-bottom a { text-decoration: none; color: rgba(205,196,171,.82); }
.foot-bottom a:hover { color: var(--gold-pale); }

.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-gold); background: rgba(4,39,31,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--gold-pale); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease), visibility 0s .4s, background .3s, color .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .4s var(--ease), background .3s, color .3s; }
.to-top:hover { background: var(--gold); color: var(--green-950); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Motion ---------- */
.rise { animation: rise 1s var(--ease-out) both; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .15s } .d3 { animation-delay: .28s } .d4 { animation-delay: .4s } .d5 { animation-delay: .52s }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
/* Scroll reveals: only elements below the fold are held back, and only once the script runs */
.reveal { --d: 0ms; transition: opacity .9s var(--ease) var(--d), transform .9s var(--ease) var(--d); }
.js .reveal.pending { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  nav.main ul, nav.main .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .hero-photo-wrap { max-width: none; justify-self: stretch; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: 520px; }
  .hero-mark { width: 80vw; left: -20%; bottom: auto; top: 18%; }
  .scroll-cue { display: none; }
  .split { grid-template-columns: 1fr; }
  .split .col-label .sticky { position: static; }
  .heritage { grid-template-columns: 1fr; }
  .heritage-mark { width: min(100%, 300px); }
  .co-grid { grid-template-columns: 1fr; }
  .presence { border-radius: 28px 28px 0 0; }
  .presence-grid { grid-template-columns: 1fr; }
  .co-card { min-height: 420px; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .heritage-copy .vals { gap: 6px; }
  .heritage-copy .vals span { flex: 1 1 0; padding: 7px 4px; font-size: 10.5px; letter-spacing: .05em; }
  .globe .pin text { display: none; }
  .flag-table th, .flag-table td { padding: 12px 12px; }
  .foot-top { grid-template-columns: 1fr; }
  .facts > div { padding-right: 18px; margin-right: 18px; }
  .united { padding: 18px; }
  .united .btn { width: 100%; }
}
@media (max-width: 380px) {
  .heritage-copy .vals span { font-size: 9.5px; letter-spacing: .02em; padding: 6px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-photo > img { transform: translateY(-6%); }
}
