:root{
  /* Professional Energetic - Dark & Neon */
  --brand:#000000;           /* Soft charcoal primary (not true black) */
  --accent:#00ff88;          /* Neon Electric Green highlight */
  --ink:#000000;

  /* Background - Soft Grey (low contrast to primary) */
  --bg:#dadada;              /* Soft warm grey background */
  --surface:#f5f4f0;         /* Light surface */
  --soft:#eae8e3;            /* Soft for hover states */
  --border:#d4d2cc;          /* Muted border */

  /* Action Colors - Dark Grey Scale */
  --action-primary:#2a2a2a;  /* Dark Grey for primary actions */
  --action-secondary:#3a3a3a;/* Medium dark grey for secondary */
  --action-hover:#1a1a1a;    /* Darker on hover */

  --text:#000000;
  --muted:#5a5a5a;

  --banner-separator-bg: #1a1a1a;

  /* Corner Radii - Round for clickable, Boxy for non-clickable */
  --radius-click:18px;       /* Buttons, links, interactive */
  --radius-box:6px;          /* Cards, containers, static */
  --radius:6px;              /* Default - boxy */
  --radius2:8px;             /* Larger boxy */

  --shadow:0 18px 55px rgba(10,10,10,.12);
  --shadow2:0 10px 22px rgba(10,10,10,.08);

  --max:1160px;
}

*{box-sizing:border-box}
html{height:100%; scroll-behavior:smooth;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{max-width:var(--max); margin:0 auto; padding:0 18px;}
.grid{display:grid; gap:18px;}
.grid.cards-3{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.grid.cards-3 > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.grid.cards-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .grid.cards-2{
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid.cards-2 > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.muted{color:var(--muted)}
.small{font-size:13px}
.hr{height:1px;background:var(--border);margin:18px 0}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;
  border-radius:var(--radius-click);  /* Round corners for clickable */
  border:1px solid var(--action-secondary);
  background:var(--action-primary);   /* Dark Grey action color */
  box-shadow: var(--shadow2);
  font-weight:800;
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  user-select:none;
  color:#fff;                         /* White text on dark */
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(10,10,10,.20);
  background:var(--action-hover);     /* Dark grey on hover */
  color:#fff;                         /* Keep white text */
  border-color:var(--action-hover);
}
.btn:active{transform:translateY(0px);}
.btn.primary{
  border:none;
  background:var(--action-primary);
  color:#fff;
}
.btn.primary:hover{
  background:var(--action-hover);     /* Dark grey on hover */
  color:#fff;                         /* Keep white text */
}
/* Secondary button - force to match standard */
.btn.secondary{
  background:var(--action-primary);
  border:1px solid var(--action-secondary);
  color:#fff;
}
.btn.secondary:hover{
  background:var(--action-hover);     /* Dark grey on hover */
  color:#fff;                         /* Keep white text */
  border-color:var(--action-hover);
}
/* Ghost button - force to match standard */
.btn.ghost{
  background:var(--action-primary);
  box-shadow:var(--shadow2);
  border:1px solid var(--action-secondary);
  color:#fff;
}
.btn.ghost:hover{
  background:var(--action-hover);
  color:#fff;
  border-color:var(--action-hover);
}
/* Light button variant - force to match standard */
.btn.light{
  background:var(--action-primary);
  border:1px solid var(--action-secondary);
  color:#fff;
}
.btn.light:hover{
  background:var(--action-hover);
  color:#fff;
  border-color:var(--action-hover);
}
.btn.small{padding:10px 12px; border-radius:14px; font-size:13px;}

.pill{
  display:inline-flex;align-items:center;gap:10px;
  width: fit-content;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  font-size:13px;
  backdrop-filter: blur(10px);
}
.pill.glow{
  background: linear-gradient(135deg, rgba(0,255,136,.15), rgba(0,255,136,.25));
  border:1px solid rgba(0,255,136,.45);
  box-shadow: 0 4px 24px rgba(0,255,136,.30);
}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  width: fit-content;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(0,255,136,.12);
  border:1px solid rgba(0, 255, 136, 0.484);
  color:#1a1a1a;
  font-size:13px;
  font-weight:800;
}

/* ===== Header ===== */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 10px 0;
}
.topbar a{color: rgba(255,255,255,.90)}
.topbar a:hover{color:var(--accent)}

header{
  position:sticky; top:0; z-index:80;
  background: rgba(245,244,240,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav{
  position:relative;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  padding-left: 1vh;
  min-width: 240px;
}
.brand img{
  height:34px; width:auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.12));
  transition: filter .2s ease;
}
.brand:hover img{
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
}
.brand .name{font-weight:950; letter-spacing:-.02em; line-height:1.1}
.brand .sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav-links{
  display:flex; gap:18px; align-items:center;
  font-weight:800; font-size:14px; color:var(--text);
}
.nav-links a{padding:9px 10px; border-radius:var(--radius-click);}
.nav-links a:hover{background:var(--soft);}
.nav-links a.active{background:var(--action-primary); color:#fff;}

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-box);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  margin-top: 12px;
}

/* Arrow/Bridge for dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.4);
}
/* Invisible bridge to handle gap */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px; 
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}
.dropdown-menu a {
  width: 100%;
  display: block; 
  text-align: left;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap; 
  border-radius: var(--radius2);
  color: var(--text);
}
.dropdown-menu a:hover {
  background: var(--soft);
}
.dropdown-menu a.active {
  background: var(--action-primary);
  color: #fff;
}


.nav-actions{display:flex; gap:10px; align-items:center; padding-right: 2vh;}

/* Mobile nav toggle */
.nav-toggle{display:none}
@media (max-width: 980px){
  .nav-links{display:none;}
  .nav-toggle{
    display:inline-flex;
    border:1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-click);
    padding: 10px 12px;
    font-weight: 950;
    cursor:pointer;
    transition: background .2s ease;
  }
  .nav-toggle:hover{
    background: var(--action-primary);
    color: #fff;
  }
  .nav-links.mobile-open{
    display:flex;
    position:absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    flex-direction:column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-box);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

/* ===== Hero with video ===== */
.hero{
  padding: 26px 0 34px;
}
.hero-shell{
  position:relative;
  border-radius: var(--radius-box);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: var(--shadow);
  min-height: 560px;
  background: #121212;
}
.hero-shell video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  opacity:.92;
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.35) 100%);
}

/* Move details down into a glass panel */
.hero-content{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index:2;
  padding: 22px;
}
.hero-panel{
  max-width: 960px;
  border-radius: var(--radius-box);
  padding: 18px 18px 16px;
  background: rgba(10,10,10,.75);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  color:#fff;
}
.hero-panel.compact{
  max-width: 580px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.hero-title{
  margin:10px 0 10px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height:1.05;
  letter-spacing:-.04em;
}
.hero-text{
  margin:0 0 8px;
  max-width: 70ch;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  font-size: 15px;
}
.hero-tagline{
  margin:0 0 10px;
  font-weight:950;
  font-size: 17px;
  letter-spacing:-.01em;
  color: rgba(255,255,255,.95);
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px;}
.hero-logos{
  display:flex; align-items:center; gap:12px; margin-top:12px;
  opacity:.98;
}
.hero-logos img{height:34px; width:auto;}
.hero-logos .divider{
  width:1px; height:20px; background:rgba(255,255,255,.22);
}

/* ===== Sections ===== */
section{padding: 74px 0;}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom: 18px;
}
.section-head h2{
  margin:0;
  font-size: 30px;
  letter-spacing:-.03em;
}
.section-head p{
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.75;
}
.section-head .right{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}

.cards-2{grid-template-columns: repeat(2, minmax(0,1fr));}
.cards-3{grid-template-columns: repeat(3, minmax(0,1fr));}
.cards-4{grid-template-columns: repeat(4, minmax(0,1fr));}
.two-col{grid-template-columns: 1.25fr .75fr; align-items:start;}

/* ===== Cards ===== */
.card{
  background: rgba(255, 255, 255, 0.5);  /* Transparent Green Tint */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,255,136,.25);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.card.pad{padding: 22px;}

/* Solid/Clean card for layered on video/images */
.card.solid{
  background: var(--surface);
  backdrop-filter: none;
  border: 1px solid var(--border);
}
.card.clickable{
  cursor: pointer;
  border-radius: var(--radius-click);  /* Round if clickable */
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card.clickable:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(245, 244, 240, 0.9);
}
.card .title{
  margin: 0 0 8px;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 18px;
}
.card .text{
  margin:0;
  color: #000;
  line-height: 1.75;
  font-size: 16px;
  
}
.card .actions{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px;}
.kpi{
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.03em;
  color: var(--accent);
}
.kpi-sub{margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6;}

/* ===== CTA band ===== */
.cta{
  border-radius: var(--radius-box);
  padding: 26px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,255,136,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
}
.cta.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow2);
}
.cta.glass p {
  color: var(--muted);
}
.cta.center {
  flex-direction: column;
  text-align: center;
  padding: 40px;
}
.cta.center .cta-actions {
  justify-content: center;
  margin-top: 6px;
}
.cta-title {
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 18px;
  margin: 0;
}
.cta .title {
  font-weight: 950;
  letter-spacing: -.03em;
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.cta p{
  margin: 10px 0 0;
  color: rgba(255,255,255,.74);
  max-width: 72ch;
  line-height: 1.7;
}
.cta .cta-actions{display:flex; gap:10px; flex-wrap:wrap;}
.cta .btn{box-shadow:none}
.cta .btn.primary:hover{
  background: var(--accent);
  color: var(--ink);
}

/* ===== Forms ===== */
.form{display:flex; flex-direction:column; gap:10px; margin-top: 12px;}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--radius-click);  /* Round for interactive inputs */
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline:none;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea{min-height: 120px; resize: vertical;}
input:focus, textarea:focus, select:focus{
  border-color: var(--action-primary);
  box-shadow: 0 0 0 3px rgba(0,255,136,.20);
}

/* ===== Footer ===== */
#site-footer {
  margin-top: auto;
  width: 100%;
}
footer{
  margin-top: 30px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-left: 1vh;
  padding-right: 1vh;
}
body.no-footer-gap footer {
  margin-top: 0;
  border-top: 0;
}

.footer-grid{
  padding: 10px;
  display:grid;
  grid-template-columns: 1.4fr .8fr .8fr .8fr;
  gap:18px;
}
footer h4{margin:0 0 10px; font-size:14px;}
footer a{color: var(--muted)}
footer a:hover{color: var(--text)}
.fine{
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ===== Toast ===== */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  background: rgba(10,14,26,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display:none;
  max-width: 360px;
}
.toast.show{display:block}

/* ===== Modal ===== */
.modal-backdrop{
  position: fixed; inset:0; z-index: 900;
  background: rgba(0,0,0,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.modal-backdrop.open{display:flex;}
.modal{
  width: min(760px, 100%);
  background: rgba(10,14,26,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.50);
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.modal-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-title{font-weight:950; letter-spacing:-.02em;}
.modal-body{padding: 18px;}
.modal-close{
  border:none;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.modal-close:hover{background: rgba(255,255,255,.14);}

/* ===== Toolbar / Events / Filters ===== */
.toolbar{
  display:flex; gap:12px; flex-wrap:wrap;
  align-items:center; justify-content:space-between;
  margin: 16px 0 18px;
}
.toolbar .left{display:flex; gap:12px; flex-wrap:wrap; align-items:center; flex:1; width:100%;}
.select{min-width:100px; flex:1;}
.search{min-width:320px;}
@media (max-width:520px){
  .search{min-width:100%;}
}

.event-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.event-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.event-title{
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 18px;
}
.chip{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,255,136,.15);
  border: 1px solid rgba(0,255,136,.30);
  color:#1a1a1a;
  font-size: 12.5px;
  font-weight: 850;
}
.event-meta{
  display:flex; gap:14px; flex-wrap:wrap;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 10px;
}
.event-desc{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.event-actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 14px;
}

/* ===== Posts UI ===== */
.post-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.post-top{
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-bottom: 10px;
}
.post-name{
  font-weight: 950;
  letter-spacing: -.02em;
}
.post-time{
  color: var(--muted);
  font-size: 12.5px;
}
.post-body{
  color: var(--text);
  line-height: 1.75;
}

/* ===== Impact extras ===== */
.impact-chart{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.bar{
  display:grid;
  grid-template-columns: 70px 1fr;
  gap:12px;
  align-items:center;
}
.bar .label{color:var(--muted); font-size:13px;}
.bar .track{
  height: 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow:hidden;
}
.bar .fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), rgba(0,255,136,.45));
}

.ladder{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.step{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius: var(--radius-box);
  border:1px solid var(--border);
  background: var(--surface);
}
.step span{color:var(--muted);}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .cards-2{grid-template-columns:1fr;}
  .cards-3{grid-template-columns:1fr;}
  .cards-4{grid-template-columns:1fr 1fr;}
  .two-col{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .hero-shell{min-height: 480px;}
  .hero-panel.compact{max-width: 100%;}
  .section-head{flex-direction:column; align-items:flex-start;}
  .section-head .right{margin-top:10px;}
  .cta{flex-direction:column; text-align:center;}
  .cta-actions{justify-content:center;}
}
@media (max-width: 520px){
  .cards-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .hero-shell{min-height: 400px;}
  .hero-title{font-size: 26px;}
  .hero-panel{padding: 14px;}
  .hero-content{padding: 14px;}
  .nav-actions .btn:not(.nav-toggle){display:none;}
  .topbar .row{flex-direction:column; gap:8px; text-align:center;}
  .brand .name{font-size: 14px;}
  .brand .sub{display:none;}
}

/* Carousel */
.carousel {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.0s ease-in-out;
  z-index: 0;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}


/* ===== Logo Ticker ===== */
.ticker-lockup {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  /* Configuration moved here */
  --marquee-item-width: 150px;
  --marquee-item-height: 100px;
  --marquee-duration: 30s;
  --marquee-items: 9; /* default fallback; overridden inline by component */
  height: calc(var(--marquee-item-height) + 40px); /* Account for padding */
}

/* Layer positioning */
.partner-ticker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 0;
  pointer-events: none; /* Default no pointer events */
}

.ticker-grey {
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-color {
  z-index: 2;
  /* Center spotlight mask */
  mask-image: linear-gradient(to right, transparent calc(50% - 100px), black calc(50% - 50px), black calc(50% + 50px), transparent calc(50% + 100px));
  -webkit-mask-image: linear-gradient(to right, transparent calc(50% - 100px), black calc(50% - 50px), black calc(50% + 50px), transparent calc(50% + 100px));
}

.ticker-item {
  position: absolute;
  width: var(--marquee-item-width);
  height: var(--marquee-item-height);
  top: 50%;
  transform: translateY(-50%);
  
  display: flex;
  align-items: center;
  justify-content: center;

  animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
  
  --marquee-item-offset: max(
    calc(var(--marquee-item-width) * var(--marquee-items)),
    calc(100% + var(--marquee-item-width))
  );
  
  --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
  
  inset-inline-start: var(--marquee-item-offset);
}

/* Define indices for up to 20 items */
.ticker-item:nth-child(1) { --marquee-item-index: 1; }
.ticker-item:nth-child(2) { --marquee-item-index: 2; }
.ticker-item:nth-child(3) { --marquee-item-index: 3; }
.ticker-item:nth-child(4) { --marquee-item-index: 4; }
.ticker-item:nth-child(5) { --marquee-item-index: 5; }
.ticker-item:nth-child(6) { --marquee-item-index: 6; }
.ticker-item:nth-child(7) { --marquee-item-index: 7; }
.ticker-item:nth-child(8) { --marquee-item-index: 8; }
.ticker-item:nth-child(9) { --marquee-item-index: 9; }
.ticker-item:nth-child(10) { --marquee-item-index: 10; }
.ticker-item:nth-child(11) { --marquee-item-index: 11; }
.ticker-item:nth-child(12) { --marquee-item-index: 12; }
.ticker-item:nth-child(13) { --marquee-item-index: 13; }
.ticker-item:nth-child(14) { --marquee-item-index: 14; }
.ticker-item:nth-child(15) { --marquee-item-index: 15; }
.ticker-item:nth-child(16) { --marquee-item-index: 16; }

/* Styles for specific layers */
.ticker-grey .ticker-item img {
  height: 60px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
}

.ticker-color .ticker-item img {
  height: 60px;
  width: auto;
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes go {
  to {
    inset-inline-start: calc(var(--marquee-item-width) * -1);
  }
}

/* ===== Home Scroll / Video Background ===== */
body.home-scroll {
  background: transparent;
}

.video-bg-layer, .carousel-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -5;
  background: #121212;
}
.video-bg-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Prevent mobile flash-of-black while video loads */
  background: #121212;
}
/* Mobile fallback: show a static gradient when video can't autoplay */
@media (hover: none) and (pointer: coarse) {
  .video-bg-layer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  }
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

/* Adjustments for home page structure */
.home-scroll .hero-shell {
  background: transparent;
  box-shadow: none;
  border: none;
  min-height: 85vh; /* Make hero take up most of initial screen */
  display: flex;
  align-items: flex-end; /* Align content to bottom */
}

.home-scroll .hero-content {
  position: relative;
  width: 100%;
  padding-bottom: 120px;
  inset: auto; /* Reset absolute positioning */
}

/* Ensure content below hero is legible and creates the "slide over" effect */
.home-scroll section {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.home-scroll .section-head {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-box);
  margin-bottom: 24px;
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Override carousel styles when used as background */
.carousel-bg-layer.carousel {
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
  background: #121212;
  /* position is already fixed from .carousel-bg-layer */
}

/* Dim background carousel images to match video overlay style */
.carousel-bg-layer .carousel-slide.active {
  opacity: 0.6;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.scroll-indicator:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.6);
}
.scroll-indicator.flipped .scroll-arrow {
  transform: rotate(225deg);
  margin-top: 6px;
}
.scroll-arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-top: -6px;
  transition: transform 0.4s ease, margin 0.4s ease;
}

/* ===== Split Carousel (Apple Style Sticky Scroll) ===== */
.split-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg);
}

.sc-content {
  position: relative;
  z-index: 10;
  padding: 80px 60px;
}

.sc-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 60px;
}
.sc-section:last-child {
  margin-bottom: 0;
}

.sc-text-box {
  max-width: 500px;
}

.sc-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.sc-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 30px;
}

/* Sticky Visual Side */
.sc-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.sc-visual-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.sc-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-out; /* Fade out quickly */
}

.sc-image.workspace-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 24px;
  box-sizing: border-box;
}

/* All collage tiles */
.sc-image.workspace-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Make the main room span the top row */
.sc-image.workspace-collage img:first-child {
  grid-column: 1 / 3;
}

.sc-image.active {
  opacity: 1;
  transition: opacity 0.6s ease-in 0.2s; /* Fade in with delay */
}

/* ===== Mobile Responsive for Split Carousel ===== */
@media (max-width: 900px) {
  .split-carousel {
    display: flex;
    flex-direction: column-reverse; /* Put visual behind content */
    position: relative;
    background: #000;
  }
  
  /* Background image layer - absolute within carousel */
  .sc-visual {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
  }
  
  /* Content overlays the sticky image */
  .sc-content {
    position: relative;
    z-index: 5;
    padding: 40px 20px;
    background: transparent;
    min-height: auto;
    margin-top: -100vh; /* Pull content up over the sticky image */
  }
  
  .sc-section {
    min-height: 60vh;
    margin-bottom: 24px;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .sc-section:first-child {
    padding-top: 40px;
  }
  
  .sc-section:last-child {
    min-height: 50vh;
    margin-bottom: 60px;
  }
  
  /* Glass card for text readability over image */
  .sc-text-box {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    border-radius: var(--radius2);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  }
  .sc-title { font-size: 24px; color: var(--text); margin-bottom: 12px; }
  .sc-desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
  
  /* Buttons stack on very small screens */
  .sc-text-box > div[style] {
    flex-direction: column !important;
  }
  .sc-text-box .btn {
    width: 100%;
    text-align: center;
  }
}

/* Grid Column Layout for Split Carousel */
@media (min-width: 901px) {
  /* Default: Content left, Visual right */
  .split-carousel .sc-content { grid-column: 1; }
  .split-carousel .sc-visual { grid-column: 2; }
  
  /* Reversed Layout Variant (for Services): Visual left, Content right */
  .split-carousel.reversed .sc-visual {
    grid-column: 1;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .split-carousel.reversed .sc-content {
    grid-column: 2;
  }
}
/*
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}
*/

/* ===== Gradient Hero (No Image) ===== */
.hero-shell.gradient {
  background: radial-gradient(circle at top right, rgba(26, 26, 26, 1) 0%, rgba(10, 10, 10, 1) 100%);
  position: relative;
}
.hero-shell.gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero-shell.gradient::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,136,0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Skeleton Loading & placeholders ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton placeholders for header/footer */
#site-header:empty {
  display: block;
  height: 72px; 
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

#site-footer:empty {
  display: block;
  height: 100px;
  background: rgba(255,255,255,0.9);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

/* Image loading state */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
img.lazy-loaded {
  opacity: 1;
}

/* ===== Facility Split Landing ===== */
.split-landing {
  display: flex;
  height: calc(100vh - 72px); /* Subtract header height */
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Split-landing page body styles */
body.split-page {
  background: #000;
  overflow-x: hidden;
}

.split-pane {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  color: #fff;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.split-pane:last-child { border-right: none; }

/* Background Image styling */
.split-pane .bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
  z-index: 1;
}

/* Hover Effects */
.split-pane:hover .bg-media {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Optional: Grow the active pane slightly */
.split-pane:hover {
  flex: 1.1; 
}
.split-pane:hover .pane-content {
  transform: translateY(-5px);
}

/* Content styling */
.pane-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px;
  max-width: 500px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pane-content h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.pane-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .split-landing {
    flex-direction: column;
    /* Use dvh to handle mobile URL bar jumpiness ("hotdog phone" fix) */
    height: calc(100dvh - 72px); 
    min-height: auto; /* Remove min-height forcing scrolling */
  }
  .split-pane {
    /* Exact 50% split to fit screen perfectly */
    height: 50%;
    min-height: 0; /* Allow shrinking if needed */
    flex: 1;
    width: 100%;
    border-right: none;
    border-bottom: 2px solid rgba(255,255,255,0.2); 
  }
  .split-pane:last-child {
    border-bottom: none;
  }
  
  /* Ensure images look good on mobile */
  /* Make images fully visible (no dark overlay) so they are clearly seen on phone */
  .split-pane .bg-media {
    opacity: 0.85; 
  }
  
  /* Add a text shadow or box to ensure text remains legible over the brighter image */
  .pane-content { 
    padding: 20px; 
    background: rgba(0,0,0,0.3); /* Subtle backdrop for text contrast */
    border-radius: 12px;
    backdrop-filter: blur(4px);
    margin: 0 20px;
  }
  .pane-content h1 { font-size: 2rem; margin-bottom: 8px; }
  .pane-content p { font-size: 1rem; margin-bottom: 16px; line-height: 1.3; }
  .pane-content .btn { padding: 10px 16px; font-size: 13px; }
}

/* Ensure Hero video stays on top - clean rule */
.hero-split, .hero-shell {
  position: relative;
  z-index: 10;
  background: #000;
}
.hero-split video {
  opacity: 0.5;
}

/* Mobile: Ensure hero covers the fixed carousel background */
@media (max-width: 900px) {
  .hero-split, .hero-shell {
    z-index: 15; /* Higher than the fixed sc-visual (z-index: 1) */
  }
}

/* ===== Hero Split (Shared across pages) ===== */
.hero-split {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-split img,
.hero-split video,
.hero-split .bg-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}
.hero-split-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}
.hero-split h1 {
  font-size: 4rem;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.hero-split p {
  font-size: 2.00rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-split { min-height: 50vh; }
  .hero-split h1 { font-size: 2.5rem; }
  .hero-split p { font-size: 1.1rem; }
}

/* ===== Section Banner Separator (Shared) ===== */
.section-banner {
  background: var(--banner-separator-bg);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.section-banner h2 {
  font-size: 2.5rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-banner p {
  font-size: 1.25rem;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-banner { padding: 2.5rem 1.5rem; }
  .section-banner h2 { font-size: 1.75rem; }
  .section-banner p { font-size: 1rem; }
}

/* ===== Overview Grid & Service Banner (Shared) ===== */
.service-banner {
  background: var(--banner-separator-bg);
  padding: 60px 20px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.overview-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-box);
  box-shadow: var(--shadow2);
  display: flex;
  flex-direction: column;
}
.overview-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
}
.overview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}
.overview-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.overview-list li:last-child {
  border-bottom: none;
}
.overview-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  margin-right: 10px;
  flex-shrink: 0;
}
.overview-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-banner { padding: 30px 16px; }
  .overview-card { padding: 20px; }
  .overview-card h3 { font-size: 1.1rem; }
  .overview-list li { font-size: 0.9rem; padding: 6px 0; }
}

/* ===== Utility Classes ===== */
.sc-desc { color: #000; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.pill-spacer { margin-bottom: 20px; }
.footer-logos { display: flex; gap: 12px; align-items: center; }
.footer-logos img { height: 68px; width: auto; }
.footer-logos img.rounded { border-radius: 5%; }
.spacer { height: 20px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 18px; }

/* Title after badge spacing */
.badge + .title { margin-top: 10px; }

/* Large card title variant (partners overview) */
.card .title.lg { margin-top: 0; font-size: 1.5rem; margin-bottom: 12px; }

/* ===== Service Overview Section (Partners page) ===== */
.service-overview {
  background: var(--surface);
  padding: 60px 20px;
  border-bottom: 1px solid var(--border);
}