/* =====================================================================
   UI layer shared by every page (loaded last, after each page's styles).
   One place for: type scale, section spacing, eyebrows, buttons and the
   duotone glass icons. Change a value here and every page follows.
   ===================================================================== */
:root{
  --sec:clamp(72px, 9vw, 112px);           /* vertical space between sections */
  --h1:clamp(48px, 6.6vw, 88px);           /* hero titles */
  --h2:clamp(34px, 4.2vw, 52px);           /* section titles */
  --lede:17px;                             /* intro paragraphs */
}

/* ---------- Eyebrow: small caps label with a short rule before it ---------- */
.eyebrow,.lead-in,.kicker{
  display:flex;align-items:center;gap:12px;
  font-size:12px;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;line-height:1.3;
  color:var(--purple);margin:0 0 16px;
}
.eyebrow::before,.lead-in::before,.kicker::before{content:"";flex:0 0 auto;width:28px;height:1.5px;background:currentColor;}
/* On photos and dark bands */
.hero .eyebrow,.g-hero .eyebrow,[data-nav-dark] .eyebrow{color:var(--peach-2,#fbdccb);}
/* Category labels on event cards stay plain */
.event .eyebrow{display:block;margin:0;font-size:11.5px;letter-spacing:0.1em;}
.event .eyebrow::before{display:none;}

/* ---------- Type scale ---------- */
.hero h1,.g-hero h1{font-size:var(--h1);line-height:0.98;letter-spacing:-0.025em;}
.section-head h2,.live-head h2,.home-events-head h2,.h2,.split-copy h2,.cta-band h2,.visit h2,.newhere-body h2,.person-body h2{
  font-size:var(--h2);line-height:1.04;letter-spacing:-0.02em;font-weight:600;
}
.section-head p.note,.lede,.hero-side p,.newhere-body .intro{font-size:var(--lede);line-height:1.6;}

/* ---------- Section rhythm ---------- */
.section{padding:var(--sec) 0;}
section.live,.features,.home-events{padding-bottom:var(--sec);}
.welcome{padding-top:var(--sec);padding-bottom:calc(var(--sec) * 0.75);}
.upcoming,.weekly,.newhere{padding-top:var(--sec);padding-bottom:var(--sec);}
.g-steps{padding-top:var(--sec);}
.g-funds,.g-person,.g-faq{padding-bottom:var(--sec);}
.section-head,.live-head,.home-events-head{margin-bottom:40px;}

/* ---------- Buttons: one height everywhere ---------- */
.btn{min-height:48px;padding:0 24px;font-size:14px;line-height:1;}

/* ---------- Heroes: same inset frame on every page ---------- */
.g-hero{margin:12px;border-radius:28px;}
@media (max-width:640px){ .g-hero{margin:8px;border-radius:20px;} }

/* =====================================================================
   Duotone glass icons
   <span class="gi"><svg class="duo">…</svg></span>
   The icon is drawn twice: a soft filled shape (duo-f) and line work on
   top (duo-l), both in the tile's colour. The tile is frosted glass with a
   bright top edge and a soft coloured glow.
   ===================================================================== */
.duo .duo-f{fill:currentColor;opacity:0.26;}
.duo .duo-l{stroke:currentColor;stroke-width:1.8;}
.gi{
  --gi:52px;
  position:relative;flex:0 0 auto;width:var(--gi);height:var(--gi);border-radius:calc(var(--gi) * 0.31);
  display:grid;place-items:center;overflow:hidden;isolation:isolate;
  color:var(--purple,#5b3fd6);
  background:linear-gradient(155deg,rgba(255,255,255,0.96) 0%,rgba(235,229,253,0.85) 100%);
  border:1px solid rgba(255,255,255,0.95);
  box-shadow:0 0 0 1px rgba(91,63,214,0.10),0 12px 24px -14px rgba(91,63,214,0.65),inset 0 -10px 18px -12px rgba(91,63,214,0.45),inset 0 1px 0 #fff;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.gi::after{content:"";position:absolute;left:8%;right:8%;top:4%;height:46%;border-radius:999px;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0));}
.gi .duo{position:relative;width:calc(var(--gi) * 0.48);height:calc(var(--gi) * 0.48);}
.gi-xs .duo{width:14px;height:14px;}
.gi.warm{color:var(--orange,#ff6434);
  background:linear-gradient(155deg,rgba(255,255,255,0.96) 0%,rgba(253,226,212,0.9) 100%);
  box-shadow:0 0 0 1px rgba(255,100,52,0.12),0 12px 24px -14px rgba(255,100,52,0.7),inset 0 -10px 18px -12px rgba(255,100,52,0.45),inset 0 1px 0 #fff;}
.gi.dark{color:#fff;background:linear-gradient(155deg,rgba(255,255,255,0.22),rgba(255,255,255,0.06));border-color:rgba(255,255,255,0.22);
  box-shadow:0 12px 24px -14px rgba(0,0,0,0.6),inset 0 1px 0 rgba(255,255,255,0.35);}
.gi.dark::after{background:linear-gradient(180deg,rgba(255,255,255,0.28),rgba(255,255,255,0));}
.gi.dark .duo-f{opacity:0.3;}
.gi-sm{--gi:40px;}
.gi-lg{--gi:60px;}
.gi-xs{--gi:24px;border-radius:50%;}
.gi-xs::after{display:none;}

.gi{transition:transform .35s cubic-bezier(.34,1.56,.64,1);}

/* "Watch live" icon in the nav: orange signal dot + pulsing waves */
.gi.gi-live{color:#fff;background:rgba(255,255,255,0.16);border:1px solid rgba(255,255,255,0.3);box-shadow:inset 0 1px 0 rgba(255,255,255,0.35);}
.gi.gi-live .duo-f{fill:var(--orange,#ff6434);opacity:1;}
.gi.gi-live .duo-l{animation:liveWaves 2s ease-in-out infinite;}
@keyframes liveWaves{0%,100%{opacity:1;}50%{opacity:0.35;}}
header.site.on-light .nav-bar .gi.gi-live,.side-panel .gi.gi-live{color:var(--purple,#5b3fd6);background:linear-gradient(155deg,#fff,rgba(235,229,253,0.9));border-color:rgba(91,63,214,0.14);}
@media (prefers-reduced-motion:reduce){ .gi.gi-live .duo-l{animation:none;} }

/* ---------- Icon placement in existing page components ---------- */
.belong .gi{margin-bottom:auto;}
.abroad{align-items:center;}
.fund-head .gi,.fund .gi{flex:0 0 auto;}

/* =====================================================================
   Icon micro-animations
   On hover (of the icon, or the card/row it sits in) the tile lifts and
   tilts, the soft fill pops, and the line work redraws itself.
   ===================================================================== */
.duo .duo-f{transform-box:fill-box;transform-origin:center;transition:transform .45s cubic-bezier(.34,1.56,.64,1),opacity .3s ease;}
.duo .duo-l *{stroke-dasharray:1;stroke-dashoffset:0;}
@keyframes duoDraw{0%{stroke-dashoffset:1;}100%{stroke-dashoffset:0;}}
.gi:hover .duo-l *,
.card:hover .gi .duo-l *,.fund:hover .gi .duo-l *,.fcard:hover .gi .duo-l *,
.icon-list li:hover .gi .duo-l *,.who-fact:hover .gi .duo-l *,.hc-row:hover .duo-l *,.min-grid .card:hover .when .duo-l *{
  animation:duoDraw .8s cubic-bezier(.65,0,.35,1) both;
}
.gi:hover .duo-f,.card:hover .gi .duo-f,.fund:hover .gi .duo-f,.fcard:hover .gi .duo-f,.icon-list li:hover .gi .duo-f{transform:scale(1.18);opacity:0.38;}
.gi:hover,.card:hover .gi,.fund:hover .gi,.fcard:hover .gi,.icon-list li:hover .gi{transform:translateY(-3px) rotate(-6deg);}
.nav-cta:hover .gi-live{transform:scale(1.08);}
@media (prefers-reduced-motion:reduce){
  .duo .duo-l *{animation:none !important;}
  .gi,.duo .duo-f{transition:none;transform:none !important;}
}

/* ---------- Icon list (replaces "When / Where / Email" labels) ---------- */
.icon-list{list-style:none;margin:0;padding:0;display:grid;gap:14px;}
.icon-list li{display:flex;align-items:center;gap:14px;font-size:15.5px;font-weight:500;line-height:1.35;}
.icon-list li a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,0.35);}
.icon-list li a:hover{color:var(--orange);}
.icon-list .gi{--gi:40px;}

/* =====================================================================
   Card hover: only cards you can click lift up. Information cards stay
   still (only their icon reacts), so nothing looks clickable that isn't.
   ===================================================================== */
.card{transition:transform .35s cubic-bezier(.22,.61,.36,1),box-shadow .35s ease,border-color .35s ease;}
.card:hover{transform:none;box-shadow:none;border-color:var(--purple-line);}
a.card:hover,button.card:hover{transform:translateY(-4px);border-color:rgba(91,63,214,0.35);box-shadow:0 22px 40px -24px rgba(36,19,68,0.35);}
a.card:focus-visible{outline-offset:4px;border-radius:24px;}

/* =====================================================================
   Hero photo overlay: strong enough that white text is always readable,
   darkest behind the text (bottom and left), lighter at the top so the
   photo still shows.
   ===================================================================== */
.hero:not(.welcome-hero)::after{
  background:
    linear-gradient(0deg,rgba(15,8,30,0.92) 0%,rgba(15,8,30,0.72) 38%,rgba(15,8,30,0.45) 70%,rgba(15,8,30,0.38) 100%),
    linear-gradient(90deg,rgba(15,8,30,0.45) 0%,rgba(15,8,30,0) 65%) !important;
}
.hero h1,.hero .eyebrow,.hero p{text-shadow:0 2px 20px rgba(10,5,25,0.45);}
.hero .btn{text-shadow:none;}
@media (max-width:640px){
  .hero:not(.welcome-hero)::after{
    background:linear-gradient(0deg,rgba(15,8,30,0.94) 0%,rgba(15,8,30,0.78) 50%,rgba(15,8,30,0.55) 100%) !important;
  }
}
