/* =====================================================================
   GEM Connect — motion & layout layer
   Sits on top of style.css. Uses the existing site palette only.
   ===================================================================== */

:root {
  --c-cyan: #48c7ec;
  --c-cyan-soft: rgba(72, 199, 236, .14);
  --c-blue: #0c3c78;
  --c-navy: #022130;
  --c-ink: #131d33;
  --c-deep: #10252e;
  --c-gold: #e8c93a;
  --c-heading: #222222;
  --c-text: #555555;
  --c-muted: #848484;
  --c-line: #eaeaea;
  --c-soft: #f7f7f7;
  --c-white: #ffffff;

  --f-head: 'Poppins', sans-serif;
  --f-body: 'Hind', sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(20, 30, 60, .08);
  --shadow-md: 0 18px 48px rgba(12, 60, 120, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 96px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.gem { background: var(--c-white); color: var(--c-heading); overflow-x: hidden; }
body.gem.is-loading { overflow: hidden; }
.gem ::selection { background: var(--c-cyan); color: #fff; }
.gem img { max-width: 100%; }
.gem a:focus-visible, .gem button:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.g-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-blue));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Preloader ---------- */
.g-loader {
  position: fixed; inset: 0; z-index: 100000; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.g-loader__logo { width: min(420px, 72vw); height: auto; clip-path: inset(0 100% 0 0); }
.g-loader__bar { width: min(260px, 50vw); height: 2px; background: var(--c-line); margin-top: 28px; overflow: hidden; border-radius: 2px; }
.g-loader__bar span { display: block; height: 100%; width: 100%; background: var(--c-cyan); transform: scaleX(0); transform-origin: 0 50%; }
.g-loader__curtain { position: fixed; inset: 0; z-index: 100001; background: var(--c-navy); transform: translateY(100%); pointer-events: none; }
.no-js .g-loader { display: none; }

/* ---------- Header ---------- */
.g-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  /* Solid white so the logo (white-background JPEG) blends seamlessly */
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 33, 48, .06), 0 10px 30px -18px rgba(2, 33, 48, .35);
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
/* Brand accent hairline along the bottom edge */
.g-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-cyan) 50%, var(--c-blue) 100%);
  opacity: .9;
}
.g-header.is-scrolled { box-shadow: 0 12px 34px -14px rgba(2, 33, 48, .28); }
.g-header.is-hidden { transform: translateY(-100%); }
.g-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s var(--ease-out); }
.g-header.is-scrolled .g-header__inner { height: 76px; }
.g-header__logo { display: inline-flex; align-items: center; }
.g-header__logo img {
  height: 76px; width: auto; display: block;
  mix-blend-mode: multiply; /* drops any off-white edge of the JPEG */
  transition: height .4s var(--ease-out), transform .4s var(--ease-out);
}
.g-header__logo:hover img { transform: translateY(-1px); }
.g-header.is-scrolled .g-header__logo img { height: 56px; }
.g-header__actions { display: flex; gap: 12px; align-items: center; }

/* Header buttons: outlined Login + solid Register, compact and balanced */
.g-header__actions .g-btn { padding: 11px 26px; font-size: 13px; letter-spacing: .08em; box-shadow: none; }
.g-header__actions .g-btn--dark {
  background: transparent; color: var(--c-blue); border-color: rgba(12, 60, 120, .25);
}
.g-header__actions .g-btn--dark::before { background: var(--c-blue); }
.g-header__actions .g-btn--dark:hover, .g-header__actions .g-btn--dark:focus-visible { color: #fff; border-color: var(--c-blue); }
.g-header__actions .g-btn--primary {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #2a9fd6 100%);
  box-shadow: 0 8px 20px -6px rgba(72, 199, 236, .6);
}
.g-header__actions .g-btn--primary:hover { box-shadow: 0 10px 24px -6px rgba(12, 60, 120, .5); }
.g-header .g-btn svg { width: 15px; height: 15px; }

/* ---------- Primary nav ---------- */
.g-nav { display: flex; align-items: center; margin: 0 auto; }
.g-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.g-nav__link {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--f-head); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--c-ink); text-decoration: none !important; border-radius: 999px;
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.g-nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-blue));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out);
}
.g-nav__link:hover, .g-nav__link:focus-visible { color: var(--c-blue); background: var(--c-cyan-soft); }
.g-nav__link:hover::after, .g-nav__link.is-active::after { transform: scaleX(1); }
.g-nav__link.is-active { color: var(--c-blue); font-weight: 600; }
.g-nav__cta { display: none; }

/* ---------- Burger ---------- */
.g-burger {
  display: none; position: relative; width: 44px; height: 44px; margin-left: 4px; padding: 0;
  border: 1px solid rgba(12, 60, 120, .18); border-radius: 12px; background: #fff; cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.g-burger:hover { background: var(--c-cyan-soft); border-color: var(--c-cyan); }
.g-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--c-blue);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.g-burger span:nth-child(1) { top: 15px; }
.g-burger span:nth-child(2) { top: 21px; }
.g-burger span:nth-child(3) { top: 27px; }
.g-header.is-open .g-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.g-header.is-open .g-burger span:nth-child(2) { opacity: 0; }
.g-header.is-open .g-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gem section[id] { scroll-margin-top: 90px; }

@media (max-width: 1199px) {
  .g-burger { display: inline-block; }
  .g-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 24px 24px; background: #fff;
    box-shadow: 0 24px 40px -20px rgba(2, 33, 48, .35); border-top: 1px solid var(--c-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
  }
  .g-header.is-open .g-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .g-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .g-nav__link { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .g-nav__link::after { display: none; }
  .g-nav__link.is-active { background: var(--c-cyan-soft); }
}
@media (max-width: 575px) {
  .g-header__actions .g-btn { display: none; }
  .g-nav__cta { display: flex; gap: 10px; }
  .g-nav__cta .g-btn { flex: 1; justify-content: center; padding: 13px 16px; }
}
.g-spacer { height: var(--header-h); }

/* ---------- Buttons ---------- */
.g-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  overflow: hidden; isolation: isolate; text-decoration: none !important;
  transition: color .35s var(--ease-out), border-color .35s, box-shadow .35s;
  will-change: transform;
}
.g-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.g-btn:hover::before, .g-btn:focus-visible::before { transform: translateY(0); }
.g-btn .g-btn__arrow { transition: transform .35s var(--ease-out); }
.g-btn:hover .g-btn__arrow { transform: translateX(4px); }

.g-btn--primary { background: var(--c-cyan); color: #fff; box-shadow: 0 10px 24px rgba(72, 199, 236, .32); }
.g-btn--primary::before { background: var(--c-blue); }
.g-btn--primary:hover, .g-btn--primary:focus { color: #fff; }

.g-btn--dark { background: var(--c-ink); color: #fff; }
.g-btn--dark::before { background: var(--c-cyan); }
.g-btn--dark:hover, .g-btn--dark:focus { color: #fff; }

.g-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.g-btn--ghost::before { background: #fff; }
.g-btn--ghost:hover, .g-btn--ghost:focus { color: var(--c-navy); border-color: #fff; }

.g-btn--outline { background: transparent; color: var(--c-blue); border-color: var(--c-cyan); }
.g-btn--outline::before { background: var(--c-cyan); }
.g-btn--outline:hover, .g-btn--outline:focus { color: #fff; }

.g-btn--sm { padding: 10px 20px; font-size: 13px; }
.g-btn--block { width: 100%; justify-content: center; }

/* ---------- Generic section ---------- */
.g-section { position: relative; padding: 120px 0; }
.g-section--soft { background: var(--c-soft); }
.g-section--dark { background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-blue) 100%); color: #fff; overflow: hidden; }
.g-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--c-cyan);
}
.g-eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.g-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; color: var(--c-heading); margin: 16px 0 0; letter-spacing: -.01em; }
.g-section--dark .g-title { color: #fff; }
.g-head { margin-bottom: 56px; }
.g-head--center { text-align: center; }
.g-head--center .g-eyebrow::after { content: ""; width: 36px; height: 2px; background: currentColor; }
.g-lead { font-size: 18px; line-height: 1.8; color: var(--c-text); }
.g-subhead { font-family: var(--f-head); font-weight: 600; color: var(--c-blue); font-size: 22px; margin: 0 0 18px; }

/* Split-text masks */
.g-line-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- HERO ---------- */
.g-hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  background:
    radial-gradient(1100px 600px at 78% 40%, rgba(72, 199, 236, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(12, 60, 120, .65), transparent 70%),
    linear-gradient(160deg, var(--c-navy) 0%, #05305a 55%, var(--c-blue) 100%);
  color: #fff; overflow: hidden;
}
.g-hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 60% 45%, #000 20%, transparent 70%);
}
.g-hero__canvas { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; opacity: 0; }
.g-hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.g-hero__glow {
  position: absolute; right: 18%; top: 50%; width: 420px; height: 420px; margin-top: -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 199, 236, .35), transparent 65%); filter: blur(10px); pointer-events: none;
}
.g-hero__fallback { position: absolute; right: 12%; top: 50%; width: min(380px, 34vw); transform: translateY(-50%); opacity: .9; display: none; }
.g-hero.no-webgl .g-hero__fallback { display: block; }
.g-hero__content { position: relative; z-index: 2; max-width: 640px; }
.g-hero__title {
  font-family: var(--f-head); font-weight: 700; color: #fff; margin: 22px 0 0;
  font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.025em;
}
.g-hero__title .g-accent {
  background: linear-gradient(100deg, var(--c-cyan) 0%, #9fe6fa 50%, var(--c-cyan) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: g-sheen 6s linear infinite;
}
@keyframes g-sheen { to { background-position: -200% 0; } }
.g-hero__tagline { margin-top: 26px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 520px; }
.g-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.g-hero__scroll {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.g-hero__scroll i { display: block; width: 1px; height: 46px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.g-hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--c-cyan); animation: g-drip 2s var(--ease-out) infinite; }
@keyframes g-drip { to { top: 110%; } }

/* Marquee */
.g-marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--c-gold); color: var(--c-ink); overflow: hidden; padding: 18px 0; }
.g-marquee__track { display: flex; width: max-content; animation: g-marquee 32s linear infinite; }
.g-marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.g-marquee__item svg { width: 16px; height: 16px; flex: none; }
@keyframes g-marquee { to { transform: translateX(-50%); } }

/* ---------- Banner image reveal ---------- */
.g-banner { padding: 100px 0 40px; }
.g-banner__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); will-change: clip-path; box-shadow: var(--shadow-md); }
.g-banner__frame img { display: block; width: 100%; height: auto; transform-origin: 50% 50%; will-change: transform; }

/* ---------- Purpose: 9 out of 10 ---------- */
.g-stat { position: relative; background: #fff; }
.g-stat__pin { min-height: 100vh; display: flex; align-items: center; padding: 100px 0; }
.g-stat__inner { width: 100%; text-align: center; }
.g-stat__headline {
  font-family: var(--f-head); font-weight: 700; color: var(--c-heading);
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; max-width: 960px; margin: 22px auto 0; letter-spacing: -.01em;
}
.g-stat__headline em { font-style: normal; color: var(--c-cyan); }
.g-people { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 22px); margin: 56px auto 0; max-width: 900px; flex-wrap: nowrap; }
.g-person { width: clamp(26px, 6vw, 64px); color: var(--c-blue); transform-origin: 50% 100%; }
.g-person svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-person.is-survivor { color: var(--c-cyan); filter: drop-shadow(0 0 0 rgba(72, 199, 236, 0)); }
.g-stat__sub { font-family: var(--f-head); font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--c-text); margin: 48px auto 0; }
.g-stat__sub strong { color: var(--c-blue); font-weight: 700; }

.g-purpose { padding: 40px 0 120px; }
.g-prose { max-width: 860px; margin: 0 auto; }
.g-prose p { font-size: 19px; line-height: 1.85; color: var(--c-text); margin-bottom: 26px; }

.g-bridge { position: relative; max-width: 1000px; margin: 64px auto 0; }
.g-bridge__label { text-align: center; margin-bottom: 36px; }
.g-bridge__cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }
.g-bridge__card {
  position: relative; z-index: 2; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.g-bridge__card .g-ico { width: 52px; height: 52px; color: var(--c-cyan); margin-bottom: 18px; }
.g-bridge__card p { font-size: 17px; line-height: 1.75; color: var(--c-text); margin: 0; }
.g-bridge__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.g-bridge__node {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%; background: var(--c-navy); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(72, 199, 236, .12), 0 12px 30px rgba(2, 33, 48, .3);
}
.g-bridge__node svg { width: 36px; height: 36px; }
.g-final {
  position: relative; margin: 56px auto 0; max-width: 860px; padding: 40px 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue)); color: #fff; overflow: hidden;
}
.g-final::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(72, 199, 236, .35), transparent 70%); }
.g-final p { position: relative; z-index: 1; font-family: var(--f-head); font-size: clamp(19px, 2vw, 24px); line-height: 1.6; color: #fff; margin: 0; font-weight: 500; }

/* Scrubbed word highlight */
.g-scrub .word { color: rgba(34, 34, 34, .18); transition: none; }
.g-section--dark .g-scrub .word, .g-final .g-scrub .word { color: rgba(255, 255, 255, .25); }

/* ---------- Network ---------- */
.g-network__intro { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 3vw, 38px); line-height: 1.35; max-width: 960px; margin: 0 auto 30px; text-align: center; color: var(--c-heading); }
.g-network__body { max-width: 800px; margin: 0 auto; text-align: center; font-size: 19px; line-height: 1.8; color: var(--c-text); }
.g-does { margin-top: 90px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.g-orbit { position: sticky; top: calc(50vh - 220px); height: 440px; }
.g-orbit svg { width: 100%; height: 100%; overflow: visible; }
.g-orbit .ring { fill: none; stroke: rgba(12, 60, 120, .12); stroke-width: 1.5; transition: stroke .6s var(--ease-out), stroke-width .6s; }
.g-orbit .ring.is-on { stroke: var(--c-cyan); stroke-width: 2.5; }
.g-orbit .ring-label { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; fill: var(--c-muted); transition: fill .6s; }
.g-orbit .ring-label.is-on { fill: var(--c-blue); }
.g-orbit .node { fill: #fff; stroke: rgba(12, 60, 120, .3); stroke-width: 2; transition: fill .5s, stroke .5s; }
.g-orbit .node.is-on { fill: var(--c-cyan); stroke: #fff; }
.g-orbit .link { stroke: var(--c-cyan); stroke-width: 1.5; fill: none; opacity: .8; }
.g-orbit .core { fill: var(--c-navy); }
.g-orbit .pulse { fill: none; stroke: var(--c-cyan); stroke-width: 2; opacity: 0; transform-origin: 220px 220px; transform-box: view-box; }

.g-does__list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; }
.g-does__item {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 28px;
  transition: border-color .5s, box-shadow .5s, transform .5s var(--ease-out);
}
.g-does__item.is-active { border-color: rgba(72, 199, 236, .6); box-shadow: var(--shadow-md); transform: translateX(-6px); }
.g-does__item .g-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--c-cyan-soft); color: var(--c-blue); display: flex; align-items: center; justify-content: center; }
.g-does__item .g-ico svg { width: 30px; height: 30px; }
.g-does__num { font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--c-cyan); display: block; margin-bottom: 6px; }
.g-does__item p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--c-text); }
.g-statement { margin: 100px auto 0; text-align: center; max-width: 980px; font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.25; letter-spacing: -.01em; color: var(--c-heading); }

/* Line icons */
.g-ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Meetings ---------- */
.g-meetings { position: relative; }
.g-meetings .g-hero__grid { opacity: .25; }
.g-upcoming-wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; display: grid; gap: 32px; }
.g-event {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; color: var(--c-heading); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  transform-style: preserve-3d; will-change: transform;
}
.g-event.no-image { grid-template-columns: 1fr; }
.g-event__media { position: relative; overflow: hidden; min-height: 340px; background: var(--c-soft); }
.g-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.g-event:hover .g-event__media img { transform: scale(1.0); }
.g-event__badge {
  position: absolute; left: 20px; top: 20px; z-index: 2; background: var(--c-gold); color: var(--c-ink);
  font-family: var(--f-head); font-weight: 700; border-radius: 12px; padding: 10px 14px; text-align: center; line-height: 1.05;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.g-event__badge b { display: block; font-size: 28px; }
.g-event__badge small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.g-event__body { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.g-event__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 0; color: var(--c-heading); }
.g-meta { display: grid; gap: 12px; }
.g-meta__item { display: flex; align-items: center; gap: 14px; color: #394b5a; font-size: 15px; }
.g-meta__item .g-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--c-cyan-soft); color: var(--c-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.g-meta__item .g-ico svg { width: 20px; height: 20px; }
.g-meta__item strong { display: block; font-family: var(--f-head); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.g-event__about h3 { font-family: var(--f-head); font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #25343f; }
.g-event__about p { font-size: 15px; line-height: 1.65; color: #465760; margin: 0; }

/* Countdown */
.g-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-count__cell { background: var(--c-navy); color: #fff; border-radius: 12px; padding: 12px 6px 10px; text-align: center; overflow: hidden; }
.g-count__num { display: block; font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1; height: 26px; position: relative; font-variant-numeric: tabular-nums; }
.g-count__num span { display: block; }
.g-count__lbl { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* Completed cards */
.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.g-cards--2 { grid-template-columns: repeat(2, 1fr); }
.g-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: box-shadow .5s var(--ease-out), border-color .5s;
}
.g-card:hover { box-shadow: var(--shadow-md); border-color: rgba(72, 199, 236, .5); }
.g-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.g-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1s var(--ease-out); }
.g-card:hover .g-card__media img { transform: scale(1); }
.g-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 33, 48, .55)); opacity: 0; transition: opacity .5s; }
.g-card:hover .g-card__media::after { opacity: 1; }
.g-card__date {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(255, 255, 255, .95); color: var(--c-ink);
  font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; border-radius: 999px; padding: 6px 12px;
}
.g-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.g-card__title { font-family: var(--f-head); font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--c-heading); }
.g-card__desc { font-size: 15px; line-height: 1.6; color: #465760; margin: 0; }
.g-card__loc { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--c-muted); margin: 0; }
.g-card__loc svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--c-cyan); fill: none; stroke-width: 2; }
.g-card__foot { margin-top: auto; padding-top: 8px; }

.g-center { text-align: center; }
.g-mt { margin-top: 56px; }

/* Skeletons */
.g-skel { position: relative; overflow: hidden; background: #e9eef3; border-radius: 10px; }
.g-section--dark .g-skel { background: rgba(255, 255, 255, .08); }
.g-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: g-shimmer 1.4s infinite; }
.g-section--dark .g-skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
@keyframes g-shimmer { to { transform: translateX(100%); } }
.g-skel--event { height: 360px; border-radius: var(--radius-lg); }
.g-skel--card { height: 380px; border-radius: var(--radius); }

/* Empty / error */
.g-empty { max-width: 520px; margin: 0 auto; text-align: center; background: #fff; color: var(--c-heading); border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow-sm); }
.g-empty .g-ico { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--c-cyan); }
.g-empty h4 { font-family: var(--f-head); font-size: 24px; margin: 0 0 8px; color: var(--c-navy); }
.g-empty p { margin: 0 0 4px; color: #666; }
.g-empty .g-btn { margin-top: 20px; }

/* ---------- Contact ---------- */
.g-contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.g-contact__card {
  display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--c-line); color: var(--c-heading); text-decoration: none !important;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.g-contact__card:hover { border-color: var(--c-cyan); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--c-heading); }
.g-contact__avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--c-navy); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: .04em; position: relative; }
.g-contact__avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c-cyan); opacity: 0; transform: scale(.85); transition: opacity .4s, transform .4s var(--ease-out); }
.g-contact__card:hover .g-contact__avatar::after { opacity: 1; transform: scale(1); }
.g-contact__name { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin: 0 0 4px; display: block; }
.g-contact__phone { font-size: 17px; color: var(--c-blue); display: flex; align-items: center; gap: 8px; }
.g-contact__phone svg { width: 16px; height: 16px; stroke: var(--c-cyan); fill: none; stroke-width: 2; }
.g-contact__go { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--c-cyan-soft); color: var(--c-blue); display: flex; align-items: center; justify-content: center; transition: background .4s, color .4s, transform .4s var(--ease-out); }
.g-contact__card:hover .g-contact__go { background: var(--c-cyan); color: #fff; transform: rotate(-45deg); }
.g-contact__go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Footer ---------- */
.gem .main-footer { position: relative; background: var(--c-deep); overflow: hidden; }
.g-footer__line { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--c-cyan), transparent); transform: scaleX(0); }
.gem .main-footer .about-widget .text p { color: rgba(255, 255, 255, .7); line-height: 1.8; }
.gem .main-footer .widgets-section { padding: 80px 0 50px; }
.gem .footer-sponsor a { transition: transform .4s var(--ease-out), box-shadow .4s; }
.gem .footer-sponsor a:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.g-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .45); }
.g-footer__bottom p { color: inherit; font-size: inherit; margin: 0; }

/* ---------- Back to top ---------- */
.g-totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 999; width: 54px; height: 54px; border-radius: 50%;
  border: 0; background: var(--c-ink); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .4s, transform .4s var(--ease-out), background .3s;
  box-shadow: 0 10px 30px rgba(2, 33, 48, .3);
}
.g-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.g-totop:hover { background: var(--c-blue); }
.g-totop svg.g-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.g-totop .g-totop__ring circle { fill: none; stroke: var(--c-cyan); stroke-width: 2.5; }
.g-totop .g-totop__arrow { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- Lightbox ---------- */
.g-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none; flex-direction: column;
  background: rgba(2, 20, 32, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff;
}
.g-lightbox.is-open { display: flex; }
.g-lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.g-lightbox__title { font-family: var(--f-head); font-size: 16px; font-weight: 600; margin: 0; color: #fff; }
.g-lightbox__count { font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); margin-left: 14px; }
.g-lightbox__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s, border-color .3s; }
.g-lightbox__btn:hover { background: var(--c-cyan); border-color: var(--c-cyan); }
.g-lightbox__btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.g-lightbox__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 90px; min-height: 0; }
.g-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.g-lightbox__prev, .g-lightbox__next { position: absolute; top: 50%; margin-top: -24px; }
.g-lightbox__prev { left: 24px; } .g-lightbox__next { right: 24px; }
.g-lightbox__thumbs { display: flex; gap: 10px; justify-content: center; padding: 18px 24px 24px; overflow-x: auto; }
.g-lightbox__thumbs button { flex: none; width: 76px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .5; transition: opacity .3s, border-color .3s; background: none; }
.g-lightbox__thumbs button.is-active { opacity: 1; border-color: var(--c-cyan); }
.g-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-lightbox__empty { text-align: center; color: rgba(255, 255, 255, .7); }
.g-lightbox__empty .g-ico { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--c-cyan); }

/* ---------- Inner page header ---------- */
.g-page-hero {
  position: relative; padding: calc(var(--header-h) + 80px) 0 90px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(900px 500px at 70% 30%, rgba(72, 199, 236, .22), transparent 60%), linear-gradient(160deg, var(--c-navy), var(--c-blue));
}
.g-page-hero .g-title { color: #fff; }
.g-crumbs { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.g-crumbs a { color: var(--c-cyan); }
.g-crumbs a:hover { color: #fff; }

/* Event details */
.g-detail { padding: 0 0 120px; background: var(--c-soft); }
.g-detail__card { position: relative; margin-top: -50px; z-index: 2; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.05fr 1fr; }
.g-detail__card.no-image { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.g-detail__media { position: relative; min-height: 460px; overflow: hidden; background: #e9eef3; view-transition-name: event-media; }
.g-detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-detail__body { padding: 48px 44px; display: flex; flex-direction: column; gap: 26px; }
.g-detail__body p.g-desc { font-size: 17px; line-height: 1.8; color: #465760; margin: 0; white-space: pre-line; }
.g-status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--c-cyan-soft); color: var(--c-blue); }
.g-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 0 rgba(72, 199, 236, .6); animation: g-ping 1.8s infinite; }
.g-status--past { background: #eef1f4; color: var(--c-muted); }
.g-status--past i { background: var(--c-muted); animation: none; }
@keyframes g-ping { 70% { box-shadow: 0 0 0 10px rgba(72, 199, 236, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 199, 236, 0); } }

/* ---------- Reveal defaults (only when JS animates) ---------- */
.js-motion [data-reveal] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .g-hero__canvas { width: 100%; opacity: 0; }
  .g-hero__content { max-width: 100%; }
  .g-hero { align-items: flex-start; padding-top: calc(var(--header-h) + 48vw); }
  .g-hero__canvas { height: 62vw; top: var(--header-h); bottom: auto; }
  .g-hero__glow { right: 50%; margin-right: -180px; top: calc(var(--header-h) + 31vw); width: 360px; height: 360px; margin-top: -180px; }
  .g-hero__fallback { right: 50%; top: calc(var(--header-h) + 31vw); transform: translate(50%, -50%); width: 46vw; }
  .g-does { grid-template-columns: 1fr; gap: 32px; }
  .g-orbit { position: relative; top: 0; height: 340px; max-width: 380px; margin: 0 auto; width: 100%; }
  .g-event { grid-template-columns: 1fr; }
  .g-event__media { min-height: 260px; }
  .g-cards { grid-template-columns: repeat(2, 1fr); }
  .g-detail__card { grid-template-columns: 1fr; }
  .g-detail__media { min-height: 300px; }
}
@media (max-width: 767px) {
  :root { --header-h: 76px; }
  .g-header__logo img, .g-header.is-scrolled .g-header__logo img { height: 50px; }
  .g-header.is-scrolled .g-header__inner { height: 68px; }
  .g-header__actions { gap: 8px; }
  .g-header__actions .g-btn { padding: 8px 14px; font-size: 11px; letter-spacing: .04em; }
  .g-header::after { height: 2px; }
  .g-section { padding: 80px 0; }
  .g-hero { padding-bottom: 110px; min-height: auto; }
  .g-hero__scroll { display: none; }
  .g-hero__actions .g-btn { flex: 1 1 auto; justify-content: center; }
  .g-marquee { padding: 14px 0; }
  .g-marquee__item { font-size: 14px; gap: 28px; padding-right: 28px; }
  .g-banner { padding: 60px 0 20px; }
  .g-banner__frame { border-radius: 14px; }
  .g-stat__pin { min-height: 88vh; padding: 70px 0; }
  .g-prose p { font-size: 17px; }
  .g-bridge__cards { grid-template-columns: 1fr; gap: 90px; }
  .g-bridge__node { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .g-final { padding: 30px 24px; }
  .g-does__item { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .g-does__item.is-active { transform: none; }
  .g-event__body { padding: 28px 22px; }
  .g-count__num { font-size: 22px; height: 22px; }
  .g-cards, .g-cards--2 { grid-template-columns: 1fr; }
  .g-contact__grid { grid-template-columns: 1fr; }
  .g-lightbox__stage { padding: 0 12px; }
  .g-lightbox__prev, .g-lightbox__next { top: auto; bottom: -64px; margin: 0; }
  .g-lightbox__prev { left: 24px; } .g-lightbox__next { right: 24px; }
  .g-lightbox__thumbs { padding: 18px 90px 24px; }
  .g-detail__body { padding: 30px 22px; }
  .g-totop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .g-marquee__track { animation: none; }
  .js-motion [data-reveal] { opacity: 1; }
  .g-scrub .word { color: inherit !important; }
}

/* ---------- Override legacy `p { font-size: 18px !important }` (style.css, ≥992px) ---------- */
.gem .g-hero__tagline { font-size: clamp(17px, 1.6vw, 21px) !important; }
.gem .g-stat__headline { font-size: clamp(28px, 3.6vw, 48px) !important; }
.gem .g-stat__sub { font-size: clamp(18px, 2vw, 24px) !important; }
.gem .g-prose p { font-size: 19px !important; }
.gem .g-bridge__card p { font-size: 17px !important; }
.gem .g-final p { font-size: clamp(19px, 2vw, 24px) !important; }
.gem .g-network__intro { font-size: clamp(24px, 3vw, 38px) !important; }
.gem .g-does__item p { font-size: 17px !important; }
.gem .g-statement { font-size: clamp(26px, 3.4vw, 46px) !important; }
.gem .g-event__about p, .gem .g-card__desc { font-size: 15px !important; }
.gem .g-card__loc, .gem .g-crumbs { font-size: 14px !important; }
.gem .g-lead { font-size: 18px !important; }
.gem .g-detail__body p.g-desc { font-size: 17px !important; }
.gem .g-footer__bottom p { font-size: 13px !important; }
.gem .main-footer .about-widget .text p { font-size: 16px !important; }
@media (max-width: 767px) {
  .gem .g-prose p { font-size: 17px !important; }
}

/* Inline icons inside buttons */
.g-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Event images are posters: keep the top (title) in view */
.g-event__media img, .g-card__media img, .g-detail__media img { object-position: 50% 0%; }

.g-lightbox__empty p { color: rgba(255,255,255,.75) !important; font-size: 17px !important; }

/* ---------- Show event posters in full (no cropping) ---------- */
.g-event__media, .g-detail__media {
  min-height: 0; display: flex; align-items: center; justify-content: center;
  background: var(--c-navy);
}
.g-card__media { aspect-ratio: auto; background: var(--c-navy); }
.g-event__media img, .g-card__media img, .g-detail__media img {
  position: static; inset: auto; width: 100%; height: auto; max-width: 100%;
  object-fit: contain; object-position: 50% 50%; display: block;
  transform: none; transition: filter .6s var(--ease-out);
}
.g-event:hover .g-event__media img, .g-card:hover .g-card__media img { transform: none; filter: brightness(1.04); }
.g-card__media::after { display: none; }
@media (max-width: 991px) {
  .g-event__media, .g-detail__media { min-height: 0; }
}
.g-upcoming-wrap { max-width: 900px; }
.g-event { grid-template-columns: 5fr 6fr; }
.g-event.no-image { grid-template-columns: 1fr; }
.g-event__badge { left: auto; right: 16px; top: 16px; }
@media (max-width: 991px) {
  .g-event { grid-template-columns: 1fr; }
}
.g-detail__card { grid-template-columns: 2fr 3fr; max-width: 1000px; margin-left: auto; margin-right: auto; align-items: start; }
.g-detail__card.no-image { grid-template-columns: 1fr; }
@media (max-width: 991px) { .g-detail__card { grid-template-columns: 1fr; } }

/* Enroll / Register button pinned to the bottom of the card (as on the live site) */
.g-event__body > .g-btn { margin-top: auto; }
.g-detail__card { align-items: stretch; }
.g-detail__body > div:last-child { margin-top: auto; }

/* Tighter "9 out of 10" section: size to content instead of full viewport */
.g-stat__pin { min-height: 0; padding: 90px 0 40px; }
.g-purpose { padding-top: 20px; }
@media (max-width: 767px) { .g-stat__pin { min-height: 0; padding: 70px 0 30px; } }

/* No photo: centre-align card contents (parity with live site) */
.g-event.no-image .g-event__body,
.g-card.no-image .g-card__body { text-align: center; align-items: center; }
.g-event.no-image .g-meta { justify-items: center; }
.g-event.no-image .g-meta__item,
.g-card.no-image .g-card__loc { justify-content: center; }
.g-event.no-image .g-event__body > .g-btn,
.g-card.no-image .g-card__foot { align-self: stretch; }
.g-card.no-image .g-card__foot { display: flex; justify-content: center; }
/* Legacy style.css makes this id a left-aligned flex row — keep it a centred grid */
#upcoming-meetings-container.g-upcoming-wrap { display: grid; justify-content: stretch; }
/* Countdown digits: clip the flip so old/new digits never overlap the label */
.gem .g-count__num { overflow: hidden; height: 1.1em; line-height: 1.1em; }
.gem .g-count__num span { line-height: 1.1em; }
