/* =========================================================
   MOGA — Landing Page Styles
   Tokens
   ========================================================= */
:root{
  --bg:            #060608;
  --bg-elevated:   #0d0d12;
  --purple:        #7A2FF0;
  --purple-light:  #A970FF;
  --purple-deep:   #4B1B99;
  --cyan:          #2FB6E8;
  --white:         #F7F5FA;
  --grey:          #B7B3C2;
  --grey-dim:      #726E80;
  --line:          rgba(247,245,250,0.10);

  /* light section (Business Functions) */
  --light-bg:      #F4F1F8;
  --card-bg:       #FFFFFF;
  --card-border:   #E9E4F0;
  --ink:           #171220;
  --ink-muted:     #6E6779;
  --icon-navy:     #241147;

  /* Why MOGA section */
  --why-cream:     #F7F3EC;
  --why-dark:      #0B060F;
  --why-dark-2:    #150C1F;
  --why-card:      #FFFFFF;
  --why-line:      #E8E1D3;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --container: 1400px;
  --header-h: 88px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ list-style:none; margin:0; padding:0; }

.accent{ color:var(--purple-light); }
.accent-text{ color:var(--purple-light); font-weight:600; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:none;
  border-radius:10px;
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:0.02em;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:linear-gradient(135deg,var(--purple) 0%, var(--purple-deep) 100%);
  color:var(--white);
  box-shadow:0 8px 24px -8px rgba(122,47,240,0.65);
}
.btn-primary:hover{
  box-shadow:0 10px 30px -6px rgba(122,47,240,0.85);
  transform:translateY(-1px);
}
.btn-primary svg{ transition:transform .18s ease; }
.btn-primary:hover svg{ transform:translateX(3px); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  height:var(--header-h);
  border-bottom:1px solid var(--line);
}
/* The blur lives on a pseudo-element rather than the header itself.
   backdrop-filter/filter on the header would turn it into the CSS
   "containing block" for any position:fixed descendant (like the
   mobile nav), which broke full-screen positioning of the mobile
   menu. Keeping the filter off the real element avoids that. */
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:rgba(6,6,8,0.55);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  transition:background .3s ease;
}
.site-header.scrolled::before{
  background:rgba(6,6,8,0.88);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  height:100%;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.logo-mark{ height:46px; width:auto; }
.logo-text{
  font-family:var(--font-display);
  font-weight:700;
  font-size:26px;
  letter-spacing:0.02em;
  color:var(--white);
}
.logo-dot{ color:var(--purple-light); }

.main-nav ul{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-link{
  position:relative;
  font-size:14px;
  font-weight:500;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--grey);
  padding:6px 0;
  transition:color .2s ease;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%; height:2px;
  background:var(--purple-light);
  transition:width .22s ease;
}
.nav-link:hover,
.nav-link.active{ color:var(--white); }
.nav-link:hover::after,
.nav-link.active::after{ width:100%; }

.header-cta{ padding:12px 22px; font-size:14px; flex-shrink:0; }

.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px; height:38px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0;
}
.menu-toggle span{
  display:block;
  height:2px;
  margin:0 auto;
  width:18px;
  background:var(--white);
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero — image banner
   ========================================================= */
.hero{
  position:relative;
  scroll-margin-top:var(--header-h);
  padding-top:var(--header-h);
  background:var(--bg);
  line-height:0;
}

/* Wrapper: lets the image size itself naturally instead of being
   forced into a fixed-height box (which was causing the crop) */
.hero-banner{
  display:block;
  width:100%;
}

/* Desktop banner: shown by default, hidden on mobile.
   width:100% + height:auto lets the browser scale the image using
   its own intrinsic aspect ratio, so nothing is stretched or cut off.
   object-fit:contain is kept as a safety net in case a height is
   ever re-introduced elsewhere. */
.hero-banner-img--desktop{
  display:block;
  width:100%;
  height:auto;         /* no fixed pixel height -> no cropping */
  max-width:100%;
  object-fit:contain;  /* safety net: full image always visible */
  object-position:center;
}

/* Mobile banner: hidden by default, shown only under the 860px breakpoint */
.hero-banner-img--mobile{
  display:none;
}

@media (max-width: 860px){
  .hero-banner-img--desktop{
    display:none;
  }
  .hero-banner-img--mobile{
    display:block;
  }
  .hero-banner{
    width:100%;
    margin:0;
  }
  /* Same fix applied to the mobile image: natural aspect ratio,
     no fixed height, full artwork always visible, no horizontal scroll
     since width is capped at 100% of the viewport */
  .hero-banner-img--mobile{
    width:100%;
    height:auto;        /* no fixed pixel height -> no cropping */
    max-width:100%;
    object-fit:contain; /* safety net: full image always visible */
    object-position:center;
  }
}
.eyebrow{
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--purple-light);
  margin:0 0 14px;
}
.headline{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(40px, 5.4vw, 74px);
  line-height:1.02;
  letter-spacing:-0.01em;
  margin:0;
  color:var(--white);
}
.rule{
  width:64px; height:4px;
  background:var(--purple-light);
  border-radius:2px;
  margin:26px 0 22px;
}
.subhead{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(20px, 2.1vw, 26px);
  line-height:1.3;
  margin:0 0 16px;
  color:var(--white);
}
.body-copy{
  font-size:16px;
  line-height:1.7;
  color:var(--grey);
  max-width:480px;
  margin:0 0 34px;
}
.hero-cta{ padding:16px 30px; font-size:15px; }

.stats-bar{
  margin-top:44px;
  display:flex;
  align-items:center;
  gap:28px;
  padding:20px 26px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,0.03);
  width:fit-content;
  max-width:100%;
}
.stat{
  display:flex;
  align-items:center;
  gap:10px;
}
.stat-icon{ color:var(--purple-light); flex-shrink:0; }
.stat-number{
  font-family:var(--font-display);
  font-weight:700;
  font-size:22px;
  color:var(--white);
}
.stat-label{
  font-size:13px;
  color:var(--grey-dim);
  margin-left:2px;
  white-space:nowrap;
}
.stat-divider{
  width:1px; height:32px;
  background:var(--line);
  flex-shrink:0;
}

/* ---- Hero visual collage ---- */
.hero-visual{ position:relative; width:100%; }
.visual-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto auto;
  gap:16px;
}
.visual-cell{ overflow:hidden; border-radius:16px; border:1px solid var(--line); }
.cell-main{ grid-column:1 / -1; aspect-ratio:16/9; }
.cell-mid, .cell-bottom{ aspect-ratio:4/3; }

.ph-image{
  position:relative;
  width:100%; height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  padding:20px;
}
.ph-image::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.ph-image::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.ph-stage{ background:linear-gradient(135deg,#3A1178 0%, #7A2FF0 55%, #B98BFF 100%); }
.ph-network{ background:linear-gradient(135deg,#141018 0%, #3A1178 100%); }
.ph-round{ background:linear-gradient(135deg,#101018 0%, #24123f 60%, #4B1B99 100%); }

.ph-tag{
  position:relative; z-index:1;
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  color:var(--white);
  letter-spacing:0.01em;
}
.ph-tag.small{ font-size:15px; font-weight:600; }
.ph-sub{
  position:relative; z-index:1;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.75);
  margin-top:4px;
}

/* =========================================================
   Join Modal
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(4,4,6,0.72);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal{
  position:relative;
  width:100%;
  max-width:440px;
  background:var(--bg-elevated);
  border:1px solid var(--line);
  border-radius:18px;
  padding:36px;
  transform:translateY(14px) scale(0.98);
  transition:transform .25s ease;
  box-shadow:0 30px 70px -20px rgba(0,0,0,0.6);
  max-height:88vh;
  overflow-y:auto;
}
.modal-overlay.open .modal{ transform:translateY(0) scale(1); }
.modal h3{
  font-family:var(--font-display);
  font-size:26px;
  margin:0 0 8px;
}
.modal-sub{ color:var(--grey); font-size:14px; margin:0 0 24px; }
.modal-close{
  position:absolute; top:16px; right:16px;
  width:32px; height:32px;
  border-radius:8px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--grey);
  font-size:20px; line-height:1;
}
.modal-close:hover{ color:var(--white); border-color:var(--purple-light); }

#joinForm{ display:flex; flex-direction:column; gap:16px; }
#joinForm label{
  display:flex; flex-direction:column; gap:8px;
  font-size:13px; color:var(--grey);
}
#joinForm input,
#joinForm select{
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px 14px;
  color:var(--white);
  font-size:14px;
  outline:none;
  transition:border-color .2s ease, background .2s ease;
  font-family:inherit;
  appearance:none;
  -webkit-appearance:none;
}
#joinForm select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%23B7B3C2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:36px;
}
#joinForm select:invalid{ color:var(--grey-dim); }
#joinForm option{ background:var(--bg-elevated); color:var(--white); }
#joinForm input::placeholder{ color:var(--grey-dim); }
#joinForm input:focus,
#joinForm select:focus{ border-color:var(--purple-light); background:rgba(122,47,240,0.08); }
.modal-submit{ margin-top:6px; width:100%; padding:14px; font-size:15px; }
.modal-privacy{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:14px 0 0;
  font-size:12px;
  color:var(--grey-dim);
}

.modal-success{
  display:none;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  padding:12px 0 4px;
  color:var(--purple-light);
}
.modal-success h4{ font-family:var(--font-display); color:var(--white); margin:14px 0 2px; font-size:22px; }
.modal-success p{ color:var(--grey); font-size:14px; margin:0; }
.modal.success #joinForm,
.modal.success .modal-sub,
.modal.success .eyebrow,
.modal.success h3{ display:none; }
.modal.success .modal-success{ display:flex; }

/* success screen — animated check + redirect box */
.success-check{
  position:relative;
  width:72px; height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--purple-light);
  background:radial-gradient(circle, rgba(122,47,240,0.28) 0%, rgba(122,47,240,0.05) 70%, transparent 100%);
  box-shadow:0 0 0 1px rgba(169,112,255,0.35), 0 0 34px 6px rgba(122,47,240,0.45);
  animation:successPulse 1.8s ease-in-out infinite;
}
@keyframes successPulse{
  0%,100%{ box-shadow:0 0 0 1px rgba(169,112,255,0.35), 0 0 24px 4px rgba(122,47,240,0.35); }
  50%{ box-shadow:0 0 0 1px rgba(169,112,255,0.55), 0 0 40px 10px rgba(122,47,240,0.6); }
}
.success-lead{ font-family:var(--font-display); font-weight:600; color:var(--white) !important; font-size:15px; margin-top:6px !important; }
.success-sub{ max-width:280px; }
.redirect-box{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:12px 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  color:var(--grey);
  font-size:13.5px;
}
.redirect-box svg{ color:var(--purple-light); flex-shrink:0; }
.redirect-box #redirectCount{ color:var(--white); font-weight:700; }
.success-fallback{ font-size:12.5px; margin-top:12px !important; }
.success-fallback a{ color:var(--purple-light); text-decoration:underline; }
.success-fallback a:hover{ color:var(--white); }

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid var(--purple-light);
  outline-offset:2px;
}

/* =========================================================
   Responsive — Tablet (≤1024px)
   ========================================================= */
@media (max-width: 1024px){
  .header-inner{ padding:0 24px; }
  .main-nav ul{ gap:22px; }
  .nav-link{ font-size:13px; }
}

/* =========================================================
   Responsive — Mobile Nav breakpoint (≤860px)
   ========================================================= */
@media (max-width: 860px){
  .main-nav{
    position:fixed;
    top:var(--header-h);
    left:0; right:0;
    bottom:0;
    z-index:99;
    background:var(--bg);
    transform:translateX(100%);
    transition:transform .3s ease;
    padding:36px 28px;
    overflow-y:auto;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .main-nav ul li{ width:100%; }
  .nav-link{
    display:block;
    width:100%;
    padding:16px 4px;
    font-size:16px;
    border-bottom:1px solid var(--line);
  }
  .nav-link::after{ display:none; }
  .header-cta{ display:none; }
  .main-nav::after{
    content:"";
    display:block;
    margin-top:20px;
  }
  .menu-toggle{ display:flex; }
}

/* Inject a Join button at bottom of mobile nav via JS-free CSS trick isn't ideal;
   handled by duplicating CTA inside nav for mobile instead — see script.js */
.nav-cta-mobile{
  display:none;
  margin-top:24px;
  width:100%;
  padding:15px;
  font-size:15px;
}
@media (max-width: 860px){
  .nav-cta-mobile{ display:inline-flex; }
}

/* =========================================================
   Responsive — Small mobile (≤480px)
   ========================================================= */
@media (max-width: 480px){
  .header-inner{ padding:0 18px; }
  .logo-text{ font-size:22px; }
  .logo-mark{ height:36px; }
  .stats-bar{
    flex-wrap:wrap;
    gap:16px;
    padding:18px;
  }
  .stat{ flex:1 1 40%; }
  .stat-divider{ display:none; }
  .cell-mid, .cell-bottom{ aspect-ratio:1/1; }
  .modal{ padding:26px; }
}

/* =========================================================
   Business Functions section
   ========================================================= */
.functions{
  position:relative;
  background:var(--light-bg);
  color:var(--ink);
  scroll-margin-top:var(--header-h);
  padding:48px 0 88px;   /* was 96px 0 88px — reduced top spacing only */
}
.functions-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}
.eyebrow-dark{ color:var(--purple); }
.functions-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(28px, 3.4vw, 42px);
  line-height:1.18;
  letter-spacing:-0.01em;
  margin:0 0 18px;
  color:var(--ink);
  max-width:820px;
}
.accent-purple{ color:var(--purple); }
.functions-sub{
  font-size:16px;
  line-height:1.7;
  color:var(--ink-muted);
  max-width:640px;
  margin:0 0 48px;
}

.functions-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:16px;
  margin-bottom:40px;
}
.function-card{
  position:relative;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:14px;
  padding:26px 18px 22px;
  text-align:center;
  box-shadow:0 2px 10px -6px rgba(23,18,32,0.06);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.function-card:hover{
  transform:translateY(-4px);
  border-color:rgba(122,47,240,0.35);
  box-shadow:0 16px 30px -14px rgba(122,47,240,0.28);
}
.function-num{
  position:absolute;
  top:14px; left:14px;
  font-family:var(--font-display);
  font-size:11px;
  font-weight:700;
  color:#fff;
  background:var(--purple);
  border-radius:6px;
  padding:3px 7px;
  letter-spacing:0.02em;
}
.function-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:60px; height:60px;
  margin:14px auto 18px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 25%, #3B1F6B, var(--icon-navy));
  color:#fff;
}
.function-card h3{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:700;
  margin:0 0 10px;
  letter-spacing:0.01em;
  text-transform:uppercase;
}
.function-card p{
  font-size:13.5px;
  line-height:1.6;
  color:var(--ink-muted);
  margin:0;
}

.functions-banner{
  display:flex;
  align-items:center;
  gap:20px;
  background:linear-gradient(120deg, #150B26 0%, #2B1352 60%, #401D74 100%);
  border-radius:16px;
  padding:30px 36px;
  color:#fff;
}
.banner-icon{
  flex-shrink:0;
  width:52px; height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  color:var(--purple-light);
}
.functions-banner p{
  font-family:var(--font-display);
  font-size:clamp(16px, 1.9vw, 20px);
  font-weight:600;
  line-height:1.5;
  margin:0;
}

/* ---- Functions responsive ---- */
@media (max-width:1180px){
  .functions-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:760px){
  .functions{ padding:72px 0 64px; }
  .functions-grid{ grid-template-columns:repeat(2, 1fr); }
  .functions-banner{ flex-direction:column; text-align:center; padding:28px 24px; }
}
@media (max-width:480px){
  .functions-inner{ padding:0 18px; }
  .functions-grid{ grid-template-columns:1fr; }
  .function-card{
    text-align:left;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    column-gap:14px;
  }
  .function-icon{
    width:44px; height:44px;
    margin:6px 0;
    flex-shrink:0;
  }
  .function-card h3{ margin:6px 0; flex:1 1 auto; }
  .function-card p{ flex-basis:100%; margin-top:8px; }
  .function-num{ top:16px; }
}

/* =========================================================
   Why MOGA section
   ========================================================= */
.why{
  position:relative;
  scroll-margin-top:var(--header-h);
  background:var(--why-dark);
}
.why-top{
  display:grid;
  grid-template-columns:0.95fr 1.15fr;
}

/* ---- left: copy / quotes ---- */
.why-copy{
  background:var(--why-cream);
  padding:32px 48px 52px;   /* was 64px 48px 52px — reduced top spacing only */
}
.why-eyebrow{ color:var(--purple); }
.why-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(26px, 2.6vw, 36px);
  line-height:1.22;
  letter-spacing:-0.01em;
  color:var(--ink);
  margin:0 0 22px;
}

.quote-list{ display:flex; flex-direction:column; gap:8px; margin:0 0 22px; }
.quote-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--why-card);
  border:1px solid var(--why-line);
  border-radius:8px;
  padding:10px 14px;
  font-size:13px;
  color:var(--ink);
  font-style:italic;
}
.quote-mark{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#000;
  font-style:normal;
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  line-height:1;
}
.why-lead{
  font-family:var(--font-display);
  font-weight:700;
  font-size:20px;
  color:var(--ink);
  margin:0 0 10px;
}
.why-body{
  font-size:14px;
  line-height:1.65;
  color:var(--ink-muted);
  max-width:460px;
  margin:0;
}

/* ---- right: gallery ---- */
.why-gallery{
  background:var(--why-dark);
  padding:24px 40px 52px;   /* was 52px 40px — reduced top spacing only */
}
.gallery-eyebrow{
  text-align:center;
  font-family:var(--font-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--purple-light);
  margin:0 0 12px;
}
.gallery-rule{
  width:48px; height:3px;
  background:var(--purple-light);
  border-radius:2px;
  margin:0 auto 24px;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
.gallery-cell{
  position:relative;
  aspect-ratio:4/3.1;   /* every card is the same fixed box size */
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:14px;
  border:1px solid rgba(255,255,255,0.08);
}
/* MOGA in Action photo: fills the whole fixed-size card, scaled and
   cropped proportionally (never stretched/distorted) so every photo,
   whatever its original size, fits the same box uniformly. If no image
   has been added yet for a card, the onerror on the <img> hides it and
   the existing gradient background below shows through instead. */
.gallery-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.gallery-cell::before{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background-image:repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.gallery-cell::after{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.6) 100%);
}
.g-label{
  position:relative; z-index:2;
  font-family:var(--font-display);
  font-weight:600;
  font-size:13px;
  color:#fff;
  letter-spacing:0.01em;
}
.g-brand{
  position:absolute;
  top:16px; left:14px;
  z-index:2;
  font-family:var(--font-display);
  font-size:10px;
  font-weight:600;
  letter-spacing:0.08em;
  color:rgba(255,255,255,0.85);
  line-height:1.4;
}
.g-brand strong{ display:block; font-size:13px; letter-spacing:0.02em; }

.g-stage{ grid-column:span 1; background:linear-gradient(150deg,#2A1350 0%, #6E2FC9 60%, #B98BFF 100%); }
.g-workshop{ background:linear-gradient(150deg,#1B1420 0%, #4A2F5C 100%); }
.g-store{ background:linear-gradient(150deg,#181820 0%, #2E3550 100%); }
.g-network{ background:linear-gradient(150deg,#1A1420 0%, #4B2A3E 100%); }
.g-content{ background:linear-gradient(150deg,#201818 0%, #4A2E20 100%); }
.g-meetup{ background:linear-gradient(150deg,#161018 0%, #362042 100%); }

/* ---- bottom: what you'll find banner (full width, below both columns) ---- */
.why-banner-wrap{
  background:var(--why-dark);
  padding:0 40px 40px;
}
.why-banner{
  max-width: var(--container);   /* back to full width — was 820px, which caused the side gaps */
  margin:0 auto;
  background: linear-gradient(120deg, #0B0610 0%, #1B0E30 55%, #2C1450 100%);
  border-radius:16px;
  padding:20px 24px 22px;
}
.banner-eyebrow{
  text-align:center;
  font-family:var(--font-display);
  font-size:12px;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--purple-light);
  margin:0 0 8px;
}
.banner-rule{
  width:40px; height:2px;
  background:var(--purple-light);
  border-radius:2px;
  margin:0 auto 18px;
}
.belong-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
.belong-item{ text-align:center; padding:0 6px; }
.belong-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px; height:38px;
  margin:0 auto 10px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 25%, #A855F7, #7A2FF0);
  color:#fff;
  box-shadow:0 6px 14px -6px rgba(122,47,240,0.6);
}
.belong-icon svg{ width:16px; height:16px; }
.belong-item h3{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:700;
  color:#fff;
  margin:0 0 4px;
}
.belong-item p{
  font-size:11.5px;
  line-height:1.45;
  color:var(--grey);
  margin:0;
}

/* ---- Why MOGA responsive ---- */
@media (max-width:1100px){
  .why-top{ grid-template-columns:1fr; }
  .why-copy, .why-gallery{ padding:48px 40px; }
  .why-banner-wrap{ padding:0 40px 40px; }
  .why-banner{ padding:22px 28px 24px; }
}
@media (max-width:760px){
  .why-copy, .why-gallery{ padding:40px 24px; }
  .why-banner-wrap{ padding:0 20px 44px; }
  .why-banner{ padding:30px 22px 34px; }
  .belong-grid{ grid-template-columns:repeat(2, 1fr); row-gap:26px; }
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:480px){
  .why-copy, .why-gallery{ padding:32px 18px; }
  .why-banner-wrap{ padding:0 18px 36px; }
  .quote-item{ font-size:12.5px; padding:9px 12px; }
  .belong-grid{ grid-template-columns:1fr; gap:22px; }
}

/* =========================================================
   Testimonials section
   ========================================================= */
.testimonials{
  position:relative;
  scroll-margin-top:var(--header-h);
  background:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(122,47,240,0.16), transparent 60%),
    var(--bg);
  padding:32px 0 72px;   /* was 88px 0 72px — reduced top spacing only */
  overflow:hidden;
}
.testimonials-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

.testi-layout{
  display:grid;
  grid-template-columns:0.85fr 2fr;
  gap:40px;
  margin-bottom:48px;
}
.testi-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(28px, 3vw, 38px);
  line-height:1.16;
  color:var(--white);
  margin:0 0 18px;
}
.testi-sub{
  font-size:15px;
  line-height:1.7;
  color:var(--grey);
  max-width:320px;
  margin:0;
}

.testi-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.testi-card{
  background:var(--bg-elevated);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  display:flex;
  flex-direction:column;
}
.testi-photo{
  position:relative;
  aspect-ratio:3/3.4;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.testi-photo::after{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events:none;
}
/* Testimonial video: fills the same box as the photo, cropped with
   object-fit so it never distorts or overflows */
.testi-video{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:transparent;
  opacity:0;
  transition:opacity .35s ease;
}
.testi-video.is-ready{
  opacity:1;
}
.testi-initials{
  position:relative;
  z-index:0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:34px;
  color:rgba(255,255,255,0.5);
  letter-spacing:0.02em;
}
.testi-photo-1{ background:linear-gradient(150deg,#241147 0%, #6E2FC9 100%); }
.testi-photo-2{ background:linear-gradient(150deg,#3A1A2E 0%, #A44A6B 100%); }
.testi-photo-3{ background:linear-gradient(150deg,#1E1A38 0%, #4B3A8C 100%); }
.testi-photo-4{ background:linear-gradient(150deg,#241C14 0%, #7A5B34 100%); }

.play-btn{
  position:absolute;
  z-index:2;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:44px; height:44px;
  border-radius:50%;
  background:#fff;
  color:var(--purple);
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  box-shadow:0 8px 20px -6px rgba(0,0,0,0.5);
  transition:transform .2s ease, background .2s ease;
}
.play-btn:hover{ transform:translate(-50%,-50%) scale(1.08); background:var(--purple-light); color:#fff; }
.play-btn svg{ margin-left:2px; }
/* Icon toggle: play icon shows by default, pause icon shows once the
   video for this card is actually playing (driven by JS in script.js).
   Button stays visible/tappable at all times so it works on touch too. */
.play-btn .icon-pause{ display:none; }
.play-btn svg.icon-pause{ margin-left:0; }
.testi-photo.is-playing .play-btn .icon-play{ display:none; }
.testi-photo.is-playing .play-btn .icon-pause{ display:block; }
.testi-photo.is-playing .play-btn{ width:38px; height:38px; background:rgba(255,255,255,0.85); }

.testi-quote-mark{
  font-family:var(--font-display);
  font-size:26px;
  color:var(--purple-light);
  line-height:1;
  margin-bottom:6px;
}
.testi-quote{
  font-size:13.5px;
  line-height:1.6;
  color:var(--grey);
  margin:0 0 16px;
  flex-grow:1;
}
.testi-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  color:var(--purple-light);
  margin:0 0 2px;
}
.testi-role{
  font-size:12.5px;
  color:var(--grey-dim);
  margin:0;
}

/* ---- bottom CTA banner ---- */
.testi-banner{
  display:grid;
  grid-template-columns:1.1fr auto auto;
  align-items:center;
  gap:36px;
  background:linear-gradient(120deg, #170B29 0%, #2C1450 55%, #472076 100%);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:38px 40px;
}
.testi-banner-copy h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(20px, 2vw, 26px);
  line-height:1.28;
  color:var(--white);
  margin:0 0 10px;
}
.testi-banner-copy p{
  font-size:14px;
  color:var(--grey);
  margin:0;
  max-width:320px;
}

.testi-banner-stats{
  display:flex;
  align-items:center;
  gap:26px;
  padding:0 30px;
  border-left:1px solid rgba(255,255,255,0.14);
  border-right:1px solid rgba(255,255,255,0.14);
}
.tb-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  color:var(--purple-light);
}
.tb-num{
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  color:var(--white);
}
.tb-label{ font-size:11.5px; color:var(--grey-dim); }

.testi-banner-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.testi-banner-cta .btn{ padding:14px 26px; font-size:14px; white-space:nowrap; }
.testi-tagline{
  font-style:italic;
  font-size:12.5px;
  color:var(--grey);
  margin:0;
  white-space:nowrap;
}
.accent-italic{ color:var(--purple-light); font-style:italic; }

/* ---- Testimonials responsive ---- */
@media (max-width:1180px){
  .testi-layout{ grid-template-columns:1fr; }
  .testi-sub{ max-width:none; }
  .testi-grid{ grid-template-columns:repeat(2, 1fr); }
  .testi-banner{ grid-template-columns:1fr; text-align:center; }
  .testi-banner-copy p{ max-width:none; margin:0 auto; }
  .testi-banner-stats{ border-left:none; border-right:none; border-top:1px solid rgba(255,255,255,0.14); border-bottom:1px solid rgba(255,255,255,0.14); padding:22px 0; justify-content:center; }
}
@media (max-width:760px){
  .testimonials{ padding:64px 0 56px; }
  .testi-grid{ grid-template-columns:1fr; }
  .testi-banner{ padding:32px 24px; }
  .testi-banner-stats{ flex-wrap:wrap; gap:22px; }
}
@media (max-width:480px){
  .testimonials-inner{ padding:0 18px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  position:relative;
  background:#050406;
  padding:0 0 0;
  overflow:hidden;
  scroll-margin-top:var(--header-h);
}

/* ---- "Together, let's make OPS Great Again" CTA strip ---- */
.footer-cta{
  position:relative;
  overflow:hidden;
  text-align:center;
  padding:52px 32px 40px;
  background:linear-gradient(180deg, #12081F 0%, #0A0510 100%);
  border-bottom:1px solid rgba(122,47,240,0.4);
}
.footer-cta-waves{
  position:absolute;
  inset:0;
  background:
    repeating-radial-gradient(circle at 0% 120%, transparent 0 24px, rgba(122,47,240,0.16) 25px 26px, transparent 27px),
    repeating-radial-gradient(circle at 100% 120%, transparent 0 24px, rgba(122,47,240,0.16) 25px 26px, transparent 27px);
  -webkit-mask-image:linear-gradient(180deg, black, transparent 88%);
  mask-image:linear-gradient(180deg, black, transparent 88%);
  pointer-events:none;
}
.footer-cta-chevron{
  position:relative;
  z-index:1;
  color:var(--white);
  margin-bottom:12px;
}
.footer-cta-text{
  position:relative;
  z-index:1;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(20px, 2.6vw, 30px);
  line-height:1.35;
  color:var(--white);
  margin:0;
}
.footer-cta-accent{ color:var(--purple-light); }

.footer-dots{
  position:absolute;
  left:0; bottom:64px;
  width:160px; height:120px;
  background-image:radial-gradient(rgba(122,47,240,0.35) 1.4px, transparent 1.4px);
  background-size:14px 14px;
  -webkit-mask-image:linear-gradient(115deg, #000 20%, transparent 70%);
  mask-image:linear-gradient(115deg, #000 20%, transparent 70%);
  pointer-events:none;
}
.footer-inner{
  position:relative;
  max-width:var(--container);
  margin:0 auto;
  padding:56px 32px 48px;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:40px;
}
.footer-logo{ margin-bottom:18px; }
.footer-logo .logo-text{ font-size:24px; }
.footer-tagline{
  font-family:var(--font-display);
  font-size:12px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--white);
  margin:0 0 16px;
}
.footer-rule{
  width:40px; height:2px;
  background:var(--purple);
  border-radius:2px;
  margin:0 0 18px;
}
.footer-desc{
  font-size:14px;
  line-height:1.6;
  color:var(--grey);
  margin:0;
  max-width:260px;
}
.footer-heading{
  font-family:var(--font-display);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--purple-light);
  margin:0 0 14px;
}
.footer-heading-rule{
  width:34px; height:2px;
  background:var(--purple);
  border-radius:2px;
  margin:0 0 20px;
}
.footer-links{ display:flex; flex-direction:column; gap:14px; }
.footer-links a{
  font-size:14.5px;
  color:var(--grey);
  transition:color .2s ease;
}
.footer-links a:hover{ color:var(--purple-light); }
.footer-connect{ display:flex; flex-direction:column; gap:14px; }
.footer-connect li{ display:flex; align-items:center; gap:12px; }
.footer-icon{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px; height:30px;
  border-radius:8px;
  background:rgba(122,47,240,0.14);
  color:var(--purple-light);
}
.footer-connect a{
  font-size:14.5px;
  color:var(--grey);
  transition:color .2s ease;
  word-break:break-word;
}
.footer-connect a:hover{ color:var(--purple-light); }

.footer-bottom{
  position:relative;
  border-top:1px solid var(--line);
  padding:22px 32px;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-bottom p{
  margin:0;
  font-size:13px;
  color:var(--grey-dim);
}
.footer-legal{ display:flex; align-items:center; gap:8px; }
.footer-legal a{ color:var(--grey-dim); transition:color .2s ease; }
.footer-legal a:hover{ color:var(--purple-light); }
.dot-sep{ color:var(--grey-dim); }

/* ---- Footer responsive ---- */
@media (max-width:900px){
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:760px){
  .footer-cta{ padding:44px 24px 32px; }
  .footer-inner{ padding:44px 24px 40px; gap:36px; }
  .footer-bottom{ padding:20px 24px; justify-content:center; text-align:center; }
}
@media (max-width:600px){
  .footer-inner{ grid-template-columns:1fr; gap:32px; }
  .footer-desc{ max-width:none; }
}
@media (max-width:480px){
  .footer-cta{ padding:36px 18px 28px; }
  .footer-inner{ padding:36px 18px; }
  .footer-dots{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}