@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800;900&display=swap');:root{--bg:#06030c;--text:#fbf7ff;--muted:#c8bed4;--dim:#8f829b;--purple:#9b44ff;--purple2:#c17aff;--green:#20e2aa;--line:rgba(255,255,255,.13);--max:1180px;--ease:cubic-bezier(.2,.8,.2,1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden}a{text-decoration:none;color:inherit}button{font:inherit;color:inherit}.noise{position:fixed;inset:0;pointer-events:none;z-index:80;opacity:.075;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E")}.site-header{position:fixed;top:18px;left:50%;transform:translateX(-50%);width:min(var(--max),calc(100% - 36px));min-height:76px;display:flex;align-items:center;gap:18px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(6,4,12,.72);backdrop-filter:blur(22px) saturate(145%);box-shadow:0 24px 80px rgba(0,0,0,.34);z-index:90}.brand{display:flex;align-items:center;gap:13px;min-width:225px}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;color:#fff;font-size:.88rem;font-weight:950;letter-spacing:-.08em;background:radial-gradient(circle at 30% 18%,rgba(255,255,255,.66),transparent 24%),linear-gradient(135deg,#251034,#9d47ff 52%,#31e0bd);box-shadow:0 0 28px rgba(157,71,255,.48),inset 0 0 0 1px rgba(255,255,255,.14)}.brand b{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:1.02rem;line-height:1}.brand small{display:block;margin-top:6px;color:var(--purple2);text-transform:uppercase;letter-spacing:.28em;font-size:.62rem;font-weight:950}.site-nav{flex:1;display:flex;justify-content:center;align-items:center;gap:4px}.site-nav a{color:rgba(255,255,255,.82);padding:12px 13px;border-radius:999px;text-transform:uppercase;font-size:.75rem;letter-spacing:.04em;font-weight:950;transition:.2s var(--ease)}.site-nav a:hover,.site-nav a.active{color:#fff;background:rgba(255,255,255,.09);transform:translateY(-1px)}.join{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 19px;border-radius:999px;color:#fff;background:linear-gradient(135deg,#fff,#bc58ff 40%,#6b25de);box-shadow:0 18px 42px rgba(155,68,255,.32);font-size:.8rem;font-weight:950;text-transform:uppercase}.nav-toggle{display:none;width:46px;height:46px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.06)}.nav-toggle i{display:block;width:20px;height:2px;margin:5px auto;border-radius:999px;background:#fff}.hero{position:relative;min-height:100svh;display:grid;align-items:center;padding:150px 24px 96px;overflow:hidden;background-image:url("../assets/silvergate-city-hero.jpg");background-size:cover;background-position:center}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 36%,rgba(157,71,255,.28),transparent 28rem),radial-gradient(circle at 15% 68%,rgba(49,224,189,.10),transparent 24rem),linear-gradient(90deg,rgba(5,3,10,.98) 0%,rgba(5,3,10,.88) 40%,rgba(5,3,10,.52) 72%,rgba(5,3,10,.72) 100%),linear-gradient(180deg,rgba(5,3,10,.45),rgba(5,3,10,.08) 50%,#06030c)}.hero:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:160px;background:linear-gradient(to top,#06030c,transparent)}.hero-content{position:relative;z-index:2;width:min(var(--max),100%);margin:0 auto}.eyebrow{margin:0 0 16px;color:var(--purple2);text-transform:uppercase;letter-spacing:.28em;font-size:.74rem;font-weight:950}.hero .eyebrow{display:flex;align-items:center;gap:10px}.hero .eyebrow span{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 18px var(--green)}.hero h1{margin:0;max-width:820px;text-transform:uppercase;font-style:italic;font-size:clamp(4rem,8vw,8rem);line-height:.88;letter-spacing:-.075em}.hero h1 em{color:var(--purple);font-style:italic;text-shadow:0 0 34px rgba(155,68,255,.34)}.hero p:not(.eyebrow){width:min(650px,100%);margin:28px 0 32px;color:rgba(255,255,255,.84);font-size:clamp(1rem,1.8vw,1.17rem);line-height:1.8}.actions{display:flex;gap:14px;flex-wrap:wrap}.actions.centered{justify-content:center}.btn{min-height:54px;padding:0 25px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;border:1px solid rgba(255,255,255,.14);font-size:.82rem;font-weight:950;text-transform:uppercase;cursor:pointer}.btn.primary{border-color:transparent;background:linear-gradient(135deg,#a74eff,#6927df);color:#fff;box-shadow:0 18px 42px rgba(155,68,255,.32)}.btn.secondary{background:rgba(255,255,255,.055);border-color:rgba(193,122,255,.55)}.btn.ghost{background:transparent;color:rgba(255,255,255,.72)}.section{width:min(var(--max),calc(100% - 44px));margin:0 auto;padding:96px 0}.section-head{max-width:760px;margin-bottom:32px}.section-head h2,.world-copy h2,.cta h2,.apply-copy h1{margin:0 0 18px;font-size:clamp(2.5rem,5vw,5.4rem);line-height:.94;letter-spacing:-.06em}.section-head p,.world-copy p,.cta p,.apply-copy p{color:var(--muted);line-height:1.75;font-size:1.05rem}.server{padding-top:70px}.server-grid{display:grid;grid-template-columns:1fr 1fr 2fr 1fr;gap:14px}.server-grid article,.card,.feature,.department,.apply-card{border:1px solid var(--line);background:radial-gradient(circle at 100% 0%,rgba(155,68,255,.18),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));backdrop-filter:blur(16px);box-shadow:0 24px 70px rgba(0,0,0,.22)}.server-grid article{min-width:0;padding:24px;border-radius:24px}.server-grid span{display:block;color:var(--dim);text-transform:uppercase;letter-spacing:.16em;font-size:.68rem;font-weight:950;margin-bottom:10px}.server-grid b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.15rem}.server-grid em{font-style:normal}.world{display:grid;grid-template-columns:430px 1fr;gap:34px;align-items:stretch}.world-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{min-height:300px;border-radius:28px;padding:26px}.card span,.apply-card span{color:var(--green);font-weight:950;letter-spacing:.2em}.card h3{margin:72px 0 14px;font-size:1.55rem}.card p,.feature p,.department p,.apply-card p{color:var(--muted);line-height:1.66}.feature-grid,.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature{min-height:285px;border-radius:28px;padding:28px}.feature i{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;margin-bottom:48px;color:var(--purple2);background:rgba(155,68,255,.14);font-style:normal}.feature h3{margin:0 0 12px;font-size:1.35rem}.shot{min-height:330px;position:relative;overflow:hidden;border-radius:28px;padding:24px;display:flex;flex-direction:column;justify-content:end;border:1px solid var(--line);background:radial-gradient(circle at 50% 28%,rgba(155,68,255,.32),transparent 28%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02))}.shot:before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78),transparent 60%)}.shot>*{position:relative;z-index:1}.shot span{color:var(--green);text-transform:uppercase;letter-spacing:.18em;font-size:.72rem;font-weight:950}.shot h3{margin:14px 0 0;font-size:1.25rem;line-height:1.15}.law{background:radial-gradient(circle at 60% 35%,rgba(74,168,255,.42),transparent 28%),linear-gradient(135deg,#11182a,#07040c)}.ems{background:radial-gradient(circle at 42% 30%,rgba(255,78,130,.38),transparent 28%),linear-gradient(135deg,#251018,#07040c)}.crime{background:radial-gradient(circle at 65% 28%,rgba(255,218,105,.26),transparent 24%),linear-gradient(135deg,#070707,#180e20)}.civ{background:radial-gradient(circle at 35% 28%,rgba(32,226,170,.25),transparent 26%),linear-gradient(135deg,#0a2a27,#14091f)}.department-list{display:grid;gap:14px}.department{border-radius:28px;padding:24px;display:grid;grid-template-columns:110px 1fr auto;gap:24px;align-items:center}.department b{width:86px;height:86px;display:grid;place-items:center;border-radius:24px;background:linear-gradient(135deg,rgba(155,68,255,.34),rgba(32,226,170,.12))}.department h3{margin:0 0 8px;font-size:1.8rem}.department p{margin:0}.department a{font-weight:950;text-transform:uppercase;padding:13px 18px;border-radius:999px;border:1px solid rgba(193,122,255,.44)}.cta{min-height:410px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:28px;padding:88px max(24px,calc((100vw - var(--max)) / 2));background:linear-gradient(90deg,#06030c,rgba(26,11,45,.70)),radial-gradient(circle at 82% 40%,rgba(155,68,255,.38),transparent 28rem);border-block:1px solid rgba(255,255,255,.08)}.cta-inner{max-width:710px}.cta h2 em{color:var(--purple);font-style:normal}.sign{justify-self:end;font-size:clamp(3rem,6vw,5.5rem);font-weight:950;text-transform:uppercase;letter-spacing:-.06em;text-shadow:0 0 32px rgba(155,68,255,.8)}.footer{width:min(var(--max),calc(100% - 44px));margin:0 auto;padding:54px 0;display:grid;grid-template-columns:360px 1fr;gap:40px}.footer-brand{display:flex;gap:16px}.footer-brand b{display:block;font-size:1.2rem}.footer-brand p{color:var(--muted);line-height:1.6}.footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.footer-links b{display:block;color:var(--purple2);text-transform:uppercase;letter-spacing:.18em;font-size:.72rem;margin-bottom:12px}.footer-links a{display:block;color:var(--muted);margin:9px 0;font-weight:750}.apply-hero{min-height:58vh;display:grid;align-items:end;padding:170px max(24px,calc((100vw - var(--max)) / 2)) 70px;background-image:url("../assets/silvergate-city-hero.jpg");background-size:cover;background-position:center;position:relative}.apply-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,3,12,.96),rgba(6,3,12,.68)),linear-gradient(to top,#06030c,transparent)}.apply-copy{position:relative;z-index:1;max-width:850px}.apply-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.apply-card{min-height:350px;border-radius:28px;padding:30px;display:flex;flex-direction:column;align-items:flex-start}.apply-card h2{font-size:2.1rem;line-height:1;margin:42px 0 16px}.apply-card .btn{margin-top:auto}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,18px);opacity:0;z-index:100;padding:13px 18px;border-radius:999px;background:rgba(8,5,14,.92);border:1px solid rgba(255,255,255,.14);transition:.25s var(--ease)}.toast.show{opacity:1;transform:translate(-50%,0)}.reveal{opacity:0;transform:translateY(26px);transition:opacity .75s var(--ease),transform .75s var(--ease)}.reveal.visible{opacity:1;transform:translateY(0)}@media(max-width:1050px){.site-header{border-radius:28px;flex-wrap:wrap}.brand{min-width:auto}.join{display:none}.nav-toggle{display:block;margin-left:auto}.site-nav{display:none;width:100%;flex-direction:column;align-items:stretch;order:5;padding-top:6px}.site-nav.is-open{display:flex}.site-nav a{width:100%}.world,.cta,.footer{grid-template-columns:1fr}.world-cards,.feature-grid,.media-grid,.apply-grid{grid-template-columns:1fr 1fr}.server-grid{grid-template-columns:1fr 1fr}.sign{justify-self:start}}@media(max-width:700px){.hero{padding-inline:18px;padding-top:138px}.hero h1{font-size:clamp(3.35rem,17vw,5.2rem)}.actions,.actions.centered{align-items:stretch}.btn{width:100%}.server-grid,.world-cards,.feature-grid,.media-grid,.apply-grid,.footer-links{grid-template-columns:1fr}.section{width:calc(100% - 34px);padding:82px 0}.department{grid-template-columns:1fr}.department a{text-align:center}}

/* =====================================================================
   Clean World Section Redesign
   ===================================================================== */

.world-redesign {
  position: relative;
  padding-top: 96px !important;
  padding-bottom: 104px !important;
}

.world-redesign::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(720px, 72vw);
  height: min(720px, 72vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(155, 68, 255, .18), transparent 62%),
    radial-gradient(circle at 30% 65%, rgba(32, 226, 170, .075), transparent 48%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.world-redesign-head {
  max-width: 980px;
  margin: 0 auto 34px !important;
  text-align: center;
}

.world-redesign-head .eyebrow {
  justify-content: center;
  margin-bottom: 18px;
}

.world-redesign-head h2 {
  margin: 0 auto 20px !important;
  max-width: 960px;
  font-size: clamp(2.9rem, 5.7vw, 6.6rem) !important;
  line-height: .88 !important;
  letter-spacing: -.078em !important;
}

.world-redesign-head p {
  max-width: 760px;
  margin: 0 auto !important;
  color: rgba(229, 217, 244, .78) !important;
  font-size: 1.06rem !important;
  line-height: 1.75 !important;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(3, minmax(172px, auto));
  gap: 16px;
  margin-top: 34px;
}

.experience-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.025)),
    radial-gradient(circle at 100% 0%, rgba(155,68,255,.20), transparent 45%);
  box-shadow:
    0 22px 74px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193,122,255,.32);
  background:
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.034)),
    radial-gradient(circle at 100% 0%, rgba(155,68,255,.25), transparent 45%);
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 85% 20%, black, transparent 60%);
}

.experience-card.feature-main {
  grid-row: span 3;
  min-height: 548px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(6,3,12,.08)),
    radial-gradient(circle at 28% 16%, rgba(32,226,170,.18), transparent 22%),
    radial-gradient(circle at 76% 20%, rgba(155,68,255,.38), transparent 36%),
    linear-gradient(145deg, rgba(44,21,78,.86), rgba(10,7,18,.74));
}

.experience-card.feature-main::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(circle, rgba(155,68,255,.22), transparent 63%);
}

.experience-card.feature-main .card-number {
  position: absolute;
  left: 34px;
  top: 34px;
}

.card-number {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--green);
  font-weight: 950;
  letter-spacing: .08em;
  background: rgba(32,226,170,.08);
  border: 1px solid rgba(32,226,170,.18);
}

.experience-card > div:not(.card-number) {
  position: relative;
  z-index: 2;
}

.experience-card span {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 950;
}

.experience-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.experience-card.feature-main h3 {
  max-width: 520px;
  font-size: clamp(2.25rem, 4.2vw, 4.65rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.experience-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(226, 215, 240, .74);
  line-height: 1.62;
  font-size: .98rem;
}

.experience-card.feature-main p {
  font-size: 1.05rem;
  color: rgba(240,232,250,.82);
}

.world-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.world-stats-row div {
  min-height: 98px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.world-stats-row b {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.world-stats-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .experience-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .experience-card.feature-main {
    grid-row: auto;
    min-height: 360px;
  }

  .world-stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .world-redesign {
    padding-top: 76px !important;
    padding-bottom: 82px !important;
  }

  .world-redesign-head {
    text-align: left;
  }

  .world-redesign-head h2 {
    font-size: clamp(3rem, 14vw, 4.9rem) !important;
  }

  .experience-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .experience-card.feature-main {
    min-height: 330px;
  }

  .experience-card.feature-main .card-number {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 56px;
  }
}


/* =====================================================================
   SilverGate uploaded logo update
   ===================================================================== */

.brand-logo {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto !important;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.22))
    drop-shadow(0 0 18px rgba(155,68,255,.42)) !important;
}

.site-header .brand {
  gap: 14px !important;
}

.footer-brand .brand-logo {
  width: 64px !important;
  height: 64px !important;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Monthly Membership Section */
.membership-section{position:relative;padding-top:96px!important;padding-bottom:98px!important}.membership-section:before{content:"";position:absolute;left:50%;top:48%;width:min(900px,86vw);height:min(900px,86vw);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(155,68,255,.22),transparent 62%),radial-gradient(circle at 24% 66%,rgba(32,226,170,.09),transparent 46%),radial-gradient(circle at 80% 26%,rgba(255,207,84,.10),transparent 42%);filter:blur(18px);pointer-events:none;z-index:-1}.membership-shell{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:clamp(24px,4vw,48px);align-items:center;min-height:650px;padding:clamp(30px,5vw,58px);border:1px solid rgba(255,255,255,.13);border-radius:38px;background:linear-gradient(135deg,rgba(255,255,255,.088),rgba(255,255,255,.028)),radial-gradient(circle at 82% 18%,rgba(155,68,255,.28),transparent 36%),radial-gradient(circle at 12% 88%,rgba(32,226,170,.095),transparent 34%);box-shadow:0 34px 100px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(18px)}.membership-shell:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.34;background:linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(0deg,rgba(255,255,255,.028) 1px,transparent 1px);background-size:74px 74px;mask-image:radial-gradient(circle at 82% 48%,black,transparent 72%)}.membership-copy{position:relative;z-index:3}.membership-copy .eyebrow{display:flex;align-items:center;gap:10px}.membership-copy .eyebrow span{width:8px;height:8px;border-radius:50%;background:#ffcf54;box-shadow:0 0 18px rgba(255,207,84,.8)}.membership-copy h2{margin:0 0 18px;text-transform:uppercase;font-style:italic;font-size:clamp(3.4rem,6.4vw,7.1rem);line-height:.82;letter-spacing:-.085em;background:linear-gradient(135deg,#fff,#d7baff 42%,#9b44ff 72%,#ffcf54);-webkit-background-clip:text;background-clip:text;color:transparent}.membership-lead{max-width:620px;margin:0 0 24px;color:rgba(235,226,247,.82);line-height:1.75;font-size:1.06rem}.membership-price-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:26px 0}.membership-price-row>div{min-height:64px;min-width:210px;display:flex;flex-direction:column;justify-content:center;padding:13px 17px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055)}.membership-price-row span{color:var(--dim);text-transform:uppercase;letter-spacing:.16em;font-size:.66rem;font-weight:950}.membership-price-row b{margin-top:4px;color:#fff;font-size:1rem}.membership-features{display:grid;grid-template-columns:1fr 1fr;gap:12px}.membership-features article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:start;min-height:118px;padding:16px;border:1px solid rgba(255,255,255,.10);border-radius:20px;background:rgba(255,255,255,.045)}.membership-features i{width:38px;height:38px;display:grid;place-items:center;border-radius:14px;color:#ffcf54;font-style:normal;background:rgba(255,207,84,.10);border:1px solid rgba(255,207,84,.16)}.membership-features h3{margin:0 0 6px;color:#fff;font-size:1rem;line-height:1.16}.membership-features p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.5}.membership-visual{position:relative;z-index:3;min-height:560px;display:grid;place-items:end center;isolation:isolate}.membership-orbit{position:absolute;border-radius:50%;pointer-events:none}.orbit-one{width:76%;height:62%;right:6%;bottom:8%;background:radial-gradient(circle,rgba(155,68,255,.32),transparent 62%),radial-gradient(circle at 30% 70%,rgba(32,226,170,.14),transparent 48%);filter:blur(18px);animation:membershipPulse 5.6s ease-in-out infinite}.orbit-two{width:58%;height:58%;right:18%;top:9%;border:1px solid rgba(255,255,255,.12);transform:rotate(-14deg);opacity:.45}.membership-visual img{position:relative;z-index:3;width:min(108%,780px);max-height:560px;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 34px 44px rgba(0,0,0,.46)) drop-shadow(0 0 26px rgba(155,68,255,.16));animation:membershipFloat 6.2s ease-in-out infinite;transform-origin:bottom center}.membership-badge{position:absolute;z-index:4;min-width:168px;padding:13px 15px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(8,5,14,.66);backdrop-filter:blur(16px);box-shadow:0 18px 50px rgba(0,0,0,.30);animation:badgeFloat 5.6s ease-in-out infinite}.membership-badge span{display:block;color:#ffcf54;text-transform:uppercase;letter-spacing:.16em;font-size:.66rem;font-weight:950}.membership-badge b{display:block;margin-top:5px;color:#fff;font-size:.86rem}.badge-imports{top:12%;right:3%}.badge-priority{left:2%;bottom:18%;animation-delay:-2.4s}.membership-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.membership-extra{min-height:170px;padding:22px;border:1px solid rgba(255,255,255,.11);border-radius:24px;background:radial-gradient(circle at 84% 0%,rgba(155,68,255,.17),transparent 48%),rgba(255,255,255,.042);box-shadow:0 20px 70px rgba(0,0,0,.18)}.membership-extra span{color:var(--green);font-weight:950;letter-spacing:.2em}.membership-extra h3{margin:34px 0 10px;color:#fff;font-size:1.25rem}.membership-extra p{margin:0;color:var(--muted);line-height:1.55;font-size:.92rem}@keyframes membershipFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-13px) scale(1.012)}}@keyframes membershipPulse{0%,100%{opacity:.68;transform:scale(.98)}50%{opacity:1;transform:scale(1.04)}}@keyframes badgeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@media(max-width:1120px){.membership-shell{grid-template-columns:1fr}.membership-copy{max-width:780px}.membership-visual{min-height:480px}.membership-visual img{max-height:500px;width:min(100%,760px)}.membership-extra-grid{grid-template-columns:1fr}}@media(max-width:720px){.membership-section{padding-top:76px!important;padding-bottom:82px!important}.membership-shell{padding:26px 18px;border-radius:28px}.membership-copy h2{font-size:clamp(3.1rem,15vw,5rem)}.membership-price-row .btn{width:100%}.membership-features{grid-template-columns:1fr}.membership-visual{min-height:360px}.membership-visual img{width:124%;max-height:390px}.membership-badge{display:none}}


/* =====================================================================
   Monthly Membership Exact Style Rebuild
   Static / no animation
   ===================================================================== */

.membership-section {
  position: relative !important;
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  padding: 88px 0 96px !important;
}

.elite-frame {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at 70% 22%, rgba(155,68,255,.26), transparent 32rem),
    radial-gradient(circle at 98% 70%, rgba(255, 42, 167, .14), transparent 30rem),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    #070611;
  box-shadow:
    0 34px 100px rgba(0,0,0,.44),
    inset 0 0 0 1px rgba(255,255,255,.035);
}

.elite-frame *,
.elite-frame *::before,
.elite-frame *::after {
  animation: none !important;
  transition: none !important;
}

.elite-bg-city {
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(180deg, rgba(7,6,17,.70), rgba(7,6,17,.42) 44%, rgba(7,6,17,.84)),
    radial-gradient(circle at 73% 52%, rgba(155,68,255,.30), transparent 26rem),
    url("../assets/silvergate-city-hero.jpg") center center / cover no-repeat;
  filter: saturate(1.08) contrast(1.03);
}

.elite-bg-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,17,.92) 0%, rgba(7,6,17,.64) 34%, rgba(7,6,17,.22) 70%, rgba(7,6,17,.68) 100%),
    linear-gradient(180deg, rgba(7,6,17,.32), rgba(7,6,17,.78));
}

.elite-watermark {
  position: absolute;
  z-index: 1;
  right: 20%;
  top: 13%;
  width: 420px;
  height: 420px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(155,68,255,.08);
  font-size: 300px;
  line-height: 1;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 0 90px rgba(155,68,255,.045),
    0 0 0 180px rgba(255,255,255,.035);
  pointer-events: none;
}

.elite-content {
  position: relative;
  z-index: 4;
  width: min(670px, 49%);
}

.elite-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--purple2) !important;
  letter-spacing: .25em !important;
  margin-bottom: 22px !important;
}

.elite-eyebrow span {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: var(--purple2);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  box-shadow: 0 0 20px rgba(193,122,255,.65);
}

.elite-content h2 {
  margin: 0 0 26px !important;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(4.6rem, 9vw, 9.7rem);
  line-height: .80;
  letter-spacing: -.085em;
}

.elite-content h2 {
  color: #e9e5ee;
  text-shadow:
    0 2px 0 rgba(255,255,255,.28),
    0 22px 50px rgba(0,0,0,.42);
}

.elite-content h2 em {
  display: inline-block;
  font-style: italic;
  color: transparent;
  background: linear-gradient(180deg, #d9a9ff 0%, #9b44ff 42%, #6222c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.elite-lead {
  max-width: 575px;
  margin: 0 0 30px !important;
  color: rgba(239,232,247,.78) !important;
  font-size: clamp(1.06rem, 1.7vw, 1.35rem) !important;
  line-height: 1.45 !important;
}

.elite-action-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.elite-price {
  min-width: 220px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid rgba(193,122,255,.75);
  border-radius: 16px;
  background: rgba(12,9,23,.74);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 0 28px rgba(155,68,255,.16);
}

.elite-price span {
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 950;
  margin-bottom: 7px;
}

.elite-price b {
  color: #fff;
  font-size: 1.35rem;
}

.elite-price small {
  color: rgba(255,255,255,.86);
  font-weight: 700;
}

.elite-button {
  min-width: 320px;
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 1fr 44px;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #b65cff, #7828e8 52%, #5d19c8);
  box-shadow:
    0 18px 46px rgba(155,68,255,.38),
    inset 0 1px 0 rgba(255,255,255,.20);
  font-size: 1.12rem;
  font-weight: 950;
}

.elite-crown {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  font-size: 1.45rem;
}

.elite-arrow {
  font-size: 2rem;
  font-weight: 400;
  opacity: .9;
}

.elite-feature-row {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
}

.elite-feature {
  min-height: 232px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.028)),
    rgba(10,8,19,.72);
  box-shadow:
    0 18px 44px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.elite-feature i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--purple2);
  background: rgba(155,68,255,.16);
  border: 1px solid rgba(193,122,255,.28);
  font-style: normal;
  font-size: 1.55rem;
}

.elite-feature h3 {
  min-height: 48px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.13;
}

.elite-feature h3::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 92px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--purple2), transparent);
}

.elite-feature p {
  margin: 0;
  color: rgba(232,222,244,.74);
  font-size: .86rem;
  line-height: 1.55;
}

.elite-visual {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 205px;
  width: min(64%, 900px);
  height: 560px;
  pointer-events: none;
}

.elite-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter:
    drop-shadow(0 34px 44px rgba(0,0,0,.48))
    drop-shadow(0 0 28px rgba(155,68,255,.16));
  transform: none !important;
}

.elite-floating-card {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 196px;
  padding: 14px 16px;
  border: 1px solid rgba(193,122,255,.30);
  border-radius: 20px;
  background: rgba(12,9,23,.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}

.elite-floating-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--purple2);
  border-radius: 14px;
  background: rgba(155,68,255,.14);
  font-style: normal;
  font-size: 1.35rem;
}

.elite-floating-card b {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.elite-floating-card span {
  display: block;
  margin-top: 4px;
  color: rgba(236,226,246,.78);
  font-size: .78rem;
  line-height: 1.28;
}

.elite-floating-card.imports {
  right: 160px;
  top: 58px;
}

.elite-floating-card.priority {
  right: 78px;
  top: 205px;
}

.elite-floating-card.perks {
  right: 84px;
  bottom: 352px;
}

.elite-bottom-row {
  position: absolute;
  z-index: 6;
  left: clamp(30px, 4vw, 54px);
  right: clamp(30px, 4vw, 54px);
  bottom: 26px;
  min-height: 166px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.024)),
    rgba(10,8,19,.78);
  box-shadow:
    0 20px 64px rgba(0,0,0,.30),
    inset 0 -2px 14px rgba(155,68,255,.16);
  overflow: hidden;
}

.elite-bottom-row article {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px 34px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.elite-bottom-row article:last-child {
  border-right: 0;
}

.elite-num {
  color: var(--purple);
  font-size: 2.1rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.elite-bottom-row i {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple2);
  background:
    radial-gradient(circle at 36% 22%, rgba(255,255,255,.12), transparent 36%),
    rgba(155,68,255,.10);
  border: 1px solid rgba(193,122,255,.18);
  font-size: 2rem;
  font-style: normal;
}

.elite-bottom-row h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.18rem;
}

.elite-bottom-row p {
  margin: 0;
  max-width: 330px;
  color: rgba(230,220,244,.76);
  font-size: .93rem;
  line-height: 1.45;
}

@media (max-width: 1250px) {
  .elite-frame {
    min-height: auto;
    padding-bottom: 30px;
  }

  .elite-content {
    width: 100%;
    max-width: 720px;
  }

  .elite-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .elite-visual img {
    height: auto;
    max-height: 520px;
  }

  .elite-floating-card.imports,
  .elite-floating-card.priority,
  .elite-floating-card.perks {
    display: none;
  }

  .elite-bottom-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }
}

@media (max-width: 980px) {
  .membership-section {
    width: min(100% - 32px, 1500px) !important;
  }

  .elite-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elite-bottom-row {
    grid-template-columns: 1fr;
  }

  .elite-bottom-row article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .elite-bottom-row article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .membership-section {
    padding-top: 70px !important;
    padding-bottom: 78px !important;
  }

  .elite-frame {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .elite-content h2 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .elite-action-row,
  .elite-button,
  .elite-price {
    width: 100%;
    min-width: 0;
  }

  .elite-feature-row {
    grid-template-columns: 1fr;
  }

  .elite-bottom-row article {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}


/* =====================================================================
   Membership section repair v2
   Static reference-style layout, no overlap, no animation
   ===================================================================== */

.membership-section {
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  padding-top: 90px !important;
  padding-bottom: 100px !important;
}

.elite2-card,
.elite2-card *,
.elite2-card *::before,
.elite2-card *::after {
  animation: none !important;
  transition: none !important;
}

.elite2-card {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: clamp(34px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 24%, rgba(155,68,255,.26), transparent 32rem),
    radial-gradient(circle at 96% 74%, rgba(255,44,167,.13), transparent 32rem),
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
    #080713;
  box-shadow:
    0 34px 100px rgba(0,0,0,.44),
    inset 0 0 0 1px rgba(255,255,255,.035);
}

.elite2-bg {
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(90deg, rgba(8,7,19,.94), rgba(8,7,19,.68) 44%, rgba(8,7,19,.35) 70%, rgba(8,7,19,.80)),
    linear-gradient(180deg, rgba(8,7,19,.28), rgba(8,7,19,.86)),
    url("../assets/silvergate-city-hero.jpg") center center / cover no-repeat;
}

.elite2-mark {
  position: absolute;
  right: 19%;
  top: 11%;
  z-index: 1;
  width: 440px;
  height: 440px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(155,68,255,.075);
  font-size: 190px;
  font-weight: 950;
  letter-spacing: -.13em;
  box-shadow:
    0 0 0 86px rgba(155,68,255,.045),
    0 0 0 170px rgba(255,255,255,.028);
  pointer-events: none;
}

.elite2-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(500px, 0.88fr) minmax(520px, 1.12fr);
  gap: 22px;
  align-items: end;
  min-height: 620px;
}

.elite2-left {
  position: relative;
  z-index: 5;
  align-self: start;
  max-width: 685px;
}

.elite2-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  color: var(--purple2) !important;
  letter-spacing: .25em !important;
}

.elite2-eyebrow span {
  width: 18px;
  height: 18px;
  background: var(--purple2);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  box-shadow: 0 0 20px rgba(193,122,255,.65);
}

.elite2-title {
  margin: 0 0 28px !important;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(4.3rem, 8vw, 9.15rem);
  line-height: .78;
  letter-spacing: -.085em;
}

.elite2-title span {
  display: block;
  color: #e9e5ee;
  text-shadow:
    0 2px 0 rgba(255,255,255,.25),
    0 22px 50px rgba(0,0,0,.42);
}

.elite2-title em {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, #d9a9ff 0%, #9b44ff 42%, #6421c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  font-style: italic;
}

.elite2-lead {
  max-width: 610px;
  margin: 0 0 30px !important;
  color: rgba(239,232,247,.80) !important;
  font-size: clamp(1.08rem, 1.55vw, 1.34rem) !important;
  line-height: 1.45 !important;
}

.elite2-actions {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.elite2-price {
  min-width: 220px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 20px;
  border: 1px solid rgba(193,122,255,.74);
  border-radius: 16px;
  background: rgba(12,9,23,.74);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 0 28px rgba(155,68,255,.14);
}

.elite2-price span {
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 950;
  margin-bottom: 7px;
}

.elite2-price b {
  color: #fff;
  font-size: 1.35rem;
}

.elite2-price small {
  color: rgba(255,255,255,.84);
  font-weight: 700;
}

.elite2-button {
  min-width: 320px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px 1fr 38px;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #b65cff, #7d2bea 52%, #5d19c8);
  box-shadow:
    0 18px 46px rgba(155,68,255,.38),
    inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 1.05rem;
  font-weight: 950;
}

.elite2-button i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.13);
  font-style: normal;
  font-size: 1.35rem;
}

.elite2-button span {
  font-size: 1.9rem;
  opacity: .9;
}

.elite2-perks {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
}

.elite2-perks article {
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.030)),
    rgba(10,8,19,.74);
  box-shadow:
    0 18px 44px rgba(0,0,0,.27),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.elite2-perks article i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 14px;
  color: var(--purple2);
  background: rgba(155,68,255,.16);
  border: 1px solid rgba(193,122,255,.26);
  font-style: normal;
  font-size: 1.35rem;
}

.elite2-perks h3 {
  margin: 0 0 13px;
  min-height: 44px;
  color: #fff;
  font-size: .98rem;
  line-height: 1.10;
}

.elite2-perks h3::after {
  content: "";
  display: block;
  width: 82px;
  max-width: 100%;
  height: 2px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--purple2), transparent);
}

.elite2-perks p {
  margin: 0;
  color: rgba(232,222,244,.75);
  font-size: .82rem;
  line-height: 1.48;
}

.elite2-right {
  position: relative;
  z-index: 4;
  min-height: 610px;
  align-self: end;
}

.elite2-rings {
  position: absolute;
  right: 10%;
  top: 6%;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 0 0 82px rgba(155,68,255,.045),
    0 0 0 160px rgba(255,255,255,.024);
  background: radial-gradient(circle, rgba(155,68,255,.24), transparent 60%);
}

.elite2-right img {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: -4px;
  width: min(112%, 900px);
  max-height: 570px;
  object-fit: contain;
  object-position: right bottom;
  filter:
    drop-shadow(0 34px 44px rgba(0,0,0,.48))
    drop-shadow(0 0 28px rgba(155,68,255,.16));
  transform: none !important;
}

.elite2-callout {
  position: absolute;
  z-index: 6;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 215px;
  padding: 14px 16px;
  border: 1px solid rgba(193,122,255,.32);
  border-radius: 20px;
  background: rgba(12,9,23,.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}

.elite2-callout i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--purple2);
  border-radius: 14px;
  background: rgba(155,68,255,.14);
  font-style: normal;
  font-size: 1.30rem;
}

.elite2-callout b {
  display: block;
  color: #fff;
  font-size: .98rem;
}

.elite2-callout span {
  display: block;
  margin-top: 4px;
  color: rgba(236,226,246,.78);
  font-size: .76rem;
  line-height: 1.28;
}

.callout-imports {
  right: 12%;
  top: 22px;
}

.callout-priority {
  right: 0;
  top: 165px;
}

.callout-perks {
  right: 4%;
  bottom: 110px;
  min-width: 265px;
}

.elite2-bottom {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.024)),
    rgba(10,8,19,.80);
  box-shadow:
    0 20px 64px rgba(0,0,0,.30),
    inset 0 -2px 14px rgba(155,68,255,.16);
  overflow: hidden;
}

.elite2-bottom article {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 158px;
  padding: 24px 30px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.elite2-bottom article:last-child {
  border-right: 0;
}

.elite2-bottom article > span {
  color: var(--purple);
  font-size: 2.05rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.elite2-bottom i {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple2);
  background:
    radial-gradient(circle at 36% 22%, rgba(255,255,255,.12), transparent 36%),
    rgba(155,68,255,.10);
  border: 1px solid rgba(193,122,255,.18);
  font-size: 1.85rem;
  font-style: normal;
}

.elite2-bottom h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.12rem;
}

.elite2-bottom p {
  margin: 0;
  max-width: 330px;
  color: rgba(230,220,244,.76);
  font-size: .90rem;
  line-height: 1.42;
}

@media (max-width: 1280px) {
  .elite2-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .elite2-left {
    max-width: 760px;
  }

  .elite2-right {
    min-height: 500px;
  }

  .elite2-right img {
    right: 50%;
    transform: translateX(50%) !important;
    width: min(100%, 820px);
    max-height: 500px;
  }

  .callout-imports,
  .callout-priority,
  .callout-perks {
    display: none;
  }

  .elite2-rings {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 980px) {
  .membership-section {
    width: min(100% - 32px, 1500px) !important;
  }

  .elite2-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .elite2-bottom {
    grid-template-columns: 1fr;
  }

  .elite2-bottom article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .elite2-bottom article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .membership-section {
    padding-top: 70px !important;
    padding-bottom: 78px !important;
  }

  .elite2-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .elite2-title {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .elite2-actions,
  .elite2-button,
  .elite2-price {
    width: 100%;
    min-width: 0;
  }

  .elite2-perks {
    grid-template-columns: 1fr;
  }

  .elite2-right {
    min-height: 300px;
  }

  .elite2-right img {
    max-height: 320px;
    width: 126%;
  }

  .elite2-bottom article {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}


/* =====================================================================
   Membership section repair v3
   Perks moved into a full-width comfortable row, no cramped cards
   ===================================================================== */

.membership-section {
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  padding-top: 90px !important;
  padding-bottom: 100px !important;
}

.elite3-card,
.elite3-card *,
.elite3-card *::before,
.elite3-card *::after {
  animation: none !important;
  transition: none !important;
}

.elite3-card {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: clamp(34px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 24%, rgba(155,68,255,.26), transparent 32rem),
    radial-gradient(circle at 96% 74%, rgba(255,44,167,.13), transparent 32rem),
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
    #080713;
  box-shadow:
    0 34px 100px rgba(0,0,0,.44),
    inset 0 0 0 1px rgba(255,255,255,.035);
}

.elite3-bg {
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(90deg, rgba(8,7,19,.94), rgba(8,7,19,.68) 44%, rgba(8,7,19,.35) 70%, rgba(8,7,19,.80)),
    linear-gradient(180deg, rgba(8,7,19,.28), rgba(8,7,19,.86)),
    url("../assets/silvergate-city-hero.jpg") center center / cover no-repeat;
}

.elite3-mark {
  position: absolute;
  right: 18%;
  top: 10%;
  z-index: 1;
  width: 460px;
  height: 460px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(155,68,255,.075);
  font-size: 190px;
  font-weight: 950;
  letter-spacing: -.13em;
  box-shadow:
    0 0 0 86px rgba(155,68,255,.045),
    0 0 0 170px rgba(255,255,255,.028);
  pointer-events: none;
}

.elite3-hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(500px, 0.88fr) minmax(520px, 1.12fr);
  gap: 22px;
  align-items: end;
  min-height: 555px;
}

.elite3-copy {
  position: relative;
  z-index: 6;
  align-self: start;
  max-width: 690px;
}

.elite3-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  color: var(--purple2) !important;
  letter-spacing: .25em !important;
}

.elite3-eyebrow span {
  width: 18px;
  height: 18px;
  background: var(--purple2);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  box-shadow: 0 0 20px rgba(193,122,255,.65);
}

.elite3-title {
  margin: 0 0 28px !important;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(4.3rem, 8vw, 9.15rem);
  line-height: .78;
  letter-spacing: -.085em;
}

.elite3-title span {
  display: block;
  color: #e9e5ee;
  text-shadow:
    0 2px 0 rgba(255,255,255,.25),
    0 22px 50px rgba(0,0,0,.42);
}

.elite3-title em {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, #d9a9ff 0%, #9b44ff 42%, #6421c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  font-style: italic;
}

.elite3-lead {
  max-width: 610px;
  margin: 0 0 30px !important;
  color: rgba(239,232,247,.80) !important;
  font-size: clamp(1.08rem, 1.55vw, 1.34rem) !important;
  line-height: 1.45 !important;
}

.elite3-actions {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.elite3-price {
  min-width: 220px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 20px;
  border: 1px solid rgba(193,122,255,.74);
  border-radius: 16px;
  background: rgba(12,9,23,.74);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 0 28px rgba(155,68,255,.14);
}

.elite3-price span {
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 950;
  margin-bottom: 7px;
}

.elite3-price b {
  color: #fff;
  font-size: 1.35rem;
}

.elite3-price small {
  color: rgba(255,255,255,.84);
  font-weight: 700;
}

.elite3-button {
  min-width: 320px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px 1fr 38px;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #b65cff, #7d2bea 52%, #5d19c8);
  box-shadow:
    0 18px 46px rgba(155,68,255,.38),
    inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 1.05rem;
  font-weight: 950;
}

.elite3-button i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.13);
  font-style: normal;
  font-size: 1.35rem;
}

.elite3-button span {
  font-size: 1.9rem;
  opacity: .9;
}

.elite3-visual {
  position: relative;
  z-index: 4;
  min-height: 555px;
  align-self: end;
}

.elite3-rings {
  position: absolute;
  right: 10%;
  top: 4%;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    0 0 0 82px rgba(155,68,255,.045),
    0 0 0 160px rgba(255,255,255,.024);
  background: radial-gradient(circle, rgba(155,68,255,.24), transparent 60%);
}

.elite3-visual img {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: -6px;
  width: min(112%, 900px);
  max-height: 540px;
  object-fit: contain;
  object-position: right bottom;
  filter:
    drop-shadow(0 34px 44px rgba(0,0,0,.48))
    drop-shadow(0 0 28px rgba(155,68,255,.16));
  transform: none !important;
}

.elite3-callout {
  position: absolute;
  z-index: 6;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 215px;
  padding: 14px 16px;
  border: 1px solid rgba(193,122,255,.32);
  border-radius: 20px;
  background: rgba(12,9,23,.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}

.elite3-callout i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--purple2);
  border-radius: 14px;
  background: rgba(155,68,255,.14);
  font-style: normal;
  font-size: 1.30rem;
}

.elite3-callout b {
  display: block;
  color: #fff;
  font-size: .98rem;
}

.elite3-callout span {
  display: block;
  margin-top: 4px;
  color: rgba(236,226,246,.78);
  font-size: .76rem;
  line-height: 1.28;
}

.elite3-callout.callout-imports {
  right: 12%;
  top: 22px;
}

.elite3-callout.callout-priority {
  right: 0;
  top: 165px;
}

.elite3-callout.callout-perks {
  right: 4%;
  bottom: 68px;
  min-width: 265px;
}

.elite3-perks {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 26px;
}

.elite3-perks article {
  min-height: 178px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.082), rgba(255,255,255,.030)),
    rgba(10,8,19,.76);
  box-shadow:
    0 18px 44px rgba(0,0,0,.27),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.elite3-perks article i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--purple2);
  background: rgba(155,68,255,.16);
  border: 1px solid rgba(193,122,255,.26);
  font-style: normal;
  font-size: 1.45rem;
}

.elite3-perks h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.12;
}

.elite3-perks h3::after {
  content: "";
  display: block;
  width: 112px;
  max-width: 100%;
  height: 2px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--purple2), transparent);
}

.elite3-perks p {
  margin: 0;
  color: rgba(232,222,244,.75);
  font-size: .88rem;
  line-height: 1.48;
}

.elite3-bottom {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.024)),
    rgba(10,8,19,.80);
  box-shadow:
    0 20px 64px rgba(0,0,0,.30),
    inset 0 -2px 14px rgba(155,68,255,.16);
  overflow: hidden;
}

.elite3-bottom article {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 24px 30px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.elite3-bottom article:last-child {
  border-right: 0;
}

.elite3-bottom article > span {
  color: var(--purple);
  font-size: 2.05rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.elite3-bottom i {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple2);
  background:
    radial-gradient(circle at 36% 22%, rgba(255,255,255,.12), transparent 36%),
    rgba(155,68,255,.10);
  border: 1px solid rgba(193,122,255,.18);
  font-size: 1.85rem;
  font-style: normal;
}

.elite3-bottom h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.12rem;
}

.elite3-bottom p {
  margin: 0;
  max-width: 330px;
  color: rgba(230,220,244,.76);
  font-size: .90rem;
  line-height: 1.42;
}

@media (max-width: 1280px) {
  .elite3-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .elite3-copy {
    max-width: 760px;
  }

  .elite3-visual {
    min-height: 500px;
  }

  .elite3-visual img {
    right: 50%;
    transform: translateX(50%) !important;
    width: min(100%, 820px);
    max-height: 500px;
  }

  .elite3-callout {
    display: none;
  }

  .elite3-rings {
    right: 50%;
    transform: translateX(50%);
  }

  .elite3-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .membership-section {
    width: min(100% - 32px, 1500px) !important;
  }

  .elite3-bottom {
    grid-template-columns: 1fr;
  }

  .elite3-bottom article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .elite3-bottom article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .membership-section {
    padding-top: 70px !important;
    padding-bottom: 78px !important;
  }

  .elite3-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .elite3-title {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .elite3-actions,
  .elite3-button,
  .elite3-price {
    width: 100%;
    min-width: 0;
  }

  .elite3-visual {
    min-height: 300px;
  }

  .elite3-visual img {
    max-height: 320px;
    width: 126%;
  }

  .elite3-perks {
    grid-template-columns: 1fr;
  }

  .elite3-perks article,
  .elite3-bottom article {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================
   Server section redesign v2 (match reference panel look)
   ===================================================================== */
.server-panel-v2 {
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  padding-top: 84px !important;
  padding-bottom: 42px !important;
}

.server-panel-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 62px);
  border-radius: 30px;
  border: 1px solid rgba(177, 111, 255, 0.16);
  background:
    radial-gradient(circle at 78% 18%, rgba(123, 46, 238, 0.20), transparent 21rem),
    linear-gradient(90deg, rgba(8,7,19,.96) 0%, rgba(8,7,19,.90) 52%, rgba(17,9,35,.92) 100%),
    rgba(7, 5, 17, 0.94);
  box-shadow:
    0 26px 80px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.03);
}

.server-panel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,7,19,0.0), rgba(128,71,241,0.06) 58%, rgba(181,121,255,0.12) 100%),
    radial-gradient(circle at 85% 70%, rgba(155,68,255,.16), transparent 24rem);
  pointer-events: none;
}

.server-panel-mark {
  position: absolute;
  right: 8%;
  top: 34px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(155,68,255,.10), transparent 58%),
    url("../assets/sg-logo-mark.png") center/74% no-repeat;
  filter: drop-shadow(0 0 24px rgba(155,68,255,.18));
}

.server-panel-mark::before,
.server-panel-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(159, 92, 245, .14);
}

.server-panel-mark::after {
  inset: -38px;
  border-color: rgba(255,255,255,.05);
}

.server-panel-head,
.server-panel-grid {
  position: relative;
  z-index: 2;
}

.server-panel-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
  color: var(--purple2) !important;
  letter-spacing: .22em !important;
}

.server-panel-eyebrow span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d8b1ff, #9b44ff 58%, #6624d0 100%);
  box-shadow: 0 0 20px rgba(155,68,255,.55);
}

.server-panel-head h2 {
  margin: 0 0 14px !important;
  max-width: 880px;
  font-size: clamp(4rem, 7.2vw, 6.6rem) !important;
  line-height: .92 !important;
  letter-spacing: -.07em !important;
  color: #f3eef8 !important;
  text-shadow: 0 18px 34px rgba(0,0,0,.24);
}

.server-panel-head h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple2), transparent);
}

.server-panel-head p:last-child {
  max-width: 780px;
  margin: 0 0 30px !important;
  color: rgba(236, 230, 245, .80) !important;
  font-size: clamp(1.06rem, 1.65vw, 1.35rem) !important;
  line-height: 1.4 !important;
}

.server-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.server-panel-card {
  position: relative;
  min-width: 0;
  min-height: 166px;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px 28px;
  border-radius: 26px;
  border: 1px solid rgba(177,111,255,.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(12, 9, 24, .82);
  box-shadow:
    0 22px 62px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -2px 12px rgba(155,68,255,.10);
}

.server-panel-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(155,68,255,0), rgba(181,121,255,.95), rgba(155,68,255,0));
  opacity: .82;
}

.server-panel-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: var(--purple2);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.10), transparent 34%),
    rgba(32, 19, 58, .72);
  border: 1px solid rgba(177,111,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(255,255,255,.02);
}

.server-panel-icon svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
}

.server-panel-icon.online-dot {
  border-radius: 50%;
}

.server-panel-icon.online-dot::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18d43b;
  box-shadow:
    0 0 22px rgba(24,212,59,.62),
    0 0 0 10px rgba(24,212,59,.07);
}

.server-panel-copy {
  min-width: 0;
}

.server-panel-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 950;
}

.server-panel-copy b,
.server-panel-copy b em {
  display: block;
  color: #ffffff;
  font-size: clamp(2.1rem, 2.7vw, 3.25rem);
  font-style: normal;
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.server-panel-card.connect-card .server-panel-copy b,
#connectCommand {
  font-size: clamp(1.45rem, 2.2vw, 2.35rem) !important;
  letter-spacing: -.03em !important;
}

.server-panel-card.status-card #statusPill {
  font-size: clamp(2rem, 2.4vw, 3rem) !important;
}

@media (max-width: 1380px) {
  .server-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-panel-mark {
    width: 280px;
    height: 280px;
    right: 3%;
    top: 24px;
  }
}

@media (max-width: 900px) {
  .server-panel-v2 {
    width: min(100% - 28px, 1500px) !important;
  }

  .server-panel-shell {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .server-panel-head h2 {
    font-size: clamp(3rem, 11vw, 4.5rem) !important;
  }

  .server-panel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .server-panel-card {
    min-height: 136px;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .server-panel-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .server-panel-icon svg {
    width: 40px;
    height: 40px;
  }

  .server-panel-copy b,
  .server-panel-copy b em,
  .server-panel-card.connect-card .server-panel-copy b,
  #connectCommand {
    font-size: clamp(1.55rem, 6vw, 2.15rem) !important;
  }

  .server-panel-mark {
    opacity: .45;
    width: 220px;
    height: 220px;
    right: -30px;
    top: 4px;
  }
}


/* =====================================================================
   Premium hero/header redesign
   ===================================================================== */
.hero-premium {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 132px 24px 54px;
  overflow: hidden;
  background-image: url("../assets/silvergate-city-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 33%, rgba(167, 82, 255, 0.28), transparent 23rem),
    radial-gradient(circle at 78% 75%, rgba(179, 96, 255, 0.16), transparent 20rem),
    linear-gradient(90deg, rgba(5,3,10,.95) 0%, rgba(5,3,10,.72) 44%, rgba(6,3,12,.52) 70%, rgba(6,3,12,.72) 100%),
    linear-gradient(180deg, rgba(5,3,10,.44), rgba(5,3,10,.06) 50%, #06030c 100%);
}

.hero-premium::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 180px;
  background: linear-gradient(to top, #06030c, transparent);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 520px);
  gap: 42px;
  align-items: end;
}

.hero-copy {
  max-width: 860px;
}

.hero-premium .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  color: #c889ff;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .9rem;
  font-weight: 950;
}

.hero-premium .eyebrow span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d5ff, #b774ff 60%, #7c2cf1 100%);
  box-shadow: 0 0 22px rgba(166,84,255,.55);
}

.hero-premium h1 {
  margin: 0;
  max-width: 980px;
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(4.2rem, 9vw, 9.25rem);
  line-height: .86;
  letter-spacing: -.08em;
  color: #f7f4fb;
  text-shadow: 0 18px 34px rgba(0,0,0,.24);
}

.hero-premium h1 em {
  display: inline-block;
  color: var(--purple);
  font-style: italic;
  text-shadow: 0 0 40px rgba(155,68,255,.38);
}

.hero-premium p:not(.eyebrow) {
  width: min(710px, 100%);
  margin: 26px 0 32px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-premium .btn {
  min-height: 62px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: .95rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.hero-premium .btn.primary {
  box-shadow: 0 18px 42px rgba(155,68,255,.36), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.hero-live-card {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: 26px;
  border: 1px solid rgba(191, 130, 255, .28);
  background:
    linear-gradient(180deg, rgba(20,15,37,.95), rgba(12,10,25,.92)),
    rgba(11, 7, 23, .92);
  box-shadow:
    0 28px 60px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

.hero-live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(155,68,255,.10), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
  pointer-events: none;
}

.hero-live-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(155,68,255,0), rgba(196,132,255,.95), rgba(155,68,255,0));
}

.hero-live-top,
.hero-live-main,
.hero-live-features {
  position: relative;
  z-index: 2;
}

.hero-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-live-label,
.hero-open-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 900;
}

.hero-live-label { color: #c889ff; text-transform: uppercase; letter-spacing: .06em; }
.hero-open-now { color: rgba(255,255,255,.85); }
.hero-live-label i,
.hero-open-now i {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}
.hero-open-now i { color: #61f3a4; }

.hero-live-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 20px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-live-main h3 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-live-main p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 1.03rem;
}

.hero-live-count {
  text-align: right;
}

.hero-live-count strong {
  display: block;
  color: var(--purple2);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-live-count small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.66);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
}

.hero-live-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-live-features article {
  padding: 18px 14px 0;
  min-width: 0;
}

.hero-live-features article + article {
  border-left: 1px solid rgba(255,255,255,.08);
}

.hero-mini-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.95);
  font-size: 1.45rem;
}

.hero-live-features b {
  display: block;
  margin-bottom: 8px;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-live-features small {
  display: block;
  color: rgba(255,255,255,.66);
  line-height: 1.45;
  font-size: .88rem;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(191,130,255,.18);
  background: linear-gradient(180deg, rgba(12,10,24,.92), rgba(8,7,18,.88));
  box-shadow: 0 22px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04);
}

.hero-stat-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  min-width: 0;
}

.hero-stat-strip article + article {
  border-left: 1px solid rgba(255,255,255,.08);
}

.hero-stat-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255,255,255,.95);
  font-size: 1.5rem;
}

.hero-stat-strip strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}

.hero-stat-strip small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.66);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-live-card {
    max-width: 860px;
  }

  .hero-live-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .hero-live-features article:nth-child(3),
  .hero-live-features article:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 18px;
  }

  .hero-live-features article:nth-child(3) {
    border-left: none;
  }

  .hero-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }

  .hero-stat-strip article:nth-child(4) {
    border-left: none;
  }
}

@media (max-width: 900px) {
  .hero-premium {
    padding: 120px 18px 34px;
    min-height: auto;
  }

  .hero-shell {
    width: min(var(--max), 100%);
  }

  .hero-premium h1 {
    font-size: clamp(3.2rem, 15vw, 5.3rem);
  }

  .hero-premium p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-premium .btn {
    width: 100%;
  }

  .hero-live-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-live-count {
    text-align: left;
  }

  .hero-live-features,
  .hero-stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-live-features article,
  .hero-stat-strip article {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .hero-live-features article:first-child,
  .hero-stat-strip article:first-child {
    border-top: none;
  }

  .hero-stat-strip {
    margin-top: 24px;
    padding: 12px 8px;
  }

  .hero-stat-strip article {
    padding: 14px 10px;
  }
}


/* =====================================================================
   Global spacing / margin repair
   Fixes the cramped/squished layout by widening the site canvas and
   giving the hero, cards, and server section room to breathe.
   ===================================================================== */

:root {
  --max: 1500px !important;
}

/* Header/nav should use the same wide canvas as the hero. */
.site-header {
  width: min(1500px, calc(100% - 72px)) !important;
  min-height: 86px !important;
  padding: 14px 18px !important;
  gap: 24px !important;
}

.site-header .brand {
  min-width: 300px !important;
}

.site-nav {
  gap: 10px !important;
}

.site-nav a {
  padding: 14px 16px !important;
  font-size: .82rem !important;
}

/* Hero/header area: wider, more spread out, less compact. */
.hero-premium {
  min-height: 980px !important;
  padding: 150px 40px 78px !important;
  align-items: center !important;
  background-position: center center !important;
}

.hero-shell {
  width: min(1500px, 100%) !important;
  margin: 0 auto !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, 560px) !important;
  gap: clamp(54px, 6vw, 105px) !important;
  align-items: center !important;
}

.hero-copy {
  max-width: 900px !important;
}

.hero-premium .eyebrow {
  margin-bottom: 24px !important;
}

.hero-premium h1 {
  font-size: clamp(5.4rem, 8.4vw, 10.4rem) !important;
  line-height: .84 !important;
  max-width: 970px !important;
}

.hero-premium p:not(.eyebrow) {
  width: min(780px, 100%) !important;
  margin: 34px 0 36px !important;
  font-size: clamp(1.12rem, 1.45vw, 1.32rem) !important;
  line-height: 1.68 !important;
}

.hero-actions {
  gap: 18px !important;
}

.hero-premium .btn {
  min-height: 66px !important;
  padding: 0 34px !important;
  border-radius: 12px !important;
  font-size: .96rem !important;
}

/* Live card: wider and less dense. */
.hero-live-card {
  width: 100% !important;
  min-height: 330px !important;
  padding: 30px 30px 26px !important;
  border-radius: 28px !important;
  justify-self: end !important;
}

.hero-live-main {
  padding: 24px 0 22px !important;
}

.hero-live-main h3 {
  font-size: clamp(2.25rem, 2.4vw, 3rem) !important;
}

.hero-live-count strong {
  font-size: clamp(2.35rem, 2.8vw, 3.1rem) !important;
}

.hero-live-features article {
  padding: 20px 18px 2px !important;
}

.hero-live-features b {
  font-size: .96rem !important;
}

.hero-live-features small {
  font-size: .88rem !important;
}

/* Bottom hero stats: full, wide strip with room. */
.hero-stat-strip {
  margin-top: 54px !important;
  padding: 22px 22px !important;
  border-radius: 24px !important;
}

.hero-stat-strip article {
  padding: 10px 26px !important;
  justify-content: center !important;
}

.hero-stat-icon {
  width: 48px !important;
  height: 48px !important;
  font-size: 1.65rem !important;
}

.hero-stat-strip strong {
  font-size: clamp(1.9rem, 1.9vw, 2.45rem) !important;
}

.hero-stat-strip small {
  font-size: .76rem !important;
}

/* The standalone Live Server section below should not be oversized and cramped.
   Keep it wide, but reduce giant text and let values fit normally. */
.server-panel-v2 {
  width: min(1500px, calc(100% - 72px)) !important;
  max-width: 1500px !important;
  padding-top: 90px !important;
  padding-bottom: 80px !important;
}

.server-panel-shell {
  padding: clamp(42px, 4vw, 70px) !important;
  border-radius: 30px !important;
}

.server-panel-head h2 {
  font-size: clamp(4rem, 5.7vw, 6.4rem) !important;
  max-width: 1060px !important;
}

.server-panel-head p:last-child {
  max-width: 900px !important;
  margin-bottom: 38px !important;
}

.server-panel-grid {
  grid-template-columns: 1.05fr 1.05fr 1.65fr .95fr !important;
  gap: 24px !important;
}

.server-panel-card {
  min-height: 148px !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 22px !important;
  padding: 24px 26px !important;
}

.server-panel-icon {
  width: 76px !important;
  height: 76px !important;
  border-radius: 24px !important;
}

.server-panel-icon svg {
  width: 42px !important;
  height: 42px !important;
}

.server-panel-copy b,
.server-panel-copy b em {
  font-size: clamp(1.9rem, 2.1vw, 2.75rem) !important;
  line-height: 1 !important;
}

.server-panel-card.connect-card .server-panel-copy b,
#connectCommand {
  font-size: clamp(1.25rem, 1.75vw, 2rem) !important;
}

/* Give all major public sections more room so the whole page feels less boxed in. */
.section {
  width: min(1500px, calc(100% - 72px)) !important;
}

.membership-section {
  width: min(1500px, calc(100% - 72px)) !important;
}

.footer {
  width: min(1500px, calc(100% - 72px)) !important;
}

/* Responsive: keep it clean instead of forcing desktop spacing onto smaller screens. */
@media (max-width: 1280px) {
  :root {
    --max: 1180px !important;
  }

  .site-header,
  .section,
  .membership-section,
  .footer,
  .server-panel-v2 {
    width: min(1180px, calc(100% - 36px)) !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .hero-premium {
    min-height: auto !important;
    padding-top: 140px !important;
  }

  .hero-live-card {
    justify-self: start !important;
    max-width: 760px !important;
  }

  .server-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section,
  .membership-section,
  .footer,
  .server-panel-v2 {
    width: min(100% - 28px, 1180px) !important;
  }

  .hero-premium {
    padding: 126px 16px 46px !important;
  }

  .hero-premium h1 {
    font-size: clamp(3.4rem, 15vw, 5.4rem) !important;
  }

  .hero-live-card,
  .server-panel-shell {
    padding: 22px 18px !important;
  }

  .hero-stat-strip,
  .server-panel-grid {
    grid-template-columns: 1fr !important;
  }

  .server-panel-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
}


/* =====================================================================
   Live hero server card dynamic value cleanup
   ===================================================================== */

.hero-live-count strong em,
.hero-stat-strip strong em {
  font-style: normal !important;
}

.hero-open-now span {
  display: inline !important;
}


/* =====================================================================
   Removal cleanup: standalone server section + world intro headline
   ===================================================================== */

/* Server section was removed from the HTML. Keep this as a safety fallback
   in case an older cached partial still renders it. */
.server-panel-v2,
section.server-panel-v2,
section#server.server,
.server-section {
  display: none !important;
}

/* The large "Welcome to SilverGate / A city built around..." block was
   removed. This tightens the spacing so the next content does not feel empty. */
.world-redesign {
  padding-top: 72px !important;
}

.world-redesign-head {
  display: none !important;
}

.experience-grid {
  margin-top: 0 !important;
}

/* Since the standalone server panel is gone, reduce the vertical gap after
   the hero so the site flows straight into the next section. */
.hero-premium {
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .world-redesign {
    padding-top: 58px !important;
  }
}


/* =====================================================================
   Scrolling highlight strip under hero
   ===================================================================== */

.sg-marquee-strip {
  position: relative;
  overflow: hidden;
  height: 74px;
  display: flex;
  align-items: center;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(155,68,255,.08), rgba(255,255,255,.035), rgba(155,68,255,.08)),
    rgba(8, 6, 18, .74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 -1px 0 rgba(255,255,255,.035);
  isolation: isolate;
}

.sg-marquee-strip::before,
.sg-marquee-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(220px, 18vw);
  z-index: 3;
  pointer-events: none;
}

.sg-marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, #06030c, rgba(6,3,12,0));
}

.sg-marquee-strip::after {
  right: 0;
  background: linear-gradient(270deg, #06030c, rgba(6,3,12,0));
}

.sg-marquee-track {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 34px;
  min-width: 100%;
  white-space: nowrap;
  will-change: transform;
  animation: sgMarqueeLeft 38s linear infinite;
}

.sg-marquee-track-2 {
  animation-delay: -19s;
}

.sg-marquee-track span {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.34);
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: clamp(.95rem, 1.25vw, 1.35rem);
  font-weight: 950;
  -webkit-text-stroke: 1px rgba(255,255,255,.22);
  text-shadow: 0 0 18px rgba(155,68,255,.20);
}

.sg-marquee-track span::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 34px;
  border-radius: 50%;
  background: rgba(193,122,255,.68);
  box-shadow: 0 0 14px rgba(193,122,255,.58);
}

@keyframes sgMarqueeLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 760px) {
  .sg-marquee-strip {
    height: 58px;
  }

  .sg-marquee-track {
    gap: 24px;
    animation-duration: 30s;
  }

  .sg-marquee-track span {
    font-size: .86rem;
    letter-spacing: .16em;
  }

  .sg-marquee-track span::after {
    margin-left: 24px;
  }
}


/* =====================================================================
   Slower marquee + slow falling purple particles
   ===================================================================== */

/* Slows the text strip down. Previous speed was intentionally quick; this
   makes it feel more like a subtle ambient website detail. */
.sg-marquee-track {
  animation-duration: 76s !important;
}

.sg-marquee-track-2 {
  animation-delay: -38s !important;
}

.sg-purple-particles {
  position: fixed;
  inset: 0;
  z-index: 72;
  pointer-events: none;
  overflow: hidden;
  opacity: .72;
  mix-blend-mode: screen;
}

.sg-purple-particles span {
  position: absolute;
  left: var(--x);
  top: -80px;
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: rgba(193, 122, 255, .92);
  box-shadow:
    0 0 10px rgba(193, 122, 255, .72),
    0 0 22px rgba(155, 68, 255, .44);
  filter: blur(.1px);
  animation: sgPurpleParticleFall var(--d) linear infinite;
  animation-delay: var(--delay);
}

.sg-purple-particles span:nth-child(3n) {
  background: rgba(155, 68, 255, .78);
}

.sg-purple-particles span:nth-child(4n) {
  opacity: .48;
  filter: blur(.7px);
}

.sg-purple-particles span:nth-child(5n) {
  width: calc(var(--s) + 2px);
  height: calc(var(--s) + 2px);
  opacity: .36;
}

@keyframes sgPurpleParticleFall {
  0% {
    transform: translate3d(0, -8vh, 0) scale(.72);
    opacity: 0;
  }

  10% {
    opacity: .68;
  }

  52% {
    transform: translate3d(var(--drift), 54vh, 0) scale(1);
  }

  90% {
    opacity: .5;
  }

  100% {
    transform: translate3d(calc(var(--drift) * -0.35), 110vh, 0) scale(.82);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .sg-marquee-track {
    animation-duration: 58s !important;
  }

  .sg-marquee-track-2 {
    animation-delay: -29s !important;
  }

  .sg-purple-particles {
    opacity: .5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-marquee-track,
  .sg-purple-particles span {
    animation: none !important;
  }
}


/* =====================================================================
   Server status sync cleanup
   ===================================================================== */

.hero-live-count strong em,
.hero-stat-strip strong em,
.server-panel-copy b em {
  font-style: normal !important;
}

.hero-open-now span {
  display: inline !important;
}

/* If the API fails, show the open/offline pill as red instead of staying
   visually identical to the checking state. */
html[data-server-online="false"] .hero-open-now i {
  color: #ff5f7a !important;
  background: #ff5f7a !important;
  box-shadow: 0 0 18px rgba(255,95,122,.65) !important;
}

html[data-server-online="true"] .hero-open-now i {
  color: #61f3a4 !important;
  background: #61f3a4 !important;
  box-shadow: 0 0 18px rgba(97,243,164,.65) !important;
}


/* =====================================================================
   Events Calendar Section
   ===================================================================== */

.events-section {
  width: min(1500px, calc(100% - 72px)) !important;
  max-width: 1500px !important;
  padding-top: 96px !important;
  padding-bottom: 100px !important;
}

.events-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 58px);
  border: 1px solid rgba(193, 122, 255, .16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 18%, rgba(155,68,255,.22), transparent 30rem),
    radial-gradient(circle at 12% 88%, rgba(32,226,170,.07), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.058), rgba(255,255,255,.018)),
    rgba(7, 5, 17, .92);
  box-shadow:
    0 34px 100px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.events-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 80% 30%, black, transparent 72%);
}

.events-head,
.events-layout {
  position: relative;
  z-index: 2;
}

.events-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.events-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--purple2) !important;
}

.events-eyebrow span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--purple2);
  box-shadow: 0 0 22px rgba(193,122,255,.64);
}

.events-head h2 {
  margin: 0 0 16px;
  font-size: clamp(3.4rem, 6vw, 7.1rem);
  line-height: .88;
  letter-spacing: -.075em;
  text-transform: uppercase;
  font-style: italic;
  color: #f7f3fb;
}

.events-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(236, 226, 247, .78);
  font-size: 1.06rem;
  line-height: 1.7;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 22px;
  align-items: start;
}

.calendar-card,
.events-list-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.024)),
    rgba(11, 8, 22, .78);
  box-shadow:
    0 22px 70px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.calendar-card {
  padding: 24px;
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.calendar-top span,
.events-list-head span {
  display: block;
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .70rem;
  font-weight: 950;
  margin-bottom: 7px;
}

.calendar-top h3,
.events-list-head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  letter-spacing: -.04em;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-controls button {
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(193,122,255,.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(155,68,255,.12);
  cursor: pointer;
  font-weight: 950;
}

.calendar-controls button#eventsToday {
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-weekdays {
  margin-bottom: 10px;
}

.calendar-weekdays span {
  padding: 0 4px;
  color: rgba(235,226,247,.52);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 950;
}

.calendar-day {
  position: relative;
  min-height: 98px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78);
  overflow: hidden;
}

.calendar-day.is-muted {
  opacity: .38;
}

.calendar-day.is-today {
  border-color: rgba(32,226,170,.48);
  box-shadow: inset 0 0 0 1px rgba(32,226,170,.15), 0 0 26px rgba(32,226,170,.08);
}

.calendar-day.has-event {
  border-color: rgba(193,122,255,.30);
  background:
    radial-gradient(circle at 80% 0%, rgba(155,68,255,.22), transparent 50%),
    rgba(255,255,255,.046);
}

.calendar-date-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 950;
  font-size: .94rem;
}

.calendar-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple2);
  box-shadow: 0 0 14px rgba(193,122,255,.66);
}

.calendar-event-mini {
  display: block;
  margin-top: 18px;
  color: rgba(255,255,255,.86);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.25;
}

.events-list-card {
  padding: 24px;
  position: sticky;
  top: 120px;
}

.events-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.events-list-head b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: rgba(155,68,255,.16);
  border: 1px solid rgba(193,122,255,.24);
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.038);
}

.event-date {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.11), transparent 35%),
    rgba(155,68,255,.13);
  border: 1px solid rgba(193,122,255,.22);
}

.event-date b {
  display: block;
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .66rem;
}

.event-date span {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.event-item h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.event-item p {
  margin: 0;
  color: rgba(235,226,247,.70);
  font-size: .86rem;
  line-height: 1.42;
}

.event-time {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .66rem;
  font-weight: 950;
}

.events-discord-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(155,68,255,.9), rgba(93,25,200,.92));
  box-shadow: 0 18px 42px rgba(155,68,255,.22);
  font-weight: 950;
}

.events-discord-link span {
  font-size: 1.4rem;
}

@media (max-width: 1120px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-list-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .events-section {
    width: min(100% - 28px, 1500px) !important;
    padding-top: 74px !important;
    padding-bottom: 76px !important;
  }

  .events-shell {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .events-head h2 {
    font-size: clamp(3rem, 13vw, 4.7rem);
  }

  .calendar-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    min-height: 66px;
    padding: 8px;
    border-radius: 13px;
  }

  .calendar-event-mini {
    display: none;
  }

  .event-item {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================
   Header/nav cleanup
   Fixes duplicate Events link and wonky Discord button sizing/wrapping.
   ===================================================================== */

.site-header {
  width: min(1580px, calc(100% - 64px)) !important;
  max-width: 1580px !important;
  min-height: 92px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 12px 18px !important;
}

.site-header .brand {
  min-width: 305px !important;
  max-width: 330px !important;
  gap: 14px !important;
}

.site-nav,
#siteNav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.site-nav a,
#siteNav a {
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 17px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-size: .80rem !important;
  letter-spacing: .025em !important;
}

.site-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-width: 190px !important;
}

/* Handles the header Join Discord button regardless of whether the current
   template calls it .btn, .primary, .discord, .join-discord, etc. */
.site-header a[data-config-link="discordInvite"],
.site-header .join-discord,
.site-header .discord-btn,
.site-header .btn.primary {
  width: auto !important;
  min-width: 176px !important;
  max-width: none !important;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 24px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: .88rem !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  color: #fff !important;
  background: linear-gradient(135deg, #c777ff 0%, #8e35f1 52%, #6721d6 100%) !important;
  border: 1px solid rgba(255,255,255,.17) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 18px 44px rgba(155,68,255,.42),
    0 0 32px rgba(155,68,255,.25) !important;
}

.site-header a[data-config-link="discordInvite"] span,
.site-header .join-discord span,
.site-header .discord-btn span {
  display: inline-flex !important;
  white-space: nowrap !important;
}

.site-header .discord-icon {
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: .9rem !important;
  line-height: 1 !important;
  opacity: .95 !important;
}

/* Prevent the Discord button from inheriting mobile/full-width hero button rules. */
.hero-premium .site-header a[data-config-link="discordInvite"],
.site-header a[data-config-link="discordInvite"] {
  flex: 0 0 auto !important;
}

/* Medium screens: keep nav from crushing the Discord button. */
@media (max-width: 1320px) {
  .site-header {
    width: min(100% - 36px, 1360px) !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 18px !important;
  }

  .site-header .brand {
    min-width: 270px !important;
  }

  .site-nav,
  #siteNav {
    gap: 4px !important;
  }

  .site-nav a,
  #siteNav a {
    padding: 0 12px !important;
    font-size: .76rem !important;
  }

  .site-header a[data-config-link="discordInvite"] {
    min-width: 158px !important;
    padding: 0 18px !important;
  }
}

/* Mobile/tablet: let the menu collapse instead of wrapping the Discord button. */
@media (max-width: 980px) {
  .site-header {
    width: min(100% - 28px, 980px) !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .site-header .brand {
    min-width: 0 !important;
  }

  #siteNav,
  .site-nav {
    white-space: normal !important;
  }

  .site-actions {
    min-width: 0 !important;
  }

  .site-header a[data-config-link="discordInvite"] {
    min-width: 132px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    font-size: .78rem !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 620px) {
  .site-header a[data-config-link="discordInvite"] {
    min-width: 52px !important;
    width: 52px !important;
    padding: 0 !important;
  }

  .site-header a[data-config-link="discordInvite"] span:not(.discord-icon) {
    display: none !important;
  }
}


/* =====================================================================
   Features Showcase Redesign
   Matches the premium reference: large heading, purple gradient text,
   glowing circular icons, numbered cards, cinematic image-style bottoms.
   ===================================================================== */

.features-showcase {
  width: min(1580px, calc(100% - 72px)) !important;
  max-width: 1580px !important;
  padding-top: 112px !important;
  padding-bottom: 112px !important;
}

.features-showcase-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.features-showcase-head .eyebrow {
  margin-bottom: 18px !important;
  color: var(--purple2) !important;
  letter-spacing: .34em !important;
  font-size: .86rem !important;
}

.features-showcase-head h2 {
  margin: 0;
  color: #f8f4ff;
  font-size: clamp(4.2rem, 6.8vw, 8.7rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.features-showcase-head h2 em {
  display: inline-block;
  color: transparent;
  font-style: normal;
  background: linear-gradient(180deg, #fff 0%, #d7b9ff 34%, #a95cff 74%, #7b2bea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.features-showcase-head p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(239,232,247,.82);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.5;
}

.features-head-line {
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  box-shadow: 0 0 24px rgba(155,68,255,.55);
}

.features-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.feature-showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(193,122,255,.26);
  background:
    linear-gradient(180deg, rgba(10,8,22,.18), rgba(10,8,22,.72) 48%, rgba(10,8,22,.94) 100%),
    radial-gradient(circle at 50% 10%, rgba(155,68,255,.20), transparent 34rem),
    rgba(8,6,18,.88);
  box-shadow:
    0 32px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.025);
  isolation: isolate;
}

.feature-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .78;
  background:
    linear-gradient(180deg, rgba(5,3,10,.12) 0%, rgba(5,3,10,.38) 42%, rgba(5,3,10,.92) 100%),
    var(--feature-bg);
  background-size: cover;
  background-position: center bottom;
  transform: scale(1.02);
}

.feature-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 34% 22%, rgba(155,68,255,.24), transparent 22rem),
    linear-gradient(180deg, rgba(5,3,10,.06) 0%, rgba(5,3,10,.38) 48%, rgba(5,3,10,.76) 100%);
  pointer-events: none;
}

.feature-community {
  --feature-bg:
    radial-gradient(circle at 28% 85%, rgba(166,71,255,.72), transparent 19rem),
    radial-gradient(circle at 70% 88%, rgba(255,66,166,.42), transparent 15rem),
    linear-gradient(180deg, transparent 44%, rgba(91,35,150,.32) 74%, rgba(8,5,18,.86) 100%);
}

.feature-community::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.18) 0%, rgba(5,3,10,.44) 42%, rgba(5,3,10,.86) 100%),
    radial-gradient(circle at 22% 86%, rgba(130,55,255,.8), transparent 16rem),
    radial-gradient(circle at 64% 83%, rgba(255,60,170,.36), transparent 13rem),
    linear-gradient(to top, rgba(100,42,180,.54), rgba(10,7,23,.28));
}

.feature-roleplay::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.16) 0%, rgba(5,3,10,.50) 42%, rgba(5,3,10,.90) 100%),
    radial-gradient(circle at 45% 72%, rgba(255,42,132,.36), transparent 12rem),
    radial-gradient(circle at 72% 78%, rgba(74,120,255,.38), transparent 12rem),
    linear-gradient(to top, rgba(70,26,130,.48), rgba(10,7,23,.30));
}

.feature-opportunities::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.16) 0%, rgba(5,3,10,.48) 42%, rgba(5,3,10,.90) 100%),
    radial-gradient(circle at 54% 66%, rgba(169,79,255,.58), transparent 14rem),
    radial-gradient(circle at 82% 88%, rgba(255,62,160,.34), transparent 11rem),
    linear-gradient(to top, rgba(42,18,88,.62), rgba(10,7,23,.30));
}

.feature-portal::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.16) 0%, rgba(5,3,10,.48) 42%, rgba(5,3,10,.90) 100%),
    radial-gradient(circle at 76% 74%, rgba(145,55,255,.62), transparent 13rem),
    radial-gradient(circle at 64% 88%, rgba(69,30,126,.74), transparent 16rem),
    linear-gradient(to top, rgba(34,20,64,.72), rgba(10,7,23,.30));
}

/* Soft skyline/road/laptop-style silhouettes made with CSS so no extra assets are needed. */
.feature-showcase-card .feature-card-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  opacity: .58;
  pointer-events: none;
  background: var(--feature-silhouette);
  mask-image: linear-gradient(to top, black, rgba(0,0,0,.84) 38%, transparent);
}

.feature-community {
  --feature-silhouette:
    linear-gradient(to top, rgba(183,82,255,.34), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.12) 18px 20px, transparent 20px 44px);
}

.feature-roleplay {
  --feature-silhouette:
    radial-gradient(ellipse at 56% 76%, rgba(255,50,132,.34), transparent 18%),
    radial-gradient(ellipse at 70% 76%, rgba(78,112,255,.34), transparent 18%),
    linear-gradient(160deg, transparent 46%, rgba(255,255,255,.08) 47%, transparent 49%),
    linear-gradient(to top, rgba(93,45,180,.36), transparent 70%);
}

.feature-opportunities {
  --feature-silhouette:
    linear-gradient(90deg, transparent 0 24%, rgba(255,255,255,.10) 24% 30%, transparent 30% 38%, rgba(255,255,255,.12) 38% 46%, transparent 46% 58%, rgba(255,255,255,.09) 58% 66%, transparent 66% 100%),
    linear-gradient(to top, rgba(96,48,180,.46), transparent 74%);
}

.feature-portal {
  --feature-silhouette:
    linear-gradient(170deg, transparent 0 49%, rgba(255,255,255,.13) 50% 64%, transparent 65%),
    radial-gradient(ellipse at 78% 76%, rgba(165,76,255,.36), transparent 24%),
    linear-gradient(to top, rgba(70,30,130,.44), transparent 74%);
}

.feature-card-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgba(155,68,255,.22);
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.07em;
}

.feature-card-icon {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 50%;
  color: #c16cff;
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.16), transparent 26%),
    radial-gradient(circle, rgba(155,68,255,.18), rgba(155,68,255,.05) 62%, transparent 64%);
  border: 2px solid rgba(177,83,255,.60);
  box-shadow:
    0 0 0 8px rgba(155,68,255,.035),
    0 0 34px rgba(155,68,255,.50),
    inset 0 0 22px rgba(155,68,255,.22);
}

.feature-card-icon svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 14px rgba(193,122,255,.42));
}

.feature-card-content {
  position: relative;
  z-index: 2;
  margin-top: 56px;
}

.feature-card-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 1.45vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.feature-card-content h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 15px 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  box-shadow: 0 0 18px rgba(155,68,255,.52);
}

.feature-card-content p {
  max-width: 315px;
  margin: 0;
  color: rgba(238,229,246,.80);
  font-size: clamp(.96rem, 1vw, 1.08rem);
  line-height: 1.58;
}

/* Let this redesigned section replace old feature card styling cleanly. */
.features-showcase .feature-showcase-card i,
.features-showcase .feature-showcase-card > i {
  display: none !important;
}

@media (max-width: 1280px) {
  .features-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-showcase-card {
    min-height: 400px;
  }
}

@media (max-width: 760px) {
  .features-showcase {
    width: min(100% - 28px, 1580px) !important;
    padding-top: 78px !important;
    padding-bottom: 78px !important;
  }

  .features-showcase-head h2 {
    font-size: clamp(3.25rem, 14vw, 5.4rem);
  }

  .features-showcase-head p:not(.eyebrow) {
    font-size: 1rem;
  }

  .features-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-showcase-card {
    min-height: 370px;
    padding: 26px 24px;
    border-radius: 24px;
  }

  .feature-card-icon {
    width: 88px;
    height: 88px;
  }

  .feature-card-icon svg {
    width: 48px;
    height: 48px;
  }

  .feature-card-number {
    font-size: 2.7rem;
    top: 26px;
    right: 26px;
  }

  .feature-card-content {
    margin-top: 50px;
  }
}


/* =====================================================================
   Features section spacing + soft image fade fix
   Fixes cramped heading/text and removes the hard-cut image blocks.
   ===================================================================== */

.features-showcase.section,
section.features-showcase {
  width: min(1680px, calc(100vw - 96px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-top: 118px !important;
  padding-bottom: 128px !important;
}

.features-showcase-head {
  max-width: 1120px !important;
  margin-bottom: 56px !important;
}

.features-showcase-head .eyebrow {
  font-size: .9rem !important;
  margin-bottom: 22px !important;
}

.features-showcase-head h2 {
  max-width: 1120px !important;
  font-size: clamp(4.25rem, 5.45vw, 7.35rem) !important;
  line-height: .92 !important;
  letter-spacing: -.07em !important;
}

.features-showcase-head h2 em {
  display: inline !important;
}

.features-showcase-head p:not(.eyebrow) {
  max-width: 760px !important;
  margin-top: 26px !important;
  font-size: clamp(1.05rem, 1.18vw, 1.25rem) !important;
  line-height: 1.62 !important;
}

.features-head-line {
  margin-top: 28px !important;
  width: 86px !important;
}

.features-showcase-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(22px, 1.65vw, 34px) !important;
  align-items: stretch !important;
}

.feature-showcase-card {
  min-height: clamp(490px, 33vw, 590px) !important;
  padding: clamp(30px, 2vw, 42px) clamp(28px, 1.9vw, 38px) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 50% 14%, rgba(155,68,255,.24), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.022)),
    rgba(8,6,18,.88) !important;
}

/* This was causing the hard rectangular image cutoff behind the card text. */
.feature-showcase-card .feature-card-content::before {
  display: none !important;
  content: none !important;
}

/* Replace the hard cutoff with a full-card, softly faded cinematic lower image area. */
.feature-showcase-card::before {
  opacity: .95 !important;
  transform: none !important;
  background-size: cover !important;
  background-position: center bottom !important;
  mask-image: linear-gradient(
    to top,
    black 0%,
    rgba(0,0,0,.95) 34%,
    rgba(0,0,0,.56) 62%,
    transparent 100%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to top,
    black 0%,
    rgba(0,0,0,.95) 34%,
    rgba(0,0,0,.56) 62%,
    transparent 100%
  ) !important;
}

.feature-showcase-card::after {
  background:
    radial-gradient(circle at 24% 24%, rgba(176,91,255,.24), transparent 17rem),
    linear-gradient(180deg, rgba(5,3,10,.16) 0%, rgba(5,3,10,.22) 38%, rgba(5,3,10,.62) 72%, rgba(5,3,10,.88) 100%) !important;
}

.feature-card-icon {
  width: clamp(96px, 6vw, 122px) !important;
  height: clamp(96px, 6vw, 122px) !important;
  margin-bottom: 0 !important;
}

.feature-card-icon svg {
  width: clamp(50px, 3vw, 64px) !important;
  height: clamp(50px, 3vw, 64px) !important;
}

.feature-card-number {
  top: clamp(28px, 2vw, 38px) !important;
  right: clamp(28px, 2vw, 38px) !important;
  font-size: clamp(3rem, 3.2vw, 4.2rem) !important;
  opacity: .92 !important;
}

.feature-card-content {
  position: relative !important;
  z-index: 3 !important;
  margin-top: auto !important;
  padding-top: 120px !important;
}

.feature-card-content h3 {
  max-width: 100% !important;
  font-size: clamp(1.45rem, 1.45vw, 2rem) !important;
  line-height: 1.08 !important;
}

.feature-card-content h3::after {
  width: 70px !important;
  margin: 16px 0 18px !important;
}

.feature-card-content p {
  max-width: 100% !important;
  font-size: clamp(1rem, .98vw, 1.12rem) !important;
  line-height: 1.58 !important;
  color: rgba(238,229,246,.84) !important;
}

/* Stronger soft cinematic bottoms per card without hard edges. */
.feature-community::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.04) 0%, rgba(5,3,10,.26) 40%, rgba(5,3,10,.78) 100%),
    radial-gradient(circle at 24% 88%, rgba(164,74,255,.75), transparent 18rem),
    radial-gradient(circle at 72% 86%, rgba(255,50,166,.42), transparent 14rem),
    linear-gradient(90deg, rgba(24,12,48,.82), rgba(73,28,128,.42), rgba(16,9,34,.80)) !important;
}

.feature-roleplay::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.04) 0%, rgba(5,3,10,.30) 40%, rgba(5,3,10,.80) 100%),
    radial-gradient(circle at 42% 78%, rgba(170,55,255,.55), transparent 15rem),
    radial-gradient(circle at 72% 82%, rgba(255,44,130,.35), transparent 13rem),
    linear-gradient(115deg, rgba(15,9,31,.78), rgba(66,30,112,.48), rgba(8,6,18,.82)) !important;
}

.feature-opportunities::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.04) 0%, rgba(5,3,10,.28) 40%, rgba(5,3,10,.80) 100%),
    radial-gradient(circle at 56% 76%, rgba(160,70,255,.64), transparent 16rem),
    radial-gradient(circle at 84% 88%, rgba(255,57,156,.34), transparent 12rem),
    linear-gradient(115deg, rgba(9,6,20,.82), rgba(63,28,120,.50), rgba(8,6,18,.82)) !important;
}

.feature-portal::before {
  background-image:
    linear-gradient(180deg, rgba(5,3,10,.04) 0%, rgba(5,3,10,.28) 40%, rgba(5,3,10,.82) 100%),
    radial-gradient(circle at 76% 78%, rgba(164,74,255,.66), transparent 15rem),
    radial-gradient(circle at 56% 92%, rgba(92,36,180,.55), transparent 15rem),
    linear-gradient(115deg, rgba(11,8,24,.84), rgba(55,28,108,.42), rgba(8,6,18,.86)) !important;
}

@media (max-width: 1380px) {
  .features-showcase.section,
  section.features-showcase {
    width: min(1280px, calc(100vw - 56px)) !important;
  }

  .features-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .feature-showcase-card {
    min-height: 500px !important;
  }
}

@media (max-width: 820px) {
  .features-showcase.section,
  section.features-showcase {
    width: min(100% - 28px, 1280px) !important;
    padding-top: 84px !important;
    padding-bottom: 84px !important;
  }

  .features-showcase-head {
    margin-bottom: 34px !important;
  }

  .features-showcase-head h2 {
    font-size: clamp(3.15rem, 13vw, 5.25rem) !important;
    line-height: .9 !important;
  }

  .features-showcase-head h2 em {
    display: inline-block !important;
  }

  .features-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .feature-showcase-card {
    min-height: 430px !important;
    padding: 26px 24px !important;
    border-radius: 24px !important;
  }

  .feature-card-content {
    padding-top: 96px !important;
  }
}


/* =====================================================================
   Media / Teasers section redesign
   ===================================================================== */

.media-teasers {
  position: relative;
  width: min(1580px, calc(100% - 72px)) !important;
  max-width: 1580px !important;
  padding-top: 112px !important;
  padding-bottom: 124px !important;
  margin-inline: auto !important;
}

.media-teasers::before {
  content: "";
  position: absolute;
  inset: -8% -14% 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, rgba(42,128,255,.14), transparent 24rem),
    radial-gradient(circle at 12% 96%, rgba(35,95,255,.12), transparent 25rem),
    radial-gradient(circle at 48% 54%, rgba(155,68,255,.05), transparent 30rem);
  opacity: .9;
}

.media-teasers-head {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-bottom: 48px;
}

.media-teasers-head .eyebrow {
  margin: 0 0 24px !important;
  color: rgba(239,232,247,.78) !important;
  letter-spacing: .36em !important;
  font-size: .88rem !important;
}

.media-head-flare {
  display: block;
  width: 142px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 8%, rgba(210,170,255,.88) 10% 18%, rgba(155,68,255,.72) 23%, transparent 70%),
    linear-gradient(90deg, rgba(155,68,255,.0), rgba(194,124,255,.95), rgba(155,68,255,.0));
  box-shadow:
    0 0 14px rgba(255,255,255,.52),
    0 0 28px rgba(155,68,255,.55);
}

.media-teasers-head h2 {
  margin: 0;
  color: #f8f5ff;
  font-size: clamp(3.5rem, 5.4vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.07em;
  text-shadow: 0 18px 36px rgba(0,0,0,.24);
}

.media-teasers-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 1.6vw, 30px);
}

.media-teaser-card {
  --accent: #a955ff;
  --accent-soft: rgba(169,85,255,.26);
  --media-bg: url("../assets/media-underworld.svg");
  position: relative;
  overflow: hidden;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px 34px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255,255,255,.14));
  background:
    linear-gradient(180deg, rgba(6,5,14,.02) 0%, rgba(6,5,14,.30) 42%, rgba(6,5,14,.86) 100%),
    var(--media-bg) center/cover no-repeat,
    rgba(8,6,18,.86);
  box-shadow:
    0 28px 78px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
  isolation: isolate;
}

.media-teaser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 36% 18%, var(--accent-soft), transparent 13rem),
    linear-gradient(180deg, rgba(4,4,10,.06) 0%, rgba(4,4,10,.38) 54%, rgba(4,4,10,.92) 100%);
  pointer-events: none;
}

.media-teaser-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .84;
  box-shadow: 0 0 22px var(--accent);
}

.media-law {
  --accent: #4da0ff;
  --accent-soft: rgba(77,160,255,.30);
  --media-bg: url("../assets/media-law.svg");
}

.media-ems {
  --accent: #ff4b7d;
  --accent-soft: rgba(255,75,125,.28);
  --media-bg: url("../assets/media-ems.svg");
}

.media-underworld {
  --accent: #a65cff;
  --accent-soft: rgba(166,92,255,.30);
  --media-bg: url("../assets/media-underworld.svg");
}

.media-civilian {
  --accent: #35e6ce;
  --accent-soft: rgba(53,230,206,.24);
  --media-bg: url("../assets/media-civilian.svg");
}

.media-teaser-glass {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.media-teaser-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 32%),
    color-mix(in srgb, var(--accent) 12%, rgba(12,8,22,.86));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,.10));
  box-shadow:
    0 0 28px color-mix(in srgb, var(--accent) 42%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
}

.media-teaser-icon svg {
  width: 32px;
  height: 32px;
}

.media-teaser-card h3 {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.05rem, 1.1vw, 1.28rem);
  line-height: 1.12;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 32%, transparent);
}

.media-teaser-card p {
  max-width: 330px;
  margin: 0;
  color: rgba(242,236,248,.84);
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -.02em;
}

@media (max-width: 1320px) {
  .media-teasers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-teaser-card {
    min-height: 370px;
  }
}

@media (max-width: 760px) {
  .media-teasers {
    width: min(100% - 28px, 1580px) !important;
    padding-top: 82px !important;
    padding-bottom: 86px !important;
  }

  .media-teasers-head {
    margin-bottom: 30px;
  }

  .media-teasers-head h2 {
    font-size: clamp(3rem, 13vw, 4.85rem);
  }

  .media-teasers-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media-teaser-card {
    min-height: 330px;
    padding: 24px;
    border-radius: 24px;
  }

  .media-teaser-glass {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .media-teaser-icon {
    width: 52px;
    height: 52px;
  }

  .media-teaser-icon svg {
    width: 29px;
    height: 29px;
  }
}


/* =====================================================================
   Media section fade/blend repair
   Removes the visible rectangular background block so the section blends
   naturally into the page.
   ===================================================================== */

.media-teasers {
  isolation: isolate !important;
  background: transparent !important;
}

/* The previous ambient layer was showing like a hard rectangle on some screens.
   This replaces it with masked radial glows that fade out on every edge. */
.media-teasers::before {
  inset: -180px -18vw -170px !important;
  z-index: -2 !important;
  opacity: .82 !important;
  background:
    radial-gradient(ellipse at 86% 18%, rgba(40, 104, 255, .18), transparent 34rem),
    radial-gradient(ellipse at 9% 84%, rgba(43, 108, 255, .13), transparent 32rem),
    radial-gradient(ellipse at 54% 42%, rgba(155, 68, 255, .10), transparent 34rem) !important;
  mask-image: radial-gradient(
    ellipse at 50% 50%,
    black 0%,
    rgba(0,0,0,.84) 34%,
    rgba(0,0,0,.34) 58%,
    transparent 76%
  ) !important;
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 50%,
    black 0%,
    rgba(0,0,0,.84) 34%,
    rgba(0,0,0,.34) 58%,
    transparent 76%
  ) !important;
}

/* Add a second soft vignette layer that has no square edges. */
.media-teasers::after {
  content: "" !important;
  position: absolute !important;
  inset: -90px -10vw -90px !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(5, 4, 14, .04), transparent 34%),
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(6,3,12,.30) 78%, rgba(6,3,12,.72) 100%) !important;
  opacity: .82 !important;
}

/* Keep the card art contained to each card only, but fade the top/bottom so
   it does not feel like a pasted rectangle. */
.media-teaser-card {
  background-color: rgba(8,6,18,.86) !important;
  background-blend-mode: normal, screen, normal !important;
}

.media-teaser-card::before {
  background:
    linear-gradient(180deg, rgba(4,4,10,.48) 0%, rgba(4,4,10,.16) 28%, rgba(4,4,10,.44) 64%, rgba(4,4,10,.94) 100%),
    radial-gradient(circle at 36% 18%, var(--accent-soft), transparent 13rem) !important;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 82%,
    transparent 100%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 82%,
    transparent 100%
  ) !important;
}

/* Prevent any inherited section/card background from painting a square panel. */
.media.section,
section.media {
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .media-teasers::before {
    inset: -120px -45vw -120px !important;
    opacity: .64 !important;
  }
}


/* =====================================================================
   MEDIA REAL IMAGE INTEGRATED FIX
   This is integrated directly into the main CSS so no extra stylesheet link
   is needed. It overrides the old SVG/gradient media backgrounds.
   ===================================================================== */

.media-teasers {
  isolation: isolate !important;
}

.media-teasers-grid {
  align-items: stretch !important;
}

.media-law {
  --media-bg: url("../assets/media-law-photo.png") !important;
  --accent: #4da0ff !important;
  --accent-soft: rgba(77,160,255,.34) !important;
  background-position: 50% 45% !important;
}

.media-ems {
  --media-bg: url("../assets/media-ems-photo.png") !important;
  --accent: #ff4b7d !important;
  --accent-soft: rgba(255,75,125,.32) !important;
  background-position: 50% 46% !important;
}

.media-underworld {
  --media-bg: url("../assets/media-underworld-photo.png") !important;
  --accent: #a65cff !important;
  --accent-soft: rgba(166,92,255,.34) !important;
  background-position: 50% 52% !important;
}

.media-civilian {
  --media-bg: url("../assets/media-civilian-photo.png") !important;
  --accent: #35e6ce !important;
  --accent-soft: rgba(53,230,206,.28) !important;
  background-position: 50% 50% !important;
}

.media-teaser-card {
  background-image:
    linear-gradient(180deg,
      rgba(6, 5, 14, .08) 0%,
      rgba(6, 5, 14, .14) 24%,
      rgba(6, 5, 14, .44) 55%,
      rgba(6, 5, 14, .92) 100%),
    var(--media-bg) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  box-shadow:
    0 28px 78px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 42px color-mix(in srgb, var(--accent) 16%, transparent) !important;
}

.media-teaser-card::before {
  background:
    radial-gradient(circle at 50% 18%, var(--accent-soft), transparent 15rem),
    linear-gradient(180deg,
      rgba(4,4,10,.02) 0%,
      rgba(4,4,10,.06) 22%,
      rgba(4,4,10,.38) 58%,
      rgba(4,4,10,.94) 100%) !important;
  opacity: 1 !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.media-teaser-glass {
  background: linear-gradient(180deg, rgba(8,7,19,.12), rgba(8,7,19,.02)) !important;
  border-radius: 18px !important;
  padding: 0 0 18px !important;
}

.media-teaser-card h3 {
  color: var(--accent) !important;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--accent) 45%, transparent),
    0 2px 14px rgba(0,0,0,.48) !important;
}

.media-teaser-card p {
  color: rgba(250,247,255,.90) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.62) !important;
}

@media (max-width: 760px) {
  .media-law { background-position: 50% 40% !important; }
  .media-ems { background-position: 50% 42% !important; }
  .media-underworld { background-position: 50% 50% !important; }
  .media-civilian { background-position: 50% 48% !important; }
}


/* =====================================================================
   DESKTOP RESTORE + SAFE MOBILE ONLY FIX
   Desktop is intentionally untouched here. Everything below only applies
   below 900px wide.
   ===================================================================== */

.mobile-nav-button {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.mobile-nav-open {
    overflow: hidden !important;
  }

  .site-header {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    border-radius: 20px !important;
    overflow: visible !important;
    z-index: 10000 !important;
    background: rgba(12, 7, 26, .94) !important;
    border: 1px solid rgba(193,122,255,.24) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.42) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    transform: none !important;
  }

  .site-header .brand {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .site-header .brand img,
  .site-header .brand-logo img,
  .site-header .logo img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    object-fit: contain !important;
  }

  .site-header .brand strong,
  .site-header .brand b {
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .site-header .brand small,
  .site-header .brand span {
    font-size: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .mobile-nav-button {
    display: inline-grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    background: rgba(255,255,255,.07) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10002 !important;
  }

  .mobile-nav-button span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
  }

  .site-header .site-actions,
  .site-header .header-actions,
  .site-header > .actions,
  .site-header a[data-config-link="discordInvite"],
  .site-header .join-discord,
  .site-header .discord-btn,
  .site-header .btn-primary,
  .site-header .btn.primary {
    display: none !important;
  }

  #siteNav,
  .site-nav {
    position: fixed !important;
    top: calc(max(10px, env(safe-area-inset-top)) + 76px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 20px !important;
    background: rgba(9,5,20,.98) !important;
    border: 1px solid rgba(193,122,255,.22) !important;
    box-shadow: 0 28px 90px rgba(0,0,0,.62) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    z-index: 9999 !important;
  }

  #siteNav.is-open,
  .site-nav.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  #siteNav a,
  .site-nav a {
    width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 12px !important;
  }

  main,
  .public-main,
  .site-main {
    padding-top: calc(86px + env(safe-area-inset-top)) !important;
    overflow-x: hidden !important;
  }

  .hero,
  .hero-premium,
  .hero-section {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 92px 14px 64px !important;
    overflow-x: hidden !important;
  }

  .hero-inner,
  .hero-grid,
  .hero-content,
  .hero-premium-inner,
  .hero-shell {
    width: 100% !important;
    max-width: 720px !important;
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    transform: none !important;
  }

  .hero h1,
  .hero-premium h1,
  .hero-title {
    max-width: 100% !important;
    font-size: clamp(3rem, 14vw, 5.25rem) !important;
    line-height: .88 !important;
    letter-spacing: -.07em !important;
    text-align: left !important;
  }

  .hero p,
  .hero-premium p,
  .hero-copy {
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }

  .hero-actions,
  .hero-buttons,
  .hero .actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero-actions .btn,
  .hero-buttons .btn,
  .hero .actions .btn {
    width: 100% !important;
    min-height: 54px !important;
  }

  .hero-live-card,
  .live-server-card,
  .server-panel,
  .hero-stat-strip,
  .server-stat-strip,
  .stat-strip {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .section,
  section,
  .features-showcase,
  .media-teasers,
  .events-section,
  .membership-section,
  .departments-section,
  .cta-section {
    width: 100% !important;
    max-width: 720px !important;
    margin-inline: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow-x: hidden !important;
  }

  .features-showcase-grid,
  .media-teasers-grid,
  .events-layout,
  .departments-grid,
  .membership-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =====================================================================
   PUBLIC CONTENT VISIBILITY EMERGENCY FIX
   The desktop content was still in the HTML, but the reveal/animation state
   was leaving sections invisible. This forces public content visible again
   without changing the desktop layout.
   ===================================================================== */

body:not(.portal-page) .reveal,
body:not(.portal-page) .reveal.visible,
body:not(.portal-page) [data-reveal],
body:not(.portal-page) .hero .reveal,
body:not(.portal-page) .hero-premium .reveal,
body:not(.portal-page) .hero-content,
body:not(.portal-page) .hero-copy,
body:not(.portal-page) .hero-title,
body:not(.portal-page) .hero-actions,
body:not(.portal-page) .hero-buttons,
body:not(.portal-page) .hero-live-card,
body:not(.portal-page) .live-server-card,
body:not(.portal-page) .server-panel,
body:not(.portal-page) .hero-stat-strip,
body:not(.portal-page) .section,
body:not(.portal-page) section,
body:not(.portal-page) .features-showcase,
body:not(.portal-page) .media-teasers,
body:not(.portal-page) .membership-section,
body:not(.portal-page) .events-section {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

/* Make sure no overlay layer is sitting above the hero content. */
.hero,
.hero-premium,
.hero-section {
  position: relative !important;
}

.hero > *,
.hero-premium > *,
.hero-section > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Header remains above page content. */
.site-header {
  z-index: 1000 !important;
}

/* Prevent a fullscreen invisible overlay from catching/hiding content. */
body:not(.portal-page) .hero::before,
body:not(.portal-page) .hero::after,
body:not(.portal-page) .hero-premium::before,
body:not(.portal-page) .hero-premium::after {
  pointer-events: none !important;
}

/* Keep desktop nav desktop-only; mobile rules still only start under 900px. */
.mobile-nav-button {
  display: none;
}


/* =====================================================================
   SERVER + CALENDAR RESTORE SAFETY
   Keeps the event calendar formatted once JS fills the days.
   ===================================================================== */

.calendar-grid {
  min-height: 638px;
}

.calendar-grid .calendar-day {
  display: block;
}

.events-list .event-empty h4 {
  color: #fff;
}

@media (max-width: 900px) {
  .calendar-grid {
    min-height: auto;
  }
}


/* =====================================================================
   MEDIA TITLE BAR MATCH FIX
   Makes the Media section accent bar match the simple purple bar used in
   the "Built for stories that continue" section.
   ===================================================================== */
.media-teasers-head .media-head-flare,
.media-head-flare {
  width: 86px !important;
  height: 5px !important;
  margin-top: 0 !important;
  margin-bottom: 32px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--purple), var(--purple2)) !important;
  box-shadow: 0 0 24px rgba(155,68,255,.55) !important;
  filter: none !important;
}

.media-teasers-head .media-head-flare::before,
.media-teasers-head .media-head-flare::after,
.media-head-flare::before,
.media-head-flare::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  .media-teasers-head .media-head-flare,
  .media-head-flare {
    width: 72px !important;
    height: 5px !important;
    margin-bottom: 24px !important;
  }
}


/* =====================================================================
   Living City image blend
   Adds the uploaded character image into the first World card while keeping
   the existing circle, teal/blue, purple glow, grid, and fade effects.
   ===================================================================== */

.experience-card.feature-main {
  isolation: isolate !important;
  background:
    linear-gradient(180deg,
      rgba(6, 3, 12, .10) 0%,
      rgba(6, 3, 12, .24) 34%,
      rgba(6, 3, 12, .70) 68%,
      rgba(6, 3, 12, .96) 100%),
    linear-gradient(90deg,
      rgba(6, 3, 12, .88) 0%,
      rgba(6, 3, 12, .58) 36%,
      rgba(6, 3, 12, .28) 66%,
      rgba(6, 3, 12, .48) 100%),
    radial-gradient(circle at 24% 18%, rgba(32, 226, 170, .30), transparent 25%),
    radial-gradient(circle at 76% 18%, rgba(155, 68, 255, .52), transparent 39%),
    radial-gradient(circle at 55% 52%, rgba(55, 137, 255, .13), transparent 42%),
    url("../assets/world-living-city-characters.jpg") !important;
  background-size: cover, cover, cover, cover, cover, cover !important;
  background-position: center, center, center, center, center, center 43% !important;
  background-repeat: no-repeat !important;
  border-color: rgba(193, 122, 255, .22) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -110px 130px rgba(6,3,12,.70),
    inset 0 0 80px rgba(155,68,255,.12) !important;
}

.experience-card.feature-main::before {
  z-index: 1 !important;
  opacity: .42 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 25% 19%, rgba(32,226,170,.14), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(155,68,255,.20), transparent 28rem) !important;
  background-size: 68px 68px, 68px 68px, cover, cover !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.80), rgba(0,0,0,.32) 54%, rgba(0,0,0,.72)) !important;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.80), rgba(0,0,0,.32) 54%, rgba(0,0,0,.72)) !important;
}

.experience-card.feature-main::after {
  z-index: 1 !important;
  right: -76px !important;
  top: -78px !important;
  width: 355px !important;
  height: 355px !important;
  border-color: rgba(255,255,255,.13) !important;
  background:
    radial-gradient(circle, rgba(155,68,255,.20), transparent 64%),
    radial-gradient(circle at 34% 66%, rgba(32,226,170,.08), transparent 58%) !important;
  mix-blend-mode: screen;
  pointer-events: none !important;
}

.experience-card.feature-main .card-number,
.experience-card.feature-main > div:not(.card-number) {
  position: relative !important;
  z-index: 3 !important;
}

.experience-card.feature-main > div:not(.card-number) {
  max-width: 660px;
  text-shadow: 0 3px 20px rgba(0,0,0,.52);
}

@media (max-width: 1000px) {
  .experience-card.feature-main {
    background-position: center, center, center, center, center, center top !important;
  }
}

@media (max-width: 640px) {
  .experience-card.feature-main {
    min-height: 520px !important;
    background-position: center, center, center, center, center, 58% top !important;
  }
}


/* =====================================================================
   Living City container repair
   Fixes the previous image blend so the card keeps its original layout:
   - number badge stays top-left
   - copy stays bottom-left
   - image is visible but softened/blended
   - original teal/blue/purple overlay and circle/grid effects remain
   ===================================================================== */

.experience-card.feature-main {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 640px !important;
  border-radius: 34px !important;
  padding: clamp(34px, 4.2vw, 56px) !important;

  background-image:
    linear-gradient(180deg,
      rgba(7, 4, 14, .16) 0%,
      rgba(7, 4, 14, .26) 34%,
      rgba(7, 4, 14, .70) 70%,
      rgba(7, 4, 14, .96) 100%),
    linear-gradient(90deg,
      rgba(7, 4, 14, .92) 0%,
      rgba(7, 4, 14, .60) 35%,
      rgba(7, 4, 14, .32) 64%,
      rgba(7, 4, 14, .60) 100%),
    radial-gradient(circle at 21% 22%, rgba(26, 216, 177, .22), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(155, 68, 255, .45), transparent 41%),
    radial-gradient(circle at 60% 44%, rgba(52, 132, 255, .10), transparent 42%),
    url("../assets/world-living-city-characters.jpg") !important;

  background-size:
    cover,
    cover,
    cover,
    cover,
    cover,
    cover !important;

  background-position:
    center,
    center,
    center,
    center,
    center,
    center 34% !important;

  background-repeat: no-repeat !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -150px 150px rgba(6,3,12,.78),
    inset 0 0 90px rgba(155,68,255,.12) !important;
}

.experience-card.feature-main::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: .52 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.026) 1px, transparent 1px),
    radial-gradient(circle at 24% 19%, rgba(32,226,170,.14), transparent 24rem),
    radial-gradient(circle at 79% 17%, rgba(155,68,255,.20), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(5,3,12,.28) 50%, rgba(5,3,12,.82) 100%) !important;
  background-size: 68px 68px, 68px 68px, cover, cover, cover !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.experience-card.feature-main::after {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  right: -78px !important;
  top: -82px !important;
  width: 370px !important;
  height: 370px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(155,68,255,.20), transparent 64%),
    radial-gradient(circle at 34% 66%, rgba(32,226,170,.08), transparent 58%) !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
}

/* This is the key repair: don't let the number badge fall into the text. */
.experience-card.feature-main .card-number {
  position: absolute !important;
  top: clamp(30px, 3.3vw, 46px) !important;
  left: clamp(32px, 3.8vw, 54px) !important;
  z-index: 4 !important;
  margin: 0 !important;
}

/* Keep the actual text block anchored like the original card. */
.experience-card.feature-main > div:not(.card-number) {
  position: absolute !important;
  left: clamp(34px, 4.2vw, 58px) !important;
  right: clamp(34px, 4.2vw, 58px) !important;
  bottom: clamp(34px, 4.2vw, 58px) !important;
  z-index: 4 !important;
  max-width: 710px !important;
  margin: 0 !important;
  text-shadow: 0 4px 28px rgba(0,0,0,.70) !important;
}

.experience-card.feature-main h3,
.experience-card.feature-main h2,
.experience-card.feature-main p,
.experience-card.feature-main .eyebrow {
  position: relative !important;
  z-index: 4 !important;
}

@media (max-width: 900px) {
  .experience-card.feature-main {
    min-height: 560px !important;
    padding: 30px !important;
    background-position:
      center,
      center,
      center,
      center,
      center,
      56% top !important;
  }

  .experience-card.feature-main .card-number {
    top: 28px !important;
    left: 28px !important;
  }

  .experience-card.feature-main > div:not(.card-number) {
    left: 28px !important;
    right: 28px !important;
    bottom: 32px !important;
  }
}

@media (max-width: 560px) {
  .experience-card.feature-main {
    min-height: 520px !important;
    border-radius: 26px !important;
    background-position:
      center,
      center,
      center,
      center,
      center,
      55% top !important;
  }
}


/* =====================================================================
   Living City edge blend fix
   Repairs the visible hard/uneven edge where the image was showing through
   before the overlay covered the full card.
   ===================================================================== */

.experience-card.feature-main {
  background-color: #111421 !important;
  background-clip: border-box !important;
  background-origin: border-box !important;
  overflow: hidden !important;

  background-image:
    linear-gradient(90deg,
      rgba(13, 16, 24, .98) 0%,
      rgba(13, 16, 24, .92) 10%,
      rgba(13, 16, 24, .70) 28%,
      rgba(13, 16, 24, .42) 55%,
      rgba(13, 16, 24, .64) 100%),
    linear-gradient(180deg,
      rgba(13, 16, 24, .82) 0%,
      rgba(13, 16, 24, .46) 38%,
      rgba(8, 5, 15, .82) 74%,
      rgba(8, 5, 15, .98) 100%),
    radial-gradient(circle at 18% 18%, rgba(26, 216, 177, .26), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(155, 68, 255, .44), transparent 41%),
    radial-gradient(circle at 58% 50%, rgba(52, 132, 255, .11), transparent 43%),
    url("../assets/world-living-city-characters.jpg") !important;

  background-size:
    cover,
    cover,
    cover,
    cover,
    cover,
    108% auto !important;

  background-position:
    center,
    center,
    center,
    center,
    center,
    center 32% !important;
}

/* A full-card overlay that reaches past the rounded edges. */
.experience-card.feature-main::before {
  inset: -2px !important;
  border-radius: inherit !important;
  opacity: .72 !important;
  background:
    linear-gradient(90deg,
      rgba(15, 18, 26, .92) 0%,
      rgba(15, 18, 26, .78) 10%,
      rgba(15, 18, 26, .28) 42%,
      rgba(15, 18, 26, .40) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 18, .42) 0%,
      rgba(10, 10, 18, .12) 35%,
      rgba(8, 5, 15, .74) 100%),
    linear-gradient(90deg, rgba(255,255,255,.042) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.026) 1px, transparent 1px),
    radial-gradient(circle at 24% 19%, rgba(32,226,170,.12), transparent 24rem),
    radial-gradient(circle at 79% 17%, rgba(155,68,255,.20), transparent 28rem) !important;
  background-size:
    cover,
    cover,
    68px 68px,
    68px 68px,
    cover,
    cover !important;
}

/* Adds a soft dark/tinted wash directly on the left border area. */
.experience-card.feature-main .card-number::before {
  content: "" !important;
  position: absolute !important;
  inset: -60px -80px -520px -74px !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(13, 16, 24, .66),
      rgba(13, 16, 24, .38) 38%,
      transparent 100%) !important;
  filter: blur(10px) !important;
}

/* Keep the border clean and cover any tiny image bleed at the rounded edge. */
.experience-card.feature-main {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .36),
    inset 0 0 0 1px rgba(196, 119, 255, .18),
    inset 18px 0 32px rgba(13, 16, 24, .62),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -150px 150px rgba(6,3,12,.80),
    inset 0 0 90px rgba(155,68,255,.12) !important;
}

@media (max-width: 900px) {
  .experience-card.feature-main {
    background-size:
      cover,
      cover,
      cover,
      cover,
      cover,
      auto 100% !important;

    background-position:
      center,
      center,
      center,
      center,
      center,
      55% top !important;
  }
}


/* =====================================================================
   Living City image visibility fix
   Keeps the repaired clean edge, but lifts the dark wash so the characters
   are visible again.
   ===================================================================== */

.experience-card.feature-main {
  background-image:
    linear-gradient(90deg,
      rgba(13, 16, 24, .82) 0%,
      rgba(13, 16, 24, .66) 10%,
      rgba(13, 16, 24, .38) 28%,
      rgba(13, 16, 24, .18) 55%,
      rgba(13, 16, 24, .38) 100%),
    linear-gradient(180deg,
      rgba(13, 16, 24, .44) 0%,
      rgba(13, 16, 24, .20) 34%,
      rgba(8, 5, 15, .54) 72%,
      rgba(8, 5, 15, .92) 100%),
    radial-gradient(circle at 18% 18%, rgba(26, 216, 177, .18), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(155, 68, 255, .36), transparent 41%),
    radial-gradient(circle at 58% 50%, rgba(52, 132, 255, .08), transparent 43%),
    url("../assets/world-living-city-characters.jpg") !important;

  box-shadow:
    0 28px 90px rgba(0, 0, 0, .36),
    inset 0 0 0 1px rgba(196, 119, 255, .18),
    inset 14px 0 24px rgba(13, 16, 24, .40),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -125px 135px rgba(6,3,12,.68),
    inset 0 0 80px rgba(155,68,255,.10) !important;
}

.experience-card.feature-main::before {
  opacity: .42 !important;
  background:
    linear-gradient(90deg,
      rgba(15, 18, 26, .54) 0%,
      rgba(15, 18, 26, .38) 10%,
      rgba(15, 18, 26, .12) 42%,
      rgba(15, 18, 26, .24) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 18, .22) 0%,
      rgba(10, 10, 18, .06) 35%,
      rgba(8, 5, 15, .50) 100%),
    linear-gradient(90deg, rgba(255,255,255,.040) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.024) 1px, transparent 1px),
    radial-gradient(circle at 24% 19%, rgba(32,226,170,.10), transparent 24rem),
    radial-gradient(circle at 79% 17%, rgba(155,68,255,.16), transparent 28rem) !important;
  background-size:
    cover,
    cover,
    68px 68px,
    68px 68px,
    cover,
    cover !important;
}

.experience-card.feature-main .card-number::before {
  background:
    linear-gradient(90deg,
      rgba(13, 16, 24, .44),
      rgba(13, 16, 24, .22) 38%,
      transparent 100%) !important;
  filter: blur(8px) !important;
}

/* Keep a slightly stronger fade only behind the text so readability stays good. */
.experience-card.feature-main > div:not(.card-number)::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: -28px !important;
  right: -28px !important;
  top: -22px !important;
  bottom: -24px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(7,4,14,.10), rgba(7,4,14,.38)),
    radial-gradient(circle at 20% 75%, rgba(7,4,14,.58), transparent 70%) !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .experience-card.feature-main {
    background-image:
      linear-gradient(90deg,
        rgba(13, 16, 24, .84) 0%,
        rgba(13, 16, 24, .58) 18%,
        rgba(13, 16, 24, .22) 56%,
        rgba(13, 16, 24, .44) 100%),
      linear-gradient(180deg,
        rgba(13, 16, 24, .46) 0%,
        rgba(13, 16, 24, .22) 34%,
        rgba(8, 5, 15, .58) 72%,
        rgba(8, 5, 15, .94) 100%),
      radial-gradient(circle at 18% 18%, rgba(26, 216, 177, .18), transparent 28%),
      radial-gradient(circle at 78% 16%, rgba(155, 68, 255, .36), transparent 41%),
      radial-gradient(circle at 58% 50%, rgba(52, 132, 255, .08), transparent 43%),
      url("../assets/world-living-city-characters.jpg") !important;
  }
}


/* =====================================================================
   Living City image cover-fit fix
   Removes the hard horizontal line by forcing the image layer to fully
   cover the card height instead of sizing by width.
   ===================================================================== */

.experience-card.feature-main {
  background-size:
    cover,
    cover,
    cover,
    cover,
    cover,
    cover !important;

  background-position:
    center,
    center,
    center,
    center,
    center,
    center center !important;
}

/* Add a very soft top wash so the image blends into the card instead of
   showing any visible crop boundary. */
.experience-card.feature-main::before {
  background:
    linear-gradient(180deg,
      rgba(13, 16, 24, .34) 0%,
      rgba(13, 16, 24, .10) 20%,
      rgba(13, 16, 24, .04) 46%,
      rgba(8, 5, 15, .50) 100%),
    linear-gradient(90deg,
      rgba(15, 18, 26, .50) 0%,
      rgba(15, 18, 26, .28) 12%,
      rgba(15, 18, 26, .10) 44%,
      rgba(15, 18, 26, .24) 100%),
    linear-gradient(90deg, rgba(255,255,255,.040) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.024) 1px, transparent 1px),
    radial-gradient(circle at 24% 19%, rgba(32,226,170,.10), transparent 24rem),
    radial-gradient(circle at 79% 17%, rgba(155,68,255,.16), transparent 28rem) !important;

  background-size:
    cover,
    cover,
    68px 68px,
    68px 68px,
    cover,
    cover !important;
}

/* Keep the old clean-edge tint, but do not create a visible horizontal stop. */
.experience-card.feature-main {
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .36),
    inset 0 0 0 1px rgba(196, 119, 255, .18),
    inset 14px 0 24px rgba(13, 16, 24, .34),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -125px 135px rgba(6,3,12,.68),
    inset 0 0 80px rgba(155,68,255,.10) !important;
}

@media (max-width: 900px) {
  .experience-card.feature-main {
    background-size:
      cover,
      cover,
      cover,
      cover,
      cover,
      cover !important;

    background-position:
      center,
      center,
      center,
      center,
      center,
      center center !important;
  }
}


/* =====================================================================
   Removed Features section support
   Keeps spacing clean now that the "Built for stories that continue" section
   has been removed from the public homepage.
   ===================================================================== */

#features,
.features-showcase,
.features-section {
  scroll-margin-top: 120px;
}


/* =====================================================================
   Media category gallery
   Click a teaser category card to open a polished gallery modal.
   ===================================================================== */

.media-teaser-card[data-gallery] {
  cursor: pointer !important;
  transition:
    transform .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    filter .24s ease !important;
}

.media-teaser-card[data-gallery]:hover,
.media-teaser-card[data-gallery]:focus-visible {
  transform: translateY(-8px) !important;
  border-color: color-mix(in srgb, var(--accent) 72%, rgba(255,255,255,.24)) !important;
  box-shadow:
    0 34px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 0 34px color-mix(in srgb, var(--accent) 26%, transparent) !important;
  outline: none !important;
}

.media-gallery-cta {
  position: relative;
  z-index: 4;
  width: fit-content;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 18%, rgba(8,6,18,.72));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255,255,255,.12));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 0 18px rgba(255,255,255,.035);
}

.media-gallery-cta i {
  font-style: normal;
  color: var(--accent);
  transition: transform .2s ease;
}

.media-teaser-card:hover .media-gallery-cta i {
  transform: translateX(4px);
}

.teaser-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.teaser-gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.teaser-gallery-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(155,68,255,.18), transparent 34rem),
    rgba(4, 2, 9, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.teaser-gallery-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 1380px);
  max-height: min(860px, calc(100dvh - 42px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 22px;
  padding: clamp(24px, 2.8vw, 42px);
  border-radius: 34px;
  border: 1px solid rgba(193,122,255,.22);
  background:
    linear-gradient(135deg, rgba(17, 12, 32, .96), rgba(8, 5, 18, .95)),
    radial-gradient(circle at 82% 8%, rgba(155,68,255,.20), transparent 24rem),
    radial-gradient(circle at 5% 100%, rgba(42,226,204,.10), transparent 22rem);
  box-shadow:
    0 36px 120px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.teaser-gallery-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 68px 68px;
}

.teaser-gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.teaser-gallery-header {
  max-width: 850px;
  padding-right: 70px;
}

.teaser-gallery-header .eyebrow {
  margin: 0 0 14px !important;
  color: var(--gallery-accent, #a955ff) !important;
  font-size: .82rem !important;
  letter-spacing: .32em !important;
}

.teaser-gallery-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(242,236,248,.72);
  font-size: 1.04rem;
  line-height: 1.6;
  font-weight: 700;
}

.teaser-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teaser-gallery-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.045);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  cursor: pointer;
}

.teaser-gallery-tab.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 52%, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 20%, rgba(255,255,255,.05));
  box-shadow: 0 0 22px color-mix(in srgb, var(--gallery-accent, #a955ff) 22%, transparent);
}

.teaser-gallery-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: 20px;
}

.teaser-gallery-feature {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 32%, rgba(255,255,255,.12));
  background: rgba(255,255,255,.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 24px 80px rgba(0,0,0,.36);
}

.teaser-gallery-feature img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.04);
}

.teaser-gallery-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, color-mix(in srgb, var(--gallery-accent, #a955ff) 20%, transparent), transparent 18rem),
    linear-gradient(180deg, transparent 26%, rgba(3,2,8,.72) 100%);
  pointer-events: none;
}

.teaser-gallery-feature figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(7, 4, 16, .66);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.teaser-gallery-feature figcaption b {
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.teaser-gallery-feature figcaption span {
  color: rgba(242,236,248,.74);
  font-weight: 700;
  line-height: 1.45;
}

.teaser-gallery-grid {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-right: 4px;
}

.teaser-gallery-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  min-height: 104px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.teaser-gallery-item.is-active {
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 48%, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 13%, rgba(255,255,255,.045));
}

.teaser-gallery-thumb {
  min-height: 84px;
  border-radius: 14px;
  background: var(--thumb) center/cover no-repeat, rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.teaser-gallery-item strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
}

.teaser-gallery-item span {
  display: block;
  margin-top: 8px;
  color: rgba(242,236,248,.66);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .teaser-gallery-stage {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .teaser-gallery-feature,
  .teaser-gallery-feature img {
    min-height: 330px;
  }

  .teaser-gallery-grid {
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .teaser-gallery-modal {
    padding: 10px;
  }

  .teaser-gallery-panel {
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
    padding: 20px;
  }

  .teaser-gallery-header {
    padding-right: 54px;
  }

  .teaser-gallery-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .teaser-gallery-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .teaser-gallery-tab {
    flex: 0 0 auto;
  }

  .teaser-gallery-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}


/* =====================================================================
   Media teaser card text alignment fix
   Makes every category card use the same internal vertical grid:
   icon/title row, description row, and Open Gallery button now line up.
   ===================================================================== */

.media-teaser-card {
  min-height: 420px !important;
  display: grid !important;
  grid-template-rows: 1fr auto auto auto !important;
  align-content: stretch !important;
  padding: clamp(26px, 2.2vw, 34px) !important;
}

.media-teaser-card > * {
  position: relative !important;
  z-index: 4 !important;
}

.media-teaser-card .media-teaser-icon,
.media-teaser-card .teaser-icon,
.media-teaser-card .media-icon,
.media-teaser-card .icon {
  margin: 0 !important;
  align-self: end !important;
}

/* Works with the current card HTML where icon + title are separate siblings. */
.media-teaser-card h3,
.media-teaser-card h4,
.media-teaser-card .media-title,
.media-teaser-card .teaser-title {
  min-height: 2.35em !important;
  margin: 0 0 18px !important;
  display: flex !important;
  align-items: flex-end !important;
  line-height: 1.05 !important;
}

/* Works with the current cards if the title sits directly after the icon. */
.media-teaser-card .media-teaser-icon + h3,
.media-teaser-card .teaser-icon + h3,
.media-teaser-card .media-icon + h3,
.media-teaser-card .icon + h3 {
  margin-top: 14px !important;
}

.media-teaser-card p {
  min-height: 4.55em !important;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  line-height: 1.22 !important;
}

/* Keep the button aligned at the exact same bottom position on every card. */
.media-gallery-cta {
  align-self: end !important;
  justify-self: start !important;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

/* Some versions have a horizontal divider/pseudo layer near the title;
   normalize its spacing so it does not shift one card lower than another. */
.media-teaser-card::after {
  pointer-events: none !important;
}

@media (min-width: 901px) {
  .media-teaser-card {
    grid-template-rows:
      minmax(118px, 1fr)
      minmax(58px, auto)
      minmax(82px, auto)
      48px !important;
  }
}

@media (max-width: 900px) {
  .media-teaser-card {
    min-height: 380px !important;
    grid-template-rows:
      minmax(90px, 1fr)
      minmax(48px, auto)
      minmax(72px, auto)
      48px !important;
  }

  .media-teaser-card p {
    min-height: auto !important;
  }
}


/* =====================================================================
   World → Media neon divider
   Adds a polished transition between the World cards and Teasers section.
   ===================================================================== */

.sg-world-media-divider {
  position: relative;
  width: min(100% - 48px, 1180px);
  margin: clamp(70px, 7vw, 118px) auto clamp(58px, 6vw, 94px);
  padding: 0;
  text-align: center;
  isolation: isolate;
}

.sg-world-media-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(820px, 82vw);
  height: 160px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(164, 76, 255, .24), transparent 52%),
    radial-gradient(circle at 34% 50%, rgba(42, 226, 204, .10), transparent 42%),
    radial-gradient(circle at 66% 50%, rgba(81, 145, 255, .10), transparent 42%);
  filter: blur(24px);
  pointer-events: none;
}

.sg-divider-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.sg-divider-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(198, 130, 255, .24),
      rgba(42, 226, 204, .18),
      rgba(198, 130, 255, .24),
      transparent);
  box-shadow:
    0 0 18px rgba(164, 76, 255, .26),
    0 0 34px rgba(42, 226, 204, .08);
}

.sg-divider-line::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -28%;
  width: 28%;
  border-radius: inherit;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(255,255,255,.95),
      rgba(190,108,255,.95),
      transparent);
  box-shadow:
    0 0 18px rgba(190,108,255,.68),
    0 0 34px rgba(42,226,204,.20);
  animation: sgDividerSweep 5.8s linear infinite;
}

.sg-divider-line:first-child::before {
  animation-delay: -2.9s;
}

.sg-divider-core {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 12, 36, .88), rgba(8, 5, 18, .76)),
    radial-gradient(circle at 50% 0%, rgba(164,76,255,.22), transparent 70%);
  border: 1px solid rgba(198,130,255,.26);
  box-shadow:
    0 18px 52px rgba(0,0,0,.34),
    0 0 28px rgba(164,76,255,.20),
    inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.sg-divider-core::before,
.sg-divider-core::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #bc70ff;
  box-shadow:
    0 0 16px rgba(188,112,255,.85),
    0 0 28px rgba(42,226,204,.18);
}

.sg-divider-core::before {
  left: -4px;
}

.sg-divider-core::after {
  right: -4px;
}

.sg-divider-core i {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 999px;
  background: #2ee6c8;
  box-shadow:
    0 0 18px rgba(46,230,200,.78),
    0 0 38px rgba(164,76,255,.28);
}

.sg-divider-core b {
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(255,255,255,.90);
}

.sg-world-media-divider p {
  max-width: 620px;
  margin: 16px auto 0;
  color: rgba(242,236,248,.62);
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.5;
}

@keyframes sgDividerSweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateX(460%);
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .sg-world-media-divider {
    width: min(100% - 28px, 720px);
    margin: 58px auto 48px;
  }

  .sg-divider-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sg-divider-line {
    height: 1px;
  }

  .sg-divider-core {
    justify-self: center;
    min-height: 48px;
    padding: 0 18px;
  }

  .sg-world-media-divider p {
    font-size: .9rem;
    padding: 0 10px;
  }
}


/* =====================================================================
   Media divider as header
   Uses the neon divider as the Teasers section header and removes the
   duplicated large MEDIA / Teasers from the city heading.
   ===================================================================== */

.sg-media-header-divider {
  margin-bottom: clamp(36px, 4vw, 58px) !important;
}

.sg-media-header-divider .sg-divider-core {
  min-height: 60px !important;
  padding: 0 clamp(22px, 2.4vw, 34px) !important;
}

.sg-media-header-divider .sg-divider-core b {
  font-size: clamp(.82rem, 1.15vw, 1.05rem) !important;
  letter-spacing: clamp(.18em, .6vw, .30em) !important;
}

.sg-media-header-divider p {
  max-width: 760px !important;
  margin-top: 18px !important;
}

/* Hide the old media heading if the HTML markup is still present. */
#media > .section-kicker,
#media > .section-label,
#media > .eyebrow,
#media > p.eyebrow,
#media > span.eyebrow,
#media > .section-heading,
#media > header.section-heading {
  display: none !important;
}

#media > h2:first-of-type,
#media > .section-title:first-of-type {
  display: none !important;
}

/* Pull the card grid up so the divider feels like the real header. */
#media {
  padding-top: 0 !important;
}

#media .media-teasers-grid,
#media .media-grid,
#media .teaser-grid {
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  .sg-media-header-divider .sg-divider-core {
    min-height: 54px !important;
    padding: 0 18px !important;
  }

  .sg-media-header-divider .sg-divider-core b {
    font-size: .74rem !important;
    letter-spacing: .18em !important;
  }
}


/* =====================================================================
   Gallery placeholder image polish
   Keeps uploaded screenshots looking clean inside the modal thumbnails/stage.
   ===================================================================== */

.teaser-gallery-feature img,
.teaser-gallery-thumb {
  background-color: rgba(255,255,255,.04) !important;
}

.teaser-gallery-feature img {
  object-position: center center !important;
}

.teaser-gallery-grid {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 48%, rgba(255,255,255,.18)) rgba(255,255,255,.05);
}

.teaser-gallery-item {
  min-height: 116px !important;
}

.teaser-gallery-thumb {
  min-height: 96px !important;
}


/* =====================================================================
   Gallery click + duplicate header repair
   - Hides/removes the old MEDIA / Teasers heading
   - Keeps the neon divider as the only header
   - Makes the cards look clickable without changing layout
   ===================================================================== */

#media .media-teasers-head,
#media .section-heading,
#media header.section-heading,
#media > .eyebrow,
#media > .section-kicker,
#media > h2:first-of-type {
  display: none !important;
}

.sg-media-header-divider + #media,
#media {
  padding-top: 0 !important;
}

#media .media-teasers-grid {
  margin-top: 0 !important;
}

.media-teaser-card[data-gallery] {
  cursor: pointer !important;
  user-select: none;
}

.media-teaser-card[data-gallery] .media-gallery-cta {
  pointer-events: none;
}


/* =====================================================================
   Gallery modal full repair polish
   ===================================================================== */

#media .media-teasers-head,
#media > .eyebrow,
#media > .section-kicker,
#media > h2:first-of-type {
  display: none !important;
}

.teaser-gallery-modal {
  z-index: 99999 !important;
}

.teaser-gallery-modal:not(.is-open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.teaser-gallery-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.teaser-gallery-close {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.teaser-gallery-feature img {
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: rgba(255,255,255,.04) !important;
}

.teaser-gallery-feature img[src=""],
.teaser-gallery-feature img:not([src]) {
  visibility: hidden !important;
}

.teaser-gallery-item {
  cursor: pointer !important;
}


/* =====================================================================
   Gallery UI redesign
   Rebuilds the teaser modal to match the high-end dashboard style.
   ===================================================================== */

.teaser-gallery-panel {
  width: min(96vw, 1400px) !important;
  max-height: min(92dvh, 940px) !important;
  padding: clamp(18px, 2vw, 28px) !important;
  border-radius: 34px !important;
  border: 1px solid rgba(188, 112, 255, .28) !important;
  background:
    linear-gradient(180deg, rgba(12, 7, 26, .97), rgba(7, 4, 17, .98)),
    radial-gradient(circle at 82% 14%, rgba(167, 81, 255, .20), transparent 28rem),
    radial-gradient(circle at 12% 82%, rgba(46, 230, 200, .08), transparent 24rem) !important;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .58),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(255,255,255,.02) !important;
}

.teaser-gallery-panel::before {
  opacity: .33 !important;
  background-size: 72px 72px !important;
}

.teaser-gallery-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(330px, .88fr);
  gap: clamp(24px, 2vw, 36px);
}

.teaser-gallery-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(18px, 1.5vw, 24px);
}

.teaser-gallery-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  padding-top: clamp(72px, 6vw, 112px);
}

.teaser-gallery-header {
  max-width: 860px !important;
  padding-right: 92px !important;
}

.teaser-gallery-header .eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px !important;
  color: var(--gallery-accent, #35e6ce) !important;
  font-size: .92rem !important;
  letter-spacing: .32em !important;
  text-transform: uppercase;
}

.teaser-gallery-inline-icon,
.teaser-gallery-feature-icon,
.teaser-gallery-tab-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.teaser-gallery-inline-icon svg,
.teaser-gallery-feature-icon svg,
.teaser-gallery-tab-icon svg {
  width: 1.1em;
  height: 1.1em;
  display: block;
}

.teaser-gallery-header h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 5.2vw, 5.8rem) !important;
  line-height: .94 !important;
  letter-spacing: -.08em !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 700px !important;
  margin-top: 16px !important;
  color: rgba(242, 236, 248, .78) !important;
  font-size: 1.02rem !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

.teaser-gallery-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
}

.teaser-gallery-tab {
  min-height: 50px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  background: rgba(255,255,255,.04) !important;
  color: rgba(244, 240, 248, .76) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
  font-size: .78rem !important;
  font-weight: 850 !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.teaser-gallery-tab:hover,
.teaser-gallery-tab:focus-visible {
  transform: translateY(-1px);
  color: #fff !important;
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 56%, rgba(255,255,255,.18)) !important;
}

.teaser-gallery-tab.is-active {
  color: #fff !important;
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 64%, rgba(255,255,255,.18)) !important;
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 14%, rgba(255,255,255,.04)) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 0 24px color-mix(in srgb, var(--gallery-accent, #a955ff) 16%, transparent) !important;
}

.teaser-gallery-feature-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.teaser-gallery-feature {
  min-height: 0 !important;
  height: 100%;
  border-radius: 28px !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 32%, rgba(255,255,255,.12)) !important;
  background: rgba(255,255,255,.03) !important;
}

.teaser-gallery-feature img {
  min-height: clamp(330px, 42vw, 520px) !important;
  height: 100% !important;
}

.teaser-gallery-feature::before {
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent), transparent 20rem),
    linear-gradient(180deg, transparent 12%, rgba(6,4,12,.16) 36%, rgba(4,2,8,.64) 100%) !important;
}

.teaser-gallery-feature figcaption {
  left: 22px !important;
  right: auto !important;
  bottom: 22px !important;
  max-width: min(520px, calc(100% - 44px));
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 16px !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(20, 13, 36, .84), rgba(7, 4, 18, .76)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.30);
}

.teaser-gallery-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: var(--gallery-accent, #35e6ce);
  background: color-mix(in srgb, var(--gallery-accent, #35e6ce) 14%, rgba(255,255,255,.05));
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #35e6ce) 42%, rgba(255,255,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.22);
}

.teaser-gallery-feature figcaption b {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem) !important;
  margin-bottom: 6px;
}

.teaser-gallery-feature figcaption span {
  color: rgba(242,236,248,.75) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
}

.teaser-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.teaser-gallery-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.teaser-gallery-dot:hover,
.teaser-gallery-dot:focus-visible {
  transform: scale(1.08);
  background: rgba(255,255,255,.32);
}

.teaser-gallery-dot.is-active {
  background: var(--gallery-accent, #35e6ce);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gallery-accent, #35e6ce) 14%, transparent), 0 0 18px color-mix(in srgb, var(--gallery-accent, #35e6ce) 34%, transparent);
}

.teaser-gallery-grid {
  min-height: 0 !important;
  width: 100%;
  overflow-y: auto !important;
  padding-right: 8px !important;
  display: flex !important;
  flex-direction: column;
  gap: 14px !important;
}

.teaser-gallery-item {
  position: relative;
  min-height: 142px !important;
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.teaser-gallery-item:hover,
.teaser-gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 42%, rgba(255,255,255,.12)) !important;
  background: rgba(255,255,255,.045) !important;
}

.teaser-gallery-item.is-active {
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 52%, rgba(255,255,255,.14)) !important;
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 8%, rgba(255,255,255,.04)) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.teaser-gallery-thumb {
  min-height: 118px !important;
  border-radius: 16px !important;
}

.teaser-gallery-item-copy {
  min-width: 0;
}

.teaser-gallery-item strong {
  margin-top: 0 !important;
  font-size: 1.12rem !important;
  line-height: 1.15 !important;
}

.teaser-gallery-item span {
  margin-top: 8px !important;
  font-size: .95rem !important;
  line-height: 1.48 !important;
}

.teaser-gallery-item-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gallery-accent, #35e6ce);
  font-size: 1.6rem;
  font-style: normal;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.teaser-gallery-item.is-active .teaser-gallery-item-arrow {
  border-color: color-mix(in srgb, var(--gallery-accent, #35e6ce) 50%, rgba(255,255,255,.1));
  background: color-mix(in srgb, var(--gallery-accent, #35e6ce) 10%, rgba(255,255,255,.03));
}

.teaser-gallery-close {
  top: 18px !important;
  right: 18px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 34%, rgba(255,255,255,.12)) !important;
  background: rgba(17, 10, 31, .82) !important;
  font-size: 2.35rem !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.teaser-gallery-close:hover,
.teaser-gallery-close:focus-visible {
  color: var(--gallery-accent, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gallery-accent, #a955ff) 12%, transparent), 0 14px 28px rgba(0,0,0,.22);
}

.teaser-gallery-grid::-webkit-scrollbar {
  width: 8px;
}

.teaser-gallery-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.teaser-gallery-grid::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 44%, rgba(255,255,255,.16));
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .teaser-gallery-layout {
    grid-template-columns: 1fr;
  }

  .teaser-gallery-sidebar {
    padding-top: 0;
  }

  .teaser-gallery-grid {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .teaser-gallery-panel {
    width: min(100vw - 16px, 100%) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 24px !important;
    padding: 14px !important;
  }

  .teaser-gallery-header {
    padding-right: 66px !important;
  }

  .teaser-gallery-header h2 {
    max-width: none;
    font-size: clamp(2.5rem, 11vw, 4.4rem) !important;
  }

  .teaser-gallery-tab {
    min-height: 46px !important;
    font-size: .7rem !important;
    letter-spacing: .12em !important;
  }

  .teaser-gallery-feature figcaption {
    left: 14px !important;
    right: 14px !important;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .teaser-gallery-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .teaser-gallery-item {
    grid-template-columns: 116px minmax(0,1fr);
  }

  .teaser-gallery-item-arrow {
    display: none;
  }
}


/* =====================================================================
   FINAL Gallery polish fix
   - fixes blank sidebar thumbnails by supporting real img thumbnails
   - makes modal proportions closer to the requested reference
   - fixes cramped right-side text and caption spacing
   ===================================================================== */

.teaser-gallery-panel {
  width: min(94vw, 1480px) !important;
  max-height: min(91dvh, 900px) !important;
  padding: clamp(24px, 2.35vw, 42px) !important;
  border-radius: 36px !important;
  overflow: hidden !important;
}

.teaser-gallery-layout {
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(680px, 1.55fr) minmax(430px, .78fr) !important;
  gap: clamp(30px, 3vw, 54px) !important;
  align-items: stretch !important;
}

.teaser-gallery-main {
  display: grid !important;
  grid-template-rows: auto auto minmax(360px, 1fr) !important;
  gap: 22px !important;
  min-width: 0 !important;
}

.teaser-gallery-sidebar {
  display: flex !important;
  min-height: 0 !important;
  padding-top: clamp(92px, 8vw, 124px) !important;
}

.teaser-gallery-header {
  max-width: 860px !important;
  padding-right: 84px !important;
}

.teaser-gallery-header .eyebrow {
  margin-bottom: 18px !important;
  gap: 12px !important;
  font-size: .86rem !important;
  letter-spacing: .30em !important;
  color: var(--gallery-accent, #35e6ce) !important;
}

.teaser-gallery-header h2 {
  max-width: 12.2ch !important;
  font-size: clamp(3.85rem, 5.4vw, 6.2rem) !important;
  line-height: .92 !important;
  letter-spacing: -.085em !important;
  margin: 0 !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 760px !important;
  margin: 18px 0 0 !important;
  font-size: clamp(.98rem, 1vw, 1.08rem) !important;
  line-height: 1.52 !important;
  color: rgba(242, 236, 248, .76) !important;
}

.teaser-gallery-tabs {
  gap: 12px !important;
  align-items: center !important;
}

.teaser-gallery-tab {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  white-space: nowrap !important;
}

.teaser-gallery-feature-wrap {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 20px !important;
  gap: 14px !important;
}

.teaser-gallery-feature {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  max-height: 520px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

.teaser-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transform: scale(1.002);
}

.teaser-gallery-feature figcaption {
  left: 24px !important;
  bottom: 24px !important;
  right: auto !important;
  width: min(620px, calc(100% - 48px)) !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 20px 24px !important;
  border-radius: 22px !important;
}

.teaser-gallery-feature-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
}

.teaser-gallery-feature figcaption b {
  display: block !important;
  margin: 0 0 7px !important;
  font-size: clamp(1.85rem, 2.1vw, 2.55rem) !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
  color: #fff !important;
}

.teaser-gallery-feature figcaption span {
  display: block !important;
  margin: 0 !important;
  color: rgba(242, 236, 248, .78) !important;
  font-size: clamp(.94rem, .92vw, 1.04rem) !important;
  line-height: 1.38 !important;
  font-weight: 700 !important;
}

.teaser-gallery-dots {
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.teaser-gallery-grid {
  width: 100% !important;
  max-height: calc(91dvh - 240px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 0 10px 0 0 !important;
}

.teaser-gallery-item {
  width: 100% !important;
  min-height: 128px !important;
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  text-align: left !important;
}

.teaser-gallery-thumb {
  width: 150px !important;
  height: 104px !important;
  min-height: 104px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

.teaser-gallery-thumb::before {
  display: none !important;
  content: none !important;
}

.teaser-gallery-thumb-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.teaser-gallery-item-copy {
  min-width: 0 !important;
  display: block !important;
}

.teaser-gallery-item-copy strong,
.teaser-gallery-item strong {
  display: block !important;
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(1.04rem, 1vw, 1.18rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere !important;
}

.teaser-gallery-item-copy > span,
.teaser-gallery-item span span {
  display: block !important;
  margin: 0 !important;
  color: rgba(242, 236, 248, .70) !important;
  font-size: .92rem !important;
  line-height: 1.34 !important;
  font-weight: 650 !important;
}

.teaser-gallery-item-arrow {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: end !important;
  margin: 0 !important;
}

.teaser-gallery-close {
  top: 26px !important;
  right: 26px !important;
  width: 58px !important;
  height: 58px !important;
  z-index: 12 !important;
}

@media (max-width: 1280px) {
  .teaser-gallery-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teaser-gallery-sidebar {
    padding-top: 0 !important;
  }

  .teaser-gallery-grid {
    max-height: 340px !important;
  }
}

@media (max-width: 780px) {
  .teaser-gallery-panel {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 16px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
  }

  .teaser-gallery-layout {
    display: block !important;
  }

  .teaser-gallery-header {
    padding-right: 70px !important;
  }

  .teaser-gallery-header h2 {
    font-size: clamp(2.75rem, 12vw, 4.5rem) !important;
    max-width: 10ch !important;
  }

  .teaser-gallery-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
    margin: 18px 0 !important;
  }

  .teaser-gallery-feature {
    min-height: 360px !important;
    max-height: none !important;
  }

  .teaser-gallery-feature img {
    min-height: 360px !important;
  }

  .teaser-gallery-feature figcaption {
    grid-template-columns: 1fr !important;
    width: calc(100% - 28px) !important;
    left: 14px !important;
    bottom: 14px !important;
    padding: 16px !important;
  }

  .teaser-gallery-feature-icon {
    width: 52px !important;
    height: 52px !important;
  }

  .teaser-gallery-sidebar {
    margin-top: 24px !important;
  }

  .teaser-gallery-grid {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .teaser-gallery-item {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    min-height: 112px !important;
  }

  .teaser-gallery-thumb {
    width: 112px !important;
    height: 84px !important;
    min-height: 84px !important;
  }

  .teaser-gallery-item-arrow {
    display: none !important;
  }
}


/* =====================================================================
   Minimal teaser gallery refinement
   - less text in the sidebar
   - caption moved below image instead of covering it
   - spacing and proportions simplified
   ===================================================================== */

.teaser-gallery-panel {
  width: min(92vw, 1380px) !important;
  max-height: min(90dvh, 880px) !important;
  padding: clamp(22px, 2vw, 34px) !important;
}

.teaser-gallery-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.6fr) !important;
  gap: clamp(24px, 2vw, 34px) !important;
}

.teaser-gallery-main {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 18px !important;
}

.teaser-gallery-sidebar {
  padding-top: 108px !important;
}

.teaser-gallery-header {
  max-width: 760px !important;
  padding-right: 80px !important;
}

.teaser-gallery-header .eyebrow {
  margin-bottom: 14px !important;
}

.teaser-gallery-header h2 {
  font-size: clamp(3.5rem, 5vw, 5.6rem) !important;
  max-width: 10.5ch !important;
  line-height: 0.93 !important;
  letter-spacing: -0.08em !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 660px !important;
  margin-top: 12px !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  color: rgba(242,236,248,.66) !important;
}

.teaser-gallery-tabs {
  gap: 10px !important;
}

.teaser-gallery-tab {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 15px !important;
}

.teaser-gallery-feature-wrap {
  grid-template-rows: minmax(0, 1fr) 18px !important;
  gap: 10px !important;
}

.teaser-gallery-feature {
  display: grid !important;
  grid-template-rows: minmax(320px, 1fr) auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: rgba(9, 6, 28, 0.55) !important;
}

.teaser-gallery-feature::before {
  display: none !important;
}

.teaser-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.teaser-gallery-feature figcaption {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  padding: 18px 4px 2px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.teaser-gallery-feature-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

.teaser-gallery-feature figcaption b {
  font-size: clamp(1.7rem, 2vw, 2.4rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  margin: 0 0 6px !important;
}

.teaser-gallery-feature figcaption span {
  font-size: .98rem !important;
  line-height: 1.4 !important;
  color: rgba(242,236,248,.74) !important;
  font-weight: 600 !important;
}

.teaser-gallery-dots {
  justify-content: flex-start !important;
  padding-left: 8px !important;
}

.teaser-gallery-grid {
  gap: 12px !important;
  max-height: calc(90dvh - 210px) !important;
  padding-right: 6px !important;
}

.teaser-gallery-item {
  min-height: 96px !important;
  grid-template-columns: 118px minmax(0, 1fr) 36px !important;
  gap: 14px !important;
  padding: 10px !important;
  border-radius: 20px !important;
}

.teaser-gallery-thumb {
  width: 118px !important;
  height: 76px !important;
  min-height: 76px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.06) !important;
  overflow: hidden !important;
}

.teaser-gallery-thumb::before { display:none !important; content:none !important; }

.teaser-gallery-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.teaser-gallery-item-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.teaser-gallery-item-copy strong,
.teaser-gallery-item strong {
  margin: 0 !important;
  font-size: 1.06rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.teaser-gallery-item-copy > span,
.teaser-gallery-item span span,
.teaser-gallery-item-copy p,
.teaser-gallery-item p {
  display: none !important;
}

.teaser-gallery-item-arrow {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  font-size: 1.3rem !important;
}

@media (max-width: 1280px) {
  .teaser-gallery-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .teaser-gallery-sidebar {
    padding-top: 0 !important;
  }

  .teaser-gallery-grid {
    max-height: 300px !important;
  }
}

@media (max-width: 780px) {
  .teaser-gallery-panel {
    width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
    padding: 16px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
  }

  .teaser-gallery-header {
    padding-right: 66px !important;
  }

  .teaser-gallery-header h2 {
    font-size: clamp(2.65rem, 11vw, 4.2rem) !important;
    max-width: 10ch !important;
  }

  .teaser-gallery-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .teaser-gallery-feature img {
    min-height: 250px !important;
    max-height: 320px !important;
  }

  .teaser-gallery-feature figcaption {
    grid-template-columns: 40px minmax(0,1fr) !important;
    gap: 10px !important;
    padding: 14px 0 0 !important;
  }

  .teaser-gallery-feature-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }

  .teaser-gallery-feature figcaption b {
    font-size: 1.45rem !important;
  }

  .teaser-gallery-feature figcaption span {
    font-size: .92rem !important;
  }

  .teaser-gallery-grid {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .teaser-gallery-item {
    grid-template-columns: 94px minmax(0, 1fr) !important;
    min-height: 82px !important;
  }

  .teaser-gallery-thumb {
    width: 94px !important;
    height: 62px !important;
    min-height: 62px !important;
  }

  .teaser-gallery-item-arrow {
    display: none !important;
  }
}


/* =====================================================================
   Gallery title style + underworld/main-card cleanup
   - title now matches the SilverGate Elite reference
   - accent line uses the active category/tab color
   - removes the heavy paragraph feeling from the modal
   - fixes underworld feature card overflow/caption breakage
   ===================================================================== */

.teaser-gallery-panel {
  width: min(93vw, 1420px) !important;
  max-height: min(90dvh, 880px) !important;
  padding: clamp(24px, 2vw, 36px) !important;
  overflow: hidden !important;
}

.teaser-gallery-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, .56fr) !important;
  gap: clamp(28px, 2.2vw, 42px) !important;
}

.teaser-gallery-header {
  max-width: 800px !important;
  padding-right: 82px !important;
}

.teaser-gallery-header h2 {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  letter-spacing: -.075em !important;
  line-height: .83 !important;
}

.teaser-gallery-title-main,
.teaser-gallery-title-accent {
  display: block !important;
  font-size: clamp(4rem, 6.15vw, 7.35rem) !important;
  line-height: .86 !important;
  font-weight: 1000 !important;
  transform: skewX(-8deg) !important;
  transform-origin: left center !important;
  text-shadow: 0 20px 55px rgba(0,0,0,.45) !important;
}

.teaser-gallery-title-main {
  color: #f8f6fb !important;
  background: linear-gradient(180deg, #fff 0%, #f7f5fb 42%, #b6b1c2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.teaser-gallery-title-accent {
  color: var(--gallery-accent, #a955ff) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gallery-accent, #a955ff) 72%, #fff 28%) 0%, var(--gallery-accent, #a955ff) 46%, color-mix(in srgb, var(--gallery-accent, #a955ff) 70%, #230040 30%) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--gallery-accent, #a955ff) 26%, transparent)) !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 620px !important;
  margin-top: 18px !important;
  font-size: 1rem !important;
  line-height: 1.42 !important;
  color: rgba(242,236,248,.68) !important;
}

/* Keep the tabs tighter and cleaner under the big title. */
.teaser-gallery-tabs {
  gap: 10px !important;
  margin-top: 0 !important;
}

.teaser-gallery-tab {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 15px !important;
}

/* Main image card: no giant overlay box and no cut-off underworld caption. */
.teaser-gallery-feature-wrap {
  grid-template-rows: minmax(0, 1fr) 18px !important;
  gap: 12px !important;
}

.teaser-gallery-feature {
  display: grid !important;
  grid-template-rows: minmax(300px, 1fr) auto !important;
  min-height: 0 !important;
  max-height: 520px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: rgba(8, 4, 18, .78) !important;
}

.teaser-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 300px !important;
  max-height: 440px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.teaser-gallery-feature figcaption {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 14px 18px 16px !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 26%, rgba(255,255,255,.08)) !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gallery-accent, #a955ff) 10%, rgba(9,4,18,.9)), rgba(6,3,14,.72)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.teaser-gallery-feature-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
}

.teaser-gallery-feature figcaption b {
  margin: 0 !important;
  font-size: clamp(1.45rem, 1.65vw, 2rem) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

.teaser-gallery-feature figcaption span {
  display: none !important;
}

/* Sidebar: title-only previews, no paragraph blocks. */
.teaser-gallery-sidebar {
  padding-top: clamp(110px, 8vw, 145px) !important;
}

.teaser-gallery-grid {
  gap: 12px !important;
  max-height: calc(90dvh - 230px) !important;
  padding-right: 8px !important;
}

.teaser-gallery-item {
  min-height: 92px !important;
  grid-template-columns: 110px minmax(0,1fr) 34px !important;
  gap: 12px !important;
  padding: 10px !important;
  border-radius: 19px !important;
}

.teaser-gallery-thumb {
  width: 110px !important;
  height: 70px !important;
  min-height: 70px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
}

.teaser-gallery-thumb::before {
  display: none !important;
  content: none !important;
}

.teaser-gallery-thumb-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.teaser-gallery-item-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.teaser-gallery-item-copy strong,
.teaser-gallery-item strong {
  margin: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  color: #fff !important;
  font-weight: 950 !important;
}

.teaser-gallery-item-copy > span,
.teaser-gallery-item span span,
.teaser-gallery-item p {
  display: none !important;
}

.teaser-gallery-item-arrow {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
  font-size: 1.18rem !important;
}

@media (max-width: 1280px) {
  .teaser-gallery-layout {
    grid-template-columns: 1fr !important;
  }

  .teaser-gallery-sidebar {
    padding-top: 0 !important;
  }

  .teaser-gallery-grid {
    max-height: 260px !important;
  }
}

@media (max-width: 780px) {
  .teaser-gallery-panel {
    width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
    padding: 15px !important;
    overflow-y: auto !important;
  }

  .teaser-gallery-header {
    padding-right: 64px !important;
  }

  .teaser-gallery-title-main,
  .teaser-gallery-title-accent {
    font-size: clamp(2.65rem, 13vw, 4.6rem) !important;
  }

  .teaser-gallery-header p:not(.eyebrow) {
    font-size: .92rem !important;
  }

  .teaser-gallery-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .teaser-gallery-feature {
    max-height: none !important;
  }

  .teaser-gallery-feature img {
    max-height: 300px !important;
    min-height: 230px !important;
  }

  .teaser-gallery-grid {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .teaser-gallery-item {
    grid-template-columns: 92px minmax(0,1fr) !important;
    min-height: 78px !important;
  }

  .teaser-gallery-thumb {
    width: 92px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .teaser-gallery-item-arrow {
    display: none !important;
  }
}


/* =====================================================================
   FINAL gallery cleanup - cinematic, less cramped, image-first
   This overrides the previous modal styling without touching the working JS.
   ===================================================================== */

.teaser-gallery-panel {
  width: min(94vw, 1460px) !important;
  max-height: min(92dvh, 900px) !important;
  padding: clamp(24px, 2.1vw, 38px) !important;
  border-radius: 34px !important;
  overflow: hidden !important;
}

.teaser-gallery-layout {
  height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .52fr) !important;
  gap: clamp(28px, 2.5vw, 46px) !important;
  align-items: stretch !important;
}

.teaser-gallery-main {
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 18px !important;
}

.teaser-gallery-sidebar {
  min-height: 0 !important;
  display: flex !important;
  padding-top: clamp(96px, 7.2vw, 128px) !important;
}

.teaser-gallery-header {
  max-width: 850px !important;
  padding-right: 84px !important;
}

.teaser-gallery-header .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  color: var(--gallery-accent, #a955ff) !important;
  font-size: .82rem !important;
  letter-spacing: .34em !important;
  line-height: 1 !important;
}

.teaser-gallery-header h2 {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  max-width: 12ch !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  line-height: .86 !important;
  letter-spacing: -.074em !important;
}

.teaser-gallery-title-main,
.teaser-gallery-title-accent {
  display: block !important;
  font-size: clamp(3.4rem, 4.75vw, 5.8rem) !important;
  line-height: .86 !important;
  font-weight: 1000 !important;
  transform: skewX(-7deg) !important;
  transform-origin: left center !important;
  text-shadow: 0 16px 42px rgba(0,0,0,.48) !important;
}

.teaser-gallery-title-main {
  background: linear-gradient(180deg, #fff 0%, #e9e5ef 48%, #a9a5b4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.teaser-gallery-title-accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--gallery-accent, #a955ff) 62%, #fff 38%) 0%, var(--gallery-accent, #a955ff) 52%, color-mix(in srgb, var(--gallery-accent, #a955ff) 64%, #16001f 36%) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent)) !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 620px !important;
  margin: 14px 0 0 !important;
  color: rgba(242,236,248,.64) !important;
  font-size: .98rem !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}

.teaser-gallery-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.teaser-gallery-tab {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 15px !important;
  border-radius: 15px !important;
  white-space: nowrap !important;
}

.teaser-gallery-feature-wrap {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  gap: 11px !important;
}

.teaser-gallery-feature {
  position: relative !important;
  display: grid !important;
  grid-template-rows: minmax(360px, 1fr) auto !important;
  min-height: 0 !important;
  max-height: 560px !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 36%, rgba(255,255,255,.10)) !important;
  background: rgba(8, 4, 18, .72) !important;
}

.teaser-gallery-feature::before {
  display: none !important;
  content: none !important;
}

.teaser-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  max-height: 480px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

.teaser-gallery-feature figcaption {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px 14px !important;
  border: 0 !important;
  border-top: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 24%, rgba(255,255,255,.08)) !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gallery-accent, #a955ff) 9%, rgba(8,4,18,.90)), rgba(6,3,14,.76)) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.teaser-gallery-feature-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 12%, rgba(255,255,255,.05)) !important;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 34%, rgba(255,255,255,.12)) !important;
}

.teaser-gallery-feature figcaption b {
  margin: 0 !important;
  font-size: clamp(1.35rem, 1.52vw, 1.85rem) !important;
  line-height: 1 !important;
  letter-spacing: -.04em !important;
  color: #fff !important;
}

.teaser-gallery-feature figcaption span {
  display: none !important;
}

.teaser-gallery-dots {
  height: 18px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  padding-left: 4px !important;
}

.teaser-gallery-dot {
  width: 9px !important;
  height: 9px !important;
}

.teaser-gallery-grid {
  width: 100% !important;
  max-height: calc(92dvh - 225px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  padding: 0 8px 0 0 !important;
}

.teaser-gallery-item {
  width: 100% !important;
  min-height: 90px !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) 32px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 9px !important;
  border-radius: 18px !important;
  text-align: left !important;
}

.teaser-gallery-thumb {
  display: block !important;
  width: 112px !important;
  height: 70px !important;
  min-height: 70px !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

.teaser-gallery-thumb::before {
  display: none !important;
  content: none !important;
}

.teaser-gallery-thumb-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.teaser-gallery-item-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.teaser-gallery-item-copy strong,
.teaser-gallery-item strong {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.02rem !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  font-weight: 950 !important;
}

.teaser-gallery-item-copy > span,
.teaser-gallery-item span span,
.teaser-gallery-item p,
.teaser-gallery-item-copy p {
  display: none !important;
}

.teaser-gallery-item-arrow {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
  font-size: 1.15rem !important;
}

.teaser-gallery-close {
  top: 26px !important;
  right: 26px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 17px !important;
}

@media (max-width: 1280px) {
  .teaser-gallery-layout {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .teaser-gallery-sidebar {
    padding-top: 0 !important;
  }
  .teaser-gallery-grid {
    max-height: 280px !important;
  }
}

@media (max-width: 780px) {
  .teaser-gallery-panel {
    width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
    padding: 15px !important;
    overflow-y: auto !important;
  }
  .teaser-gallery-header {
    padding-right: 64px !important;
  }
  .teaser-gallery-title-main,
  .teaser-gallery-title-accent {
    font-size: clamp(2.55rem, 12vw, 4.25rem) !important;
  }
  .teaser-gallery-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }
  .teaser-gallery-feature img {
    min-height: 240px !important;
    max-height: 300px !important;
  }
  .teaser-gallery-grid {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  .teaser-gallery-item {
    grid-template-columns: 92px minmax(0,1fr) !important;
    min-height: 76px !important;
  }
  .teaser-gallery-thumb {
    width: 92px !important;
    height: 58px !important;
    min-height: 58px !important;
  }
  .teaser-gallery-item-arrow {
    display: none !important;
  }
}


/* =====================================================================
   REAL FINAL gallery redesign
   This intentionally overrides previous modal attempts.
   Goal: image-first cinematic gallery, not a giant heading with cramped UI.
   ===================================================================== */

body.gallery-open {
  overflow: hidden !important;
}

.teaser-gallery-modal.is-open {
  display: grid !important;
  place-items: center !important;
  padding: 28px !important;
}

.teaser-gallery-panel {
  --gallery-panel-pad: clamp(22px, 2.1vw, 36px);
  width: min(94vw, 1440px) !important;
  height: min(88dvh, 840px) !important;
  max-height: min(88dvh, 840px) !important;
  padding: var(--gallery-panel-pad) !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--gallery-accent, #9c52ff) 20%, transparent), transparent 30rem),
    linear-gradient(180deg, rgba(13, 7, 29, .97), rgba(4, 2, 12, .985)) !important;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #9c52ff) 32%, rgba(255,255,255,.12)) !important;
  box-shadow:
    0 38px 120px rgba(0,0,0,.68),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.teaser-gallery-panel::before {
  opacity: .18 !important;
}

.teaser-gallery-layout {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  grid-template-rows: 1fr !important;
  gap: clamp(22px, 2vw, 34px) !important;
  align-items: stretch !important;
}

.teaser-gallery-main {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 14px !important;
}

.teaser-gallery-header {
  max-width: 720px !important;
  padding-right: 74px !important;
}

.teaser-gallery-header .eyebrow {
  margin: 0 0 10px !important;
  gap: 10px !important;
  font-size: .72rem !important;
  letter-spacing: .28em !important;
  line-height: 1 !important;
  color: var(--gallery-accent, #a955ff) !important;
}

.teaser-gallery-inline-icon svg {
  width: .95em !important;
  height: .95em !important;
}

.teaser-gallery-header h2 {
  max-width: 760px !important;
  margin: 0 !important;
  display: grid !important;
  gap: 0 !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  line-height: .86 !important;
  letter-spacing: -.065em !important;
}

.teaser-gallery-title-main,
.teaser-gallery-title-accent {
  display: block !important;
  font-size: clamp(2.75rem, 4.25vw, 5.25rem) !important;
  line-height: .88 !important;
  font-weight: 1000 !important;
  transform: skewX(-7deg) !important;
  transform-origin: left center !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

.teaser-gallery-title-main {
  color: #f7f6fb !important;
  background: linear-gradient(180deg, #fff 0%, #e9e6ef 45%, #aaa5b6 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

.teaser-gallery-title-accent {
  color: var(--gallery-accent, #a955ff) !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gallery-accent, #a955ff) 55%, #fff 45%) 0%,
    var(--gallery-accent, #a955ff) 52%,
    color-mix(in srgb, var(--gallery-accent, #a955ff) 72%, #12001f 28%) 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent)) !important;
}

.teaser-gallery-header p:not(.eyebrow) {
  max-width: 620px !important;
  margin: 12px 0 0 !important;
  font-size: .95rem !important;
  line-height: 1.38 !important;
  color: rgba(242,236,248,.62) !important;
  font-weight: 700 !important;
}

.teaser-gallery-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.teaser-gallery-tab {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 13px !important;
  border-radius: 14px !important;
  font-size: .68rem !important;
  letter-spacing: .14em !important;
}

.teaser-gallery-tab-icon svg {
  width: .95rem !important;
  height: .95rem !important;
}

/* Large image area becomes the focus. */
.teaser-gallery-feature-wrap {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) 18px !important;
  gap: 10px !important;
}

.teaser-gallery-feature {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 34%, rgba(255,255,255,.12)) !important;
}

.teaser-gallery-feature::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.10) 56%, rgba(0,0,0,.34) 100%),
    radial-gradient(circle at 76% 20%, color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent), transparent 26rem) !important;
  z-index: 1 !important;
}

.teaser-gallery-feature img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}

/* Replace the broken bottom bar with a tiny cinematic label. */
.teaser-gallery-feature figcaption {
  position: absolute !important;
  left: 20px !important;
  bottom: 20px !important;
  right: auto !important;
  width: auto !important;
  max-width: min(420px, calc(100% - 40px)) !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 15px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  background: rgba(9, 5, 19, .70) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.36) !important;
  backdrop-filter: blur(14px) !important;
  z-index: 2 !important;
}

.teaser-gallery-feature-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  flex: 0 0 38px !important;
  color: var(--gallery-accent, #a955ff) !important;
  background: color-mix(in srgb, var(--gallery-accent, #a955ff) 12%, rgba(255,255,255,.05)) !important;
  border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 34%, rgba(255,255,255,.12)) !important;
}

.teaser-gallery-feature-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.teaser-gallery-feature figcaption b {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.02rem, 1.22vw, 1.32rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.025em !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.teaser-gallery-feature figcaption span {
  display: none !important;
}

.teaser-gallery-dots {
  height: 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
}

.teaser-gallery-dot {
  width: 9px !important;
  height: 9px !important;
}

/* Side rail: image tiles only, no paragraph/card clutter. */
.teaser-gallery-sidebar {
  min-height: 0 !important;
  padding-top: 138px !important;
  display: flex !important;
}

.teaser-gallery-sidebar::before {
  content: "More scenes";
  position: absolute;
  margin-top: -34px;
  color: rgba(242,236,248,.48);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 900;
}

.teaser-gallery-grid {
  width: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 12px !important;
  padding: 0 6px 0 0 !important;
}

.teaser-gallery-item {
  position: relative !important;
  width: 100% !important;
  min-height: 104px !important;
  height: 104px !important;
  display: block !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.04) !important;
  text-align: left !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.teaser-gallery-item:hover,
.teaser-gallery-item:focus-visible {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 52%, rgba(255,255,255,.16)) !important;
}

.teaser-gallery-item.is-active {
  border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 70%, rgba(255,255,255,.20)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gallery-accent, #a955ff) 22%, transparent),
              0 18px 34px rgba(0,0,0,.22) !important;
}

.teaser-gallery-thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.05) !important;
}

.teaser-gallery-thumb::before {
  display: none !important;
  content: none !important;
}

.teaser-gallery-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  opacity: .82 !important;
  transform: scale(1.01) !important;
}

.teaser-gallery-item::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.62)),
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--gallery-accent, #a955ff) 24%, transparent), transparent 9rem) !important;
  pointer-events: none !important;
}

.teaser-gallery-item-copy {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 12px !important;
  z-index: 2 !important;
  min-width: 0 !important;
  display: block !important;
}

.teaser-gallery-item-copy strong,
.teaser-gallery-item strong {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: .98rem !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  font-weight: 950 !important;
  text-shadow: 0 4px 14px rgba(0,0,0,.6) !important;
  white-space: normal !important;
  word-break: normal !important;
}

.teaser-gallery-item-copy > span,
.teaser-gallery-item span span,
.teaser-gallery-item p,
.teaser-gallery-item-copy p {
  display: none !important;
}

.teaser-gallery-item-arrow {
  display: none !important;
}

.teaser-gallery-close {
  top: 22px !important;
  right: 22px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  z-index: 9 !important;
}

@media (max-width: 1180px) {
  .teaser-gallery-panel {
    height: auto !important;
    max-height: calc(100dvh - 22px) !important;
    overflow-y: auto !important;
  }

  .teaser-gallery-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .teaser-gallery-main {
    height: auto !important;
    grid-template-rows: auto auto minmax(360px, 58vh) !important;
  }

  .teaser-gallery-sidebar {
    padding-top: 28px !important;
  }

  .teaser-gallery-sidebar::before {
    margin-top: -26px !important;
  }

  .teaser-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 760px) {
  .teaser-gallery-modal.is-open {
    padding: 8px !important;
  }

  .teaser-gallery-panel {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 15px !important;
    border-radius: 24px !important;
  }

  .teaser-gallery-header {
    padding-right: 58px !important;
  }

  .teaser-gallery-title-main,
  .teaser-gallery-title-accent {
    font-size: clamp(2.25rem, 11vw, 3.65rem) !important;
    white-space: normal !important;
  }

  .teaser-gallery-header p:not(.eyebrow) {
    font-size: .86rem !important;
  }

  .teaser-gallery-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 3px !important;
  }

  .teaser-gallery-main {
    grid-template-rows: auto auto minmax(300px, 56vh) !important;
  }

  .teaser-gallery-feature figcaption {
    left: 12px !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px) !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .teaser-gallery-feature-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .teaser-gallery-feature figcaption b {
    font-size: 1rem !important;
  }

  .teaser-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .teaser-gallery-item {
    height: 92px !important;
    min-height: 92px !important;
  }
}


/* =====================================================================
   MOBILE GALLERY REPAIR
   Fixes the broken phone layout by switching the modal into a real
   single-column mobile gallery instead of trying to force the desktop
   two-column layout onto a small screen.
   ===================================================================== */

@media (max-width: 820px) {
  body.gallery-open,
  html:has(.teaser-gallery-modal.is-open) {
    overflow: hidden !important;
  }

  .teaser-gallery-modal.is-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: rgba(3, 1, 10, .92) !important;
    z-index: 99999 !important;
  }

  .teaser-gallery-backdrop {
    position: fixed !important;
    inset: 0 !important;
  }

  .teaser-gallery-panel {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    border: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background:
      radial-gradient(circle at 78% 4%, color-mix(in srgb, var(--gallery-accent, #9c52ff) 22%, transparent), transparent 20rem),
      linear-gradient(180deg, rgba(12, 7, 28, .99), rgba(4, 2, 12, .995)) !important;
  }

  .teaser-gallery-panel::before {
    opacity: .14 !important;
  }

  .teaser-gallery-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    z-index: 100001 !important;
    background: rgba(13, 8, 26, .88) !important;
    backdrop-filter: blur(14px) !important;
  }

  .teaser-gallery-layout {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  .teaser-gallery-main {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
  }

  .teaser-gallery-header {
    width: 100% !important;
    max-width: none !important;
    padding: 4px 62px 0 0 !important;
    margin: 0 !important;
  }

  .teaser-gallery-header .eyebrow {
    margin: 0 0 9px !important;
    font-size: .66rem !important;
    letter-spacing: .24em !important;
    line-height: 1.1 !important;
    white-space: normal !important;
  }

  .teaser-gallery-inline-icon {
    display: none !important;
  }

  .teaser-gallery-header h2 {
    display: block !important;
    max-width: calc(100vw - 98px) !important;
    margin: 0 !important;
    line-height: .88 !important;
    letter-spacing: -.055em !important;
    font-style: italic !important;
    transform: none !important;
  }

  .teaser-gallery-title-main,
  .teaser-gallery-title-accent {
    display: block !important;
    font-size: clamp(2.05rem, 10.4vw, 3.25rem) !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    transform: skewX(-6deg) !important;
  }

  .teaser-gallery-header p:not(.eyebrow) {
    display: none !important;
  }

  .teaser-gallery-tabs {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 2px 0 0 !important;
    padding: 0 2px 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .teaser-gallery-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .teaser-gallery-tab {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: .62rem !important;
    letter-spacing: .11em !important;
  }

  .teaser-gallery-tab-icon svg {
    width: .82rem !important;
    height: .82rem !important;
  }

  .teaser-gallery-feature-wrap {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  .teaser-gallery-feature {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 40%, rgba(255,255,255,.12)) !important;
    background: rgba(255,255,255,.035) !important;
  }

  .teaser-gallery-feature img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .teaser-gallery-feature::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background:
      linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.42) 100%),
      radial-gradient(circle at 78% 16%, color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent), transparent 14rem) !important;
  }

  .teaser-gallery-feature figcaption {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
    background: rgba(7, 3, 16, .68) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 2 !important;
  }

  .teaser-gallery-feature-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 11px !important;
  }

  .teaser-gallery-feature-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .teaser-gallery-feature figcaption b {
    display: block !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .teaser-gallery-feature figcaption span {
    display: none !important;
  }

  .teaser-gallery-dots {
    height: auto !important;
    margin: 12px 0 2px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .teaser-gallery-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .teaser-gallery-sidebar {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    margin: 2px 0 0 !important;
  }

  .teaser-gallery-sidebar::before {
    content: "More scenes" !important;
    position: static !important;
    display: block !important;
    margin: 0 0 10px !important;
    color: rgba(242,236,248,.48) !important;
    font-size: .66rem !important;
    letter-spacing: .22em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
  }

  .teaser-gallery-grid {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 0 16px !important;
  }

  .teaser-gallery-item {
    position: relative !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    display: block !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.04) !important;
  }

  .teaser-gallery-item.is-active {
    border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 70%, rgba(255,255,255,.18)) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gallery-accent, #a955ff) 18%, transparent) !important;
  }

  .teaser-gallery-thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: rgba(255,255,255,.05) !important;
    display: block !important;
    overflow: hidden !important;
  }

  .teaser-gallery-thumb::before {
    display: none !important;
    content: none !important;
  }

  .teaser-gallery-thumb-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .72 !important;
    transform: none !important;
  }

  .teaser-gallery-item::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
      linear-gradient(90deg, rgba(2,1,8,.72), rgba(2,1,8,.20) 64%, rgba(2,1,8,.62)),
      linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42)) !important;
  }

  .teaser-gallery-item-copy {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 14px !important;
    z-index: 2 !important;
    display: block !important;
    min-width: 0 !important;
  }

  .teaser-gallery-item-copy strong,
  .teaser-gallery-item strong {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.04rem !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em !important;
    font-weight: 950 !important;
    text-shadow: 0 5px 18px rgba(0,0,0,.65) !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .teaser-gallery-item-copy > span,
  .teaser-gallery-item span span,
  .teaser-gallery-item p,
  .teaser-gallery-item-copy p,
  .teaser-gallery-item-arrow {
    display: none !important;
  }
}


/* =====================================================================
   MOBILE GALLERY CLEAN FINAL
   This fully separates mobile from desktop:
   - no giant cropped title on phone
   - no overlapping active card over the main image
   - clean full-screen modal
   - main image first, thumbnails below
   ===================================================================== */

@media (max-width: 820px) {
  body.gallery-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  .teaser-gallery-modal.is-open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 99999 !important;
    background: rgba(4, 1, 12, .96) !important;
  }

  .teaser-gallery-backdrop {
    display: none !important;
  }

  .teaser-gallery-panel {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 18px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background:
      radial-gradient(circle at 72% 0%, color-mix(in srgb, var(--gallery-accent, #9c52ff) 22%, transparent), transparent 18rem),
      linear-gradient(180deg, rgba(13, 7, 30, .99), rgba(4, 2, 13, .995)) !important;
  }

  .teaser-gallery-panel::before {
    opacity: .11 !important;
  }

  .teaser-gallery-layout,
  .teaser-gallery-main,
  .teaser-gallery-feature-wrap,
  .teaser-gallery-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .teaser-gallery-close {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 14px) !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    z-index: 100001 !important;
    background: rgba(12, 7, 25, .94) !important;
    border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 42%, rgba(255,255,255,.12)) !important;
    backdrop-filter: blur(14px) !important;
  }

  /* Mobile header becomes compact. Hide the big desktop title. */
  .teaser-gallery-header {
    width: 100% !important;
    max-width: none !important;
    padding: 2px 62px 0 0 !important;
    margin: 0 0 12px !important;
  }

  .teaser-gallery-header .eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: calc(100vw - 92px) !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--gallery-accent, #a955ff) 12%, rgba(255,255,255,.045)) !important;
    border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 32%, rgba(255,255,255,.10)) !important;
    color: var(--gallery-accent, #a955ff) !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    letter-spacing: .22em !important;
    white-space: nowrap !important;
  }

  .teaser-gallery-inline-icon {
    display: inline-grid !important;
  }

  .teaser-gallery-inline-icon svg {
    width: .82rem !important;
    height: .82rem !important;
  }

  .teaser-gallery-header h2,
  .teaser-gallery-header p:not(.eyebrow) {
    display: none !important;
  }

  /* Tabs become a compact horizontal selector. */
  .teaser-gallery-tabs {
    width: calc(100% + 28px) !important;
    margin: 0 0 14px -14px !important;
    padding: 0 14px 4px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .teaser-gallery-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .teaser-gallery-tab {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: .62rem !important;
    letter-spacing: .10em !important;
    white-space: nowrap !important;
  }

  .teaser-gallery-tab-icon svg {
    width: .8rem !important;
    height: .8rem !important;
  }

  /* Main feature image sits alone; no list item can overlap it. */
  .teaser-gallery-feature {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    border: 1px solid color-mix(in srgb, var(--gallery-accent, #a955ff) 46%, rgba(255,255,255,.10)) !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.28) !important;
  }

  .teaser-gallery-feature img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10.5 !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .94 !important;
    transform: none !important;
  }

  .teaser-gallery-feature::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
      linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.10) 54%, rgba(0,0,0,.50)),
      radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--gallery-accent, #a955ff) 16%, transparent), transparent 13rem) !important;
  }

  .teaser-gallery-feature figcaption {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(6, 3, 14, .70) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 2 !important;
  }

  .teaser-gallery-feature-icon {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 10px !important;
  }

  .teaser-gallery-feature-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .teaser-gallery-feature figcaption b {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.02rem !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-shadow: 0 4px 14px rgba(0,0,0,.55) !important;
  }

  .teaser-gallery-feature figcaption span {
    display: none !important;
  }

  .teaser-gallery-dots {
    width: 100% !important;
    height: auto !important;
    margin: 12px 0 16px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .teaser-gallery-dot {
    width: 8px !important;
    height: 8px !important;
  }

  /* Preview list below the feature image. */
  .teaser-gallery-sidebar::before {
    content: "More scenes" !important;
    position: static !important;
    display: block !important;
    margin: 0 0 10px !important;
    color: rgba(242,236,248,.48) !important;
    font-size: .66rem !important;
    letter-spacing: .22em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
  }

  .teaser-gallery-grid {
    width: 100% !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 0 22px !important;
    overflow: visible !important;
  }

  .teaser-gallery-item {
    position: relative !important;
    width: 100% !important;
    height: 86px !important;
    min-height: 86px !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.04) !important;
  }

  .teaser-gallery-item.is-active {
    border-color: color-mix(in srgb, var(--gallery-accent, #a955ff) 68%, rgba(255,255,255,.16)) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gallery-accent, #a955ff) 17%, transparent) !important;
  }

  .teaser-gallery-thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.05) !important;
  }

  .teaser-gallery-thumb::before {
    display: none !important;
    content: none !important;
  }

  .teaser-gallery-thumb-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .70 !important;
    transform: none !important;
  }

  .teaser-gallery-item::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
      linear-gradient(90deg, rgba(3,1,10,.72), rgba(3,1,10,.26) 68%, rgba(3,1,10,.58)),
      linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.40)) !important;
  }

  .teaser-gallery-item-copy {
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 13px !important;
    z-index: 2 !important;
    display: block !important;
    min-width: 0 !important;
  }

  .teaser-gallery-item-copy strong,
  .teaser-gallery-item strong {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.02rem !important;
    line-height: 1.05 !important;
    letter-spacing: -.02em !important;
    font-weight: 950 !important;
    text-shadow: 0 5px 18px rgba(0,0,0,.65) !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .teaser-gallery-item-copy > span,
  .teaser-gallery-item span span,
  .teaser-gallery-item p,
  .teaser-gallery-item-copy p,
  .teaser-gallery-item-arrow {
    display: none !important;
  }

  @supports not (height: 100dvh) {
    .teaser-gallery-modal.is-open,
    .teaser-gallery-panel {
      height: 100vh !important;
    }
  }
}


/* =====================================================================
   SilverGate cinematic animation overhaul
   ===================================================================== */

:root {
  --cinema-ease: cubic-bezier(.16, 1, .3, 1);
  --cinema-snap: cubic-bezier(.2, .9, .18, 1);
  --sg-scroll: 0;
  --pointer-x: 50%;
  --pointer-y: 20%;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.sg-cinematic-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(156, 81, 255, .22), transparent 28rem),
    radial-gradient(circle at 50% 105%, rgba(0, 229, 255, .12), transparent 22rem),
    #030109;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s var(--cinema-ease), visibility .9s var(--cinema-ease);
}

.sg-cinematic-loader::before,
.sg-cinematic-loader::after {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.sg-cinematic-loader::before {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(182, 101, 255, .16) 50%, transparent 51% 100%),
    linear-gradient(0deg, transparent 0 49%, rgba(255, 255, 255, .05) 50%, transparent 51% 100%);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, #000 0 32%, transparent 70%);
  animation: sg-loader-grid-drift 7s linear infinite;
}

.sg-cinematic-loader::after {
  background:
    conic-gradient(from 90deg at 50% 50%, transparent 0deg, rgba(160, 72, 255, .22) 62deg, transparent 110deg, transparent 360deg);
  animation: sg-loader-sweep 2.8s linear infinite;
}

.sg-loader-core {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  transform: translateY(0) scale(1);
  transition: transform .8s var(--cinema-ease), opacity .65s var(--cinema-ease), filter .8s var(--cinema-ease);
}

.sg-loader-kicker {
  color: #c692ff;
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: .72rem;
  font-weight: 950;
  animation: sg-loader-flicker 1.8s ease-in-out infinite;
}

.sg-loader-core strong {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 1000;
  font-style: italic;
  line-height: .85;
  text-shadow:
    0 0 22px rgba(151, 72, 255, .45),
    0 24px 80px rgba(0, 0, 0, .75);
  transform: skewX(-8deg);
}

.sg-loader-core i {
  width: min(320px, 44vw);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ad5cff, #fff, #6fffff, transparent);
  box-shadow: 0 0 26px rgba(179, 92, 255, .7);
  animation: sg-loader-bar 1.25s var(--cinema-ease) infinite;
}

body.sg-anim-ready .sg-cinematic-loader {
  opacity: 0;
  visibility: hidden;
}

body.sg-anim-ready .sg-loader-core {
  opacity: 0;
  transform: translateY(-24px) scale(.985);
  filter: blur(8px);
}

.sg-scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100000;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .03);
}

.sg-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7d29ff, #d28cff, #4efcff);
  box-shadow: 0 0 24px rgba(180, 92, 255, .85);
  transition: transform .08s linear;
}

.sg-cursor-aurora {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 999px;
  opacity: .35;
  filter: blur(46px);
  background:
    radial-gradient(circle, rgba(159, 74, 255, .20), transparent 58%),
    radial-gradient(circle at 70% 40%, rgba(63, 237, 255, .12), transparent 42%);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
}

/* Header feels like a cinematic HUD instead of a static bar. */
.site-header {
  will-change: transform, opacity, backdrop-filter;
  transform: translateY(-18px);
  opacity: 0;
  animation: sg-header-enter .95s var(--cinema-ease) .45s forwards;
  transition:
    background .35s var(--cinema-ease),
    border-color .35s var(--cinema-ease),
    box-shadow .35s var(--cinema-ease),
    transform .35s var(--cinema-ease);
}

body.sg-anim-ready .site-header.is-scrolled {
  background: rgba(5, 2, 12, .72);
  border-color: rgba(181, 101, 255, .25);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34), 0 0 40px rgba(156, 73, 255, .12);
  backdrop-filter: blur(22px);
}

.brand,
.site-nav a,
.join {
  transition: transform .28s var(--cinema-ease), color .28s var(--cinema-ease), background .28s var(--cinema-ease), border-color .28s var(--cinema-ease), box-shadow .28s var(--cinema-ease);
}

.brand:hover,
.site-nav a:hover,
.join:hover {
  transform: translateY(-2px);
}

.site-nav a {
  position: relative;
  overflow: hidden;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #b968ff, #fff, transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .36s var(--cinema-ease), opacity .36s var(--cinema-ease);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.join,
.btn.primary,
.elite3-button,
.events-discord-link {
  position: relative;
  overflow: hidden;
}

.join::before,
.btn.primary::before,
.elite3-button::before,
.events-discord-link::before {
  content: "";
  position: absolute;
  inset: -50% -90%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.36) 50%, transparent 60%);
  transform: translateX(-58%) rotate(8deg);
  transition: transform .75s var(--cinema-ease);
  pointer-events: none;
}

.join:hover::before,
.btn.primary:hover::before,
.elite3-button:hover::before,
.events-discord-link:hover::before {
  transform: translateX(58%) rotate(8deg);
}

/* Cinematic hero entrance. */
.hero-shell,
.elite3-card,
.sg-world-media-divider,
.cta {
  transform: translateY(var(--sg-parallax-y, 0));
  will-change: transform;
}

.hero-premium {
  position: relative;
}

.hero-premium::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 104, 255, .5), transparent);
  opacity: .35;
  transform: scaleX(calc(.5 + (var(--sg-scroll) * .5)));
  transform-origin: center;
  pointer-events: none;
}

.hero-shell {
  opacity: 0;
  clip-path: inset(7% 10% 9% 10% round 34px);
  transform: translateY(26px) scale(.985);
}

body.sg-anim-ready .hero-shell {
  animation: sg-hero-shell-enter 1.25s var(--cinema-ease) .16s forwards;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy > p,
.hero-actions,
.hero-live-card {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(12px);
}

body.sg-anim-ready .hero-copy .eyebrow { animation: sg-text-rise .82s var(--cinema-ease) .32s forwards; }
body.sg-anim-ready .hero-copy h1 { animation: sg-text-rise .94s var(--cinema-ease) .42s forwards; }
body.sg-anim-ready .hero-copy > p { animation: sg-text-rise .86s var(--cinema-ease) .56s forwards; }
body.sg-anim-ready .hero-actions { animation: sg-text-rise .86s var(--cinema-ease) .70s forwards; }
body.sg-anim-ready .hero-live-card { animation: sg-card-pop .95s var(--cinema-ease) .76s forwards, sg-float-card 7.5s ease-in-out 1.8s infinite; }

.hero-copy h1 em,
.elite3-title em,
.events-head h2,
.cta h2 em {
  background-size: 140% 140%;
  animation: sg-gradient-shift 9s ease-in-out infinite;
}

.hero-live-card,
.hero-stat-row,
.stat-strip,
.elite3-card,
.calendar-card,
.events-list-card,
.media-teaser-card,
.experience-card,
.department,
.cta-inner {
  position: relative;
  overflow: hidden;
}

.hero-live-card::after,
.elite3-card::after,
.calendar-card::after,
.events-list-card::after,
.media-teaser-card::after,
.experience-card::after,
.department::after,
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 12rem),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.08), transparent 62%);
  transition: opacity .35s var(--cinema-ease);
}

.hero-live-card:hover::after,
.elite3-card:hover::after,
.calendar-card:hover::after,
.events-list-card:hover::after,
.media-teaser-card:hover::after,
.experience-card:hover::after,
.department:hover::after,
.cta-inner:hover::after {
  opacity: 1;
}

.hero-live-card,
.media-teaser-card,
.experience-card,
.department,
.event-item,
.calendar-day {
  transition: transform .32s var(--cinema-ease), border-color .32s var(--cinema-ease), box-shadow .32s var(--cinema-ease), background .32s var(--cinema-ease);
}

.media-teaser-card:hover,
.experience-card:hover,
.department:hover,
.event-item:hover,
.calendar-day:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32), 0 0 38px rgba(171, 89, 255, .13);
}

.btn:hover,
.elite3-button:hover,
.events-discord-link:hover {
  transform: translateY(-3px);
}

/* Better scroll reveal system. */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(14px);
  transition:
    opacity .9s var(--cinema-ease),
    transform .95s var(--cinema-ease),
    filter .95s var(--cinema-ease);
  transition-delay: calc(var(--reveal-order, 0) * 35ms);
  will-change: opacity, transform, filter;
}

.reveal.visible,
.reveal.is-visible,
[data-reveal].visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.section-head.reveal,
.events-head.reveal,
.sg-media-header-divider.reveal {
  transform: translate3d(0, 44px, 0) scale(.98);
}

.experience-grid .reveal:nth-child(2n),
.media-teasers-grid .reveal:nth-child(2n),
.department-list .reveal:nth-child(2n) {
  transform: translate3d(0, 48px, 0) scale(.97) rotateX(4deg);
}

.experience-grid .reveal.visible:nth-child(2n),
.media-teasers-grid .reveal.visible:nth-child(2n),
.department-list .reveal.visible:nth-child(2n) {
  transform: translate3d(0, 0, 0) scale(1) rotateX(0);
}

/* World section cards feel like cinematic panels. */
.experience-card {
  background-position: center;
  transform-style: preserve-3d;
}

.experience-card .card-number {
  transition: transform .35s var(--cinema-ease), color .35s var(--cinema-ease), box-shadow .35s var(--cinema-ease);
}

.experience-card:hover .card-number {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
  box-shadow: 0 0 32px rgba(89, 255, 229, .22);
}

/* Teasers + media. */
.sg-media-header-divider {
  opacity: 0;
}

.sg-media-header-divider.visible {
  animation: sg-divider-enter .9s var(--cinema-ease) forwards;
}

.sg-divider-core {
  position: relative;
  overflow: hidden;
}

.sg-divider-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-120%);
  animation: sg-sheen 3.8s var(--cinema-ease) infinite;
}

.media-teaser-card {
  transform-style: preserve-3d;
}

.media-teaser-card:hover .media-teaser-glass {
  transform: translateY(-3px);
}

.media-gallery-cta i {
  transition: transform .3s var(--cinema-ease);
}

.media-teaser-card:hover .media-gallery-cta i {
  transform: translateX(6px);
}

/* Events / calendar pulse. */
.calendar-day.has-event .calendar-event-dot,
.hero-live-label i,
.hero-open-now i {
  animation: sg-pulse-dot 2.1s ease-in-out infinite;
}

.event-item:hover .event-date,
.calendar-day:hover .calendar-date-number {
  transform: translateY(-2px);
}

/* Membership: premium reveal and ambient rings. */
.elite3-card {
  transition: transform .45s var(--cinema-ease), box-shadow .45s var(--cinema-ease), border-color .45s var(--cinema-ease);
}

.elite3-card:hover {
  transform: translateY(calc(var(--sg-parallax-y, 0) - 8px)) scale(1.005);
  box-shadow: 0 45px 120px rgba(0,0,0,.35), 0 0 60px rgba(170, 90, 255, .18);
}

.elite3-rings,
.elite3-mark {
  animation: sg-slow-orbit 18s linear infinite;
}

.elite3-floating-card {
  animation: sg-float-card 6.8s ease-in-out infinite;
}

.elite3-floating-card:nth-child(2) { animation-delay: -1.8s; }
.elite3-floating-card:nth-child(3) { animation-delay: -3.4s; }

.elite3-feature-card {
  transition: transform .32s var(--cinema-ease), border-color .32s var(--cinema-ease), background .32s var(--cinema-ease);
}

.elite3-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 126, 255, .36);
}

/* CTA ending shot. */
.cta-inner {
  transform-style: preserve-3d;
}

.cta-inner.visible {
  animation: sg-final-card .95s var(--cinema-ease) both;
}

.sign {
  animation: sg-sign-glow 6s ease-in-out infinite;
}

/* Teaser gallery modal animations, but keep it stable. */
.teaser-gallery-modal.is-open .teaser-gallery-panel {
  animation: sg-modal-in .55s var(--cinema-ease) both;
}

.teaser-gallery-modal.is-open .teaser-gallery-header,
.teaser-gallery-modal.is-open .teaser-gallery-tabs,
.teaser-gallery-modal.is-open .teaser-gallery-feature,
.teaser-gallery-modal.is-open .teaser-gallery-sidebar {
  animation: sg-text-rise .65s var(--cinema-ease) both;
}

.teaser-gallery-modal.is-open .teaser-gallery-tabs { animation-delay: .06s; }
.teaser-gallery-modal.is-open .teaser-gallery-feature { animation-delay: .11s; }
.teaser-gallery-modal.is-open .teaser-gallery-sidebar { animation-delay: .16s; }

/* Ambient particle upgrade. */
.sg-purple-particles span {
  animation-name: sg-particle-fall-cinematic !important;
  box-shadow:
    0 0 12px rgba(180, 105, 255, .75),
    0 0 34px rgba(109, 232, 255, .16);
}

@keyframes sg-loader-grid-drift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(-82px,82px,0) rotate(.001deg); }
}

@keyframes sg-loader-sweep {
  from { transform: rotate(0deg) scale(1.2); opacity: .35; }
  50% { opacity: .8; }
  to { transform: rotate(360deg) scale(1.2); opacity: .35; }
}

@keyframes sg-loader-bar {
  0% { transform: scaleX(.22); opacity: .45; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(.22); opacity: .45; }
}

@keyframes sg-loader-flicker {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

@keyframes sg-header-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sg-hero-shell-enter {
  0% { opacity: 0; clip-path: inset(8% 12% 12% 12% round 34px); transform: translateY(30px) scale(.982); filter: blur(14px); }
  70% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 34px); transform: translateY(var(--sg-parallax-y, 0)) scale(1); filter: blur(0); }
}

@keyframes sg-text-rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(14px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes sg-card-pop {
  0% { opacity: 0; transform: translateY(28px) scale(.96) rotateX(5deg); filter: blur(14px); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); filter: blur(0); }
}

@keyframes sg-float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes sg-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sg-divider-enter {
  from { opacity: 0; transform: translateY(30px) scaleX(.86); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scaleX(1); filter: blur(0); }
}

@keyframes sg-sheen {
  0% { transform: translateX(-130%); }
  45%, 100% { transform: translateX(130%); }
}

@keyframes sg-pulse-dot {
  0%, 100% { transform: scale(1); opacity: .78; box-shadow: 0 0 14px currentColor; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 28px currentColor; }
}

@keyframes sg-slow-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sg-final-card {
  from { opacity: 0; transform: translateY(44px) scale(.97); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes sg-sign-glow {
  0%, 100% { opacity: .28; filter: blur(.2px); }
  50% { opacity: .58; filter: blur(0); }
}

@keyframes sg-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes sg-particle-fall-cinematic {
  0% {
    transform: translate3d(0, -12vh, 0) scale(.72);
    opacity: 0;
  }
  10% { opacity: .88; }
  52% {
    transform: translate3d(calc(var(--drift, 28px) * .55), 50vh, 0) scale(1);
    opacity: .62;
  }
  100% {
    transform: translate3d(var(--drift, 28px), 112vh, 0) scale(.82);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .sg-cursor-aurora {
    display: none;
  }

  .sg-cinematic-loader .sg-loader-kicker {
    font-size: .58rem;
    letter-spacing: .26em;
  }

  .site-header {
    animation-delay: .18s;
  }

  .hero-shell {
    clip-path: inset(3% 3% 5% 3% round 26px);
  }

  body.sg-anim-ready .hero-live-card {
    animation: sg-card-pop .75s var(--cinema-ease) .58s forwards;
  }

  .reveal,
  [data-reveal] {
    transform: translate3d(0, 22px, 0) scale(.99);
    filter: blur(8px);
    transition-delay: calc(var(--reveal-order, 0) * 18ms);
  }

  .media-teaser-card:hover,
  .experience-card:hover,
  .department:hover,
  .event-item:hover,
  .calendar-day:hover,
  .elite3-card:hover {
    transform: none;
  }

  .sg-scroll-progress {
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .sg-cinematic-loader,
  .sg-cursor-aurora,
  .sg-scroll-progress {
    display: none !important;
  }

  .reveal,
  [data-reveal],
  .hero-shell,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy > p,
  .hero-actions,
  .hero-live-card,
  .site-header {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* =====================================================================
   Calendar area animation + mouse glow enhancement
   ===================================================================== */
.events-shell {
  --events-mx: 50%;
  --events-my: 36%;
}

.events-shell::before {
  animation: sg-events-grid-drift 28s linear infinite;
}

.events-shell::after {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
  background:
    radial-gradient(circle at var(--events-mx) var(--events-my), rgba(193,122,255,.18), transparent 18%),
    radial-gradient(circle at 20% 18%, rgba(78,252,255,.10), transparent 22%),
    radial-gradient(circle at 84% 76%, rgba(124,54,255,.10), transparent 25%);
  mix-blend-mode: screen;
  animation: sg-events-aurora-drift 18s ease-in-out infinite alternate;
}

.calendar-card,
.events-list-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow, border-color;
  transform: translate3d(0, var(--sg-parallax-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform .42s cubic-bezier(.2,.82,.22,1),
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
}

.calendar-card {
  animation: sg-calendar-float 9.5s ease-in-out infinite;
}

.events-list-card {
  animation: sg-calendar-float 11s ease-in-out infinite 1s;
}

.calendar-card::before,
.events-list-card::before,
.events-discord-link::before,
.event-item::before,
.calendar-controls button::before,
.calendar-day::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s ease;
}

.calendar-card::before,
.events-list-card::before {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 28%),
    linear-gradient(125deg, transparent 0%, rgba(255,255,255,.05) 46%, transparent 72%);
}

.calendar-card:hover,
.events-list-card:hover {
  border-color: rgba(193,122,255,.22);
  box-shadow:
    0 30px 90px rgba(0,0,0,.34),
    0 0 48px rgba(134,78,255,.12),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.calendar-card:hover::before,
.events-list-card:hover::before,
.events-discord-link:hover::before,
.events-discord-link:focus-visible::before,
.event-item:hover::before,
.event-item:focus-visible::before,
.calendar-controls button:hover::before,
.calendar-controls button:focus-visible::before,
.calendar-day:hover::before {
  opacity: 1;
}

.calendar-controls button,
.events-discord-link,
.event-item,
.calendar-day {
  position: relative;
  overflow: hidden;
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    background .3s ease,
    color .3s ease;
}

.calendar-controls button::before,
.events-discord-link::before,
.event-item::before,
.calendar-day::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 38%);
}

.calendar-controls button:hover,
.calendar-controls button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(193,122,255,.42);
  box-shadow: 0 12px 28px rgba(155,68,255,.18);
}

.events-discord-link:hover,
.events-discord-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(155,68,255,.28);
}

.event-item:hover,
.event-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(193,122,255,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.calendar-grid {
  perspective: 1200px;
}

.calendar-day {
  isolation: isolate;
}

.calendar-day:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(193,122,255,.34);
  box-shadow: 0 18px 32px rgba(0,0,0,.18), 0 0 24px rgba(155,68,255,.12);
}

.calendar-day.has-event {
  background:
    radial-gradient(circle at 80% 0%, rgba(155,68,255,.24), transparent 48%),
    rgba(255,255,255,.05);
}

.calendar-day.has-event .calendar-event-dot {
  animation: sg-calendar-dot-pulse 2.4s ease-in-out infinite;
}

.calendar-grid .calendar-day {
  animation: sg-calendar-cell-in .55s cubic-bezier(.2,.82,.22,1) both;
  animation-delay: calc(var(--day-index, 0) * 18ms);
}

.events-list .event-item {
  animation: sg-calendar-cell-in .6s cubic-bezier(.2,.82,.22,1) both;
  animation-delay: calc(var(--event-index, 0) * 44ms);
}

@keyframes sg-events-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 76px 0, 0 76px; }
}

@keyframes sg-events-aurora-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 2.5%, 0) scale(1.02); }
}

@keyframes sg-calendar-float {
  0%, 100% { transform: translate3d(0, var(--sg-parallax-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  50% { transform: translate3d(0, calc(var(--sg-parallax-y, 0px) - 5px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}

@keyframes sg-calendar-cell-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sg-calendar-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(193,122,255,.66); }
  50% { transform: scale(1.18); box-shadow: 0 0 24px rgba(193,122,255,.9); }
}

@media (max-width: 820px) {
  .events-shell::after {
    opacity: .55;
  }

  .calendar-card,
  .events-list-card {
    animation: none;
    transform: none !important;
  }

  .calendar-day:hover,
  .event-item:hover,
  .calendar-controls button:hover,
  .events-discord-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-shell::before,
  .events-shell::after,
  .calendar-card,
  .events-list-card,
  .calendar-grid .calendar-day,
  .events-list .event-item,
  .calendar-day.has-event .calendar-event-dot {
    animation: none !important;
  }
}


/* =====================================================================
   REAL calendar tilt fix
   The first hover pass was too subtle and the floating animation was
   overriding the mouse tilt. This disables the animation during hover and
   lets the JS-driven transform visibly follow the cursor.
   ===================================================================== */

.events-section {
  perspective: 1300px !important;
}

.calendar-card,
.events-list-card {
  transform-origin: center center !important;
  will-change: transform, box-shadow, border-color !important;
}

.calendar-card.sg-tilt-active,
.events-list-card.sg-tilt-active {
  animation: none !important;
  transition:
    transform 70ms linear,
    box-shadow 180ms ease,
    border-color 180ms ease !important;
  border-color: rgba(203, 135, 255, .34) !important;
  box-shadow:
    0 38px 95px rgba(0,0,0,.36),
    0 0 58px rgba(160,78,255,.20),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.calendar-card.sg-tilt-reset,
.events-list-card.sg-tilt-reset {
  animation: none !important;
  transition: transform 420ms cubic-bezier(.2,.82,.22,1), box-shadow 260ms ease !important;
}

.calendar-card.sg-tilt-active::before,
.events-list-card.sg-tilt-active::before {
  opacity: 1 !important;
}

.calendar-day.sg-cell-active {
  transform: translateY(-4px) scale(1.02) !important;
}


/* =====================================================================
   Navbar center restore
   Puts the desktop nav back in the center of the header while keeping
   logo left and Discord button right.
   ===================================================================== */

@media (min-width: 981px) {
  .site-header {
    position: sticky !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr) !important;
    align-items: center !important;
    gap: 22px !important;
  }

  .site-header .brand {
    justify-self: start !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .site-nav,
  #siteNav {
    justify-self: center !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .site-header .join {
    justify-self: end !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    display: flex !important;
  }
}


/* =====================================================================
   HEADER CENTER TRANSFORM FIX
   The cinematic header animation was overriding translateX(-50%), which
   made the whole desktop navbar start from the middle of the screen.
   This only fixes desktop centering and leaves mobile behavior alone.
   ===================================================================== */

@media (min-width: 981px) {
  body:not(.portal-page) .site-header {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 18px !important;
    transform: translateX(-50%) translateY(-18px) !important;
    animation: sg-header-enter-centered .95s var(--cinema-ease) .45s forwards !important;
  }

  body:not(.portal-page).sg-anim-ready .site-header,
  body:not(.portal-page) .site-header.is-scrolled {
    transform: translateX(-50%) translateY(0) !important;
  }
}

@keyframes sg-header-enter-centered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}


/* =====================================================================
   MOBILE NAV CLICK-ONLY FIX
   Mobile-only. Does not affect desktop layout/header/nav.
   ===================================================================== */

@media (max-width: 980px) {
  body:not(.portal-page) .site-header {
    overflow: visible !important;
    z-index: 100000 !important;
  }

  body:not(.portal-page) #mobileNavButton,
  body:not(.portal-page) .mobile-nav-button {
    display: inline-grid !important;
    place-items: center !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    z-index: 100003 !important;
    position: relative !important;
  }

  body:not(.portal-page) #siteNav,
  body:not(.portal-page) .site-nav {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(.98) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  }

  body:not(.portal-page) #siteNav.is-open,
  body:not(.portal-page) .site-nav.is-open,
  body:not(.portal-page).mobile-nav-open #siteNav,
  body:not(.portal-page).mobile-nav-open .site-nav {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  body:not(.portal-page) #mobileNavButton.is-open span:nth-child(1),
  body:not(.portal-page) .mobile-nav-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  body:not(.portal-page) #mobileNavButton.is-open span:nth-child(2),
  body:not(.portal-page) .mobile-nav-button.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  body:not(.portal-page) #mobileNavButton.is-open span:nth-child(3),
  body:not(.portal-page) .mobile-nav-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  body:not(.portal-page).mobile-nav-open {
    overflow: hidden !important;
  }
}


/* =====================================================================
   LOADER CENTER FIX
   Centers the SilverGate loading text/core instead of letting it sit near
   the bottom of the screen.
   ===================================================================== */

.sg-cinematic-loader {
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
}

.sg-cinematic-loader .sg-loader-core,
.sg-loader-core {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 auto !important;
  transform: translate3d(0, 0, 0) !important;
  align-self: center !important;
  justify-self: center !important;
  text-align: center !important;
}

body.sg-anim-ready .sg-loader-core {
  transform: translate3d(0, -24px, 0) scale(.985) !important;
}

.sg-loader-core strong,
.sg-loader-core span,
.sg-loader-core .sg-loader-kicker {
  text-align: center !important;
}

@media (max-width: 760px) {
  .sg-cinematic-loader {
    padding: 24px !important;
  }

  .sg-loader-core {
    width: min(100%, 420px) !important;
  }
}


/* =====================================================================
   FINAL PUBLIC POLISH PASS
   Discord favicon, membership icon cleanup, CTA alignment, and trailer.
   ===================================================================== */

.discord-icon {
  display: inline-block !important;
  width: 1.1em !important;
  height: 1.1em !important;
  min-width: 1.1em !important;
  color: currentColor !important;
  background: currentColor !important;
  -webkit-mask: url("../assets/discord-favicon.svg") center / contain no-repeat !important;
  mask: url("../assets/discord-favicon.svg") center / contain no-repeat !important;
  line-height: 1 !important;
  opacity: .98 !important;
  transform: translateY(0) !important;
}

.btn[data-config-link="discordInvite"],
.join[data-config-link="discordInvite"],
.hero-btn-discord,
.events-discord-link .events-discord-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.site-header .discord-icon {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
}

.btn .discord-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
}

.events-discord-link {
  isolation: isolate;
}

.events-discord-link .events-discord-copy,
.events-discord-link .events-discord-arrow {
  position: relative;
  z-index: 2;
}

.events-discord-link .discord-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
}

/* Make membership icons match the perk being described. */
.elite3-callout i,
.elite3-perks article i,
.elite3-bottom i,
.elite3-button i {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", Inter, system-ui, sans-serif !important;
  line-height: 1 !important;
}

.elite3-callout i,
.elite3-perks article i {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 22px rgba(155,68,255,.10) !important;
}

/* Clean up the bottom membership row so it does not feel like one awkward segmented bar. */
.elite3-bottom {
  gap: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-top: 30px !important;
}

.elite3-bottom article {
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 14% 50%, rgba(155,68,255,.18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    rgba(10,8,19,.82) !important;
  box-shadow:
    0 20px 56px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  min-height: 148px !important;
}

.elite3-bottom article:last-child {
  border-right: 1px solid rgba(255,255,255,.12) !important;
}

.elite3-bottom article > span {
  min-width: 48px !important;
}

.elite3-bottom i {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 38%),
    rgba(155,68,255,.15) !important;
  border-color: rgba(193,122,255,.26) !important;
  box-shadow: 0 0 24px rgba(155,68,255,.12) !important;
}

/* CTA copy is left aligned, so the buttons should start left too. */
.cta .actions.centered,
.cta-inner .actions.centered {
  justify-content: flex-start !important;
  align-items: center !important;
}

.cta .btn[data-config-link="discordInvite"] {
  gap: 10px !important;
}

