:root {
  --brand-bg: #0D2620;
  --brand-lime: #D4F54C;

  /* Use existing website fonts */
  --an-body: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  --an-display: var(--font-display, 'Space Grotesk', sans-serif);
}

.an-wrap {
  background: var(--brand-bg);
  padding: clamp(5rem, 8vw, 7rem) 8%;
  overflow: hidden;
  position: relative;
  font-family: var(--an-body);
}

.an-grid-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/noise.svg");
    opacity: 0.8;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 84px 84px;
  pointer-events: none;
}

.an-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(212,245,76,.06) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.an-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 13vw, 15rem);
  font-weight: 900;
  color: #fff;
  opacity: .015;
  letter-spacing: -.05em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  font-family: var(--an-display);
}

/* ---------- Header ---------- */

.an-header {
  text-align: center;
  position: relative;
  z-index: 10;
}

.an-kicker-box {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.an-kicker-line {
  width: 1.75rem;
  height: 1px;
  background: var(--brand-lime);
  opacity: .35;
}

.an-kicker-text {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5em;
  color: var(--brand-lime);
  text-transform: uppercase;
  font-family: var(--an-display);
}

.an-title {
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: .75rem;
  font-family: var(--an-display);
}

.an-title em {
  font-style: italic;
  color: var(--brand-lime);
}

.an-sub {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
  font-family: var(--an-body);
}

/* ---------- Pills ---------- */

.an-stage-wrap {
  position: relative;
  top : -2rem;
}

@media (min-width: 640px) {
  .an-stage-wrap {
    top: -8rem;
  }
}

.an-pills {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;

  pointer-events: none;
}

@media (min-width: 640px) {
  .an-pills {
    top: 35%;
  }
}

.an-pill {
  display: flex;
  align-items: center;
  gap: .75rem;

  background: rgba(13,38,32,.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;

  padding: .55rem 1rem .55rem .55rem;

  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--an-body);

  transition: all .3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.an-pill:hover {
  background: rgba(212,245,76,.12);
  border-color: rgba(212,245,76,.35);
  transform: translateY(-2px);
}

.an-pill-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.an-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}

.an-pill-name {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--an-body);
}

.an-pill-ct {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  font-family: var(--an-body);
}

.an-pills-row {
  display: contents;
}

@media (max-width: 640px) {
  .an-pills {
    flex-direction: column;
    align-items: center;
  }

  .an-pills-row {
    display: flex;
    justify-content: center;
    gap: .5rem;
  }
}

/* ---------- Carousel ---------- */

.an-stage {
  position: relative;
  height: 520px;
  perspective: 1100px;
  perspective-origin: 50% 30%;
  /* margin: 1.25rem auto 0; */
}

.an-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;

  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-42deg);
}

.an-carousel {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}

/* ---------- Cards ---------- */

.an-card {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
  will-change: transform;

  box-shadow:
    0 20px 50px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04);
}

.an-card-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 18px;
}

.an-card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- Bottom ---------- */

.an-hint {
  text-align: center;
  margin-top: 1.25rem;

  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;

  color: rgba(255,255,255,.22);

  position: relative;
  z-index: 10;
  font-family: var(--an-body);
}

.an-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;

  position: relative;
  top: -6rem;
  z-index: 10;
}

@media screen and (max-width: 640px) {
  .an-btns {
    top: -0rem;
  }
  
}

.an-pause-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);

  color: rgba(255,255,255,.45);
  font-size: 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all .25s ease;
}

.an-pause-btn:hover {
  background: rgba(212,245,76,.10);
  border-color: rgba(212,245,76,.30);
  color: var(--brand-lime);
}

.an-cta {
  display: inline-flex;
  align-items: center;
  gap: .625rem;

  background: var(--brand-lime);
  color: var(--brand-bg);

  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;

  padding: .85rem 1.75rem;
  border-radius: 999px;
  border: none;

  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--an-body);
}

.an-cta:hover {
  opacity: .9;
  transform: translateY(-2px);
}


/* new work */
  @keyframes scroll-left  { 0% { transform: translateX(0); }    100% { transform: translateX(-50%); } }
  @keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); }    }
 
  .lane-left  { animation: scroll-left  60s linear infinite; }
  .lane-right { animation: scroll-right 75s linear infinite; }
  .lane-fast  { animation: scroll-left  48s linear infinite; }
 
  .lane-left:hover,
  .lane-right:hover,
  .lane-fast:hover { animation-play-state: paused; }
 
  .lanes-mask {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }
 
  .gallery-lane {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    width: max-content;
    will-change: transform;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
 
  .gallery-card {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #1a2e29;
    outline: 1px solid rgba(255,255,255,0.18);
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
 
  .gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    pointer-events: none;
  }
  .gallery-card:hover img { transform: scale(1.08); }
 
  .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,38,32,0);
    transition: background 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    pointer-events: none;
  }
  .gallery-card:hover .card-overlay { background: rgba(13,38,32,0.65); }
 
  .card-label {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
  }
  .gallery-card:hover .card-label   { opacity: 1; transform: translateY(0); }
  .gallery-card.touched .card-overlay { background: rgba(13,38,32,0.65); }
  .gallery-card.touched .card-label   { opacity: 1; transform: translateY(0); }
