/* ============================================
   GLOBAL TOKENS / RESET
============================================ */
:root{
  --max-w: 1240px;
  --pad-x: clamp(16px, 4vw, 40px);

  --text: #fff;
  --muted:#ffffffb3;
  --accent:#7aa6ff;

  --glass:#0000004d;         
  --glass-strong:#00000080;   
  --radius: 14px;

  /* Hero readability (0..1) */
  --hero-scrim: 0;            /* increase to 0.2–0.35 if needed */

  /* Tall sticky hero height (only used when .hero.sticky is set) */
  --hero-tall: 180vh;
   --fx-distance: 16px;
  --fx-pad: 12px;
  --fx-duration: 520ms;
  --fx-ease: cubic-bezier(.2,.7,.2,1);
}




*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0 }
html,body{
  height:100% }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text); background:#ffffff;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg,video,canvas{ display:block; max-width:100% }
a{ color:inherit; text-decoration:none }
.container{ margin-inline:auto; padding-inline:var(--pad-x) ; width:100%; align-items: center; justify-content: center;}

.hero{
  position:relative; isolation:isolate;
   height: max-content; /* safe mobile vh */
  overflow:hidden; touch-action:none;
}

.scroll-fx{
  opacity: 0.001;
  transform: translate3d(calc(var(--dir,1) * var(--fx-distance)), 8px, 0);
  padding-inline-start: var(--fx-pad);
  filter: blur(1.5px);
  transition:
    opacity var(--fx-duration) var(--fx-ease) var(--d,0ms),
    transform var(--fx-duration) var(--fx-ease) var(--d,0ms),
    padding-inline-start var(--fx-duration) var(--fx-ease) var(--d,0ms),
    filter var(--fx-duration) var(--fx-ease) var(--d,0ms);
  will-change: transform, opacity;
}

.scroll-fx.in{
  opacity: 1;
  transform: translate3d(0,0,0);
  padding-inline-start: 0;
  filter: none;
}

/* Opt-out for any element you don’t want animated */
.no-scroll-fx{ opacity: 1 !important; transform: none !important; filter: none !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .scroll-fx,
  .scroll-fx.in{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    padding-inline-start: 0 !important;
    filter: none !important;
  }
}
main{ background:#fefeff }
section{ padding:0 0 }
.section__title{
  font-size:clamp(22px, 3.5vw, 38px);
  font-weight:800; margin-bottom:20px
}
.muted{ color:#bfc4cf }

.grid{ display:grid; gap:22px; grid-template-columns:repeat(12, 1fr) }
.col-6{ grid-column:span 6 }
.col-4{ grid-column:span 4 }
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr }
  .col-6,.col-4{ grid-column:span 1 }
}

/* For any spacer area you want after the hero (optional) */
.footer-spacer{ height:40vh }



:root{
  --glass: rgba(0,0,0,.28);
  --glass-strong: rgba(0,0,0,.45);
  --text: silver;
  --muted: #c9c9cf;
  --accent: blue;   /* orange hover */
  --pill-h: 56px;
}

/* =========== Header =========== */
.header{
  position: fixed; inset: 0 0 auto 0; height: 88px; z-index: 120;
  pointer-events: none; /* only chrome/brand/hamburger are interactive */
}
.header .brand{
  position: absolute; left: 80px; top: 20px; height: 60px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: .12em;
  pointer-events: all; text-decoration: none;
}
.brand .mark{ position: relative; width: 32px; height: 32px; display: inline-block; }
.brand .mark::before,
.brand .mark::after{
  content:""; position:absolute; inset:0; border:2px solid #fff; transform: rotate(45deg);
  border-radius: 2px;
}
.brand__text{ font-size: 14px; }

/* Glass nav pill */
.header .chrome{
  pointer-events: all;
  width: auto;
  position: absolute; right: 10px; left: 42%; top: 18px; height: var(--pill-h);
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  border-radius: 4px;
  border-left: 2px solid var(--accent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(10px);
}
.header.scrolled .chrome{ background: var(--glass-strong); }

.nav{ list-style: none; display: flex; gap: 4px; height: 10%; align-items: center;}
.nav a{
  display: flex; align-items: center; height: calc(var(--pill-h) - 10px);
  padding: 0 13px; border-radius: 1px;
  border-bottom: 2px solid var(--accent);
  color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover{ color: var(--accent);   border: 1px solid rgba(255,255,255,.08);   background: var(--glass);

 }
.nav a.is-active{ color: #fff; font-weight: 700; }

.only-desktop{ display: none; }

/* ===== Anchor + Bubble (unchanged look) ========================== */

.hamburger{
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 21px; background: rgba(0,0,0,.35); color:#fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.brand{ position: relative; display:inline-block; }
.brand::before{
  content:"";
  position:absolute; inset:0;
  background:url("/uns_img/Main_Scene_logo_gif.gif") center/contain no-repeat;
  opacity:0; transition:opacity .3s ease; pointer-events:none; z-index:2;
}
.brand:hover::before,
.brand:focus-within::before{ opacity:1; }
.brand:hover img,
.brand:focus-within img{ opacity:0; transition:opacity .2s;}


.hamburger span{
  width: 18px; height: 2px; background: #fff; display:block;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger.active span:nth-child(1){ transform: translateY(4px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-4px) rotate(-45deg); }

/* =========== Mobile menu =========== */
.mobile-menu{
  position: fixed; inset: 0; background: rgba(0,0,0,.48);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 110;
}
.mobile-menu.open{ opacity: 1; pointer-events: auto; }
.mobile-panel{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #111; color:#fff; border-top-left-radius: 16px; border-top-right-radius: 16px;
  padding: 7vh 6vw 9vh; transform: translateY(100%); transition: transform .28s ease;
}
.mobile-menu.open .mobile-panel{ transform: translateY(0); }
.mobile-panel nav ul{ list-style: none; display: grid; gap: 16px; font-size: 22px; }
.mobile-lang{ margin-top: 24px; display:flex; gap:10px; font-size: 16px; }

.icon-button{
  background: none; border: none; cursor: pointer;
}
@media (min-width: 1024px){
  .only-desktop{ display: list-item; }
  .hamburger{ display: none; }
}

@media (max-width: 900px){
  .header .chrome{
    right: 0px; height: 50px; width: 50px; left:0px;
    margin: 0;
    padding: 10px 0; gap: 8px; border-radius: 12px;
    background: none;
  }
  .header .brand{
  position: absolute; left: 200px; top: 14px; height: 60px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: .12em;
  pointer-events: all; text-decoration: none;
}

  .nav{ display: none; }          /* hide links inside pill on mobile */
  .lang{ display: none; }         /* language moved into mobile panel */
}

/* =========== Footer =========== */
.site-footer{
  color: #fff; background: radial-gradient(1200px 400px at 80% -20%, rgba(255,255,255,.08), transparent 60%) , #0b0b0d;
  padding: 0px; border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner{ max-width: 1200px; margin-inline: auto; padding: 10px 32px; }
.brand--footer{ display:inline-flex; align-items:center; gap:10px; color:#fff; text-decoration:none; opacity:.95; }
.cols{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; margin-top: 28px; }
.cols h4{ font-size: 14px; letter-spacing:.12em; text-transform: uppercase; opacity:.8; margin-bottom: 12px; }
.cols ul{ list-style:none; display:grid; gap:10px; }
.cols a{ padding-left: 5px; color:aliceblue; text-decoration:none; opacity:.9; border-left: solid 1px aliceblue; }
.cols a:hover{ color: var(--accent); opacity: .5;}

.footer-lang{ margin-top: 14px; display:flex; align-items:center; gap:10px; }
.footer-lang .sep{ opacity:.5; }
.footer-lang button{ background:none; border:none; color:#fff; cursor:pointer; padding:2px 4px; border-bottom:1px solid transparent; }
.footer-lang button.active{ border-color:#fff; }

.legal{
  margin-top: 28px; padding-top: 18px;
  display:flex; flex-wrap:wrap; gap:16px; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08); opacity:.8; font-size: 13px;
}
.site-footer {
  color: #fff;

  padding: 0px;

  /* Add logo */
  background-image: url('/uns_img/logo (1).svg'),
    radial-gradient(1200px 400px at 80% -20%, rgba(255,255,255,.08), transparent 60%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 430px bottom 100px, center top;
  background-size: 100px auto, auto;
}

@media (max-width: 800px){
  .cols{ grid-template-columns: 1fr; gap: 20px; }
 .site-footer {
  color: #fff;

  padding: 0px;

  /* Add logo */
  background-image: url(),
    radial-gradient(1200px 400px at 80% -20%, rgba(255,255,255,.08), transparent 60%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 600px top 100px, center top;
  background-size: 100px auto, auto;
}


}

/* Header height token so hero can pad under it neatly */
:root{
  --header-h: 88px;       /* match your header's real height */
  --hero-tall: 100vh;     /* default: just one screen */
}

/* Never add an implicit gap before the first section */
main{ margin-top: 0; }

/* Headings can collapse margins with the section.
   Keep a tidy, predictable top spacing instead. */
#hero h1{ margin-block: 0.08em 0.25em; }

/* ===== HERO ===== */
.hero{
  position: relative;
  isolation: isolate;
  min-height: var(--hero-tall);        /* was 180vh inline – remove that */
  overflow: hidden;
  touch-action: none;
}

/* Media covers the viewport and stays pinned while you scroll the hero */
.hero.sticky video,
.hero.sticky canvas{
  position: sticky;     /* pin to viewport within the hero only */
  top: 0;
  width: 100%;
 height: max-content;  inset-inline: 0;
  z-index: 0;
}
.hero video{ object-fit: cover; display:none; }   /* your JS unhides on fallback */
.hero canvas{ pointer-events: none; }

/* Optional subtle dark scrim (set --hero-scrim > 0 if you want it) */
.hero::after{
  position:absolute; inset:0; z-index:1;
  opacity: var(--hero-scrim, 0);
  pointer-events:none;
}

/* If you previously had this, remove/override it so the text doesn't wait
   until the 2nd scroll to appear: */
.hero.sticky .hero__inner{
  position: relative !important;
  top: auto !important;
  inset: auto !important;
}

/* --- HERO FIX (place at end of stylesheet) --------------------------- */
/* 1) Let the hero be as tall as its content (no static 180vh) */
.hero.sticky{ min-height:auto; }

/* 2) Media stays pinned to the viewport while you scroll the hero */
.hero.sticky video,
.hero.sticky canvas{
  position: sticky;
  top: 0;
  width: 100%;
 height: max-content;  inset-inline: 0;
  z-index: 0;
}

/* === HERO FIX (place last) ========================================= */
:root{ --header-h: 88px; } /* match your real header height */

.hero{
  /* kill the giant fixed height and make it a normal section */
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #000; /* ensures readable fallback even if video/canvas don't draw */
  overflow: clip;
}

/* keep media pinned in the viewport, behind content */
.hero.sticky video,
.hero.sticky canvas{
  position: sticky;
  top: 0;
  width: 100%;
 height: max-content;  inset-inline: 0;
  z-index: 0;
}
.hero video{ object-fit: cover; display: none; } /* your JS shows it on fallback */
.hero canvas{ pointer-events: none; }


/* force copy to the top and above media (undo any old absolute/inset rules) */
/* --- Left positioning for hero copy + callout --------------------- */
:root{ --pad-x: clamp(16px, 4vw, 40px); }

.hero__inner{
  position: relative !important;
  inset: auto !important;
  top: 20px !important;
  left: var(--pad-x);        /* <-- left offset */
  right: auto;               /* avoid stretching */
  z-index: 2;

  /* keep a sane readable line length when we shove it left */
  max-width: min(var(--max-w), calc(100% - 2*var(--pad-x)));
  padding-top: calc(var(--header-h) + clamp(12px, 3vw, 36px));
  padding-bottom: clamp(56px, 12vh, 160px);
}

/* If you want the callout on the LEFT too, use left and unset right */
.callout{
  position: absolute;
  left: var(--pad-x);        /* <-- left offset */
  right: auto !important;    /* stop right anchoring */
  top: 5rem;                 /* was 8vh */
  z-index: 2;
  width: max-content;
  height: max-content;
}

/* Mobile: nudge things neatly and avoid edge hugging */
@media (max-width: 900px){
  .hero__inner{
    left: var(--pad-x);
    max-width: calc(100% - 2*var(--pad-x));
  }
  .callout{
    left: var(--pad-x);
    right: var(--pad-x);   /* make it a nice full-width card on small screens */
    top: 16px;
  }
}

/* make sure section anchors don't hide under the fixed header 
section[id]{ scroll-margin-top: calc(var(--header-h) + 12px); }
 ===== HERO layout like the screenshot ===== */

/* 2-column grid: left copy, right CTA */
.hero__inner{
  position: relative !important;
  inset: auto !important;
  top: 20px !important;
  left: var(--pad-x);
  right: auto;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr min(38vw, 420px);
  grid-template-areas:
    "title cta"
    "desc  cta";
  align-items: center;
  column-gap: clamp(24px, 6vw, 64px);
  row-gap: clamp(8px, 2vw, 18px);

  max-width: min(var(--max-w), calc(100% - 2*var(--pad-x)));
  padding-top: calc(var(--header-h) + clamp(12px, 3vw, 36px));
  padding-bottom: clamp(56px, 12vh, 160px);
}

/* place children into the grid areas */
.hero__inner > h1{ grid-area: title; }
.hero__inner > p { grid-area: desc; max-width: 56ch; color: var(--muted); }

/* Right-side CTA block */
.hero__inner .actions{
  grid-area: cta;
  justify-self: end;
  align-self: center;
  position: relative;        /* anchor the orb */
  display: flex;
  gap: 12px;
}

/* pill button styling (keeps your class names) */
.hero .btn--pill{
  height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 64px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero .btn--pill:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 14px 36px rgba(0,0,0,.45);
}

/* glossy orb behind the CTA */
.hero__inner .actions::after{
  content:"";
  position:absolute;
  right:-72px;               /* pushes orb behind/right of the pill */
  top:50%;
  transform: translateY(-50%);
  width: 148px;
  height: 148px;
  border-radius: 50%;
  z-index: -1;
  pointer-events:none;
  background:
    radial-gradient(60% 60% at 35% 35%, rgba(255,255,255,.28), rgba(120,150,255,.35) 45%, rgba(30,55,160,.95) 100%);
  box-shadow: inset 0 10px 30px rgba(255,255,255,.15), 0 10px 40px rgba(0,0,0,.45);
  filter: saturate(1.1);
}

/* headline sizing similar to reference */
#hero h1{
  font-size: clamp(32px, 6.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 1px 0 #0006, 0 8px 40px #000a;
}

/* paragraph spacing */
#hero p{ margin-top: 10px; }

/* Mobile: stack vertically and keep CTA under the copy */
@media (max-width: 900px){
  .hero__inner{
    left: var(--pad-x);
    right: var(--pad-x);
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "desc"
      "cta";
    justify-items: start;
  }
  .hero__inner .actions{
    justify-self: start;
    margin-top: 8px;
  }
  .hero__inner .actions::after{
    right: -24px;
    width: 108px; height: 108px; opacity: .9;
  }
}
/* ================== BIGGER, LEFT-LEANING HERO ================== */
.hero__inner{
  /* wider readable block, left aligned */
  max-width: min(1200px, 92vw);
  text-align: left;
}
.hero__inner h1{
  font-size: clamp(40px, 8.2vw, 96px);
  letter-spacing: -0.015em;
  line-height: 1.03;
}
.hero__inner p{
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 22px);
  max-width: 62ch;
}
.actions{ gap: 16px; }
.btn--pill{
  padding: 16px 22px;
  font-size: 16px;
  border-radius: 999px;
}


.hero-hotspots{
  height: clamp(420px, 56vw, 620px);
}

/* glass “chips” */
.hs-chip{
  min-height: 64px;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 16px;
}
.hs-consult{ top: 5%;  right: 6%;  width: 360px; }
.hs-advisor{ top: 44%; left: 10%; width: 300px; }

/* calculator panel */
.hs-panel{
  width: min(360px, 50%);
  padding: 20px 18px 14px;
  border-radius: 18px;
}
.hs-panel h4{ font-size: 20px; margin: 0 0 10px 0; line-height: 1.1; }
.hs-panel p{ font-size: 14px; margin: 0 0 14px 0; }
.hs-btn{ padding: 10px 16px; font-size: 13px; }

/* glossy orbs bigger too */
.hs-orb{ filter: saturate(1.1) brightness(1.02); }
.orb-1{ width: 120px; height: 120px; }
.orb-2{ width: 96px;  height: 96px;  }
.orb-3{ width: 140px; height: 140px; }
.orb-4{ width: 108px; height: 108px; }

/* ================== MOBILE TWEAKS (still bigger) ================== */
@media (max-width: 900px){
  .hero__inner h1{ font-size: clamp(34px, 8.8vw, 64px); }
  .hero__inner p{ font-size: clamp(15px, 3.6vw, 18px); }

  .callout{ left: var(--pad-x); right: var(--pad-x); width: auto; }
  .hero-hotspots{ height: 520px; }

  .hs-chip{ font-size: 15px; min-height: 60px; }
  .hs-consult{ top: 4%; right: 0; left: 0; margin-inline: auto; width: min(86vw, 460px); }
  .hs-advisor{ top: 40%; left: 0; width: min(70vw, 360px); }

  .hs-panel{ right: 0; left: auto; bottom: 4%; width: min(82vw, 420px); }
  .hs-panel h4{ font-size: 18px; }
  .hs-panel p{ font-size: 13px; }

  .orb-1{ width: 110px; height: 110px; }
  .orb-2{ width: 90px;  height: 90px;  }
  .orb-3{ width: 120px; height: 120px; }
  .orb-4{ width: 100px; height: 100px; }
}
/* ------------ Info Grid (About / Industry Focus) ------------ */
.info-grid{ color:#fff; 
  position: absolute;
  left: var(--pad-x);        /* <-- left offset */
   width:90%; align-items: center; justify-content: center;
  right: var(--pad-x);    /* stop right anchoring */
  top: 5rem;  
  z-index: 2;
  height: max-content; }
.container{ margin-inline:auto; padding-inline:var(--pad-x) ; width:100%; align-items: center; justify-content: center;
margin-bottom: 5rem;}
.main-row{
  align-items: center; justify-content: center;
  position:relative;
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(22px, 3vw, 34px) 0;
}
.info-row{
  position:relative;
  display:grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(22px, 3vw, 34px) 0;
}

/* top & (for the last item) bottom rules */
.info-row::before,
.info-row:last-child::after{
  content:"";
  position:absolute; left:0; right:0; height:1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.20) 0%,
    rgba(255,255,255,.28) 18%,
    rgba(255,255,255,.12) 82%,
    rgba(255,255,255,.05) 100%);
}
.info-row::before{ top:0; }
.info-row:last-child::after{ bottom:0; }
/* ---------- Hoverable bubbly card ---------- */
.info-right{
  position: relative;
  overflow: hidden;                /* clip glow */
  border-radius: 14px;
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 2vw, 26px);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition:
    background .35s ease,
    box-shadow .35s ease,
    color .35s ease;
}

/* Background + text color fade on hover/focus */
.info-right:hover,
.info-right:focus-within{
  background: rgba(18, 28, 58, .28);                 /* glassy blue */
  box-shadow:
    inset 0 0 0 1px rgba(122,166,255,.36),
    0 10px 30px rgba(0,0,0,.25);
  color: #fff;
}
.info-right:hover .info-copy,
.info-right:focus-within .info-copy{ color:#fff; }

.info-right:hover .eyebrow-link,
.info-right:focus-within .eyebrow-link{
  color:#fff;
  border-color: rgba(255,255,255,.35);
}

/* Bubbly glow layer (two stacks of radial-gradients) */
.info-right::before,
.info-right::after{
  content:"";
  position:absolute;
  inset:-20%;                       /* bleed past the edges for smoothness */
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(.92) translate3d(0,0,0);
  transition: opacity .35s ease;
}

/* Front layer – soft blue/white “bubbles” */
.info-right::before{
  background:
    radial-gradient(180px 180px at 20% 35%, rgba(122,166,255,.28), transparent 60%),
    radial-gradient(120px 120px at 70% 65%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(90px 90px   at 40% 80%, rgba(122,166,255,.18), transparent 60%);
  animation: bubbleShift 2.2s ease-out both paused;
}

/* Back layer – second pass for depth */
.info-right::after{
  background:
    radial-gradient(140px 140px at 80% 25%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(100px 100px at 25% 75%, rgba(122,166,255,.22), transparent 60%);
  animation: bubbleShift2 2.4s ease-out both paused;
}

.info-right:hover::before,
.info-right:hover::after,
.info-right:focus-within::before,
.info-right:focus-within::after{
  opacity: .9;
  animation-play-state: running;
}

/* Gentle “bubbly” motion */
@keyframes bubbleShift{
  0%   { transform: scale(.95) translate3d(-10px, 10px,0); }
  60%  { transform: scale(1.05) translate3d(  6px, -6px,0); }
  100% { transform: scale(1.00) translate3d(  0px,  0px,0); }
}
@keyframes bubbleShift2{
  0%   { transform: scale(.92) translate3d( 10px, -6px,0); }
  60%  { transform: scale(1.06) translate3d( -6px,  8px,0); }
  100% { transform: scale(1.00) translate3d(  0px,  0px,0); }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .info-right::before,
  .info-right::after{ animation: none !important; }
}

/* small glowing dot on the rule (right edge) */
.rule-dot{
  position:absolute; top:-3px; right:6px;
  width:6px; height:6px; border-radius:50%;
  background: var(--accent, #7aa6ff);
  box-shadow: 0 0 10px 2px rgba(122,166,255,.5);
}

/* left column */
.info-title{
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px 0;
}
.btn-chip{
  display:inline-flex; align-items:center; gap:8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:#fff; text-decoration:none; font-size:14px;
  transition: background .2s ease, transform .12s ease;
}
.btn-chip:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* right column */
.eyebrow-link{
  display:inline-block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-decoration:none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.eyebrow-link:hover{
  color:#fff; border-color: rgba(255,255,255,.35);
}
.info-copy{
  color: var(--muted, #c9c9cf);
  font-size: clamp(14px, 1.6vw, 15px);
  line-height: 1.6;
  max-width: 72ch;
}

/* responsive: stack on small screens */
@media (max-width: 900px){
  .info-row{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .info-title{ margin-bottom: 8px; }
  .btn-chip{ margin-bottom: 4px; }
  .info-copy{ max-width: none; }
}
/* ===== CTA pill with moving bubble ===== */
.cta-wrap{
  --sz: 96px;                 /* bubble size */
  --shift-x: 36%;             /* bubble sits a bit to the right of the pill */
  --lift: -50%;               /* vertical centering */
  --bubble: radial-gradient(circle at 30% 30%,
              #a7baff 0 18%, #6b8cff 35%, #2c48c6 55%, #0b1130 78%, #090d26 100%);
  position: relative;
  display: inline-block;
  padding-right: 6px;         /* visual balance to the bubble */
  isolation: isolate;         /* keep bubble below the pill */
}

/* the bubble */
.cta-wrap::after{
  content:"";
  position:absolute;
  width: var(--sz);
  height: var(--sz);
  transform: translate(var(--shift-x), var(--lift)) translate(var(--mx, 0px), var(--my, 0px));
  border-radius: 50%;
  background: var(--bubble);
  box-shadow:
    inset -18px -22px 36px rgba(0,0,0,.45),
    inset 10px 14px 24px rgba(255,255,255,.15),
    0 12px 40px rgba(0,0,0,.35);
  filter: saturate(1.1);
  z-index: 0;
  pointer-events: none;
  animation: bubbleFloat 6s ease-in-out infinite;
}
.button-bubble{
background: none;
margin: 10%;
border: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .6rem;
  width: 100%;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: x-large;
  letter-spacing: .01em;
}

/* the pill */
.cta-bubble{
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 10px 30px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 28px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

/* hover focus states */
.cta-wrap:hover::after{ animation-duration: 3.5s; }
.cta-bubble:hover,
.cta-bubble:focus-visible{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  box-shadow:
    0 10px 34px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.35);
  transform: translateY(-1px);
  outline: none;
}

/* gentle float */
@keyframes bubbleFloat{
  0%   { transform: translate(var(--shift-x), var(--lift)) translate(calc(var(--mx,0px) - 2px), calc(var(--my,0px) + 1px)) scale(1); }
  50%  { transform: translate(calc(var(--shift-x) + 6px), calc(var(--lift) - 2px)) translate(var(--mx,0px), var(--my,0px)) scale(1.03); }
  100% { transform: translate(var(--shift-x), var(--lift)) translate(calc(var(--mx,0px) + 2px), calc(var(--my,0px) - 1px)) scale(1); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .cta-wrap::after{ animation: none; }
  .cta-bubble{ transition: none; }
}
/* keep the whole button on one line */
.button-bubble{
  cursor: pointer;
  display: inline-flex;   /* was flex + width:100% */
  width: auto;            /* pill fits its content */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* the pill + its label never wraps */
.cta-bubble{
  white-space: nowrap;
  width: max-content;     /* size to the text */
  line-height: 1;         /* tidy vertical rhythm */
}

/* OPTIONAL: if you put the label inside a span, add ellipsis on overflow */
.cta-bubble .label{
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;  /* full black preloader background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;

  transition: opacity 1.2s ease;
}

/* When hidden */
#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

/* Keep the image in original size centered */
#preloader img {
  position: relative;
  display: block;
  max-width: 100%;
  height: auto;
}
#desktop, #mobile, #desktop2, #mobile2 {
  display: none;
}
/* --- sizing tokens (safe to tweak) ------------------------------- */
:root{
  --u: clamp(10px, 1.2vw, 16px);          /* base unit */
  --radius: clamp(16px, 2vw, 22px);
  --cardW: clamp(260px, 32vw, 520px);     /* right side card width */
  --glass: rgba(255,255,255,.10);
  --glass-2: rgba(255,255,255,.14);
  --stroke: rgba(255,255,255,.22);
  --ink: #fff;
  --ink-2: #e7ebf4;
  --ink-dim: #cfd6e6;
  --accent: #6ea4ff;
}

/* --- layout: make callout act as the two-column container -------- */
.callout.mp-deck{
  position: absolute;         /* in your hero */
  left: var(--pad-x, 4vw);
  right: auto;
  top: clamp(9vh, 16vh, 22vh);
  z-index: 2;

  /* look/feel like a lightweight container */
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;

  /* two columns: logo / cards */
  display: grid;
  grid-template-columns: minmax(260px, 34vw) minmax(320px, 45vw);
  align-items: center;
  gap: clamp(20px, 6vw, 80px);
}

/* ---------------- left column (your logo form) ------------------- */
.slide-main{
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 10%;
  text-align: left;
  cursor: pointer;
}
.main-item{
  position: relative;     /* anchoring area for stacked cards */
  width: 20%;
  background: transparent;
  border: 0;
  margin: 0;
  right: 0;
  padding: 0;
  isolation: isolate;
}
.slide-text{
  height: 80dvh;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
}
.slide-title img{
  width: min(30vw, 420px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.slide-desc{
  margin-top: .4em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: clamp(30px, 6vw, 40px);
}
.slide-main .slide-title,
.slide-main .info-copy { transition: opacity 1s ease; }
.slide-main { cursor: pointer; }
.slide-main .line > * { transition: opacity 1s ease; }
.slide-main.is-swapping .line > * { opacity: 1.25; }
.line .alt[hidden] { display: none !important; }


/* ---------------- right column (your mp-item stack) -------------- */
.mp-item{
  position: relative;     /* anchoring area for stacked cards */
  width: 80%;
  background: transparent;
  border: 0;
  margin: 0;
  right: 0;
  padding: 0;
  isolation: isolate;
}

/* shared glass card look */
.content-box{
  position: absolute;
  width: clamp(240px, 60%, var(--cardW));
  border-radius: var(--radius);
  padding: calc(1.1*var(--u)) calc(1.4*var(--u));
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(20, 18, 60, .25),
    0 0 1px rgba(255,255,255,.25) inset;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.content-box:hover{
  transform: translateY(-4px);
  background: var(--glass-2);
  box-shadow:
    0 16px 44px rgba(20, 18, 60, .35),
    0 0 1px rgba(255,255,255,.3) inset;
}

/* title + copy sizes */
.content-box h3{
  margin: 0 0 .35em 0;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.3;
}
.content-box p{
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.5;
}

/* CTA on the bottom card */
.content-box.bottom button{
  margin-top: .8em;
  margin-left: auto;
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .55em 1.1em;
  font-size: clamp(12px, 1.1vw, 14px);
  color: #fff;
  background: linear-gradient(90deg, #1a195a 0%, #5f6dff 100%);
  box-shadow: 0 8px 24px rgba(55, 70, 180, .45);
  cursor: pointer;
}

/* hover/flip helper (keeps your primary/hover text behaviour) */
.content-box .hover-text{ display:none; opacity:0; transition:opacity .25s ease; }
.content-box:hover .hover-text{ display:block; opacity:1; }
.content-box .primary-text{ display:block; opacity:1; transition:opacity .25s ease; }
.content-box:hover .primary-text{ opacity:0; }

/* --------- stack positions to match your screenshot -------------- */
/* top right card */
.content-box.top{
  top: 15%;
  right: 0;
  left: auto;
  transform: translateX(8%);
}
/* middle left small pill */
.content-box.middle{
  top: 40%;
  left: 15%;
  width: auto;
}
/* bottom larger card slightly to the right */
.content-box.bottom{
  bottom: 2%;
  left: 22%;
  width: auto;
}

/* ---------------- decorative orbs (bubbles) ---------------------- */
.bubble{
  position: absolute;
  width: clamp(64px, 8vw, 110px);
  height: clamp(64px, 8vw, 110px);
  border-radius: 50%;
  left: 0;
  top: 15%;
  z-index: -1;
  opacity: .75;
  background:
    radial-gradient(120% 120% at 25% 20%, #ffffff 0 22%, #cfe0ef 34%, #38408a 52%, #1b1f54 68%, #0e1036 100%);
  filter: saturate(1.05);
  animation: bubbleFloat 7.8s ease-in-out infinite;
}
.bubble.small{
  width: clamp(44px, 6vw, 76px);
  height: clamp(44px, 6vw, 76px);
  left: 16px;
  top: 37%;
  animation-delay: 1.4s;
}
@keyframes bubbleFloat{
  0%   { transform: translateY(0);    }
  50%  { transform: translateY(-14px);}
  100% { transform: translateY(0);    }
}

/* ------------------- mobile adjustments -------------------------- */
@media (max-width: 860px){
  .button-bubble{
  cursor: pointer;
  display: flex;
  flex-direction: column;      /* stack vertically */
  align-items: center;         /* center items horizontally */
  justify-content: center;     /* center items vertically */
  gap: .1rem;

  width: 60%;
  margin: 2%;
  border: none;
  border-radius: 12px;

  color: #fff;
  font-weight: 700;
  font-size: medium;
  letter-spacing: .01em;

  white-space: normal;         /* allow text to wrap */
  /* flex-wrap not needed when using column; remove/unset */
}

.cta-bubble{
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: left;
  justify-content: left;
  gap: .1rem;
  padding: 1px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 28px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

  .callout.mp-deck{
    position: static;
    grid-template-columns: 1fr;
    gap: clamp(16px, 5vw, 28px);
    padding: 0 var(--pad-x, 4vw);
  }
  .slide-title img{ width: min(62vw, 420px); }
  .mp-item{ max-width: 560px; }
  .content-box{ position: relative; left:auto; right:auto; top:auto; bottom:auto; width: 100%; transform:none; margin-bottom: 14px; }
  .bubble, .bubble.small{ display:none; }
}
/* ===== Sticky side / changing content ===== */
:root{
  --header-h: 88px;            /* match your fixed header height */
  --why-pad: clamp(18px, 4vw, 48px);
  --why-accent: blue;
  --why-ink: #fff;
  --why-muted: #e8e8ee;
  --why-bg: transparent;
}

.why-smooth{
  background: radial-gradient(1200px 600px at 70% -10%, rgba(255,120,120,.07), transparent 60%), var(--why-bg);
  color: var(--why-ink);
  padding: clamp(40px, 8vh, 84px) 0;
}

.why-wrap{
  margin-inline: auto;
  padding-inline: var(--why-pad);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 5vw, 72px);
}

/* Left: sticky */
.why-left{
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

.why-bar{
  display: block;
  width: 4px;
  height: clamp(60px, 14vh, 120px);
  background: linear-gradient(var(--why-accent), transparent);
  border-radius: 2px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.why-bar3{
  display: block;
  width: 4px;
  height: clamp(60px, 14vh, 120px);
  background: linear-gradient(transparent, var(--why-accent) );
  border-radius: 2px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.why-bar-2{
  display: block;
  height: 4px;  /* thickness of divider */
  width: clamp(60px, 14vh, 120px); /* now width instead of height */
  background: linear-gradient(to right, var(--why-accent), transparent);
  border-radius: 2px;
  align-self: center; /* center it vertically between cards */
  margin: 0 clamp(12px, 2vw, 24px); /* horizontal gap */
}

.why-title{
  display: grid;
  gap: clamp(2px, .6vw, 6px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: .02em;
  font-size: clamp(33px, 9vw, 100px);
  text-transform: uppercase;
}
.why-title span{ display: block; }

.why-kicker{
  margin-top: clamp(12px, 2vw, 18px);
  color: var(--why-muted);
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 36ch;
}

/* Right: stack of panels */
.why-right{ display: grid; gap: clamp(60px, 22vh, 32vh); 
align-items: center;
  justify-content: center;}
.why-panel{
  min-height: clamp(420px, 76vh, 860px);
  display: grid;
  align-content: end;
  gap: 10px;
  padding-bottom: clamp(24px, 6vh, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.why-panel h3{
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: .02em;
}
.why-panel p{
  max-width: 64ch;
  color: var(--why-muted);
  font-size: clamp(14px, 1.6vw, 18px);
}

/* Fade of the left content when switching */
.why-left.fade{
  transition: opacity .28s ease, transform .28s ease;
  opacity: .2;
  transform: translateY(6px);
}

/* Mobile: stack columns */
@media (max-width: 960px){
  .why-wrap{ grid-template-columns: 1fr; }
  .why-left{ position: static; }
  .why-kicker{ max-width: 60ch; }
}
/* ===== Experience block: bigger & centered ======================= */
.experience-block{
  position: relative; isolation: isolate; z-index: 99999 !important;
  display: flex;                     /* was inline-block; let flex props work */
  flex-direction: column;
  align-items: center;
  text-align: center;

  box-sizing: border-box;
  width: min(100%, 980px);           /* wider */
  height: auto;                      /* no forced shrink */
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);   /* more breathing room */
  border-radius: 18px;
  background: none;
  backdrop-filter: blur(10px);
  color: #ffffff;
  flex-shrink: 0;
}

/* sequence anim (unchanged) */
.seq{ opacity:0; transform:translateY(20px); animation:fadeUp .8s ease-out forwards; }
.seq-1{ animation-delay:.2s; } .seq-2{ animation-delay:.6s; } .seq-3{ animation-delay:1s; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

/* ===== Typography – larger ====================================== */
.experience-block h2{
  margin: 0 0 .5rem;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}
.experience-block p{
  margin-top: 12px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}

/* ===== Industry list – bigger cards ============================== */
.industry-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.industry-card{
  text-align: center;
  background: rgba(2,3,24,.08);
  border-radius: 14px;
  padding: clamp(12px, 2.2vw, 18px);
}
.industry-card.full-width{ grid-column: 1 / -1; }
.industry-card h3{
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
}
.industry-card ul{
  list-style: none; padding: 0; margin: 0;
}
.industry-card li{
  margin-bottom: 6px;
  font-size: clamp(14px, 1.6vw, 18px);
}

/* ===== Process flow – larger steps =============================== */
.process-flow{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px) clamp(14px, 2vw, 22px);
  margin-bottom: clamp(10px, 2vw, 18px);
}
.step-item{ position: relative; padding-left: clamp(18px, 2.4vw, 28px); }
.step-number{
  position: absolute; left: 0; top: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800; line-height: 1;
}
.step-number::after{ content:"."; color:#007BFF; }
.step-item h4{
  margin: 0 0 8px;
  font-size: clamp(16px, 2vw, 20px);
}
.step-box{
  background: rgba(2,3,24,.08);
  border-radius: 10px;
  padding: clamp(10px, 2vw, 16px);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.55;
}

/* ===== Promise block – roomier layout ============================ */
.promise-block{ display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(16px, 3vw, 28px); }
.promise-text h3{ margin: clamp(10px, 2vw, 20px) 0; font-size: clamp(24px, 3vw, 38px); }
.promise-text p{ font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; }

.promise-steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.promise-item{ position: relative; padding-left: clamp(18px, 2.6vw, 32px); }
.promise-number{
  position: absolute; left: 0; top: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800; line-height: 1;
}
.promise-number::after{ content:"."; color:#007BFF; }
.promise-item h4{ margin: 6px 0 8px; font-size: clamp(16px, 2vw, 22px); }
.promise-item p{ font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; }

/* dotted header helper */
.with-dot::after{ content:"."; color:#007bff; margin-left: .1rem; }

/* ===== Responsive tweaks ======================================== */
@media (max-width: 1024px){
  .industry-list{ grid-template-columns: repeat(2, 1fr); }
  .promise-block{ grid-template-columns: 1fr; }
  .promise-steps{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .industry-list{ grid-template-columns: 1fr; }
  .process-flow{ grid-template-columns: 1fr; }
}
:root{
  --bg-dark:transparent;
  --ink-dim:#cfd2da;
  --ink:#fff;
  --accent:#1922ff;
}

/* ===== Sticky container ===== */
.partners-section{
  position: relative;
  /* Taller than a screen so we have scroll room while the inner stays stuck */
  height: 180vh;                 /* tune: 150–220vh */
  background: var(--bg-dark);
}
.partners-sticky{
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
}

/* Layout wrapper so content doesn’t hug edges */
.partners-wrap{
  width: min(1200px, 92vw);
  margin-inline: auto;
  text-align: center;
}

/* Big headings */
.partners-label{
  margin: 0.3em 0;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  font-size: clamp(32px, 8vw, 96px);
  color: var(--ink-dim);
}

/* The lower “PARTNERS” word gets the moving glow toward the T */
.partners-word{
  position: relative;
  color: color-mix(in srgb, var(--ink-dim) 72%, var(--ink) 28%);
}
.partners-word::after{
  /* soft spotlight that moves horizontally as you scroll */
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(220px 120px at var(--spot-x,50%) 50%,
      rgba(255,255,255,.85), rgba(255,255,255,.25) 40%, transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: var(--spot-a, .35);
}
/* Keep the T white even when the spotlight isn’t on it */
.partners-word .spot{ color:#fff; }

/* Flipping strip */
#partnerFlipContainer{ text-transform:uppercase; padding-top: 10px; }
#partnerFlip{
  height: 70px;
  padding-top: 14px;
  overflow: hidden;
}
#partnerFlip > div > div{
  color:#fff; height:90px; display:inline-block; width:100%;
  text-align:center; background:#4ec7f3;
  font-size: clamp(18px, 3vw, 36px); font-weight:700;
}
#partnerFlip div:first-child div{ background:#1922ff; }
#partnerFlip div:last-child  div{ background:#2a244e; }

@keyframes partnerFlipAnimation{
  0% {margin-top:-180px;} 5% {margin-top:-130px;}
  33%{margin-top:-130px;} 38%{margin-top:-60px;}
  66%{margin-top:-60px;}  71%{margin-top:0px;}
  99.99%{margin-top:0px;} 100%{margin-top:-180px;}
}
#partnerFlip div:first-child{ animation: partnerFlipAnimation 5s linear infinite; }

/* Logos row */
.partners-static{
  margin-top: clamp(20px, 4vw, 48px);
  display:flex; flex-wrap:wrap; gap: clamp(12px, 3vw, 28px);
  justify-content:center; align-items:center;
}
.partner-logo img{
  width: clamp(160px, 22vw, 360px);
  height: clamp(70px, 8vw, 140px);
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}

/* ===== Next white section ===== */
.hall{
  background:#fff;
  color:#0a0c16;
  padding: clamp(48px, 6vw, 100px) 4vw;
}
.hall-inner{
  max-width: 1100px; margin-inline:auto;
}
.hall h2{
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 .4em;
}
.hall p{
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
}

/* Slight mobile tightening */
@media (max-width: 700px){
  .partners-label{ font-size: clamp(28px, 12vw, 64px); }
}
.cards-container
{
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.cards-container .box
{
  position: relative;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 30px;
  transition: 0.5s;
}

.cards-container .box::before
{
  content:' ';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.cards-container .box::after
{
  content:'';
  position: absolute;
  top: 0;
  left: 50;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
}

.cards-container .box:hover:before,
.cards-container .box:hover:after
{
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
  
}

.cards-container .box:nth-child(1):before,
.cards-container .box:nth-child(1):after
{
  background: linear-gradient(315deg, aliceblue, #3d4bdb)
}

.cards-container .box:nth-child(2):before,
.cards-container .box:nth-child(2):after
{
  background: linear-gradient(315deg, #3d4bdb, #000000)
}

.cards-container .box:nth-child(3):before,
.cards-container .box:nth-child(3):after
{
  background: linear-gradient(315deg, #000000, aliceblue)
}

.cards-container .box span
{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.cards-container .box span::before
{
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.1s;  
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08)
}

.cards-container .box:hover span::before
{
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.cards-container .box span::after
{
  content:'';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  animation-delay: -1s;
}

.cards-container .box:hover span:after
{
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

@keyframes animate
{
  0%, 100%
  {
    transform: translateY(10px);
  }
  
  50%
  {
    transform: translate(-10px);
  }
}

.cards-container .box .content
{
  position: relative;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transform: 0.5s;
  color: #fff;
}

.cards-container .box:hover .content
{
  left: -25px;
  padding: 60px 40px;
}

.cards-container .box .content h2
{
  font-size: 2em;
  color: #fff;
  margin-bottom: 10px;
}

.cards-container .box .content p
{
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: normal;
    text-align: left;

}

.cards-container .box .content a
{
  display: inline-block;
  font-size: 1.1em;
  padding: 10px;
  color: #111;
  background: linear-gradient(90deg, #1a195a 0%, #5f6dff 100%);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;

}

.cards-container .box .content a:hover
{
  background: #ffffff;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
  cursor: pointer;
}
/* === Responsive grid for cards (5 → 4 → 3 → 2 → 1) === */
.cards-container{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(240px, 1fr)); /* prefer 5 */
  gap: 40px 30px;               /* row / column gap */
  padding: 40px var(--pad-x, 0);
  margin-top: 0.4rem;
  justify-items: center;        /* center each card */
}

/* Let the grid control width; remove flex margins */
.cards-container .box{
  width: 100%;
  max-width: 340px;             /* keeps a nice card size */
  margin: 0 !important;
}

/* Breakpoints: step down columns */
@media (max-width: 1400px){
  .cards-container{ grid-template-columns: repeat(4, minmax(240px, 1fr)); }
}
@media (max-width: 1100px){
  .cards-container{ grid-template-columns: repeat(3, minmax(230px, 1fr)); }
}
@media (max-width: 800px){
  .cards-container{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 520px){
  .cards-container{ grid-template-columns: 1fr; }
}
@media (min-width: 520px){
  :root{ --card-min-h: 260px; }
  .cards-container{ grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 22px; }
}
@media (min-width: 820px){
  :root{ --card-min-h: 300px; }
  .cards-container{ grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 26px; padding: 28px 20px; }
  .cards-container .box{ max-width: 360px; }
}
@media (min-width: 1100px){
  :root{ --card-min-h: 320px; }
  .cards-container{ grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 30px; }
}
@media (min-width: 1400px){
  :root{ --card-min-h: 330px; }
  .cards-container{ grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 34px 28px; padding: 36px 24px; }
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  background: linear-gradient(to right, blue, #00ffff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(0, 120, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.15s ease;
  box-shadow: 0 0 12px rgba(0, 120, 255, 0.4), 0 0 24px rgba(0, 120, 255, 0.2);
  z-index: 9999;
}
.cursor-circle.active {
  transform: translate(-50%, -50%) scale(1.5);
}
/* Section shell */
/* one-line, centered, black background */
.dtrail{
  --bg: #000;                 /* pure black */
  padding: 0;                 /* remove vertical padding */
  min-height: 48vh;           /* enough height for the ribbon */
  display: flex;              /* center the strip in the viewport */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
}

/* keep the cards on a single row and center the row */
.dtrail-stage{ height: auto; }  /* not sticky; just a container */

.dtrail-strip{
  display: flex;
  flex-wrap: nowrap;          /* one line only */
  justify-content: center;    /* center the row */
  gap: var(--tile-gap);
  margin: 0 auto;
  max-width: 100vw;           /* don’t exceed viewport width */
  overflow: hidden;           /* hide any overflow if too many cards */
}

/* optional: make the ribbon a bit slimmer */
.dcard{
  height: clamp(120px, 32vh, 280px);
}

.dtrail-stage{ display:grid; place-items:center }

/* Horizontal trail (no scroll logic) */
.dtrail-strip{
  display:flex; align-items:center; gap:var(--tile-gap);
  list-style:none; padding:0; margin:0;
  max-width:min(1200px, 92vw);
  overflow:hidden; /* keeps a tight “trail” feel */
}

/* Cards */
.dcard{
  cursor: pointer;
  flex: 0 0 var(--tile-w);
  height: clamp(160px, 46vh, 440px);
  border-radius: var(--tile-r);
  overflow:hidden; background:#2b284f;
  position:relative;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  transition: flex-basis .2s ease, transform .2s ease;
  will-change: transform;
}

.dcard:hover{ flex-basis: calc(var(--tile-w) * var(--hover-grow)); }

.dcard img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: grayscale(100%) contrast(1.05) brightness(.9);
  transition: filter .25s ease, transform .25s ease;
}
.dcard:hover img{ filter:none; transform: scale(1.03); }

/* Glass overlay inside each card */
.glass-overlay{
  position:absolute; inset:auto 0 0 0; padding:14px 16px 16px;
  background: linear-gradient( to top, rgba(0,0,0,.55) 0%, rgba(45, 6, 124, 0.05) 80% );
  color:#fff;
}
.glass-overlay h3{
  margin:2px 0; font:700 clamp(12px, 1.35vw, 18px)/1.25 ui-sans-serif,system-ui,Arial;
}

/* Viewer overlay */
.dtrail-viewer{
  position:fixed; inset:0;
  display:grid; place-items:center;
  background: rgba(0,0,0,.65);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:90;
}
.dtrail-viewer.open{ opacity:1; pointer-events:auto; }

.viewer-card{
  margin:0;
  max-width:min(92vw, 1200px);
  max-height:min(82vh, 900px);
  display:grid; gap:12px;
}
.viewer-card img{
  width:100%; height:auto; max-height:inherit; object-fit:cover;
  border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.55);
}
#viewerCaption{
  color:#e9eaec; font:600 clamp(14px, 1.6vw, 18px)/1.35 ui-sans-serif,system-ui;
}

/* Close */
.viewer-close{
  position:absolute; top:5rem; right:28px;
  width:42px; height:42px; border-radius:50%;
  border:1px solid blue;
  background:rgba(0,0,0,.55); color:blue; cursor:pointer;
  display:grid; place-items:center; font-size:20px;
}
.viewer-close:hover{ background:rgba(0,0,0,.75) }

/* Perf helpers */
.dtrail, .dcard { content-visibility:auto; contain-intrinsic-size: 800px 400px; }

@media (max-width: 760px){
  .dtrail-strip{ overflow-x:auto; padding:0 12px }
  .dcard{ flex: 0 0 clamp(84px, 26vw, 160px) } /* wider base on mobile */
  .dcard:hover{ flex-basis: clamp(84px, 26vw, 160px) } /* no hover grow on touch */
}
/* Turn off blurs & animations only while scrolling */
html.scrolling .header .chrome{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(0,0,0,.35) !important;
}
html.scrolling .cta-wrap::after{ animation-play-state: paused; } /* bubble */
/* Allow normal vertical scrolling through the hero */
.hero{ touch-action: pan-y !important; }
/* Contain paints for sticky stages */
.partners-sticky{ contain: paint; }

/* Trim shadow radii on frequently animating cards/buttons */
.dcard{ box-shadow: 0 6px 18px rgba(0,0,0,.30); }
.hero .btn--pill{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35); }
.viewer-card{
  grid-template-columns: 1fr min(34ch, 38%);
  align-items: center;
}
.viewer-card img{ grid-column: 1; }
#viewerCaption{
  grid-column: 2;
  align-self: center;
  background: rgba(0,0,0,.35);
  padding: 16px 18px;
  border-radius: 14px;
}
#viewerCaption h3{ margin: .25em 0; }

@media (max-width: 760px){
  .viewer-card{ grid-template-columns: 1fr; }
  #viewerCaption{ grid-column: 1; }
}
/* Modal overlay should sit above everything */
.dtrail-viewer{
  z-index: 1400 !important;    /* was 90 */
  isolation: isolate;          /* new stacking context (Safari-safe) */
}

/* Make sure the image can't cover the button */
.viewer-card{ position: relative; z-index: 1; }

/* Keep the ✕ on top of the image */
.viewer-close{ z-index: 2; }
.glass-overlay h3{
  font-size: .5rem;
}
.dtrail-head{
  text-align:center;
  color:#fff;
  margin: 0 0 14px;
  padding: 8px 12px 0;
}
.dtrail-head h2{
  font-size: clamp(24px, 4.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dtrail-head p{
  margin: 8px auto 6px;
  max-width: 70ch;
  color:#cfd2da;
  line-height: 1.45;
}
.dtrail-tags{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px 12px;
  list-style:none; padding:0; margin:10px 0 0;
}
.dtrail-tags li{
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  font-size: clamp(12px, 1.6vw, 14px);
  color:#e9eaec;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* === Cards title block (scoped) === */
#cardsTitle{
  margin: auto ;
  text-align: center;
  color: #000000;
}

#cardsTitle h2{
  font-size: clamp(28px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

#cardsTitle h4{
  margin-top: 6px;
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 700;
  color:  blue;
  line-height: 1.15;
}

#cardsTitle p{
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted, #ffffffb3);
  line-height: 1.5;
}

/* Fix the global .hover-underline just for this block */
#cardsTitle .hover-underline{
  position: relative !important;
  right: auto !important;
  display: inline-block !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding-inline: 2px;
}
#cardsTitle .hover-underline::after,
#cardsTitle .hover-underline::before{
  height: 2px;
  bottom: -6px;
}
#cardsTitle h4.hover-underline::after,
#cardsTitle h4.hover-underline::before{
  bottom: -4px; /* tighter for the smaller line */
}

/* Small-screen spacing tweak */
@media (max-width: 700px){
  #cardsTitle{ margin-top: clamp(8px, 3vw, 16px); }
}
/* === BIGGER + VISIBLE HOVER EFFECT (paste AFTER your current footer CSS) === */

/* clickable row — bigger, with room for the underline */
.footer-item_row{
  position: relative;
  isolation: isolate;                 /* keeps underline behind text */
  cursor: pointer;
  gap: .36rem;                         /* more spacing */
  padding:0;       /* taller row */
  border-radius: .14rem;
  transition: transform .22s ease, filter .22s ease;
}
.footer-item_row:hover{
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

/* subtitle — bigger */
.footer_sub-1{
  font-size: 2;                   /* was smaller */
  opacity: .8;
}

/* main link text — BIG */
.footer_link{
  min-height: 2rem;                  /* was .26–.36 */
  align-items: center;
}
.footer_link-label{
  font-size: 2rem;                   /* make it big-big */
  font-weight: 800;
  position: relative;
  z-index: 1;                          /* above the underline */
  transition: color .22s ease, text-shadow .22s ease;
}
.footer-item_row:hover .footer_link-label{
  color: #3d4bdb;
  text-shadow: 0 2px 14px rgba(61,75,219,.45);
}

/* underline “reveal” — make sure it shows on hover */
.footer_link-bg{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: .10rem;                      /* thicker so it’s obvious */
  background: linear-gradient(90deg, #00d4ff 0%, #3d4bdb 60%, #000 100%);
  transform-origin: left center;
  transform: scaleX(0);                /* hidden by default */
  transition: transform .28s ease;
  z-index: 0;                          /* behind the text */
  box-shadow: 0 6px 18px rgba(61,75,219,.45);
}
.footer-item_row:hover .footer_link-bg,
.footer-item_row:focus-visible .footer_link-bg{
  transform: scaleX(1);                /* reveal on hover/focus */
}

/* keyboard focus — visible ring for accessibility */
.footer-item_row:focus-visible{
  outline: 3px solid #3d4bdb;
  outline-offset: 3px;
  border-radius: .16rem;
}

/* Mobile/touch: show a subtle underline by default (no hover there) */
@media (hover:none){
  .footer_link-bg{
    transform: scaleX(.85);
    opacity: .85;
  }
}

/* Optional: scale down slightly on narrow screens but keep it big */
@media (max-width: 720px){
  .footer_link-label{ font-size: .36rem; line-height: .42rem; }
  .footer_sub-1{ font-size: .20rem; line-height: .30rem; }
  .footer-item_row{ gap: .22rem; padding: .22rem .24rem .28rem; }
  .footer_link-bg{ height: .08rem; }
}
/* === Footer single-line marquee === */
.footer-marquee-line{
  overflow: hidden;
  padding:2px 0px;
}

.footer-marquee-line .marquee-track{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: footer-line-left var(--dur, 42s) linear infinite;
}

/* Pause on hover */

/* Group spacing so halves line up for the seamless loop */
.footer-marquee-line .marquee-content{
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  padding-right: clamp(18px, 2.4vw, 28px);
}

/* Chips */
.footer-marquee-line .marquee-item{
  margin: 0;
  padding: .5em 1em;
  border-radius: 4px;
  color: aliceblue;
  border-right: solid 1px aliceblue;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  font-size: clamp(14px, 2vw, 18px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}


/* Animation: first half (EN+DE) + duplicate half = 200% width → translate -50% */
@keyframes footer-line-left{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .footer-marquee-line .marquee-track{ animation: none; }
}
/* Bulbs: blue horizontal line background (6px) */
.bulbs-strip{
  /* your tokens */
  --bulb-brand:#2e5bff;
  --bulb-brand-2:#7aa6ff;
  --bulb-ink:#0b0f24;
  --bulb-panel:#eef2ff;
  --bulb-gap:clamp(12px,2.4vw,24px);
  --bulb-min:clamp(160px,22vw,280px);
  --bulb-max:clamp(220px,28vw,360px);

  position: relative;
  background: transparent;                 /* remove block fill */
  padding: clamp(24px,4vw,48px) 4vw;
  display: grid;
  gap: clamp(18px,2.6vw,28px);
  justify-items: center;
}

/* the line */
.bulbs-strip::before{
  content:"";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--bulb-brand), var(--bulb-brand-2));
  border-radius: 3px;                      /* soft ends */
  z-index: 0;
}

/* keep all bulbs sitting above the line */
.bulbs-strip > *{ position: relative; z-index: 1; }
.bulbs-strip{
  background-image: linear-gradient(90deg, var(--bulb-brand), var(--bulb-brand-2));
  background-size: 100% 6px;
  background-position: center;
  background-repeat: no-repeat;
}

  .bulbs-row{ display:flex; align-items:center; gap:var(--bulb-gap); }
  .bulbs-row .bulb + .bulb{ margin-left:calc(var(--bulb-gap)*-0.35); }

  .bulb{
    width:var(--bulb-min); height:var(--bulb-min); border-radius:50%;
    display:grid; place-items:center; position:relative;
    transition:transform .25s ease, filter .25s ease;
    background:
      radial-gradient(circle at 50% 50%, #fff 0 58%, #dfe6ff 66%, #c7d2fe 74%, #b9c6ff 82%, transparent 100%),
      radial-gradient(120% 120% at 30% 30%, rgba(46,91,255,.14), transparent 50%),
      radial-gradient(120% 120% at 70% 70%, rgba(122,166,255,.18), transparent 55%);
    box-shadow: inset 0 0 0 1px rgba(46,91,255,.35), 0 16px 40px rgba(29,44,140,.15);
  }
  .bulb:is(:hover,:focus-within){ transform:translateY(-4px) scale(1.03); }
  .bulb.is-active{ width:var(--bulb-max); height:var(--bulb-max); }

  .bulb-btn{
    cursor:pointer; text-align:center;
    font:700 clamp(18px,2.6vw,38px)/1.08 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
    color:var(--bulb-ink);
    padding:8px 14px; border-radius:10px; outline:none;
  }
  .bulb.is-active .bulb-btn{ color:var(--bulb-brand); }
  .bulb:hover .bulb-btn{ color:var(--bulb-brand); }
  .bulb-btn:focus-visible{ outline:2px solid var(--bulb-brand); outline-offset:6px; border-radius:14px; }

  .bulb-caption{
    background:var(--bulb-panel); color:#0b153a;
    border:1px solid rgba(46,91,255,.25);
    border-radius:14px;
    padding:clamp(10px,1.8vw,16px) clamp(16px,2.6vw,24px);
    font:600 clamp(13px,1.6vw,18px)/1.45 ui-sans-serif,system-ui;
    box-shadow:0 10px 28px rgba(12,22,70,.08);
    text-align:center;
  }

  @media (max-width:860px){
    .bulbs-row{ gap:14px; flex-wrap:nowrap; overflow:auto; padding-bottom:6px; }
    .bulbs-row .bulb + .bulb{ margin-left:0; }
    .bulbs-strip{
    padding: 20px 16px;
    background: transparent !important;      /* kill the horizontal bg line */
    display: block;                           /* simpler flow for stacking */
  }
  .bulbs-strip::before{
    top: 0;
    bottom: 0;                 /* full height */
    left: 50%;
    right: auto;
    width: 6px;                /* vertical line thickness */
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--bulb-brand), var(--bulb-brand-2));
    border-radius: 3px;
  }

  /* stack bulbs vertically along the line */
  .bulbs-row{
    display: flex;
    flex-direction: column;
    align-items: center;        /* center on the vertical line */
    gap: 18px;
    overflow: visible;          /* no horizontal scroll on phones */
    padding-bottom: 0;
  }
  .bulbs-row .bulb + .bulb{ margin-left: 0; } /* remove desktop overlap */

  /* tighter bulb sizing for phones */
  .bulb{
    width: clamp(96px, 26vw, 128px);
    height: clamp(96px, 26vw, 128px);
    margin-inline: auto;        /* center dot over the line */
    transform: none;            /* calmer on touch */
  }
  .bulb:is(:hover,:focus-within){ transform: translateY(-2px) scale(1.01); }

  .bulb.is-active{
    width: clamp(120px, 30vw, 160px);
    height: clamp(120px, 30vw, 160px);
  }

  /* label inside the bulb */
  .bulb-btn{
    font-size: clamp(16px, 4.2vw, 20px);
    padding: 6px 10px;
    text-align: center;
  }

  /* caption under each bulb */
  .bulb-caption{
    max-width: 40ch;
    margin: 8px auto 18px;      /* space below each “step” */
    font-size: clamp(13px, 3.6vw, 16px);
    text-align: center;
  }
  }
  /* === Bulbs: smaller variant (global override) === */
.bulbs-strip{
  --bulb-gap: clamp(8px, 1.6vw, 16px);
  --bulb-min: clamp(110px, 16vw, 180px);   /* was ~160–280 */
  --bulb-max: clamp(150px, 20vw, 230px);   /* was ~220–360 */
}

/* shrink label text */
.bulb-btn{
  font: 700 clamp(14px, 1.6vw, 24px)/1.06
        ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

/* slightly smaller caption too */
.bulb-caption{
  font-size: clamp(12px, 1.2vw, 15px);
  padding: clamp(8px, 1.2vw, 12px) clamp(12px, 2vw, 18px);
}
/* ====== Tokens ====== */
:root{
  --imp-bg:   white 80%;                   /* card background */
  --imp-ink: #1934ba;                  /* main text */
  --imp-muted: #183579;                /* labels */
  --imp-line: rgba(255,255,255,.08);   /* subtle divider */
  --imp-rad: 16px;                     /* radius */
  --imp-pad: clamp(16px, 4vw, 40px);   /* inner padding */
}

/* ====== Square container ====== */
.impact-square{
  position: relative;
  width: min(92vw, 650px);      
  aspect-ratio: 3 / 2;                 
  margin: 16px auto;
  border-radius: var(--imp-rad);
  overflow: hidden;
  background:
    var(--imp-bg);
}

/* Fallback for very old browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .impact-square{ height: 0; padding-top: 100%; }
  .impact-card{ position: absolute; inset: 0; }
}

/* ====== Layout inside ====== */
.impact-card{
  height: 100%;
  padding: var(--imp-pad);
  color: var(--imp-ink);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(12px, 2vw, 24px);
}

/* Title */
.impact-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;
  font-size: clamp(22px, 3.4vw, 42px);
  color: #000000;
}

/* Stats list */
.impact-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  grid-auto-rows: 1fr;
  align-content: start;
  gap: clamp(16px, 3.2vh, 28px);
}

/* Each stat */
.impact-item{
  display: grid;
  align-content: start;
  gap: .25rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--imp-line);
}
.impact-item:last-child{ border-bottom: 0; }

.impact-label{
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--imp-muted);
  letter-spacing: .02em;
}

.impact-value{
  font-weight: 800;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  color: var(--imp-ink);
}

/* Optional: larger squares can split stats in two columns */
@media (min-width: 540px){
  .impact-grid{
    grid-template-columns: 1fr;
  }
}


/* Main card */
.contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;

  width:min(1200px, 96vw);
  margin:24px auto;
  padding:48px clamp(24px, 6vw, 56px);

  color:var(--ink);
  text-decoration:none;
  border-radius:14px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  position:relative;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Metallic / grain background overlay */
.contact-card::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(120% 120% at 20% 0%, #ffffff40 0%, #ffffff00 55%),
    radial-gradient(120% 120% at 80% 100%, #0000000a 0%, #00000000 60%),
    repeating-conic-gradient(from 45deg,
      rgba(255,255,255,.06) 0 2deg,
      rgba(0,0,0,.04) 2deg 4deg
    );
  mix-blend-mode: overlay;
  opacity:.5;
  border-radius:inherit;
  pointer-events:none;
  filter: saturate(0.9) contrast(0.95);
}

/* Text */
.contact-text h2{
  font: 700 clamp(28px, 6vw, 56px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0 0 .25em 0;
}
.contact-text p{
  margin:0;
  font: 500 clamp(14px, 2.5vw, 20px)/1.35 system-ui, sans-serif;
  color: var(--ink-60);
}

/* Circle arrow button */
.contact-cta{
  flex:0 0 auto;
  width:110px; height:110px;
  border-radius:50%;
  background:#fff;
  color:#111;
  display:grid; place-items:center;
  box-shadow: 0 6px 22px rgba(33, 26, 61, 0.1), inset 0 -18px 28px rgba(99, 149, 165, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover states */
.contact-card:hover,
.contact-card:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(74, 92, 146, 0.642);
  outline: none;
}
.contact-card:hover .contact-cta,
.contact-card:focus-visible .contact-cta{
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(71, 51, 90, 0.16), inset 0 -22px 34px rgba(23, 1, 72, 0.05);
}

/* Mobile */
@media (max-width: 700px){
  .contact-card{ padding:28px 22px; }
  .contact-cta{ width:76px; height:76px; }
}
/* ===== Webinar Banner (Awwwards-style) ===== */
/* ================== WEBINAR BAND — SOLID DARK, RESPONSIVE ================== */
:root{
  --wb-accent: #6ea4ff;
  --wb-accent-2: #2e5bff;
  --wb-ink: #ffffff;
  --wb-shadow: 0 10px 30px rgba(0,0,0,.35);
  --wb-z: 1300; /* below your modal (1400), above content */
}

/* fixed vertical pill left side */
.wb-banner{
  position: fixed;
  left: 0;
  top: calc(var(--header-h, 88px) + 10vh); /* respects your header token */
  width: 56px;
  height: 280px;
  display: grid;
  place-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: var(--wb-ink);
  z-index: var(--wb-z);
  cursor: pointer;

  /* glassy body with right-rounded corners like a ribbon */
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-right: 1px solid rgba(255,255,255,.35);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: var(--wb-shadow);

  /* tuck in a bit like a badge on the edge */
  transform: translateX(-6px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  isolation: isolate; /* keep glows inside */
}

/* slim illuminated rail on the right edge */
.wb-rail{
  position: absolute; inset: 8px 0 8px auto; width: 4px; border-radius: 3px;
  background: linear-gradient(var(--wb-accent), transparent);
  opacity: .9;
}

/* soft moving glow behind */
.wb-glow{
  position:absolute; inset:-20% -10% -20% -30%;
  z-index:-1; pointer-events:none; mix-blend-mode: screen; opacity:.7;
  background:
    radial-gradient(140px 160px at 60% 20%, rgba(110,164,255,.32), transparent 60%),
    radial-gradient(180px 140px at 40% 80%, rgba(46,91,255,.22), transparent 60%),
    radial-gradient(220px 160px at 80% 50%, rgba(255,255,255,.18), transparent 60%);
  animation: wbFloat 6s ease-in-out infinite;
  filter: saturate(1.05);
}

@keyframes wbFloat{
  0%   { transform: translate(-2px, 1px) scale(1); }
  50%  { transform: translate(6px, -2px) scale(1.03); }
  100% { transform: translate(2px, -1px) scale(1); }
}

/* vertical label (reads top→bottom) */
.wb-text{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

/* small pulse “LIVE” label near the bottom */
.wb-badge{
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font: 700 10px/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #d5e2ff;
  opacity: .9;
}
.wb-badge::before{
  content:"";
  position:absolute; left:50%; top:-8px; transform:translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, var(--wb-accent) 0 60%, transparent 70%);
  box-shadow: 0 0 18px 6px rgba(110,164,255,.45);
  animation: wbPulse 1.6s ease-in-out infinite;
}
@keyframes wbPulse{
  0%,100%{ transform: translateX(-50%) scale(1); opacity: .95; }
  50%    { transform: translateX(-50%) scale(1.25); opacity: .7; }
}

/* hover = slide out slightly + brighter */
.wb-banner:hover{
  transform: translateX(0);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
}

/* focus ring for keyboard users */
.wb-banner:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--wb-accent) 70%, #fff 30%);
  outline-offset: 4px;
}

/* mobile: shrink to a compact chip near the bottom-left */
@media (max-width: 900px){
  .wb-banner{
    top: auto; bottom: 24px;
    height: 56px; width: 140px;
    padding: 0 12px;
    transform: translateX(6px); /* slight tuck */
    border-top-right-radius: 999px; border-bottom-right-radius: 999px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .wb-text{ writing-mode: initial; font-size: 13px; letter-spacing: .12em; }
  .wb-rail{ inset: auto 8px auto auto; height: 24px; }
  .wb-badge{ position: static; transform: none; font-size: 10px; }
  .wb-badge::before{ left: -10px; top: 50%; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .wb-glow{ animation: none; }
  .wb-badge::before{ animation: none; }
  .wb-banner{ transition: none; }
}
#chain16{
  --ch16-left:260px; --ch16-right:220px;
  --ch16-bg:#d0e1ee; --ch16-ink:#111; --ch16-muted:#595959; --ch16-line:#d0e1ee;
  --ch16-cta:#6a58ff; --ch16-cta-ink:#fff;
  --ch16-top-pad: 56px;        /* <— space for your other header (padding, not margin) */
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--ch16-ink); background:transparent;
}
#chain16 *{ box-sizing:border-box; }
#chain16 a{ color:inherit; text-decoration:none; }

/* ===================== GRID SHELL ===================== */
#chain16 .ch16-shell{
  display:grid; grid-template-columns: var(--ch16-left) 1fr var(--ch16-right);
  min-height:100vh; background:#d0e1ee; isolation:isolate;
}

/* ===================== LEFT RAIL ===================== */
#chain16 .ch16-rail-left{
  position:relative; padding:24px 18px; border-right:1px solid var(--ch16-line); overflow:hidden;
  background:
    radial-gradient(160px 160px at 35% 78%, rgba(86,64,255,.45) 0%, rgba(86,64,255,0) 60%),
    radial-gradient(230px 230px at 0% 0%, #69879b 0%, rgba(255,132,80,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 40%);
}
#chain16 .ch16-brand{ color:#fff; font-weight:800; letter-spacing:.2px; }
#chain16 .ch16-brand::before{ content:"✳"; margin-right:10px; filter:drop-shadow(0 4px 18px rgba(0,0,0,.25)); }

#chain16 .ch16-vert{ position:absolute; left:18px; top:90px; writing-mode:vertical-rl; transform:rotate(180deg); display:flex; gap:6px; align-items:flex-start; }
#chain16 .ch16-num{ font-size:72px; line-height:1; font-weight:900; letter-spacing:-2px; }
#chain16 .ch16-cap{ font-size:12px; letter-spacing:.25em; opacity:.8; } /* month label */

#chain16 .ch16-square{ position:absolute; left:90px; top:172px; width:32px;height:32px; border:2px solid #111; border-radius:4px; display:grid;place-items:center; background:#fff3; }
#chain16 .ch16-square::after{ content:""; width:8px;height:8px;border-right:2px solid #111;border-bottom:2px solid #111; transform:rotate(-45deg) translate(1px,-1px); }

#chain16 .ch16-dots{ position:absolute; left:28px; bottom:28px; display:grid; grid-template-columns:repeat(3,16px); gap:14px; padding:16px; border-radius:12px; background:linear-gradient(180deg,#ffffff26,#ffffff08); box-shadow:0 10px 30px rgba(88,66,255,.15); }
#chain16 .ch16-dot{ width:16px;height:16px;border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.05); }
#chain16 .ch16-dot--dark{ background:#111; }

/* ===================== CENTER ===================== */
#chain16 .ch16-main{ display:grid; grid-template-rows:auto 1fr; }

/* top nav (padding at top, no margin) */
#chain16 .ch16-topbar{
  display:flex; align-items:center; gap:28px;
  padding: calc(18px + var(--ch16-top-pad)) 26px 18px;   /* <— padding instead of margin */
  background:#d0e1ee; border-bottom:1px solid var(--ch16-line);
}
#chain16 .ch16-menu{ display:flex; gap:22px; align-items:center; color:#222; font-weight:600; }
#chain16 .ch16-link{ padding:10px 0; position:relative; }
#chain16 .ch16-link + .ch16-link{ padding-left:22px; }
#chain16 .ch16-link + .ch16-link::before{ content:""; position:absolute; left:-12px; top:50%; transform:translateY(-50%); height:20px; width:1px; background:var(--ch16-line); }
#chain16 .ch16-top-actions{ margin-left:auto; display:flex; gap:16px; align-items:center; }
#chain16 .ch16-btn{ display:inline-block; background:var(--ch16-cta); color:var(--ch16-cta-ink); padding:10px 16px; border-radius:10px; font-weight:800; box-shadow:0 6px 16px rgba(106,88,255,.25); }

/* hero */
#chain16 .ch16-hero{ padding:40px 56px 28px; border-bottom:1px solid var(--ch16-line); }
#chain16 .ch16-title{ font-size:44px; line-height:1.1; letter-spacing:-.02em; max-width:820px; margin:0 0 14px; }
#chain16 .ch16-sub{ max-width:680px; color:var(--ch16-muted); font-size:16px; line-height:1.65; margin:8px 0 22px; }
#chain16 .ch16-cta-join{ display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; background:var(--ch16-cta); color:#fff; font-weight:800; cursor:pointer; border:0; box-shadow:0 10px 26px rgba(106,88,255,.28); }
#chain16 .ch16-cta-join:hover{ transform:translateY(-1px); }

/* rich content blocks */
#chain16 .ch16-section{ padding:28px 56px; color:#333; }
#chain16 .ch16-grid{ display:grid; grid-template-columns:1.2fr 1fr; gap:32px; }
#chain16 .ch16-card{ background:#a2d5df6b; border:1px solid var(--ch16-line); border-radius:14px; padding:18px 20px; box-shadow:0 6px 18px rgba(0,0,0,.04); }
#chain16 .ch16-card h4{ margin:0 0 8px; }

/* ===================== RIGHT RAIL ===================== */
#chain16 .ch16-rail-right{ border-left:1px solid var(--ch16-line); padding:18px; background:linear-gradient(180deg, #ffffffaa, #ffffff40); overflow-y:auto; }
#chain16 .ch16-action{ display:flex; align-items:center; gap:12px; width:100%; padding:14px 10px; border-radius:12px; cursor:pointer; font-weight:700; color:#222; background:transparent; border:0; transition:background .2s, transform .12s; text-align:left; }
#chain16 .ch16-action + .ch16-action{ margin-top:8px; }
#chain16 .ch16-action:hover{ background:#efede9; transform:translateY(-1px); }

/* tiny icon glyphs */
#chain16 .ch16-ico{ width:36px; height:36px; border-radius:12px; display:grid; place-items:center; position:relative; box-shadow:inset 0 0 0 1px #dfd8ff; background:#efeaf9; }
#chain16 .ch16-ico--folder::before{ content:""; width:18px; height:12px; background:#222; clip-path:polygon(0 20%,20% 0,100% 0,100% 100%,0 100%); }
#chain16 .ch16-ico--vote::before{ content:""; width:14px; height:14px; border-left:2px solid #222; border-bottom:2px solid #222; transform:rotate(-45deg); }
#chain16 .ch16-ico--replay::before{ content:""; width:16px;height:16px;border:2px solid #222;border-radius:50%; }
#chain16 .ch16-ico--replay::after{ content:""; position:absolute; left:5px; top:6px; width:0;height:0; border-left:7px solid #222;border-top:5px solid transparent;border-bottom:5px solid transparent; }
#chain16 .ch16-ico--qa::before{ content:"?"; font-weight:900; }

/* ===================== SLIDE PANELS w/ Three.js canvas ===================== */
#chain16 .ch16-panel{ position:fixed; top:0; right:-420px; width:420px; height:100vh; border-left:1px solid var(--ch16-line); box-shadow:-14px 0 30px rgba(0,0,0,.08); overflow:hidden; transition:right .36s ease; z-index:4000; background:#0d0f1a; }
#chain16 .ch16-panel.is-open{ right:0; }
#chain16 .ch16-panel-inner{ position:relative; height:100%; padding:22px; color:#e9ecff; }
#chain16 .ch16-gl{ position:absolute; inset:0; z-index:0; }
#chain16 .ch16-panel-content{ position:relative; z-index:1; overflow:auto; height:100%; padding-right:8px; }
#chain16 .ch16-close{ position:absolute; top:12px; right:14px; width:36px; height:36px; border-radius:10px; border:0; background:#ffffff26; color:#fff; font-size:18px; font-weight:900; cursor:pointer; z-index:2; }
#chain16 .ch16-panel h3{ margin:8px 0 16px; font-size:20px; }
#chain16 .ch16-sep{ border:0; border-top:1px solid rgba(255,255,255,.12); margin:16px 0; }

/* ===================== JOIN MODAL (popup form) ===================== */
#chain16 .ch16-modal{ position:fixed; inset:0; background:rgba(0,0,0,.55); display:none; place-items:center; z-index:3600; }
#chain16 .ch16-modal.is-open{ display:grid; }
#chain16 .ch16-dialog{ width:min(620px, 92vw); background:#fff; border-radius:16px; padding:22px 22px 16px; box-shadow:0 18px 60px rgba(0,0,0,.35); position:relative; }
#chain16 .ch16-dialog h3{ margin:2px 0 10px; }
#chain16 .ch16-x{ position:absolute; right:14px; top:12px; width:36px;height:36px;border-radius:10px;border:0;background:#69879b; font-weight:900; cursor:pointer; }
#chain16 .ch16-form{ display:grid; gap:12px; margin-top:6px; }
#chain16 .ch16-row{ display:grid; gap:10px; grid-template-columns:1fr 1fr; }
#chain16 .ch16-form label{ font-size:13px; font-weight:700; color:#333; }
#chain16 .ch16-input, #chain16 .ch16-select{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid #69879b; font-size:14px; }
#chain16 .ch16-submit{ margin-top:6px; background:var(--ch16-cta); color:#fff; border:0; padding:12px 16px; border-radius:12px; font-weight:800; cursor:pointer; }
#chain16 .ch16-note{ color:#666; font-size:12px; }
#chain16 .ch16-ok{ display:none; color:#0a7a2f; font-weight:700; margin-top:8px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width:1024px){
  #chain16{ --ch16-left:200px; --ch16-right:200px; }
  #chain16 .ch16-title{ font-size:36px; }
  #chain16 .ch16-grid{ grid-template-columns:1fr; }
}
@media (max-width:860px){
  #chain16 .ch16-shell{ grid-template-columns: 0 1fr 0; }
  #chain16 .ch16-rail-left, #chain16 .ch16-rail-right{ display:none; }
  #chain16 .ch16-topbar{ position:sticky; top:0; z-index:5; }
  #chain16 .ch16-row{ grid-template-columns:1fr; }
  #chain16 .ch16-panel{ width:90vw; }
}
#chain16 .ch16-rail-right{
  min-height: 100vh;               /* fill column */
  display: flex;
  flex-direction: column;
  align-items: center;              /* horizontal center */
  justify-content: center;          /* vertical center */
  gap: 14px;
  overflow-y: visible;              /* avoid shifting when centered */
}

#chain16 .ch16-action{
  width: auto;
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;           /* icon above label */
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

/* ===== CENTER the panel contents (both axes) ===== */
#chain16 .ch16-panel-inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;              /* vertical center */
  justify-content: center;          /* horizontal center */
}

#chain16 .ch16-panel-content{
  width: min(380px, 88%);
  max-height: calc(100% - 44px);    /* leave room for the close button */
  overflow: auto;                    /* if content is taller, it scrolls */
  text-align: center;
}

#chain16 .ch16-panel h3{ text-align: center; }
#chain16 .ch16-ico{ margin: 0 auto; } 
/* Popups use the same modal look; give them a comfy max-height + internal scroll */
#chain16 .ch16-pop .ch16-dialog{
  max-height: 82vh;
  overflow:auto;
}
/* === Dotted background behind .ch16-main ======================= */
#chain16 .ch16-main{ position: relative; overflow: clip; } /* host */
#chain16 .ch16-bg{               /* container for the canvas + subtle scrim */
  position:absolute; inset:0; z-index:0; pointer-events:none;
}
#chain16 .ch16-bg::after{        /* soft fade so dots never overpower text */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(106,88,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 22%);
  mix-blend-mode: multiply; opacity:.85;
}
#chain16 .ch16-bg-dots{          /* the WebGL canvas */
  position:absolute; inset:0; width:100%; height:100%; display:block;
}
/* keep content above the dots */
#chain16 .ch16-topbar,
#chain16 .ch16-hero,
#chain16 .ch16-section{ position: relative; z-index: 1; }

/* reduced motion = render static dots */
@media (prefers-reduced-motion: reduce){
  #chain16 .ch16-bg::after{ opacity:.95; }
}
@media (max-width: 860px){

  /* 1) One-column layout: main → aside (stacked) */
  #chain16 .ch16-shell{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "asideR" !important;
  }
  #chain16 .ch16-main{ grid-area: main !important; padding-top: 4rem; overflow: hidden; }
  #chain16 .ch16-rail-left{ display: none !important; }
  #chain16 .ch16-rail-right{
    grid-area: asideR !important;
    display: flex !important;
    position: static !important;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 12px;
    border-left: 0 !important;
    border-top: 1px solid var(--ch16-line);
    padding: 16px !important;
    background: transparent !important;
  }
  #chain16 .ch16-rail-right .ch16-action{
    width: 100%; max-width: 520px;
    display: flex; flex-direction: row;
    align-items: center; justify-content: center;
    gap: 10px; text-align: center;
    padding: 12px 14px; border-radius: 14px;
    background: #fff; border: 1px solid var(--ch16-line);
  }

  /* 2) Hide the nav/topbar on mobile only */
  #chain16 .ch16-topbar,
  #chain16 .ch16-menu{ display: none !important; }

  /* 3) Panels: remove from layout when closed (fix “blank” overlay) */
  #chain16 .ch16-panel{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: translate3d(100%,0,0);
    opacity: 0; pointer-events: none;
    z-index: 4000;
    display: block !important; /* exists, but off-canvas */
  }
  #chain16 .ch16-panel.is-open{
    transform: translate3d(0,0,0);
    opacity: 1; pointer-events: auto;
  }
  #chain16 .ch16-panel-inner{
    height: 100%; padding: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  #chain16 .ch16-panel-content{
    width: 92%; max-height: calc(90vh - 48px);
    margin: 0 auto; overflow: auto; text-align: center;
  }

  /* Dots always behind content on mobile */
  #chain16 .ch16-bg{ z-index: 0 !important; }
}

/* =========================
   DESKTOP SAFETY RESET (≥ 861px)
   ========================= */
@media (min-width: 861px){
  /* restore your 3-column shell & nav on large screens */
  #chain16 .ch16-shell{
    grid-template-columns: var(--ch16-left) 1fr var(--ch16-right) !important;
    grid-template-areas: none !important;
  }
  #chain16 .ch16-topbar{ display: flex !important; }
  #chain16 .ch16-rail-right{ display: block !important; }
  /* desktop panels use the original right-drawer behaviour */
  #chain16 .ch16-panel{
    position: fixed; right: -420px; width: 420px; height: 100vh;
    border-left: 1px solid var(--ch16-line); box-shadow:-14px 0 30px rgba(0,0,0,.08);
    transform: none; opacity: 1; pointer-events: auto; display: block !important;
  }
  #chain16 .ch16-panel.is-open{ right: 0; }
}
/* ===== Center the RIGHT rail (desktop & mobile) ===== */
#chain16 .ch16-rail-right{
  /* center the whole column in both axes */
  display: grid !important;
  place-content: center !important;   /* vertical + horizontal */
  place-items: center !important;
  padding: 16px;
  min-height: 100vh;                  /* keep it centered in the viewport */
}

/* keep each action tight and centered */
#chain16 .ch16-rail-right .ch16-action{
  width: fit-content !important;      /* no full-width buttons */
  margin-inline: auto !important;
  display: inline-flex !important;
  flex-direction: column;             /* icon over label */
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px 16px;
}

/* icon container centered too */
#chain16 .ch16-rail-right .ch16-ico{ margin: 0 auto; }

/* ===== Ensure slide panels are perfectly centered ===== */
#chain16 .ch16-panel-inner{
  display: flex !important;
  align-items: center !important;     /* vertical center */
  justify-content: center !important; /* horizontal center */
  padding: 16px;
  height: 100%;
}
#chain16 .ch16-panel-content{
  width: min(420px, 92%);
  max-height: calc(100% - 48px);
  margin: 0 auto;
  overflow: auto;
  text-align: center;
}

/* ===== Mobile tweaks (≤ 860px): stack & keep center ===== */
@media (max-width: 860px){
  #chain16 .ch16-rail-right{
    grid-area: asideR !important;
    min-height: auto;                 /* let content size the block */
    padding: 18px;
  }
  #chain16 .ch16-rail-right .ch16-action{
    width: min(92vw, 480px) !important;
    flex-direction: row;              /* icon + label inline on phones */
    gap: 10px;
  }
}
