/* =========================================================================
   WESPACED.ORG — GLOBAL STYLESHEET
   ========================================================================= */

/* =========================================================================
   ROOT VARIABLES
========================================================================= */

:root{
  /* ---- SPACED PALETTE ---- */
  --black: #0A0A0F;
  --dark-purple: #1A1535;
  --purple: #6B4FA0;
  --teal: #4DD9C0;
  --dark-teal: #3A9E9B;
  --lavender: #8B78C8;
  --white: #FFFFFF;

  /* ---- CARDS / TEXT ---- */
  --card-bg: #100E1F;
  --card-border: rgba(139,120,200,0.25);

  --text-dim: rgba(255,255,255,0.68);
  --text-dimmer: rgba(255,255,255,0.45);

  /* ---- FONTS ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- NAVIGATION ---- */
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 84px;

  /* ---- MOTION ---- */
  --ease: cubic-bezier(.22,.68,.28,1);
}


/* =========================================================================
   GLOBAL RESET
========================================================================= */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: none;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

button{
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

::selection{
  background: var(--teal);
  color: var(--black);
}


/* =========================================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================================= */

@media (hover: none), (pointer: coarse){

  body{
    cursor: auto;
  }

  #comet-cursor{
    display: none;
  }
}

@media (prefers-reduced-motion: reduce){

  html{
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================================
   AMBIENT BACKGROUNDS
   Starfield + Comet Cursor + Fade Overlay
========================================================================= */

#starfield{
  position: fixed;
  inset: 0;
  z-index: -100;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#comet-cursor{
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.15s ease-out;
}

#fade-overlay{
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#fade-overlay.active{
  opacity: 1;
}


/* =========================================================================
   SCROLL PROGRESS
========================================================================= */

#scroll-dots{
  position: fixed;
  top: 5vh;
  left: 44px;
  height: 90vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  z-index: 900;

  transition: opacity .3s var(--ease);
}

.scroll-dots-track{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;

  width: 2px;

  transform: translateX(-50%);

  background: rgba(255,255,255,0.12);

  z-index: 0;
}

.scroll-dots-fill{
  position: absolute;
  top: 0;
  left: 50%;

  width: 2px;
  height: 0%;

  transform: translateX(-50%);

  background: linear-gradient(
    180deg,
    var(--teal),
    var(--lavender)
  );

  z-index: 1;

  transition: height .1s linear;
}

.scroll-dot{
  position: relative;
  z-index: 2;

  width: 10px;
  height: 10px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--black);
  border: 2px solid rgba(139,120,200,0.4);

  transition:
    background .3s var(--ease),
    transform .3s var(--ease),
    border-color .3s var(--ease);
}

.scroll-dot:hover{
  transform: scale(1.3);
  border-color: rgba(77,217,192,0.7);
}

.scroll-dot.active{
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.4);
}

@media (max-width: 900px){

  #scroll-dots{
    display: none;
  }
}


/* =========================================================================
   PRELOADER
========================================================================= */

#preloader{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 24px;

  background: var(--black);

  transition:
    opacity .7s var(--ease),
    visibility .7s var(--ease);
}

#preloader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-orbit{
  position: relative;
  width: 88px;
  height: 88px;
}

.loader-ring{
  position: absolute;
  inset: 0;

  border-radius: 50%;
  border: 3px solid transparent;

  border-top-color: var(--teal);
  border-right-color: var(--purple);

  animation: spin 1.1s linear infinite;
}

.loader-core{
  position: absolute;
  top: 50%;
  left: 50%;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: var(--teal);

  transform: translate(-50%, -50%);

  box-shadow:
    0 0 20px 4px rgba(77,217,192,0.7);

  animation: pulse 1.6s ease-in-out infinite;
}

.loader-text{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;

  color: var(--text-dim);
  text-transform: uppercase;
}

@keyframes spin{

  to{
    transform: rotate(360deg);
  }

}

@keyframes pulse{

  0%,
  100%{
    transform: translate(-50%, -50%) scale(1);
  }

  50%{
    transform: translate(-50%, -50%) scale(1.3);
  }

}


/* =========================================================================
   SIDEBAR NAVIGATION
========================================================================= */

#nav-toggle{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;

  width: 46px;
  height: 46px;

  display: none;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;

  border-radius: 50%;

  background: rgba(26,21,53,0.85);
  border: 1px solid var(--card-border);

  backdrop-filter: blur(6px);
}

#nav-toggle span{
  width: 20px;
  height: 2px;

  background: var(--teal);

  border-radius: 2px;

  transition:
    transform .3s var(--ease),
    opacity .3s var(--ease);
}

#nav-toggle.open span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2){
  opacity: 0;
}

#nav-toggle.open span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

#nav-scrim{
  position: fixed;
  inset: 0;
  z-index: 999;

  background: rgba(10,10,15,0.6);

  backdrop-filter: blur(2px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .3s var(--ease),
    visibility .3s var(--ease);
}

#nav-scrim.show{
  opacity: 1;
  visibility: visible;
}


/* =========================================================================
   LOGO TOGGLE
========================================================================= */

#logo-toggle{
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1101;

  width: 50px;
  height: 50px;

  padding: 0;

  overflow: hidden;

  border-radius: 50%;
  border: 2px solid rgba(77,217,192,0.4);

  box-shadow:
    0 0 0 4px rgba(10,10,15,0.4),
    0 4px 18px rgba(0,0,0,0.4);

  transition:
    transform .3s var(--ease),
    border-color .3s var(--ease),
    box-shadow .3s var(--ease);
}

#logo-toggle img{
  width: 100%;
  height: 100%;

  object-fit: cover;
}

#logo-toggle:hover{
  transform: scale(1.07);
  border-color: var(--teal);
}

#logo-toggle.pinned{
  border-color: var(--teal);

  box-shadow:
    0 0 0 4px rgba(77,217,192,0.18),
    0 4px 22px rgba(77,217,192,0.3);
}


/* =========================================================================
   SIDEBAR
========================================================================= */

#hover-zone{
  position: fixed;
  top: 0;
  left: 0;

  width: 55px;
  height: 100vh;

  z-index: 990;
}

#sidebar{
  position: fixed;
  top: 0;
  left: 0;

  width: var(--sidebar-w);
  height: 100vh;

  z-index: 1000;

  padding: 100px 20px 32px;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      180deg,
      rgba(26,21,53,0.94),
      rgba(10,10,15,0.96)
    );

  border-right: 1px solid var(--card-border);

  backdrop-filter: blur(10px);

  transform: translateX(-100%);

  box-shadow: none;

  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

body.modal-open #sidebar,
body.modal-open #logo-toggle,
body.modal-open #nav-toggle,
body.modal-open #hover-zone{
  z-index: 1 !important;
}

@media (min-width: 901px){

  #sidebar.peek,
  #sidebar.pinned{
    transform: translateX(0);

    box-shadow:
      20px 0 60px rgba(0,0,0,0.45);
  }

  #sidebar .brand{
    display: none;
  }

}

.brand{
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 40px;
}

.brand-mark{
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  border-radius: 50%;

  object-fit: cover;

  box-shadow:
    0 0 0 2px rgba(77,217,192,0.35);
}

.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
}

.nav-links{
  display: flex;
  flex-direction: column;

  gap: 4px;

  flex: 1;
}

.nav-links a{
  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 11px 12px;

  border-radius: 10px;

  font-size: 14.5px;
  font-weight: 500;

  color: var(--text-dim);

  transition:
    color .25s var(--ease),
    background .25s var(--ease);
}

.nav-links a:hover{
  color: var(--white);
  background: rgba(107,79,160,0.18);
}

.nav-links a.active{
  color: var(--teal);
  background: rgba(77,217,192,0.1);
}

.nav-orbit{
  width: 8px;
  height: 8px;

  flex-shrink: 0;

  border-radius: 50%;
  border: 1.5px solid var(--purple);

  transition: all .3s var(--ease);
}

.nav-links a:hover .nav-orbit{
  border-color: var(--teal);
}

.nav-links a.active .nav-orbit{
  background: var(--teal);
  border-color: var(--teal);

  box-shadow:
    0 0 10px 2px rgba(77,217,192,0.7);
}

.nav-links a.nav-highlight{
  background:
    linear-gradient(
      90deg,
      var(--teal),
      var(--lavender),
      var(--teal)
    );

  background-size: 200% 100%;

  color: var(--black);

  transition:
    background-position .4s var(--ease);
}

.nav-links a.nav-highlight span.nav-orbit{
  background: var(--black);
}

.nav-links a.nav-highlight:hover{
  background-position: 100% 0;
}

.sidebar-cta{
  display: block;

  padding: 13px 14px;

  border-radius: 12px;

  text-align: center;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;

  background: var(--teal);
  color: var(--black);

  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease);
}

.sidebar-cta:hover{
  transform: translateY(-2px);

  box-shadow:
    0 8px 24px rgba(77,217,192,0.35);
}


/* =========================================================================
   MOBILE NAVIGATION
========================================================================= */

@media (max-width: 900px){

  #logo-toggle{
    display: none;
  }

  #hover-zone{
    display: none;
  }

  #nav-toggle{
    display: flex;
  }

  #sidebar{
    width: min(78vw, 300px);

    box-shadow:
      20px 0 60px rgba(0,0,0,0.5);
  }

  #sidebar .brand{
    display: flex;
  }

  #sidebar.open{
    transform: translateX(0);
  }

}


/* =========================================================================
   SHARED SECTION / LAYOUT
========================================================================= */

main{
  position: relative;
  z-index: 1;
}

.section{
  position: relative;

  min-height: 100vh;

  padding: 120px 6vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-inner{
  width: 100%;
  max-width: 1180px;

  margin: 0 auto;
}

.eyebrow{
  margin: 0 0 14px;

  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;

  color: var(--teal);

  text-transform: uppercase;
}

.section-title{
  margin: 0 0 16px;

  font-family: var(--font-display);
  font-weight: 700;

  font-size: clamp(32px, 4.5vw, 52px);

  line-height: 1.1;
}

.section-lede{
  max-width: 1000px;

  margin: 0 0 56px;

  color: var(--text-dim);

  font-size: 17px;
}

.grad-text{
  background:
    linear-gradient(
      90deg,
      var(--teal),
      var(--purple)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


/* =========================================================================
   SCROLL REVEAL
========================================================================= */

.reveal{
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
}

.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================================
   BUTTONS
========================================================================= */

.btn{
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 30px;

  border-radius: 999px;

  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;

  overflow: hidden;
  isolation: isolate;

  transition:
    color .4s var(--ease),
    border-color .4s var(--ease),
    transform .25s var(--ease);
}

.btn::before{
  content: '';

  position: absolute;
  inset: 0;
  z-index: -1;

  transform: translateY(101%);

  transition:
    transform .4s var(--ease);
}

.btn:hover{
  transform: translateY(-2px);
}

.btn:hover::before{
  transform: translateY(0);
}

.btn-primary{
  background: var(--black);
  color: var(--purple);

  border: 1.5px solid var(--purple);
}

.btn-primary::before{
  background: var(--purple);
}

.btn-primary:hover{
  color: var(--black);
}

.btn-ghost{
  background: transparent;
  color: var(--purple);

  border: 1.5px solid var(--purple);
}

.btn-ghost::before{
  background: var(--teal);
}

.btn-ghost:hover{
  color: var(--black);
  border-color: var(--teal);
}

.btn-wide{
  width: 100%;
  max-width: 340px;

  padding: 18px 30px;
}

.btn-disabled{
  opacity: .4;

  cursor: not-allowed;
  pointer-events: none;

  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.35) !important;
}


/* =========================================================================
   SCROLL TO TOP
========================================================================= */

#scroll-top-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  z-index: 900;

  opacity: 0;

  transform: translateY(10px);

  pointer-events: none;

  transition:
    opacity .3s var(--ease),
    transform .3s var(--ease);
}

#scroll-top-btn.visible{
  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}

#scroll-top-btn img{
  position: absolute;

  top: 50%;
  left: 50%;

  width: 40px;
  height: 40px;

  object-fit: contain;

  transform: translate(-50%, -50%);

  transition:
    opacity .2s var(--ease);
}

#scroll-top-btn .arrow-hover{
  opacity: 0;
}

#scroll-top-btn:hover .arrow-default{
  opacity: 0;
}

#scroll-top-btn:hover .arrow-hover{
  opacity: 1;
}


/* =========================================================================
   HERO
========================================================================= */

.hero{
  padding-top: 0;

  align-items: center;

  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;

  z-index: -1;
}

.hero-bg img{
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: .34;

  filter: saturate(1.15);
}

.hero-bg-overlay{
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      60% 50% at 30% 20%,
      rgba(107,79,160,0.45),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(10,10,15,0.55) 0%,
      rgba(10,10,15,0.85) 60%,
      var(--black) 100%
    );
}

.hero-content{
  max-width: 720px;

  padding-left: 2vw;
}

.hero-title{
  margin: 0 0 24px;

  font-family: var(--font-display);
  font-weight: 700;

  font-size: clamp(40px, 7vw, 84px);

  line-height: 1.02;
}

.hero-sub{
  max-width: 560px;

  margin-bottom: 36px;

  color: var(--text-dim);

  font-size: 18px;
}

.hero-actions{
  display: flex;

  gap: 16px;

  flex-wrap: wrap;
}

.scroll-cue{
  position: absolute;

  bottom: 40px;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;

  transform: translateX(-50%);

  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;

  color: var(--text-dimmer);
}

.scroll-cue-line{
  width: 1px;
  height: 34px;

  background:
    linear-gradient(
      var(--teal),
      transparent
    );

  animation:
    scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue{

  0%{
    opacity: 0;
    transform: scaleY(.3);
    transform-origin: top;
  }

  50%{
    opacity: 1;
    transform: scaleY(1);
  }

  100%{
    opacity: 0;
    transform: scaleY(.3);
    transform-origin: bottom;
  }

}

/* =========================================================================
   FLIP CARDS
========================================================================= */

.flip-grid{
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 26px;

  perspective: 1600px;
}

.flip-card{
  width: 100%;
  text-align: left;
}

.flip-inner{
  position: relative;

  width: 100%;
  height: 300px;

  transform-style: preserve-3d;

  border-radius: 20px;

  transition:
    transform .7s var(--ease);
}

.flip-card.flipped .flip-inner{
  transform: rotateY(180deg);
}

.flip-face{
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  padding: 32px;

  border-radius: 20px;
  border: 1px solid var(--card-border);

  backface-visibility: hidden;
}

.flip-front{
  justify-content: space-between;

  background:
    linear-gradient(
      160deg,
      var(--card-bg),
      var(--black)
    );

  transition:
    box-shadow .4s var(--ease),
    border-color .4s var(--ease);
}

.flip-card:hover .flip-front,
.flip-card:focus-visible .flip-front{
  border-color: rgba(77,217,192,0.5);

  box-shadow:
    0 0 0 1px rgba(77,217,192,0.4),
    0 0 40px rgba(77,217,192,0.18);
}

.flip-icon{
  font-size: 30px;
  color: var(--lavender);
}

.flip-front h3{
  margin: 18px 0 6px;

  font-family: var(--font-display);
  font-size: 24px;
}

.flip-hint{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;

  color: var(--text-dimmer);

  text-transform: uppercase;
}

.flip-back{
  justify-content: center;

  background:
    linear-gradient(
      160deg,
      var(--teal),
      var(--dark-teal)
    );

  color: var(--black);

  transform: rotateY(180deg);
}

.flip-back p{
  margin: 0;

  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 500;
}


/* =========================================================================
   GET INVOLVED
========================================================================= */

.involved-grid{
  display: grid;

  grid-template-columns: 1fr;

  gap: 24px;

  margin-bottom: 64px;
}

.involved-card{
  display: flex;
  flex-direction: row;

  gap: 14px;

  padding: 30px;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 18px;

  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease);
}

.involved-card:hover{
  transform: translateY(-6px);

  border-color:
    rgba(139,120,200,0.55);
}

.involved-card h3{
  margin: 0;

  font-family: var(--font-display);
  font-size: 20px;
}

.involved-card p{
  flex: 1;

  margin: 0 0 8px;

  color: var(--text-dim);

  font-size: 15px;
}

.involved-card .btn{
  flex-shrink: 0;

  padding: 12px 24px;

  white-space: nowrap;
}

.involved-card .card-text{
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 6px;
}


/* =========================================================================
   WORLD MAP
========================================================================= */

.reach-map{
  text-align: center;
}

.reach-map h3{
  margin: 0 0 28px;

  font-family: var(--font-display);
  font-size: 24px;
}

.map-wrap{
  position: relative;

  max-width: 1000px;

  margin: 0 auto;

  aspect-ratio: 2 / 1;

  background:
    radial-gradient(
      60% 90% at 50% 50%,
      rgba(107,79,160,0.14),
      transparent 70%
    );

  border: 1px solid var(--card-border);
  border-radius: 20px;

  overflow: hidden;
}

#earth-canvas-container{
  width: 100%;
  height: 100%;
  cursor: grab;
}

#earth-canvas-container:active{
  cursor: grabbing;
}

#earth-canvas-container canvas{
  display: block;
}

.earth-tooltip{
  position: absolute;
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 8px;
  background: #100E1F;
  border: 1px solid rgba(139,120,200,0.4);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
  white-space: nowrap;
}

.earth-tooltip.visible{
  opacity: 1;
}

/* =========================================================================
   EVENTS AND SERVICES
========================================================================= */

.cards-grid{
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;

  margin-bottom: -50px;
}

.info-card{
  padding: 28px;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 18px;

  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

.info-card:hover{
  transform: translateY(-6px);

  box-shadow:
    0 16px 40px rgba(0,0,0,0.35);
}

.info-card-num{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;

  color: var(--teal);
}

.info-card h3{
  margin: 14px 0 8px;

  font-family: var(--font-display);
  font-size: 20px;
}

.info-card p{
  margin: 0;

  color: var(--text-dim);

  font-size: 15px;
}


/* =========================================================================
   STATS
========================================================================= */

.stats-row{
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 24px;

  margin-top: -30px;
  margin-bottom: 30px;

  text-align: center;
}

.stat-item{
  padding: 24px;
}

.stat-number{
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;

  background:
    linear-gradient(
      90deg,
      var(--teal),
      var(--lavender)
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.stat-suffix{
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;

  color: var(--teal);
}

.stat-label{
  margin-top: 8px;

  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .5px;

  color: var(--text-dim);
}

/* =========================================================================
   OUR JOURNEY — TIMELINE
========================================================================= */

.timeline-wrap{
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 80px auto 0;
}

.timeline-pin{
  position: relative;
}

.timeline-pin.eyebrow p {
  margin: auto auto;
}

.timeline-track{
  position: relative;
  width: 100%;
  padding: 60px 0 80px;
}


/* -----------------------------------------
   CENTER TIMELINE LINE
----------------------------------------- */

.timeline-line{
  position: absolute;

  top: 0;
  bottom: 0;
  left: 50%;

  width: 2px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      180deg,
      var(--teal),
      var(--lavender)
    );

  box-shadow:
    0 0 12px rgba(77,217,192,0.25);

  z-index: 0;
}

.timeline-wrap {
  margin-top: 80px; /* Pushes the whole timeline container down from the grid above */
}

.timeline-pin .eyebrow {
  text-align: center;
  width: 100%;
  display: block;
  margin-bottom: 50px; /* Space between the label and the timeline */
  margin-top: 150px;
}

/* -----------------------------------------
   TIMELINE ITEM
----------------------------------------- */

.timeline-item{
  position: relative;

  width: 50%;

  min-height: 180px;

  display: flex;
  align-items: center;

  padding: 30px 50px;

  z-index: 1;
}


/* Left-side cards */

.timeline-item:nth-child(odd){
  margin-left: 0;

  justify-content: flex-end;

  text-align: right;
}


/* Right-side cards */

.timeline-item:nth-child(even){
  margin-left: 50%;

  justify-content: flex-start;

  text-align: left;
}


/* -----------------------------------------
   TIMELINE DOT
----------------------------------------- */

.timeline-dot{
  position: absolute;

  top: 50%;
  left: 100%;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: var(--black);

  border: 3px solid var(--teal);

  box-shadow:
    0 0 0 5px rgba(77,217,192,0.12),
    0 0 20px rgba(77,217,192,0.4);

  transform: translate(-50%, -50%);

  z-index: 3;

  transition:
    transform .3s var(--ease),
    background .3s var(--ease),
    box-shadow .3s var(--ease);
}


/* Right-side dots */

.timeline-item:nth-child(even) .timeline-dot{
  left: 0;
}


/* Dot hover */

.timeline-item:hover .timeline-dot{
  background: var(--teal);

  transform:
    translate(-50%, -50%)
    scale(1.35);

  box-shadow:
    0 0 0 7px rgba(77,217,192,0.12),
    0 0 30px rgba(77,217,192,0.6);
}


/* -----------------------------------------
   TIMELINE CARD
----------------------------------------- */

.timeline-card{
  width: min(400px, 100%);

  padding: 26px 28px;

  background:
    linear-gradient(
      160deg,
      var(--card-bg),
      var(--black)
    );

  border:
    1px solid
    var(--card-border);

  border-radius: 18px;

  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}


/* Card hover */

.timeline-item:hover .timeline-card{
  border-color:
    rgba(77,217,192,0.5);

  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    0 0 25px rgba(77,217,192,0.08);
}


/* Left card hover */

.timeline-item:nth-child(odd):hover .timeline-card{
  transform: translateX(-6px);
}


/* Right card hover */

.timeline-item:nth-child(even):hover .timeline-card{
  transform: translateX(6px);
}


/* -----------------------------------------
   TIMELINE DATE
----------------------------------------- */

.timeline-date{
  display: block;

  margin-bottom: 8px;

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 2px;

  color: var(--teal);

  text-transform: uppercase;
}


/* -----------------------------------------
   TIMELINE TITLE
----------------------------------------- */

.timeline-card h4{
  margin: 0 0 8px;

  font-family: var(--font-display);

  font-size: 21px;

  line-height: 1.2;

  color: var(--white);
}


/* -----------------------------------------
   TIMELINE DESCRIPTION
----------------------------------------- */

.timeline-card p{
  margin: 0;

  color: var(--text-dim);

  font-size: 14px;

  line-height: 1.6;
}


/* =========================================================================
   OUR JOURNEY — TABLET
========================================================================= */

@media (max-width: 900px){

  .timeline-wrap{
    margin-top: 60px;
  }

  .timeline-track{
    padding: 40px 0 60px;
  }

  .timeline-item{
    padding:
      25px 35px;
  }

  .timeline-card{
    padding: 22px;
  }

}


/* =========================================================================
   OUR JOURNEY — MOBILE
========================================================================= */

@media (max-width: 560px){

  .timeline-wrap{
    margin-top: 50px;
  }

  .timeline-track{
    padding:
      30px 0
      30px 20px;
  }


  /* Move timeline to the left */

  .timeline-line{
    left: 10px;

    transform: none;
  }


  /* All timeline items become one column */

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even){

    width: 100%;

    margin-left: 0;

    min-height: auto;

    padding:
      20px 0
      20px 35px;

    justify-content: flex-start;

    text-align: left;
  }


  /* All dots align to left line */

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot{

    left: -10px;

    top: 50%;

    transform:
      translate(-50%, -50%);
  }


  /* Card hover */

  .timeline-item:nth-child(odd):hover .timeline-card,
  .timeline-item:nth-child(even):hover .timeline-card{

    transform:
      translateX(4px);
  }


  .timeline-card{
    width: 100%;

    padding: 22px;
  }

}
/* =========================================================================
   FOUNDERS & BOARD
========================================================================= */

.founders-grid{
  position: relative;

  display: flex;
  justify-content: center;

  gap: 60px;

  flex-wrap: wrap;
  margin-top: 100px;
}

.founder-orb{
  position: relative;

  width: 300px;
  height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  cursor: pointer;
}

.orb-ring{
  position: absolute;
  inset: -8px;

  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      var(--purple),
      var(--teal),
      var(--lavender),
      var(--purple)
    );

  -webkit-mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - 6px),
      #000 calc(100% - 5px)
    );

  mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - 6px),
      #000 calc(100% - 5px)
    );

  animation:
    spin 6s linear infinite;
}

.orb-photo{
  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  transition:
    opacity .4s var(--ease),
    transform .4s var(--ease);
}

.orb-bio{
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 20px;

  border-radius: 50%;

  background:
    linear-gradient(
      160deg,
      var(--dark-purple),
      var(--black)
    );

  text-align: center;

  opacity: 0;

  transform: scale(.85);

  transition:
    opacity .4s var(--ease),
    transform .4s var(--ease);
}

.orb-bio h4{
  display: none;
}

.orb-bio p{
  margin: 0;

  color: var(--text-dim);

  font-size: 13.5px;

  line-height: 1.5;

  text-wrap: balance;
}

.founder-orb:hover .orb-photo,
.founder-orb:focus-visible .orb-photo{
  opacity: 0;
  transform: scale(.85);
}

.founder-orb:hover .orb-bio,
.founder-orb:focus-visible .orb-bio{
  opacity: 1;
  transform: scale(1);
}

.founder-orb:hover .orb-ring,
.founder-orb:focus-visible .orb-ring{
  animation-duration: 2.4s;
}

.orb-name{
  position: absolute;

  bottom: -64px;
  left: 50%;

  transform: translateX(-50%);

  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;

  text-align: center;

  white-space: nowrap;
}

.orb-name small{
  display: block;

  margin-top: 2px;

  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;

  color: var(--text-dimmer);
}

.founders-hint{
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 2px;

  margin-bottom: 25px;

  pointer-events: none;
}

.hint-text{
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;

  color: var(--white);

  white-space: nowrap;

  transform:
    translateY(-15px)
    rotate(-3deg);
}

.hint-arrow{
  width: 120px;
  height: 52px;

  flex-shrink: 0;
}


/* =========================================================================
   MARQUEE
========================================================================= */

.marquee-wrap{
  overflow: hidden;

  padding-top: 50px;

  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 8%,
      #000 92%,
      transparent
    );
}

.marquee-track{
  display: flex;

  gap: 44px;

  width: max-content;

  animation:
    marquee 26s linear infinite;
}

.marquee-wrap:hover .marquee-track{
  animation-play-state: paused;
}

.marquee-member{
  width: 110px;

  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
}

.marquee-member img{
  width: 84px;
  height: 84px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid var(--card-border);
}

.marquee-member span{
  color: var(--text-dim);

  font-size: 13px;

  text-align: center;
}

@keyframes marquee{

  from{
    transform: translateX(0);
  }

  to{
    transform: translateX(-50%);
  }

}

/* =========================================================================
   MEMORY WALL — ALBUM
   =========================================================================

   The album now lives entirely inside index.html.

   Structure:

   #album
      ├── .album-preview
      ├── #open-memory-wall
      └── #memory-wall
            ├── .memory-wall-header
            ├── #memory-wall-grid
            │      └── .memory-item
            └── .memory-wall-end

   JavaScript controls:
   - Opening / closing the memory wall
   - Creating memories dynamically
   - Scroll reveal
   - Entrance directions
   - Random rotation
   - Parallax movement
========================================================================= */


/* =========================================================================
   ALBUM SECTION
========================================================================= */

.album-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(107, 79, 160, 0),
    transparent 65%,
  );
}


/* =========================================================================
   ALBUM INTRO
========================================================================= */

.album-intro {
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

.album-intro .eyebrow{
  margin-bottom: 20px;
}

.album-intro .section-lede{
  max-width: 900px;
}


/* =========================================================================
   ALBUM HOMEPAGE PREVIEW
========================================================================= */

/* =========================================================
   ALBUM PREVIEW SECTION
   ========================================================== */

.album-preview-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Base image styling, rounded edges, and smooth transition */
.album-preview-image {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.album-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Larger Center Image */
.album-preview-image-1 {
  width: 510px;
  height: 370px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 5;
}

/* Smaller Left Peeking Image */
.album-preview-image-2 {
  width: 350px;
  height: 270px;
  top: 55%;
  left: 18%;
  transform: translateY(-50%) rotate(-12deg);
  z-index: 2;
}

/* Smaller Right Peeking Image */
.album-preview-image-3 {
  width: 350px;
  height: 270px;
  top: 55%;
  right: 18%;
  transform: translateY(-50%) rotate(12deg);
  z-index: 2;
}

/* Hover States — slightly raise up and add glow */
.album-preview-image:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 204, 0.2);
  filter: brightness(1.08);
  border-color: rgba(0, 255, 204, 0.4);
}

.album-preview-image-1:hover {
  transform: translate(-50%, -50%) translateY(-6px) scale(1.02) rotate(0deg);
}

.album-preview-image-2:hover {
  transform: translateY(-50%) translateY(-6px) scale(1.02) rotate(-12deg);
}

.album-preview-image-3:hover {
  transform: translateY(-50%) translateY(-6px) scale(1.02) rotate(12deg);
}

/* =========================================================================
   PREVIEW NOTE
========================================================================= */

.album-preview-note{
  position: absolute;

  left: 50%;
  top: 50%;

  z-index: 5;

  width: 190px;
  height: 190px;

  padding: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(16,14,31,0.92);

  border:
    1px solid
    rgba(77,217,192,0.35);

  box-shadow:
    0 20px 60px
    rgba(0,0,0,0.5);

  text-align: center;

  transform:
    translate(-50%,-50%);

  backdrop-filter:
    blur(10px);

  transition:
    transform .6s var(--ease),
    border-color .5s var(--ease);
}

.album-preview:hover
.album-preview-note{
  transform:
    translate(-50%,-50%)
    scale(1.05);

  border-color:
    rgba(77,217,192,0.65);
}

.album-preview-note span{
  margin-bottom: 10px;

  font-family:
    var(--font-mono);

  font-size: 9px;

  letter-spacing:
    2px;

  color:
    var(--teal);
}

.album-preview-note strong{
  font-family:
    var(--font-display);

  font-size:
    20px;

  line-height:
    1.2;

  color:
    var(--white);
}


/* =========================================================================
   ALBUM CTA
========================================================================= */

.album-cta{
  display: flex;

  justify-content: center;

  margin:
    10px 0
    50px;
}

/* =========================================================
  ALBUM POPUP GALLERY STYLES
========================================================== */
.album-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.album-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.album-popup-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.album-popup-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--card-bg, #100E1F);
  padding: 100px 40px 40px 40px !important;
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
  box-sizing: border-box;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* ADD THESE LINES FOR THE SMOOTH ENTRANCE SCALE */
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-popup-overlay.is-open .album-popup-panel {
  transform: scale(1);
}

.album-popup-close {
  position: fixed;
  top: 30px;
  right: 40px;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border, rgba(139,120,200,0.25));
  padding: 10px 20px;
  border-radius: 99px;
  color: var(--white, #fff);
  cursor: pointer;
  z-index: 9999;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-popup-close:hover {
  background: rgba(77, 217, 192, 0.15);
  border-color: var(--teal, #4DD9C0);
  transform: scale(1.05);
}

.album-popup-close strong {
  font-size: 20px;
  line-height: 1;
}

.album-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  gap: 0px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.album-popup-grid {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.album-popup-grid::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Target exact outer corners of a 3-column grid */
.album-popup-grid > .album-popup-item:nth-child(3n-2):first-child { border-top-left-radius: 16px; }
.album-popup-grid > .album-popup-item:nth-child(3):last-child { border-top-right-radius: 16px; } /* Fallback for 3 items */
.album-popup-grid > .album-popup-item:nth-child(1) { border-top-left-radius: 16px; }
.album-popup-grid > .album-popup-item:nth-child(3) { border-top-right-radius: 16px; }



/* Thicker border (4px instead of 2px) */
.album-popup-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent; 
  background: linear-gradient(135deg, #4DD9C0, #8B78C8);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.album-popup-item:hover::after {
  opacity: 1;
}

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

@media (max-width: 600px) {
  .album-popup-panel {
    padding: 90px 20px 30px 20px;
  }
  .album-popup-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
  POPUP ACTIVE STATE: HIDE UI & DISABLE SIDEBAR HOVER
========================================================== */
body.album-popup-open {
  overflow: hidden !important; /* Locks the background scroll completely */
}

body.album-popup-open #logo-toggle,
body.album-popup-open .scroll-progress,
body.album-popup-open .scroll-dots,
body.album-popup-open [class*="scroll-progress"],
body.album-popup-open [class*="scroll-dot"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

body.album-popup-open #hover-zone {
  pointer-events: none !important;
}

/* =========================================================
  ZOOM IN ON IMAGE IN POPUP
========================================================== */

/* Backdrop that dims everything else when an image is expanded */
.image-zoom-clone-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 100000;
  pointer-events: none;
}
.image-zoom-clone-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.album-popup-item {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
}

.album-popup-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Expanded state */
.album-popup-item.is-expanded {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  background: #000;
}

.album-popup-item.is-expanded img {
  border-radius: 16px;
  object-fit: contain;
}

.album-popup-item.is-expanded::after {
  display: none !important;
}

/*===========================================================
   MOBILE
========================================================================= */

@media (max-width: 700px){

  .album-preview{

    min-height:
      430px;
  }


  .album-preview-image-1{

    width:
      52%;

    height:
      250px;

    left:
      4%;

    top:
      70px;
  }


  .album-preview-image-2{

    width:
      48%;

    height:
      280px;

    right:
      3%;

    top:
      45px;
  }


  .album-preview-image-3{

    width:
      45%;

    height:
      190px;

    left:
      27%;

    bottom:
      30px;
  }


  .album-preview-note{

    width:
      145px;

    height:
      145px;

    padding:
      20px;
  }


  .album-preview-note strong{

    font-size:
      16px;
  }


  .memory-wall-header{

    align-items:
      flex-start;

    flex-direction:
      column;

    margin-bottom:
      60px;
  }


  .memory-wall-grid{

    padding:
      20px 6vw
      100px;
  }


  .memory-item,
  .memory-item.memory-item-center{

    width:
      90vw;

    margin-left:
      auto;

    margin-right:
      auto;

    margin-top:
      120px;
  }


  .memory-item:nth-child(odd),
  .memory-item:nth-child(even){

    margin-left:
      auto;

    margin-right:
      auto;
  }


  .memory-item:nth-child(odd)::before,
  .memory-item:nth-child(even)::before{

    display:
      none;
  }


  .memory-wall-end{

    flex-direction:
      column;

    gap:
      15px;
  }


  .memory-wall-end-line{

    width:
      50px;
  }

}

/* =========================================================================
   BLOG
========================================================================= */

.blog-card{
  display: flex;
  flex-direction: column;

  gap: 10px;

  padding: 28px;

  overflow: hidden;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 18px;

  color: var(--white);

  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}

.blog-card:hover{
  transform: translateY(-6px);

  border-color:
    rgba(77,217,192,0.5);

  box-shadow:
    0 15px 40px rgba(77,217,192,0.08);
}

.blog-card-image{
  width: calc(100% + 56px);
  height: 200px;

  margin:
    -28px
    -28px
    18px;

  overflow: hidden;

  background: var(--dark-purple);
}

.blog-card-image img{
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform .5s var(--ease);
}

.blog-card:hover .blog-card-image img{
  transform: scale(1.05);
}

.blog-card-content{
  height: 100%;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.blog-card-date,
.blog-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;

  color: var(--teal);

  text-transform: uppercase;
}

.blog-card h3{
  margin: 6px 0;

  font-family: var(--font-display);
  font-size: 19px;
}

.blog-card p{
  flex: 1;

  margin: 0 0 10px;

  color: var(--text-dim);

  font-size: 14.5px;
  line-height: 1.6;
}

.blog-read{
  margin-top: auto;

  font-size: 13.5px;
  font-weight: 600;

  color: var(--lavender);

  transition:
    color .25s var(--ease);
}

.blog-card:hover .blog-read{
  color: var(--teal);
}

.blog-loading{
  grid-column: 1 / -1;

  min-height: 200px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-dim);

  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;

  text-align: center;
}

.blog-error{
  grid-column: 1 / -1;

  padding: 50px 20px;

  text-align: center;

  color: var(--text-dim);
}

.center-cta{
  display: flex;

  justify-content: center;

  margin-top: 94px;
}

*, *:hover, input, button {
  cursor: none !important;
}

.newsletter{
  display:flex; 
  justify-content: center; 
  width: 350px; 
  height: 70px; 
  overflow: hidden; 
  border-radius: 10px; 
  background-color: transparent; 
  margin: 0 auto; 
  margin-top: 100px;
}

.custom-substack-form {
  width: 100%;
  max-width: 380px;
}

.substack-input-group {
  display: flex;
  align-items: center;
  background: #12121a; /* Dark background matching your theme */
  border: 1px solid rgba(160, 140, 255, 0.3); /* Subtle purple-tinted border */
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
}

.substack-input-group input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 15px;
}

.substack-input-group input[type="email"]::placeholder {
  color: #8b8b9e;
}

.substack-input-group button {
  background: #8b79e8; /* Custom purple button color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: none;
  transition: background 0.2s ease;
}

.substack-input-group button:hover {
  background: #654ed9;
  box-shadow: 0 0 20px rgba(154, 138, 216, 0.4);
}

.substack-input-group button.success-state {
  background: #2a2b38 !important; /* Greyed out background */
  color: #7a7b8e !important; /* Muted grey text/icon color */
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}

/* =========================================================================
   CONTACT — DYNAMIC COLLAPSING / EXPANDING CARDS
========================================================================= */

.card-fan{
  position: relative;

  width: 100%;
  max-width: 1400px;

  min-height: 240px;

  margin: 100px auto 0;

  padding: 30px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  perspective: 1400px;
}


/* Contact cards */

.fan-card{
  position: relative;

  flex: 1 1 0;

  min-width: 0;

  height: 180px;

  margin-left: -115px;

  overflow: visible;

  border-radius: 18px;

  background:
    linear-gradient(
      160deg,
      var(--card-bg),
      var(--black)
    );

  box-shadow:
    0 20px 30px rgba(0,0,0,0.8);

  cursor: pointer;

  text-decoration: none;

  color: var(--white);

  transform: translateY(0);

  transform-origin: center;

  z-index: var(--i, 1);

  transition:
    margin .7s var(--ease),
    transform .45s var(--ease),
    box-shadow .35s var(--ease),
    z-index .2s ease;
}

.fan-card:first-child{
  margin-left: 0;
}


/* Expand cards when the container is hovered */

.card-fan:hover .fan-card{
  margin-left: 10px;
}


/* Highlight hovered card */

.card-fan:hover .fan-card:hover{
  transform:
    translateY(-14px)
    scale(1.04);

  z-index: 20;

  box-shadow:
    0 25px 50px rgba(0,0,0,0.7),
    0 0 0 1px rgba(77,217,192,0.5),
    0 0 30px rgba(77,217,192,0.15);
}


/* Keyboard focus */

.fan-card:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}


/* Card flip */

.fan-card-inner{
  position: relative;

  width: 100%;
  height: 100%;

  border-radius: 18px;

  transform-style: preserve-3d;

  transition:
    transform .6s var(--ease);
}

.fan-card.active .fan-card-inner{
  transform: rotateY(180deg);
}


/* Card faces */

.fan-card-face{
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 14px;

  padding: 22px;

  box-sizing: border-box;

  border-radius: 18px;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.fan-card-front{
  padding: 0;
}


/* Contact color bands */

.fan-card-band{
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
}

.fan-card-band-mail{
  background:
    linear-gradient(
      135deg,
      var(--teal),
      var(--dark-teal)
    );
}

.fan-card-band-instagram{
  background:
    radial-gradient(
      circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285AEB 90%
    );
}

.fan-card-band-youtube{
  background: #c00b0b;
}

.fan-card-band-linkedin{
  background: #0A66C2;
}

.fan-card-band-substack{
  background: #ff6719;
}

.fan-card-icon{
  width: 32px;
  height: 32px;

  color: var(--white);
}

.fan-card-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;

  color: var(--white);
}


/* Contact card back */

.fan-card-back{
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  gap: 6px;

  background:
    linear-gradient(
      160deg,
      var(--teal),
      var(--dark-teal)
    );

  color: var(--black);

  transform: rotateY(180deg);
}

.fan-card-back-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: .7;
}

.fan-card-back-value{
  margin-bottom: 10px;

  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;

  word-break: break-word;
}

.fan-card-back-cta{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}


/* =========================================================================
   LEGACY CONTACT CARDS
========================================================================= */

.contact-card{
  padding: 28px 20px;

  text-align: center;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 18px;

  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    background .35s var(--ease);
}

.contact-card:hover{
  transform: translateY(-6px);

  border-color: var(--teal);

  background:
    rgba(77,217,192,0.06);
}

.contact-icon{
  display: inline-block;

  margin-bottom: 12px;

  font-size: 26px;

  color: var(--teal);
}

.contact-card h3{
  margin: 0 0 6px;

  font-family: var(--font-display);
  font-size: 17px;
}

.contact-card p{
  margin: 0;

  color: var(--text-dim);

  font-size: 13.5px;

  word-break: break-word;
}


/* =========================================================================
   FOOTER
========================================================================= */

.site-footer{
  position: relative;
  z-index: 1;

  padding: 40px 6vw;

  border-top: 1px solid var(--card-border);
}

.footer-inner{
  max-width: 1180px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-brand{
  display: flex;
  align-items: center;

  gap: 10px;

  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-brand .brand-mark{
  width: 26px;
  height: 26px;
}

.footer-inner p{
  margin: 0;

  color: var(--text-dimmer);

  font-size: 13px;
}

.footer-socials{
  display: flex;

  gap: 18px;
}

.footer-socials a{
  color: var(--text-dim);

  font-size: 13.5px;

  transition:
    color .25s var(--ease);
}

.footer-socials a:hover{
  color: var(--teal);
}


/* =========================================================================
   RESPONSIVE — TABLET
========================================================================= */

@media (max-width: 900px){

  .section{
    padding: 90px 6vw;
  }

  .involved-grid,
  .cards-grid,
  .contact-grid{
    grid-template-columns: 1fr 1fr;
  }

  .flip-grid{
    grid-template-columns: 1fr;
  }

  .flip-inner{
    height: auto;
    min-height: 240px;
  }

  .founders-grid{
    gap: 40px;
  }

  .stats-row{
    grid-template-columns: repeat(2, 1fr);
  }

  /* Memory wall */

  .memory-wall{
    padding:
      30px 6vw
      120px;
  }

  .memory-item{
    width: min(600px, 80vw);

    margin-top: 140px;
  }

  .memory-item:nth-child(odd),
  .memory-item:nth-child(even){
    margin-left: auto;
    margin-right: auto;
  }

  .memory-item.memory-item-center{
    width: min(700px, 85vw);
  }

  .memory-item:nth-child(odd)::before,
  .memory-item:nth-child(even)::before{
    display: none;
  }

  .memory-header{
    padding:
      130px 6vw
      60px;
  }

  .album-preview-image{
    height: 400px;
  }

  .card-fan{
    max-width: 700px;

    padding: 30px 20px;

    min-height: 220px;
  }

  .fan-card{
    flex: 0 0 150px;

    width: 150px;
    height: 150px;

    margin-left: -90px;
  }

  .card-fan:hover .fan-card{
    margin-left: 5px;
  }

  .fan-card-label{
    font-size: 16px;
  }

  .fan-card-back-value{
    font-size: 16px;
  }

}


/* =========================================================================
   RESPONSIVE — MOBILE
========================================================================= */

@media (max-width: 560px){

  .section{
    padding:
      80px 6vw
      70px;
  }

  .involved-grid,
  .cards-grid,
  .contact-grid,
  .blog-grid{
    grid-template-columns: 1fr;
  }

  .hero-title{
    font-size: 42px;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .founders-grid{
    gap: 30px;
  }

  .founder-orb{
    width: 160px;
    height: 160px;
  }

  #sidebar{
    width: 82vw;
  }


  /* Memory wall */

  .memory-header{
    padding:
      110px 6vw
      50px;
  }

  .memory-header h1{
    font-size: clamp(44px, 14vw, 70px);
  }

  .memory-header p{
    font-size: 15px;
  }

  .memory-wall{
    padding:
      20px 6vw
      100px;
  }

  .memory-item,
  .memory-item.memory-item-center{
    width: 100%;

    margin-top: 100px;
  }

  .memory-item.from-left,
  .memory-item.from-right,
  .memory-item.from-bottom{
    transform:
      translateY(80px)
      scale(.96);
  }

  .memory-item.is-visible.from-left,
  .memory-item.is-visible.from-right,
  .memory-item.is-visible.from-bottom{
    transform:
      translateY(0)
      scale(1);
  }

  .memory-item:nth-child(odd)::before,
  .memory-item:nth-child(even)::before{
    display: none;
  }

  .memory-photo-wrap{
    transform:
      rotate(0deg);
  }

  .memory-item:hover .memory-photo-wrap{
    transform:
      scale(1.01);
  }

  .memory-item.is-visible .memory-photo-wrap{
    animation: none;
  }

  .memory-caption{
    font-size: 20px;
  }

  .memory-description{
    font-size: 13.5px;
  }

  /* Homepage album preview */

  .album-preview-image{
    height: 300px;
  }

  .album-preview-content{
    padding: 24px;

    flex-direction: column;
    align-items: flex-start;

    gap: 8px;
  }

  .album-preview-content strong{
    font-size: 19px;
  }


  /* Contact */

  .card-fan{
    width: 100%;
    max-width: 400px;

    min-height: auto;

    margin: 60px auto 0;

    padding: 20px;

    flex-direction: column;
    align-items: stretch;

    gap: 14px;
  }

  .fan-card,
  .fan-card:first-child{
    width: 100%;
    height: 120px;

    flex: none;

    margin-left: 0;
  }

  .card-fan:hover .fan-card{
    margin-left: 0;
  }

  .card-fan:hover .fan-card:hover{
    transform:
      translateY(-5px)
      scale(1.02);
  }

  .fan-card-label{
    font-size: 16px;
  }

  .fan-card-back-value{
    font-size: 16px;
  }

  .fan-card-back-cta{
    font-size: 13px;
  }

  /* Stats */

  .stats-row{
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================================
   CONTACT — REDUCED MOTION
========================================================================= */

@media (prefers-reduced-motion: reduce){

  .fan-card,
  .fan-card-inner,
  .memory-item,
  .memory-photo-wrap{
    transition: none;

    animation: none !important;
  }
}

.timeline-line{
  left: 50% !important;
  width: 2px !important;
  transform: translateX(-50%) !important;
}

.footer-roll {
  --h: 22px;                /* height of the "cuboid" */
  margin: 0;
  perspective: 600px;
  cursor: default;
}

.roll-inner {
  display: grid;            /* both faces share one cell, so the width fits the wider one */
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--h) / -2));
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.roll-face {
  grid-area: 1 / 1;
  height: var(--h);
  line-height: var(--h);
  text-align: center;
  white-space: nowrap;
  backface-visibility: hidden;
}

.roll-front {
  transform: translateZ(calc(var(--h) / 2));
}

.roll-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--h) / 2));
  pointer-events: none;     /* not clickable while hidden */
}

.roll-bottom a {
  color: #4DD9C0;
  text-decoration: none;
}

.roll-bottom a:hover {
  text-decoration: underline;
}

/* the roll */
.footer-roll:hover .roll-inner,
.footer-roll:focus-within .roll-inner {
  transform: translateZ(calc(var(--h) / -2)) rotateX(90deg);
}

.footer-roll:hover .roll-bottom,
.footer-roll:focus-within .roll-bottom {
  pointer-events: auto;     /* links work once it has rolled round */
}

@media (prefers-reduced-motion: reduce) {
  .roll-inner { transition-duration: 0.01s; }
}