/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --margin: 2.25rem;
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  1.5rem;
  --gap-lg:  2rem;
  --gap-xl:  3rem;
  --gap-xxl: 4rem;

  --color-text:              #D6D5DE;
  --color-text-light:        #8E8A9E;
  --color-fireflygold:       #F6B832;
  --color-shadowabyss:       #161424;
  --color-shadowabyss-dark:  #0E0C18;
  --color-shadowabyss-light: #25233A;
  --color-lumentide:         #3FACB9;
  --color-veilviolet:        #7779F1;
  --color-palefrost:         #8EE0ED;
  --color-vitalcharge:       #C3DD00;
  --color-emberflare:        #E93120;
  --color-deepfern:          #67A365;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
html { font-size: 1rem; }

body {
  font-family: "Gantari", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background-color: var(--color-shadowabyss);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
video { max-width: 100%; }
ol, ul { padding-left: 20px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2 {
  font-family: "Zain", serif;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(214, 213, 222, 0.5);
}

h3, h4 {
  font-family: "Gantari", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 1.75rem; margin-bottom: 50px; margin-top: 35px;}

p {
  line-height: 1.5;
  color: var(--color-text);
}

.sub-header {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-fireflygold);
}

@media (min-width: 45rem) {
  body        { font-size: 1.125rem; }
  h2          { font-size: 2.25rem; }
  h3, h4      { font-size: 1.25rem; }
  .sub-header { font-size: 1.25rem; }
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.horizontal-div {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 1px;
  background-color: var(--color-shadowabyss-light);
  margin-top: 100px;
  margin-bottom: 100px;
}

.horizontal-div-footer {
  width: calc(100% + var(--margin) * 2);
  height: 1px;
  background-color: var(--color-shadowabyss-light);
  margin-top: 50px;
}

.vertical-div {
  width: 1px;
  height: 2rem;
  background-color: var(--color-text-light);
}

.title-div {
  width: 3rem;
  height: 3px;
  background-color: var(--color-fireflygold);
  margin-top: var(--gap-xs);
  margin-bottom: var(--gap-md);
  border-radius: 999px;
}

/* ============================================================
   SITE NAV
   ============================================================ */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body > nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: var(--gap-lg);
  padding: 30px 30px 0;
  flex-wrap: wrap;
  align-items: stretch;
}

body > nav li {
  position: relative;
  padding-bottom: 30px;
  font-size: 1rem;
  font-weight: 600;
}

body > nav a {
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  display: block;
  transition: color 0.6s ease;
}

body > nav a::after,
body > nav a::before {
  content: '';
  position: absolute;
  bottom: -30px;
  opacity: 0;
  transition: opacity 0.7s ease;
}

body > nav a::after {
  left: -2px;
  right: -2px;
  height: 4px;
  background-color: var(--color-fireflygold);
  border-radius: 2px 2px 0 0;
}

body > nav a::before {
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 126%;
  height: 55px;
  background: linear-gradient(to top, rgba(246, 184, 50, 0.12), transparent);
  clip-path: polygon(5% 0%, 95% 0%, 90% 100%, 10% 100%);
  filter: blur(6px);
  pointer-events: none;
}

body > nav a:hover,
body > nav .active a { color: var(--color-fireflygold); }

body > nav a:hover::after,
body > nav a:hover::before,
body > nav .active a::after,
body > nav .active a::before { opacity: 1; }

@media (max-width:28rem) {
    body > nav {
    padding-top: var(--gap-xs);
  }
  body > nav ul {
    gap: var(--gap-md);
    padding: 20px 20px 0;
    align-items: stretch;
  }

  body > nav li {
    max-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
  }

  body > nav li:first-child a::after,
  body > nav li:first-child a::before {
    bottom: -39px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--gap-xl) var(--margin);
  overflow: hidden;
  height: 100svh;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.6);
}

.hero__overlay {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(14,12,24,0.85) 0%, rgba(14,12,24,0.7) 60%, rgba(14,12,24,0.6) 100%);
  z-index: 1;
}

.hero > :not(video):not(.hero__overlay) {
  position: relative;
  z-index: 2;
}

.hero-content {
  margin-top: -85px;
}

.hero-content img {
  width: 100%;
  max-width: 30rem;
  height: auto;
}

.hero-content > p {
  font-family: "Zain", serif;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--gap-xs);
  padding-left: var(--gap-xl);
  letter-spacing: 0.1em;
}

.hero-content > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
  padding-left: var(--gap-xl);
}

.hero-content > div nav {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.hero-content > div nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.hero-content > div nav a:hover { opacity: 0.7; }

.hero > div nav img {
  width: 2.25rem;
  height: auto;
}

@media (max-width: 47.9rem) {
  .hero-content > div {
    padding-left: 0;
    padding-right: 0;
  }
  
  .hero-content > p {
    padding-left: var(--gap-xs);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-md);
  padding: var(--gap-xl) var(--margin) var(--gap-md);
}

footer > img {
  width: 5rem;
  height: auto;
}

footer > p:first-of-type {
  color: var(--color-fireflygold);
  font-weight: 600;
}

footer > p:last-of-type {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

footer nav {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

footer nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

footer nav a:hover { opacity: 0.7; }

footer nav img {
  width: 3rem;
  height: 3rem;
  padding: 0.6rem;
}

/* ============================================================
   TRAILER MODAL
   ============================================================ */
.trailer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.trailer-modal.is-open {
  display: flex;
}

.trailer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modal-fade-in 0.25s ease;
}

.trailer-modal__container {
  position: relative;
  z-index: 1;
  width: min(90vw, 1100px);
  animation: modal-scale-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trailer-modal__video {
  display: block;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.trailer-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 0.25rem;
}

.trailer-modal__close:hover {
  opacity: 1;
  transform: scale(1.15);
}

body.modal-open {
  overflow: hidden;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   INJECTED CONTENT
   ============================================================ */
#content > section {
  padding: var(--gap-xl) var(--margin);
  overflow-x: hidden;
}

/* ============================================================
   FIREFLIES PAGE — SECTION 1 (full-bleed hero)
   ============================================================ */
.page1-section1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: var(--margin);
  padding-right: var(--margin);
  height: 100svh;
  overflow: hidden;
}

.page1-section1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.8) blur(4px);
  transform: scale(1.05);
}

.page1-section1 h1 {
  position: relative;
  z-index: 1;
  color: var(--color-fireflygold);
  padding: 0 var(--margin);
  font-size: 1.75rem;
}

/* ============================================================
   FIREFLIES PAGE — SECTIONS 2 & 3 (image + text)
   ============================================================ */
#content > section.page1-section2,
#content > section.page1-section3 {
  padding: 0;
  background-color: var(--color-shadowabyss-dark);
}

.page1-section2,
.page1-section3 {
  position: relative;
  min-height: 500px;
  background-color: var(--color-shadowabyss-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--margin) ;
  gap: var(--gap-sm);
  
}

.page1-section3 {
  align-items: flex-end;
}

.page1-section2 img,
.page1-section3 img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 65%;
  object-fit: cover;
  display: block;
  z-index: 0;
  max-width: none;
}

.page1-section2 img { right: 0; }
.page1-section3 img { left: 0; }

.page1-section2::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(14, 12, 24, 1)   0%,
    rgba(14, 12, 24, 1)   35%,
    rgba(14, 12, 24, 0.7) 52%,
    rgba(14, 12, 24, 0)   70%
  );
}

.page1-section3::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(14, 12, 24, 1)   0%,
    rgba(14, 12, 24, 1)   35%,
    rgba(14, 12, 24, 0.7) 52%,
    rgba(14, 12, 24, 0)   70%
  );
}

.page1-section2 h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 var(--gap-sm) 0;
  max-width: 45%;
}

.page1-section2 article,
.page1-section3 article {
  position: relative;
  z-index: 2;
  max-width: 45%;
}

.page1-section2 article h3,
.page1-section3 article h3 {
  color: var(--color-fireflygold);
  margin-bottom: var(--gap-sm);
  margin-top: 0;
}

.page1-section2 article p,
.page1-section3 article p {
  color: var(--color-text-light);
  margin-top: 0;
}

@media (max-width: 47.9rem) {
  .page1-section2,
  .page1-section3 {
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 600px;
    padding: var(--gap-xl) var(--margin);
  }

  .page1-section3 { align-items: flex-start; }

  .page1-section2 img,
  .page1-section3 img {
    width: 100%;
    height: 300px;
    top: 0;
    left: 0;
    right: auto;
    margin-top: 50px;
  }

  .page1-section2 h2 {
    position: absolute;
    top: var(--gap-md);
    left: var(--margin);
    max-width: 80%;
    margin: 0;
    z-index: 2;
  }

  .page1-section2 article,
  .page1-section3 article {
    max-width: 100%;
    margin: var(--margin);
  }

  .page1-section2 article {
    margin-left: var(--margin);
  }

  .page1-section2::after,
  .page1-section3::after {
    background: linear-gradient(
      to bottom,
      rgba(14, 12, 24, 0)   0%,
      rgba(14, 12, 24, 0.8) 40%,
      rgba(14, 12, 24, 1)   65%
    );
  }
}

@media (min-width: 48rem) {
  .page1-section2,
  .page1-section3 {
    min-height: 70svh;
  }

  .page1-section2 h2,
  .page1-section2 article,
  .page1-section3 article {
    max-width: 45%;
  }

  .page1-section2 article,
  .page1-section2 h2 {
    margin-left: var(--margin);
  }

  .page1-section3 article{
    margin-right: var(--margin);
  }
}
/* ============================================================
   FIREFLIES PAGE — SECTION 4 (game loop / player experience)
   ============================================================ */
.page1-section4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.page1-section4 > h2 {
  text-align: center;
  margin-bottom: 0;
}

.game-loop {
  position: relative;
  width: min(600px, 88vw);
  height: min(560px, 83vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-loop__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.game-loop__label {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
  pointer-events: none;
  max-width: 55%;
  line-height: 1.5;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 10px var(--color-text), 0 0 23px var(--color-text);
}

.game-loop__label.has-content {
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 184, 50, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.game-loop__label[data-active="explore"] {
  background: #2B808A;
  box-shadow: 0 0 18px 4px rgba(43, 128, 138, 0.5);
}

.game-loop__label[data-active="puzzle"] {
  background: #4E50B8;
  box-shadow: 0 0 18px 4px rgba(78, 80, 184, 0.5);
}

.game-loop__label[data-active="reward"] {
  background: #1C4D29;
  box-shadow: 0 0 18px 4px rgba(28, 77, 41, 0.5);
}

.game-loop__btn {
  position: absolute;
  display: flex;
  align-items: center;
  font-family: "Gantari", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-shadowabyss);
  border: 1.5px solid var(--color-fireflygold);
  border-radius: 0.65rem;
  padding: 0.5rem 1.5rem;
  gap: 0.6rem;
  z-index: 3;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-loop__btn:hover,
.game-loop__btn.active {
  background: var(--color-shadowabyss); 
  outline: none;
}

.game-loop__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #F6B832;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.game-loop__btn.active::before {
  opacity: 0.15;
}

.game-loop__btn.active {
  transform: scale(1.07);
  box-shadow: 0 0 14px 3px rgba(246, 184, 50, 0.5);
}

.game-loop__plus {
  width: 1.4rem;
  height: 1.4rem;
  background: #FCE6A6;
  color: var(--color-shadowabyss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-right: -0.9rem; 
  transition: transform 0.25s ease;
}

.game-loop__btn.active .game-loop__plus {
  transform: rotate(45deg);
}

.game-loop__btn[data-target="explore"] {
  top: 11%;
}

.game-loop__btn[data-target="puzzle"] {
  bottom: 22%;
  right: 10%;
}

.game-loop__btn[data-target="reward"] {
  bottom: 22%;
  left: 8%;
}

.game-loop__btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 14px 3px rgba(246, 184, 50, 0.5);
}

.game-loop__btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  animation: btn-firefly-pulse 12s ease-in-out infinite;
}

/* Firefly orbiting animation */
.game-loop__firefly {
  position: absolute;
  width: 6rem;
  height: auto;
  object-fit: contain;
  z-index: 1;          
  pointer-events: none;
  offset-path: ellipse(215px 215px at 50% calc(50% + 15px));;
  offset-rotate: auto 90deg;
  animation: firefly-orbit 12s linear infinite,
             firefly-sway 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--color-fireflygold));
}

@keyframes firefly-orbit {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

@media (max-width: 47.9rem) {
  .game-loop__firefly {
    width: 5rem;
    height: 2.25rem;
    offset-path: ellipse(calc(215px * (88vw / 600px)) calc(215px * (83vw / 560px)) at 50% calc(50% + 10px));
  }
}

@keyframes btn-firefly-pulse {
  0%,  15%,  100% { box-shadow: none; }
  5%              { box-shadow: 0 0 14px 3px rgba(246, 184, 50, 0.5); }
}

@keyframes firefly-sway {
  0%, 100% { translate: 0 -10px; }
  50%       { translate: 0 10px; }
}

.game-loop__btn[data-target="explore"]::after { animation-delay: 8s; }
.game-loop__btn[data-target="puzzle"]::after  { animation-delay: 0s; }
.game-loop__btn[data-target="reward"]::after  { animation-delay: 4s; }

.game-loop__btn[data-target="explore"],
.game-loop__btn[data-target="puzzle"],
.game-loop__btn[data-target="reward"] {
  animation: none;
}

/* ============================================================
   FIREFLIES PAGE — SECTION 5 (key features)
   ============================================================ */
.page1-section5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xxl);
  background-color: var(--color-shadowabyss-dark);
}

#content > section.page1-section5 {
  padding-bottom: 100px;
}

.page1-section5 > h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0;
}

.page1-section5 article {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  background-color: var(--color-shadowabyss);
  border: 1.5px solid var(--color-shadowabyss-light);
  border-radius: 1rem;
  padding: var(--gap-lg);
}

.page1-section5 article h3 {
  font-family: "Zain", serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.page1-section5 article img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
}

.page1-section5 article ul {
  list-style: none;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  align-items: left;
}

.page1-section5 article ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.page1-section5 article ul li::before {
  content: '✦';
  color: var(--color-fireflygold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

@media (min-width: 48rem) {
  .page1-section5 {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl) var(--gap-xxl);
  }
}
@media (max-width: 28rem) {
  .page1-section5 article {
    padding: var(--gap-md) var(--gap-sm);
  }
}
/* ============================================================
   FIREFLIES PAGE — SECTION 6 (media gallery)
   ============================================================ */
.page1-section6 h2 {
  text-align: center;
}

.gallery-video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.gallery-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-videos,
.gallery-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.gallery-videos video,
.gallery-images img {
  width: 100%;
  object-fit: cover;
}

.gallery-images {
  margin-top: var(--gap-md);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gap-xl) var(--gap-md) var(--gap-md);
  background: linear-gradient(to top, rgba(14, 12, 24, 0.85) 0%, transparent 100%);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CASE STUDY — SHARED STACKED LAYOUTS
   ============================================================ */
.marketing-layout,
.timeline-overview,
.fireflies-ingame,
.enemy-cards,
.enemy-behavior,
.outcomes-layout,
.challenges,
.video-grid,
.logo-alt,
.logo-icons,
.puzzles-images,
.palette-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

/* ============================================================
   CASE STUDY — INTRO
   ============================================================ */
.cs-video-hero {
  position: relative;
  width: 100%;
}

.cs-video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.cs-video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22,20,36,0.3) 0%, rgba(22,20,36,1) 100%);
}

.cs-intro,
.cs-objective-outcome { padding: var(--gap-lg) var(--margin); }

.cs-intro {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding-top: var(--gap-xl);
  position: relative;
  z-index: 1;
}

.cs-intro header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  position: relative;
}

.documentary-btn {
  position: absolute;
  right: var(--gap-md);
  top: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  font-family: "Gantari", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  z-index: 2;
}

.documentary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 47.9rem) {
  .documentary-btn {
    right: var(--margin);
    left: auto;
    top: var(--gap-sm);
    bottom: auto;
    background-color: rgba(0, 0, 0, 0.3);
  }
}

.cs-intro h1 { font-size: 4rem; }

.cs-intro header p {
  color: var(--color-fireflygold);
  font-style: italic;
  margin-top: -1rem;
}

.cs-intro article h2,
.cs-objective-outcome article h2 {
  color: var(--color-fireflygold);
  font-family: "Gantari", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--gap-xs);
  margin-top: 0px;
  text-shadow: 0 0 20px rgba(214, 213, 222, 0);
}

.cs-meta { 
  padding: var(--gap-md) var(--margin); 
  margin-bottom: -50px;
}

.cs-meta dl {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.cs-meta dl > div {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.cs-meta dl > div:not(:last-child) {
  position: relative;
}

.cs-meta dl > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 2rem;
  background-color: var(--color-text-light);
}

.cs-meta dt {
  color: var(--color-fireflygold);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-meta dd {
  font-size: 0.875rem;
  color: var(--color-text);
}

.cs-meta ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.cs-meta ul li {
  background-color: #2E3D4C;
  color: var(--color-palefrost);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

.cs-meta .vertical-div {
  display: none;
  background-color: var(--color-shadowabyss-light);
}

.cs-objective-outcome {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  margin-top: -50px;
  margin-bottom: var(--margin);
}

.cs-objective-outcome .vertical-div { display: none; }

@media (max-width: 47.9rem) {
  .cs-meta dl > div:not(:last-child)::after {
    display: none;
  }
}

/* ============================================================
   CASE STUDY — TIMELINE PHASES (animated firefly scroll track)
   Add this block to styles.css, just after the existing
   .timeline-phases / .timeline-list rules (around line 930)
   ============================================================ */
 
/* ── Section layout ────────────────────────────────────────── */
.timeline-phases {
  position: relative;          
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  padding-top: var(--gap-xxl);
  padding-bottom: var(--gap-xxl);
}
 
/* ── Left track column ──────────────────────────────────────── */
.timeline-track {
  position: relative;
  width: 3rem;          
  flex-shrink: 0;
  align-self: stretch;
}
 
.timeline-track__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--color-shadowabyss-light);
  border-radius: 999px;
  overflow: hidden;
}
 
.timeline-track__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;         
  background-color: var(--color-fireflygold);
  border-radius: 999px;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.35s ease;
}
.timeline-node {
  position: relative;      
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--color-shadowabyss-light);
  background: var(--color-shadowabyss);
  transition: border-color 0.35s ease,
              background    0.35s ease,
              box-shadow    0.35s ease;
  /* vertically centre each node on the matching card header */
  margin-top: 1.6rem;    /* aligns with the week/phase text row */
  margin-bottom: auto;
}

.timeline-node[data-phase="2"] {
  margin-top: 16rem;
}

.timeline-node[data-phase="3"] {
  margin-top: 15rem;
}

.timeline-node[data-phase="4"] {
  margin-top: 15rem;
}

.timeline-node.reached {
  background: var(--color-shadowabyss-dark);
}
 
/* The travelling firefly */
.timeline-firefly {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -130%);
  width: 2rem;
  height: 2rem;
  top: 0;                 
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
  /* subtle glow */
  filter: drop-shadow(0 0 6px currentColor);
}
 
/* Phase card list */
.timeline-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  flex: 1;
  min-width: 0;
}
 
.timeline-list li {
  border-top: 3px solid var(--color-shadowabyss-light);
  border-radius: 0.75rem;
  background-color: var(--color-shadowabyss-dark);
  padding: var(--gap-md);
  transition: border-color 0.35s ease,
              box-shadow   0.45s ease;
}
 
.timeline-list li article header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--gap-xs);
}
 
.timeline-list li article header > p:first-child {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-list li[data-phase="1"] header > p {
  color: var(--color-fireflygold);
}

.timeline-list li[data-phase="2"] header > p {
  color: var(--color-lumentide);
}

.timeline-list li[data-phase="3"] header > p {
  color: var(--color-veilviolet);
}

.timeline-list li[data-phase="4"] header > p {
  color: var(--color-vitalcharge);
}

.timeline-list li article header > p:last-of-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
 
.timeline-list li article header h3 {
  width: 100%;
  margin-top: 0.2rem;
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  grid-column: 1/3;
}
 
.timeline-list li article p:last-child {
  margin-top: var(--gap-xs);
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.timeline-list .horizontal-div {
  width: 100%;
  height: 1px;
  background-color: var(--color-shadowabyss-light);
  margin: 10px 0;
  left: 0;
  right: 0;
}

.timeline-node[data-phase="1"] { --node-color: #F6B832; }
.timeline-node[data-phase="2"] { --node-color: #7779F1; }
.timeline-node[data-phase="3"] { --node-color: #3FACB9; }
.timeline-node[data-phase="4"] { --node-color: #C3DD00; }

/* ============================================================
   CASE STUDY — PERSONA
   ============================================================ */
.marketing { background-color: var(--color-shadowabyss-dark); }

#content > section.persona-section {
  padding: 0;
  overflow-x: visible;
  background-color: var(--color-shadowabyss-dark);
}

.persona-section {
  padding: var(--gap-xl) var(--margin);
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.persona-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  min-height: 20rem;
  margin-top: 50px;
}

.persona-layout > article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding: var(--gap-lg);
  background-color: var(--color-shadowabyss);
  border: 2px solid var(--color-shadowabyss-light);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.persona-layout > article:first-child {
  border-radius: 1rem 0 0 1rem;
}

.persona-layout > article:nth-child(2) {
  border-radius: 0;
}

.persona-layout > article img {
  width: 4rem;
  height: auto;
}

.persona-layout > article h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.persona-layout > article > p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

.persona-layout > article blockquote p {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

#jacob-card:hover,
#jacob-card.active {
  border-color: var(--color-fireflygold);
  box-shadow: inset 0 100px 50px 0 rgba(246,184,50,0.05), inset 0 0 40px rgba(246,184,50,0.05);
}

#jacob-card.active > p { color: var(--color-fireflygold); }

#sarah-card:hover,
#sarah-card.active {
  border-color: var(--color-palefrost);
  box-shadow: inset 0 100px 50px 0 rgba(142,224,237,0.05), inset 0 0 40px rgba(142,224,237,0.05);
}

#sarah-card.active > p { color: var(--color-palefrost); }

.persona-detail {
  min-width: 0;
  position: relative;
}

.persona-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 1rem 1rem 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.persona-detail img.active {
  opacity: 1;
  position: relative;
}

@media (max-width: 47.9rem) {
  .persona-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .persona-layout > article:first-child {
    border-radius: 1rem 0 0 0;
  }

  .persona-layout > article:nth-child(2) {
    border-radius: 0 1rem 0 0;
  }

  .persona-detail { grid-column: 1 / -1; }

  .persona-detail img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0 0 1rem 1rem;
  }
}

/* ============================================================
   CASE STUDY — MARKETING
   ============================================================ */
.study-carousel {
  position: relative;
  padding: var(--gap-md) 0;
}

.study-carousel .glide__track {
  overflow: visible;
}

.study-carousel ul { padding: 0; }
.study-carousel h2 { margin-bottom: var(--gap-md); }

.study-carousel .glide__slides {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: visible;
}

.study-carousel .glide__slide {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
  transform: scale(0.9);
  z-index: 1;
  filter: blur(1px);
}

.study-carousel .glide__slide--active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  filter: blur(0);
}

.study-carousel .glide__slide img {
  border-radius: 1rem;
}

.study__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 12px;
}

.study__bullets {
  -webkit-touch-callout: none;
  user-select: none;
  display: flex;
  justify-self: start;
  gap: 6px;
  margin-top: 12px;
}

.study__bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.study__bullet.glide__bullet--active {
  background-color: var(--color-fireflygold);
  width: 24px;
}

.study__counter {
  justify-self: center;
  font-family: "Gantari", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.study__counter .current {
  color: var(--color-fireflygold);
  font-weight: 600;
}

.study__arrows {
  display: flex;
  justify-self: end;
  gap: 12px;
}

.study__arrow,
.glide__arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.glide__arrow img {
  width: 20px;
  height: 20px;
  display: block;
}

.glide__arrow:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================================
   CASE STUDY — SOCIAL MEDIA
   ============================================================ */
.social-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xxl);
  align-items: stretch;
  margin-top: var(--gap-xl);
}

.social-platforms {
  border: 1.5px solid var(--color-fireflygold);
  border-radius: 1rem;
  padding: var(--gap-lg);
  background-color: var(--color-shadowabyss);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 0 60px rgba(246, 184, 50, 0.075);
  list-style: none;
}

.social-platforms > li {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
  border-bottom: 1px solid var(--color-shadowabyss-light);
  flex: 1;
}

.social-platforms > li > div {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.social-platforms > li:first-child { padding-top: 0; }
.social-platforms > li:last-child { border-bottom: none; padding-bottom: 0; }

.social-platforms h4 {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--color-fireflygold);
  font-weight: 700;
  margin-bottom: var(--gap-xs);
}

.social-platforms h4 img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.social-platforms p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-left: 0;
}

.social-kpi {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  height: 100%;
  box-sizing: border-box;
}

.social-kpi .kpi-grid {
  flex: 1;
  align-content: stretch;
}

.social-kpi .kpi-grid li {
  height: 100%;
  box-sizing: border-box;
}

.social-kpi h3 { color: var(--color-fireflygold); }

.kpi-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.kpi-grid li {
  background-color: var(--color-shadowabyss);
  border-radius: 1rem;
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-xs);
}

.kpi-grid li img {
  width: 2.5rem;
  height: 2.5rem;
}

.kpi-grid li p:first-of-type {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.kpi-grid li p:last-of-type {
  font-size: 1rem;
  color: var(--color-text-light);
}

.kpi-grid li:nth-child(1) { border: 1.5px solid var(--color-fireflygold); box-shadow: inset 0 0 60px rgba(246, 184, 50, 0.075); }
.kpi-grid li:nth-child(2) { border: 1.5px solid var(--color-veilviolet); box-shadow: inset 0 0 60px rgba(119, 121, 241, 0.075); }
.kpi-grid li:nth-child(3) { border: 1.5px solid var(--color-lumentide); box-shadow: inset 0 0 60px rgba(63, 172, 185, 0.075); }
.kpi-grid li:nth-child(4) { border: 1.5px solid var(--color-vitalcharge); box-shadow: inset 0 0 60px rgba(195, 221, 0, 0.075); }

@media (max-width: 30rem) {
  .kpi-grid li {
    padding: var(--gap-sm);
    gap: var(--gap-xs);
  }

  .kpi-grid li img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .kpi-grid li p:first-of-type {
    font-size: 1.25rem;
  }

  .kpi-grid li p:last-of-type {
    font-size: 0.875rem;
  }
}

/* ============================================================
   CASE STUDY — SOCIAL VIDEO GRID
   ============================================================ */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  align-items: center;
  margin-top: var(--gap-lg);
  margin-bottom: 50px;
}

.video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
}

.video-grid video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.video-overlay.hidden { opacity: 0; }

.video-play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  margin: auto;
  margin-right: 18px;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.video-play-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
  margin-left: 3px;
}

@media (min-width: 48rem) {
  .video-play-btn img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    margin: auto;
    margin-right: 20px;
  }
}

/* ============================================================
   CASE STUDY — COLOR PALETTES
   ============================================================ */
.color-primary {
  list-style: none;
  padding-left: 0;
  display: flex;
  border-radius: 1rem;
  overflow: hidden;
  height: 15rem;
  border: 2px solid var(--color-shadowabyss-light);
}

.primary h3 {
  color: var(--color-fireflygold);
  margin-bottom: var(--gap-sm);
  margin-top: var(--gap-xl);
}

.color-primary li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gap-sm);
  min-width: 0;
}


.color-primary li:nth-child(1) { background-color: #161424; }
.color-primary li:nth-child(2) { background-color: #276938; }
.color-primary li:nth-child(3) { background-color: #3FACB9; }
.color-primary li:nth-child(4) { background-color: #7779F1; }
.color-primary li:nth-child(5) { background-color: #F6B832; }

.color-secondary,
.color-tertiary {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: var(--gap-sm);
  width: 100%;
}

.color-secondary li,
.color-tertiary li {
  flex: 1;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-xs);
  text-align: center;
}

.color-secondary li p,
.color-tertiary li p {
  font-size: 1rem;
  margin: 0;

}

.color-secondary li:nth-child(1) { background-color: #69392B; }
.color-secondary li:nth-child(2) { background-color: #67A365; }
.color-secondary li:nth-child(3) { background-color: #2D5D69; }
.color-secondary li:nth-child(4) { background-color: #C5B898; }

.color-tertiary li:nth-child(1) { background-color: #B2F1FB; }
.color-tertiary li:nth-child(2) { background-color: #CE2513; }
.color-tertiary li:nth-child(3) { background-color: #C3DD00; }

.palette-layout {
  margin-top: 50px;
}

.palette-layout > section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  flex: 1;
}

.palette-layout > section h3 { color: var(--color-fireflygold); }

/* Primary */
.color-primary li:nth-child(1) h4 { color: var(--color-text); }
.color-primary li:nth-child(1) p  { color: var(--color-text-light); }

.color-primary li:nth-child(2) h4 { color: #D7EFDC;  }
.color-primary li:nth-child(2) p  { color: #A3E4B4;}

.color-primary li:nth-child(3) h4 { color: #153539; }
.color-primary li:nth-child(3) p  { color: #003C42; }

.color-primary li:nth-child(4) h4 { color: #111140; }
.color-primary li:nth-child(4) p  { color: #161655; }

.color-primary li:nth-child(5) h4 { color: #513A07;}
.color-primary li:nth-child(5) p  { color: #6B4900; }

/* Secondary */
.color-secondary li:nth-child(1) p { color: #CDAEA5; }
.color-secondary li:nth-child(2) p { color: #0F300D; }
.color-secondary li:nth-child(3) p { color: #B9D3DA }
.color-secondary li:nth-child(4) p { color: #504429 }

/* Tertiary */
.color-tertiary li:nth-child(1) p { color: #1E626B }
.color-tertiary li:nth-child(2) p { color: #1E0402; }
.color-tertiary li:nth-child(3) p { color: #515C00; }

@media (max-width: 47.9rem) {
  .color-primary {
    margin-left: calc(-1 * var(--margin));
    margin-right: calc(-1 * var(--margin));
    border-radius: 0;
    width: calc(100% + var(--margin) * 2);
    padding: 0;
  }

  .color-secondary,
  .color-tertiary {
    flex-wrap: wrap;
  }

  .color-secondary li,
  .color-tertiary li {
    flex: none;
    width: 6rem;
    height: 4rem;
  }
}

@media (max-width: 30rem) {
   .color-primary li {
    padding: var(--gap-xs);
  }

  .color-primary li h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .color-primary li p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .color-tertiary li p
  .color-secondary li p {
    font-size: 0.875rem;
  }
}

/* ============================================================
   CASE STUDY — TYPOGRAPHY
   ============================================================ */
.typography-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xxl);
  margin-top: 50px;
}

.typography-layout > section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.typography-layout > section h3 {
  color: var(--color-fireflygold);
}

.typography-layout > section > p {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.typography-layout > section:first-child > p { font-family: "Zain", serif; }
.typography-layout > section:last-child { flex: 1; gap: 0; }

.typography-layout > section:last-child > p {
  font-family: "Gantari", sans-serif;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 34px;
}

.typography-text {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-shadowabyss-light);
}

.typography-layout > section:last-child .typography-text {
  flex: 1;
  justify-content: space-between;
}

.typography-text > div {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-sm) 0;
  border-bottom: 1px solid var(--color-shadowabyss-light);
}

.typography-text dt {
  font-size: 0.875rem;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.typography-text dd {
  margin-left: 0;
  color: var(--color-text);
  text-align: right;
}

.typography-layout > section:first-child .typography-text dd { font-family: "Zain", serif; }
.typography-layout > section:first-child .typography-text > div:nth-child(1) dd { font-size: 2.5rem; font-weight: 800; }
.typography-layout > section:first-child .typography-text > div:nth-child(2) dd { font-size: 2rem; font-weight: 700; }
.typography-layout > section:first-child .typography-text > div:nth-child(3) dd { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.05em; }
.typography-layout > section:first-child .typography-text > div:nth-child(4) dd { font-size: 1.125rem; font-weight: 400; letter-spacing: 0.05em; }

.typography-layout > section:last-child .typography-text dd { font-family: "Gantari", sans-serif; }
.typography-layout > section:last-child .typography-text > div:nth-child(1) dd { font-size: 1.25rem; font-weight: 700; }
.typography-layout > section:last-child .typography-text > div:nth-child(2) dd { font-size: 1.125rem; font-weight: 400; }
.typography-layout > section:last-child .typography-text > div:nth-child(3) dd { font-size: 1rem; font-weight: 400; }
.typography-layout > section:last-child .typography-text > div:nth-child(4) dd { font-size: 0.875rem; font-weight: 300; color: var(--color-text-light); }

/* ============================================================
   CASE STUDY — BRANDING / LOGO
   ============================================================ */
.logo-figure,
.logo-alt figure,
.logo-icons figure {
  border: 1.5px solid var(--color-fireflygold);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo-figure figcaption,
.logo-alt figcaption,
.logo-icons figcaption { display: flex; justify-content: space-between; }

.logo-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.logo-layout > figure {
  border: 1.5px solid var(--color-fireflygold);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: var(--gap-lg);
}

.logo-layout > figure img {
  width: 100%;
  object-fit: contain;
  background-color: var(--color-shadowabyss);
  padding: var(--gap-md);
  padding-left: 0;
  display: block;
}

.logo-alt figure:first-child img {
  background-color: #ffffff;
  padding-top: var(--gap-md);
  padding-bottom: var(--gap-md);
}

.logo-alt figure:last-child img {
  background-color: #000000;
  padding-top: var(--gap-md);
  padding-bottom: var(--gap-md);
}

.logo-layout figure figcaption {
  display: flex;
  justify-content: space-between;
  padding: var(--gap-sm) var(--gap-md);
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-shadowabyss-light);
}

.logo-alt figure:first-child figcaption {
  background-color: #ffffff;
  color: #333333;
  border-top: 2px solid #dddddd;
}

.logo-alt figure:last-child figcaption {
  background-color: #000000;
  color: #aaaaaa;
  border-top: 2px solid #222222;
}

.logo-alt {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.logo-icons { gap: var(--gap-md); }

.logo-icons figure {
  display: flex;
  flex-direction: column;
  background-color: var(--color-shadowabyss);
}

.logo-icons figure img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  margin: var(--gap-lg) auto;
  display: block;
}

.logo-icons figure img.logo-animated {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  margin: auto;
  display: block;
  max-height: calc(100% - var(--gap-lg) * 2);
}

.logo-icons figure figcaption {
  display: flex;
  justify-content: space-between;
  padding: var(--gap-sm) var(--gap-md);
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-shadowabyss-light);
}

/* ============================================================
   CASE STUDY — ICONOGRAPHY
   ============================================================ */
.iconography {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--gap-xxl);
  gap: var(--gap-lg) 0;
  margin-bottom: 50px;
}

.iconography h3 {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-fireflygold);
  margin-bottom: var(--gap-lg);
}

.iconography figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md);
  border: none;
}

.iconography figure:nth-of-type(odd) { border-right: 1.5px solid var(--color-shadowabyss-light); }

.iconography figure img {
  width: 5rem;
  height: 5rem;
}

.iconography figcaption {
  font-size: 1rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ============================================================
   CASE STUDY — CONCEPT ART
   ============================================================ */
.concept-section { background-color: var(--color-shadowabyss-dark); }

#content > section.concept-section { padding-bottom: 100px; }
.concept-section > section {
  display: flex;
  flex-direction: column;
}

.concept-carousel {
  overflow-x: hidden;
  padding: var(--gap-md) 0;
}

.concept-carousel ul { padding: 0; }
.concept-carousel h2 { margin-bottom: var(--gap-md); }

.concept-carousel .glide__slides {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  border-radius: 1rem;
}

.concept-carousel__bullets {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.concept-carousel__bullets .glide__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

.concept-grid {
  display: none;
  margin-top: -25px;
}

.concept-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.concept-caption {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: var(--gap-md);
}

/* ============================================================
   CASE STUDY — SCOUT PIPELINE
   ============================================================ */
.scout-stages {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}

.scout-stages li {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.scout-stages li > p {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-fireflygold);
  letter-spacing: 0.05em;
}

.scout-stages li > p::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2.5px solid var(--color-fireflygold);
  flex-shrink: 0;
}

.scout-stages figure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.scout-stages figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.scout-stages figcaption { text-align: center; }

.scout-stages figcaption strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap-xs);
}

.scout-stages figcaption p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ============================================================
   CASE STUDY — FIREFLIES
   ============================================================ */
.fireflies-layout {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--gap-xxl);
  margin-top: var(--gap-lg);
}

.fireflies-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.fireflies-grid > .fireflies-row:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  padding: 0 var(--gap-xs);
}

.fireflies-grid > .fireflies-row:first-child p {
  font-size: 1;
  color: var(--color-text-light);
  text-align: center;
}

.fireflies-grid > .fireflies-row:first-child p:first-child {
  text-align: center;
  padding-right: 25px;
}

.fireflies-grid > .fireflies-row:first-child p:last-child {
  text-align: center;
  padding-left: 25px;
}

.fireflies-grid figure.fireflies-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm) var(--gap-xxl);
  align-items: start;
  position: relative;
}

.fireflies-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background-color: var(--color-shadowabyss);
}

.fireflies-grid figure:nth-of-type(1) img:first-child { 
  border-top: 3px solid var(--color-fireflygold); 
  background-color: var(--color-shadowabyss-dark);
}
.fireflies-grid figure:nth-of-type(2) img:first-child { 
  border-top: 3px solid var(--color-veilviolet); 
  background-color: var(--color-shadowabyss-dark);
}
.fireflies-grid figure:nth-of-type(3) img:first-child { 
  border-top: 3px solid var(--color-lumentide); 
  background-color: var(--color-shadowabyss-dark);
}

@media (max-width: 35rem) {
  .fireflies-grid > .fireflies-row:first-child p:first-child {
    padding-left: 0;
    text-align: center;
  }

  .fireflies-grid > .fireflies-row:first-child p:last-child {
    padding-right: 0;
    text-align: center;
  }

  .fireflies-grid figure.fireflies-row {
    gap: var(--gap-sm);
  }
}

.fireflies-abilities {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.fireflies-abilities ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.fireflies-abilities li {
  background-color: var(--color-shadowabyss-dark);
  border-radius: 0.75rem;
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.fireflies-abilities li:nth-child(1) { border: 1.5px solid var(--color-fireflygold); }
.fireflies-abilities li:nth-child(2) { border: 1.5px solid var(--color-veilviolet); }
.fireflies-abilities li:nth-child(3) { border: 1.5px solid var(--color-lumentide); }

.fireflies-abilities li h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.fireflies-abilities li p {
  color: var(--color-text-light);
  margin: 0;
}

.fireflies-abilities li:nth-child(2) p,
.fireflies-abilities li:nth-child(3) p { font-style: italic; }

.fireflies-ingame { margin-top: var(--gap-xxl); }
.fireflies-ingame h3 { color: var(--color-fireflygold); }

.fireflies-ingame figure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.fireflies-ingame figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.fireflies-ingame figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.fireflies-ingame article {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* ============================================================
   CASE STUDY — ENEMY CARDS
   ============================================================ */
.enemy-cards {
  margin: var(--gap-lg) 0;
  gap: var(--gap-lg);
}

.enemy-cards article {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1.5px solid var(--color-shadowabyss-light);
}

.enemy-cards article:nth-child(1) { border-color: var(--color-fireflygold); }
.enemy-cards article:nth-child(2) { border-color: var(--color-veilviolet); }

.enemy-cards article > img,
.enemy-img {
  width: 100%;
  height: 15rem;
  background-color: var(--color-shadowabyss-dark);
  overflow: hidden;
  flex-shrink: 0;
}

.enemy-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.enemy-cards article:nth-child(2) .enemy-img img { transform: scale(1.4); }

.enemy-cards article header,
.enemy-cards article ul {
  background-color: var(--color-shadowabyss);
  padding: var(--gap-md) var(--gap-lg);
  list-style-type: disc;
}

.enemy-cards article header {
  display: flex;
  align-items: baseline;
  gap: var(--gap-sm);
  padding-bottom: 0;
}

.enemy-cards article header h4 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.enemy-cards article header p {
  color: var(--color-text-light);
  margin: 0;
}

.enemy-cards article ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding-top: var(--gap-md);
  padding-left: var(--gap-xl);
}

.enemy-cards article ul li {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.enemy-cards article:nth-child(1) ul li::marker { color: var(--color-fireflygold); }
.enemy-cards article:nth-child(2) ul li::marker { color: var(--color-veilviolet); }

/* ============================================================
   CASE STUDY — ENEMY BEHAVIOR
   ============================================================ */
.enemy-behavior { gap: var(--gap-xl); }

.enemy-behavior article {
  display: flex;
  flex-direction: column;
  margin-top: var(--gap-xl);
  gap: var(--gap-md);
}

.enemy-behavior article h4 { color: var(--color-fireflygold); }

.enemy-behavior dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.enemy-behavior dl dt {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  border: 1.5px solid;
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: var(--gap-md) var(--gap-lg) var(--gap-xs);
  background-color: var(--color-shadowabyss-dark);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.enemy-behavior dl dt::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  flex-shrink: 0;
}

.enemy-behavior dl dd {
  border: 1.5px solid;
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: var(--gap-xs) var(--gap-lg) var(--gap-md) calc(var(--gap-lg) + 1rem + var(--gap-md));
  background-color: var(--color-shadowabyss-dark);
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0 0 var(--gap-sm) 0;
}

.enemy-behavior dl dt:nth-of-type(1) { border-color: var(--color-vitalcharge); color: var(--color-vitalcharge); }
.enemy-behavior dl dd:nth-of-type(1) { border-color: var(--color-vitalcharge); }

.enemy-behavior dl dt:nth-of-type(2) { border-color: var(--color-fireflygold); color: var(--color-fireflygold); }
.enemy-behavior dl dd:nth-of-type(2) { border-color: var(--color-fireflygold); }

.enemy-behavior dl dt:nth-of-type(3) { border-color: var(--color-emberflare); color: var(--color-emberflare); }
.enemy-behavior dl dd:nth-of-type(3) { border-color: var(--color-emberflare); }

.enemy-behavior article:nth-child(2) { flex-direction: column-reverse; }

.enemy-behavior figure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.enemy-behavior figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  background-color: var(--color-shadowabyss-dark);
}

.enemy-behavior figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
}
/* ============================================================
   CASE STUDY — PUZZLES
   ============================================================ */
.puzzles-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.puzzles-text {
  display: flex;
  flex-direction: column;
}

.puzzles-text header h3 { color: var(--color-text); }

.puzzles-text > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.puzzles-text ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.puzzles-text ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-lg);
  border-radius: 0.75rem;
  background-color: var(--color-shadowabyss-dark);
  border: 1.5px solid;
}

.puzzles-text ul li > img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.puzzles-text ul li > div {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.puzzles-text ul li:nth-child(1) { border-color: var(--color-fireflygold); }
.puzzles-text ul li:nth-child(2) { border-color: var(--color-deepfern); }
.puzzles-text ul li:nth-child(3) { border-color: var(--color-veilviolet); }

.puzzles-text ul li h4 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

.puzzles-text ul li p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0;
}

.puzzles-images {
  margin-top: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.puzzles-images figure {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.puzzles-images figure img {
  width: 100%;
  border-radius: 0.75rem;
  background-color: var(--color-shadowabyss-dark);
}

.puzzles-images figure:first-child img {
  filter: brightness(0.8);
}

.puzzles-images figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ============================================================
   CASE STUDY — PROJECT OUTCOMES
   ============================================================ */
#content > section.outcomes-section {
  padding: 0;
  overflow: hidden;
}

.outcomes-section {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  margin-top: -75px;
}

.outcomes-section h2 {
  padding: var(--gap-xl) var(--margin) 0;
  margin-bottom: var(--gap-md);
  margin-top: -25px;
}

.outcomes-section > img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  filter: brightness(0.5);
}

.outcomes-layout {
  padding: 0 var(--margin) var(--gap-xl);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.outcomes-layout article h3 {
  color: var(--color-fireflygold);
  margin-bottom: var(--gap-sm);
}

.outcomes-layout article p {
  color: var(--color-text-light);
}

/* ============================================================
   CASE STUDY — CHALLENGES
   ============================================================ */
.challenges-section {
  background-color: var(--color-shadowabyss-dark);
  padding: var(--gap-xl);
  overflow: hidden;
}

.challenges-section > h2 {
  text-align: center;
  margin-bottom: var(--gap-xxl);
  width: 100%;
}

.challenges-section article h3 {
  text-align: center;
  font-family: "Zain", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.challenges {
  display: flex;
  flex-direction: column;
  gap: 125px;
  padding-left: 0;
  list-style: none;
  margin-top: 100px;
}

.challenges article {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: var(--gap-md);
  padding: var(--gap-xxl) var(--gap-lg) var(--gap-lg);
  background-color: var(--color-shadowabyss);
  border-radius: 1rem;
  box-sizing: border-box;
}

.challenges article > img:first-child {
  position: absolute;
  top: -4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 5rem;
  padding: 1rem;
  border-radius: 50%;
  background-color: var(--color-shadowabyss-dark);
}

.challenges article figure { width: 100%; }

.challenges article figure img {
  width: 70%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  margin: 0 auto;
}

.challenges article figcaption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--gap-xs);
}

.challenges article:nth-child(1) {
  border: 1.75px solid var(--color-fireflygold);
  box-shadow: inset 0 500px 200px -20px rgba(246,184,50,0.05);
}

.challenges article:nth-child(1) > img:first-child { border: 2px solid var(--color-fireflygold); }

.challenges article:nth-child(2) {
  border: 2px solid rgba(119,121,241,0.5);
  box-shadow: inset 0 500px 200px -20px rgba(119,121,241,0.05);
}

.challenges article:nth-child(2) > img:first-child { border: 2px solid rgba(119,121,241,0.5); }

.challenges article:nth-child(3) {
  border: 2px solid rgba(63,172,185,0.5);
  box-shadow: inset 0 500px 200px -20px rgba(63,172,185,0.05);
}

.challenges article:nth-child(3) > img:first-child { border: 2px solid rgba(63,172,185,0.5); }

/* ============================================================
   MEET THE MINDS — HERO
   ============================================================ */
#content > section.team-photo-section {
  padding: 0;
}

.team-photo {
  position: relative;
}

.team-photo img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.7);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.team-photo-section {
  position: relative;
}

@media(max-width: 28rem) {
  .team-photo-section h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.meet-the-minds {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  z-index: 2;
}

/* ============================================================
   MEET THE MINDS — TEAM NAV
   ============================================================ */
#content > section.margin-off {
  padding-left: 0;
  padding-right: 0;
  margin-top: -1.5rem;
}

.team-nav {
  list-style: none;
  padding-left: var(--margin);
  padding-right: var(--margin);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-sm);
}

.team-panel { display: none; }
.team-panel.active { display: block; }
.minds-carousel.team-panel { display: none; }
.minds-carousel.team-panel.active { display: block; }

.team-nav__btn {
  font-family: "Gantari", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  background-color: transparent;
  border: 1.5px solid var(--color-fireflygold);
  border-radius: 0.75rem;
  padding: 0.375rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.team-nav__btn:hover {
  background-color: rgba(246,184,50,0.08);
  color: var(--color-text);
}

.team-nav__btn.active { background-color: rgba(246,184,50,0.2); }
.team-nav__btn.active:hover { background-color: rgba(246,184,50,0.2); }

/* ============================================================
   MEET THE MINDS — TEAM GRID
   ============================================================ */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.minds-grid { display: none; }
.minds-grid.team-panel.active { display: none; }

.minds-carousel {
  position: relative;
  overflow-x: hidden;
  padding: var(--gap-md) 0;
  margin-bottom: 100px;
}

.minds-carousel ul { padding: 0; }
.minds-carousel h2 { 
  margin-bottom: var(--gap-md);
  padding-left: var(--margin);
  padding-right: var(--margin);
  margin-top: 0;
}

.minds-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.minds-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14, 12, 24, 1)   0%,
    rgba(14, 12, 24, 0.3) 40%,
    rgba(14, 12, 24, 0.1) 100%
  );
}

.minds-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.minds-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  z-index: 2;
}

.minds-card__info h3 {
  font-size: 1.125rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.minds-card__info p {
  font-size: 1rem;
  line-height: 1.25rem;
  margin: 0;
}

.minds-card__icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.minds-card__icons img {
  width: 2rem;
  height: 2rem;
}

.minds__controls {
  position: relative;
  padding-left: var(--margin);
  padding-right: var(--margin);
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.minds__controls .glide__arrows {
  margin-top: 12px;
}

.glide__bullets {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.glide__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
 }

.glide__bullet--active { background-color: var(--color-fireflygold); }


/* ============================================================
   MEET THE MINDS — ABOUT SECTIONS
   ============================================================ */
#content > section.noctua-layout,
#content > section.cmdc-layout {
  padding: 0;
}

.noctua-layout,
.cmdc-layout {
  position: relative;
  min-height: 500px;
  background-color: var(--color-shadowabyss-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Image sits on the RIGHT half only for noctua */
.noctua-layout img {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  object-position: top;
}

/* Image sits on the LEFT half only for cmdc */
.cmdc-layout img {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.noctua-layout::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(14, 12, 24, 1)    0%,
    rgba(14, 12, 24, 1)    50%,
    rgba(14, 12, 24, 0.7)  65%,
    rgba(14, 12, 24, 0)    85%
  );
}

.cmdc-layout::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(14, 12, 24, 1)    0%,
    rgba(14, 12, 24, 1)    50%,
    rgba(14, 12, 24, 0.7)  65%,
    rgba(14, 12, 24, 0)    85%
  );
}

.noctua-layout article {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap-xxl) var(--margin);
  width: 50%;
}

.cmdc-layout article {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap-xxl) var(--margin);
  width: 50%;
  margin-left: auto;
}

.noctua-layout article .sub-header,
.cmdc-layout article .sub-header {
  margin-top: calc(-1 * var(--gap-xs));
  padding: 0 0 var(--gap-sm) 0;
}

.noctua-layout article p,
.cmdc-layout article p { padding: 0 0 var(--gap-sm) 0; }

.noctua-layout article a,
.cmdc-layout article a {
  align-self: flex-start;
  margin-top: var(--gap-xs);
}

@media (max-width: 47.9rem) {
  .noctua-layout,
  .cmdc-layout {
    align-items: flex-end;
    min-height: 600px;
  }

  .noctua-layout article h2,
  .cmdc-layout article h2 {
    margin-bottom: 20px;
  }

  .noctua-layout img,
  .cmdc-layout img {
    width: 100%;
    height: 300px;
    top: 0;
    left: 0;
    right: auto;
  }

  .noctua-layout article,
  .cmdc-layout article {
    width: 100%;
    margin-left: 0;
    padding: var(--gap-xl) var(--margin);
    margin-top: 200px;
  }

  .noctua-layout::after,
  .cmdc-layout::after {
    background: linear-gradient(
      to bottom,
      rgba(14, 12, 24, 0)   0%,
      rgba(14, 12, 24, 0.8) 40%,
      rgba(14, 12, 24, 1)   65%
    );
  }
}


/* ============================================================
   MEET THE MINDS — SPECIAL THANKS
   ============================================================ */

.thanks-us article {
  display: flex;
  flex-direction: column;
}

.thanks-us h2 {
  padding: 0 0 var(--gap-sm) 0;
}

.thanks-us p { 
  margin-top: -35px; 
}

/* ============================================================
   TABLET 768px+
   ============================================================ */
@media (min-width: 48rem) {
  :root { --margin: 3rem; }

  .hero > div { justify-content: flex-start; }

  body > nav ul { gap: var(--gap-xxl); }

  .page1-section1 h1 { font-size: 3rem; };

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

  .gallery-videos { grid-template-columns: 1fr 1fr; }
  .gallery-images { grid-template-columns: repeat(3, 1fr); }

  .social-layout,
  .timeline-overview,
  .fireflies-ingame,
  .enemy-cards,
  .enemy-behavior,
  .puzzles-layout,
  .outcomes-layout,
  .logo-alt,
  .logo-icons {
    flex-direction: row;
    align-items: flex-start;
  }

  .marketing-text,
  .marketing-carousel,
  .social-platforms,
  .social-kpi,
  .timeline-overview article,
  .timeline-overview img,
  .cs-objective-outcome article,
  .fireflies-grid,
  .fireflies-abilities,
  .fireflies-ingame article,
  .fireflies-ingame figure,
  .enemy-cards article,
  .enemy-behavior article,
  .puzzles-text,
  .puzzles-images,
  .outcomes-layout article,
  .logo-alt figure,
  .logo-icons figure,
  .scout-stages li { flex: 1; }

  .cs-intro {
    margin-top: -15rem;
  }

  .cs-meta dl {
    flex-direction: row;
    align-items: center;
    gap: var(--gap-md);
  }

  .cs-meta .vertical-div {
    display: block;
    background-color: var(--color-shadowabyss-light);
  }

  .cs-meta dl > div:not(:last-child)::after {
    background-color: var(--color-shadowabyss-light);
  }

  .cs-objective-outcome {
    flex-direction: row;
    align-items: flex-start;
  }

  .cs-objective-outcome .vertical-div {
    display: block;
    width: 1px;
    height: auto;
    align-self: stretch;
    background-color: var(--color-shadowabyss-light);
  }

  .challenges-section > h2 {
    text-align: right;
  }

  .timeline-overview {
    flex-direction: row;
    align-items: center;
    gap: 100px;
    margin-top: -50px;
  }

  .timeline-overview img {
    width: 40%;
    max-width: 500px;
    margin: 0;
  }

  .timeline-track {
    padding-right: 10rem;
  }

  .timeline-node {
    left: 217%;
  }

  .timeline-node[data-phase="2"] {
    margin-top: 9rem;
  }

  .timeline-node[data-phase="3"] {
    margin-top: 10rem;
  }

  .timeline-node[data-phase="4"] {
    margin-top: 11rem;
  }

  .timeline-list li article header > p:last-of-type {
    justify-self: end;
  }

  .social-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .video-grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--gap-xl);
  }

  .video-grid .video-wrapper {
    max-width: 450px;
    flex: 1;
  }

  .concept-section > section { gap: var(--gap-lg); }

  .marketing-layout {
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .marketing-text { width: 100%; }

  .study-carousel { 
    align-self: normal;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
  }

  .study-carousel.hidden { display: none; }

  .puzzles-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-xxl);
  }

  .puzzles-text {
    order: 2;
    flex: 1;
  }

  .puzzles-images {
    order: 1;
    flex: 1;
  }

  .palette-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-xxl);
  }

  .color-secondary,
  .color-tertiary { flex: 1; }

  .typography-layout {
    flex-direction: row;
    align-items: stretch;
    gap: var(--gap-xxl);
  }

  .typography-layout > section { flex: 1; }

  .iconography {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  

  .logo-layout > figure img {
    width: 50%
  }

  .iconography figure:nth-of-type(odd) { border-right: none; }

  .iconography figure:nth-of-type(1),
  .iconography figure:nth-of-type(2) { border-bottom: none; }

  .iconography figure:nth-of-type(1),
  .iconography figure:nth-of-type(2),
  .iconography figure:nth-of-type(3) { border-right: 1.5px solid var(--color-shadowabyss-light); }

  .concept-carousel { display: none; }

  .concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }

  .concept-grid figcaption { 
    grid-column: 1 / -1; 
    margin-top: 0;
  }

  .concept-caption { margin-top: -20px; }

  .scout-stages {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    position: relative;
  }

  .scout-stages li {
    flex: 1;
    position: relative;
    padding-top: var(--gap-md);
    padding-right: var(--gap-md);
  }

  .scout-stages li:last-child { padding-right: 0; }

  .scout-stages::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: var(--color-fireflygold);
  }

  .scout-stages li > p {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xs);
    text-align: center;
    margin-bottom: var(--gap-md);
  }

  .scout-stages li:not(:last-child) > p::after {
    content: '›';
    position: absolute;
    top: var(--gap-lg);
    right: 0;
    padding-right: 8px;
    font-size: 2rem;
    color: var(--color-fireflygold);
    line-height: 1;
  }

  .fireflies-layout {
    flex-direction: row;
    align-items: stretch;
    gap: var(--gap-xxl);
  }

  .fireflies-abilities {
    flex: 1;
    justify-content: center;
    margin-top: 0;
  }

  .fireflies-grid { flex: 1; }
  .fireflies-ingame { gap: var(--gap-xxl); }

  .challenges article {
    margin-top: var(--gap-xl);
    width: calc(100% - var(--gap-xxl) * 2);
    margin-left: auto;
    margin-right: auto;
  }

  .outcomes-layout { margin-top: calc(-1 * var(--gap-xxl)); }

  .team-photo {
    display: flex;
    justify-content: center;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
  }

  .team-grid h2 { grid-column: 1 / -1; }

  .minds-carousel.team-panel.active { display: none; }
  .minds-grid.team-panel { display: none; }
  .minds-grid.team-panel.active { 
    display: flex; 
    padding-left: var(--margin);
    padding-right: var(--margin);
  }

  .minds-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-xl); /* increased from --gap-md */
    margin-bottom: 50px;
  }

  .minds-grid h2 { 
    width: 100%;
    grid-column: unset;
    margin-bottom: 0; 
    margin-top: var(--gap-xl);
  }

 .minds-grid .minds-card {
  flex: 0 0 calc(25% - var(--gap-xl) * 3 / 4);
}

  .minds-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }

  .minds-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  .minds-card__info h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
  }

  .minds-card__info p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin: 0;
  }

  .minds-card__icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.375rem;
  }

  .minds-card__icons img {
    width: 1.5rem;
    height: 1.5rem;
  }

  #content > section.thanks-us {
    padding: var(--gap-xl) 0;
    margin-bottom: 7rem;
    overflow: visible;
  }

  .thanks-us {
    position: relative;
    padding-bottom: calc(var(--gap-xxl) + var(--gap-xl));
  }

  .thanks-us img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
  }

  .thanks-us article {
    display: flex;
    flex-direction: column;
    padding: var(--gap-md) var(--margin);
    margin-bottom: -50px;
  }
}

/* ============================================================
   DESKTOP 1200px+
   ============================================================ */
@media (min-width: 75rem) {
  :root { --margin: 5rem; }
  html { font-size: 1.125rem; }
  main { max-width: 1920px; margin: 0 auto; }

  .challenges {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-lg);
  }

  .challenges article {
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .challenges-section {
    padding-bottom: calc(var(--gap-xxl) * 2 + var(--gap-xl) * 3);
    min-height: 1300px;
  }
  
  .challenges {
    overflow: visible;
  }
  .challenges article:nth-child(1) { margin-top: 0; }
  .challenges article:nth-child(2) { margin-top: var(--gap-xxl); }
  .challenges article:nth-child(3) { margin-top: calc(var(--gap-xxl) * 2); }
}