/* Reset + Layout */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  background-color: transparent !important;
}

/* Hero Section */
#hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Logo Overlay */
.logo-overlay {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 2;
}
.logo-overlay img {
  height: 53px;
  width: auto;
}

/* Tagline Animation */
.hero-headline-container {
  position: absolute;
  z-index: 2;
  bottom: 80px;
  left: 80px;
  pointer-events: none;
  color: white;
}
.hero-headline {
  margin: 0;
  overflow: visible;
}
.hero-headline .line {
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 1.05;     /* very tight but still readable */
  height: 1.1em;         /* just enough to contain descenders + animation */
}

.hero-headline .line span {
  display: inline-block;
  will-change: transform;
}
.hero-headline-container h1 {
  font-size: 70px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 65px;
  margin: 0;
}
.bold-900 {
  font-weight: 900;
}

.section-heading {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 56px;
  letter-spacing: -2.7px;
  color: white;
}

/* Mobile: reduce size by ~50% and adjust spacing */
@media (max-width: 768px) {
  .section-heading {
    font-size: 29px;
    line-height: 32px;
    letter-spacing: -1.3px;
    top: 30px;
    left: 20px;
  }
}

.section-subheading {
  position: absolute;
  top: 140px; /* space below heading */
  left: 60px;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: white;
  max-width: 800px;
}

@media (max-width: 768px) {
  .section-subheading {
    top: 80px;
    left: 20px;
    font-size: 16px;
    line-height: 1.4;
    max-width: 90%;
  }
}


#matter-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url("images/iback2.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

#matter-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: transparent !important;
  touch-action: manipulation;
  z-index: 2;
}

canvas {
  background: transparent !important;
}

.black-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px;
}

.black-section .section-heading {
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 56px;
  letter-spacing: -2.7px;
}

.services-scroll-section .section-heading {
  position: sticky;
  top: 60px;
  text-align: center;
  font-size: 58px;
  font-weight: 900;
  z-index: 20;
  margin-bottom: 20px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000; /* black background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

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

.spinner {
  width: 60px;
  height: 60px;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-overlay,
#hero-video {
  opacity: 0;
  transition: opacity 1s ease;
}

.core-values-section {
  background: black !important;
  color: #666;
  padding: 100px 60px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.core-values-section {
  background: black !important;
  color: #666;
  padding: 130px 60px; /* Increased top/bottom padding by ~15% */
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.core-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.core-logo-bg img {
  width: 400px;
  max-width: 80vw;
  opacity: 0.5;
  filter: blur(8px);
  animation: spinSlow 80s linear infinite;
}

@keyframes spinSlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Ensure content stays above background */
.core-values-container,
.vision-container {
  position: relative;
  z-index: 1;
}

.core-values-section .right-text .line {
  color: #555;
  font-weight: 700;
  font-size: 2.5rem;
  transition: color 0.4s ease;
}


.core-values-section .right-text .line.highlight {
  font-weight: 700;
  /* Do NOT set color here */
}


.core-values-container, .vision-container {
  display: flex;
  border-top: 1px solid white;
  padding: 80px 0;
}

.vision-container {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}
.left-label {
  width: 20%;
  font-size: 20px;
  color: #aaa;
}
.right-text {
  width: 80%;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.3;
}
.line {
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.line.highlight {
  opacity: 1;
  color: white;
}

.hero-headline .line span {
  color: white !important;
  text-shadow: 0 0 8px rgba(0,0,0,0.25);
}

.hero-headline-container * {
  mix-blend-mode: normal !important;
  filter: none !important;
  /* DO NOT force opacity or color here */
}

.hero-headline-container {
  color: white;
}

.hero-headline-container,
.hero-headline-container *,
.hero-headline .line span {
  opacity: 1 !important;
}

#hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
  transition: border-radius 0.5s ease;
}

.experience-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: 80px 0;
}

.section-heading-left {
  position: absolute;
  top: 60px;
  text-align: left;
  font-size: 3rem;
  font-weight: 900;
  align: left;
  letter-spacing: -2px;
  line-height: 1.1;
  z-index: 10;
  color: white;
}

.services-scroll-section {
  background: #0e5afa;
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: 5;
}

.services-scroll-container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: max-content;
  gap: 40px; /* This controls the space BETWEEN each card */
  padding: 0 60px; /* Optional, controls space at far left/right edges */
  align-items: center;
}

.panel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.panel h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.service-card {
  background: #2c2c2c;
  color: white;
  width: 60vw;
  height: 46vh;
  border-radius: 40px;
  padding: 40px 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  margin-top: -50px; /* negative margin pulls it upwards */

}

.card-blue    { background-color: #2d2d2d; }
.card-red     { background-color: #f64a4a; }
.card-yellow  { background-color: #fcbf1e; color: #000; }
.card-green   { background-color: #1cb87e; }
.card-purple  { background-color: #9e51e3; }

/* Card Headings */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.card-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.card-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -2px;
}

/* Pill Layout */
.service-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
}

.pill {
  background: white;
  color: black;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1;
  max-width: 100%;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  max-width: 1000px;
}

.services-spacer {
  height: 100vh; /* default fallback */
}

@media (min-width: 768px) {
  .services-spacer {
    height: calc(100vw * 5); /* 5 = number of cards */
  }
}

.our-team-section {
  background: #111;
  color: #fff;
  padding: 100px 40px;
  text-align: center;
}

.team-heading h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.team-heading p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 60px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.team-member {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: #333;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.team-role {
  font-size: 0.95rem;
  color: #aaa;
}



@media (max-width: 768px) {
  /* 🔄 Logo moved further down and right */
  .logo-overlay {
    top: 40px;  /* previously 20px */
    left: 40px; /* previously 20px */
  }
  .logo-overlay img {
    height: 38px;
  }

  /* 🆙 Animated headline: bigger + tighter line spacing */
  .hero-headline-container {
    bottom: 40px;
    left: 20px;
    padding-right: 20px;
  }

  .hero-headline-container h1 {
    font-size: 45px;         /* was 36px */
    line-height: 1.1;        /* tighter spacing */
    letter-spacing: -1px;
  }

  .hero-headline .line {
    line-height: 1.1;        /* tighter line spacing */
    margin-bottom: 2px;      /* reduce gap between lines */
  }

  .hero-headline .line span {
    font-size: 7.5vw;        /* increased from 6vw */
  }

  .experience-section {
    padding: 60px 20px;
  }

  .core-values-section .right-text .line {
    font-size: 1.6rem;
  }
}


.our-team-section {
  padding: 4rem 2rem;
  text-align: center;
}

.team-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.team-heading p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  overflow: visible; /* <- fix is here */
}

.team-member {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.media-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

.profile-image,
.profile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.profile-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.team-member.hovered .profile-video {
  opacity: 1;
}

.team-member.hovered .profile-image {
  opacity: 0;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.team-member.hovered .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-name {
  font-size: 1.3rem;
  font-weight: bold;
}

.team-role {
  font-size: 1rem;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.team-tags {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.team-tags span {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25em 0.75em;
  border-radius: 1rem;
  font-size: 0.8rem;
}

#matter-section {
  cursor: url('images/cursor-play.png') 40 40, auto;
}

.angled-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  perspective: 1000px;
}

.team-card {
  width: 280px;
  height: 400px;
  position: relative;
  z-index: 5; /* Add this line */
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.name-bubble {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
  z-index: 10;
}

.name-bubble-float {
  position: absolute;
  background: white;
  color: black;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  pointer-events: none;
  white-space: nowrap;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transform: translate(-50%, -150%);
  transition: opacity 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.team-card:hover .name-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rotate-left {
  transform: rotate(-6deg);
}
.rotate-right {
  transform: rotate(5deg);
}

.team-card:hover {
  transform: scale(1.02) rotate(0deg);
  z-index: 10;
}

.media-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.profile-image,
.profile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.profile-video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.team-card:hover .profile-video {
  opacity: 1;
}
.team-card:hover .profile-image {
  opacity: 0;
}

.overlay.angled {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100%);
}

.team-card:hover .overlay.angled {
  opacity: 1;
  transform: translateY(0);
}

.team-modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.team-modal .modal-content {
  background: white;
  padding: 2rem;
  max-width: 900px; /* wider for side-by-side layout */
  max-height: 80vh; /* constrain overall modal height */
  width: 90%;
  border-radius: 12px;
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  overflow: hidden;
}

.team-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.team-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.team-modal-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80vh;
}

.team-modal-left video {
  height: 100%;
  width: auto;
  border-radius: 1rem;
  max-height: 80vh;
}

.team-modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.team-modal-right h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.team-modal-right h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.team-modal-right p {
  font-size: 1rem;
  line-height: 1.5;
}

.modal-content-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
  cursor: pointer;
}

.footer-section {
  background: linear-gradient(to bottom, #111111 0%, #000000 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.footer-floating-box {
  background: #E9FE53;
  color: #111;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 60px 80px;
margin-inline: clamp(16px, 4vw, 56px);
width: auto;          /* optional, default */
max-width: none;      /* optional */
box-sizing: border-box;
  position: relative;
  opacity: 0;
  z-index: 1;
  transform: translateY(80px);
  transition: all 0.6s ease-out;
}

.footer-floating-box.reveal {
  opacity: 1;
  transform: translateY(0);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Align all columns vertically */
}

.footer-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.footer-col-center {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
}

.footer-col-left {
  flex: 1 1 30%;
  min-width: 300px;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-col-right {
  flex: 1 1 30%;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 30px;
  margin-left: auto; /* Pushes it toward the right edge */
  max-width: 300px;   /* Optional: control how wide it can grow */
}

.footer-tagline {
  font-size: 52px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  margin: 0 0 40px 0;
  line-height: 1.1;
  text-align: left;
  letter-spacing: -0.8px;
  color: #000;
  opacity: 1 !important;
  transform: none !important;
  position: relative;
  z-index: 2;
}

.footer-tagline.animated-headline.reveal {
  opacity: 1;
  transform: translateY(0);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 160px;
  justify-content: flex-start;
}

.footer-socials a {
  color: #111;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background-color: #000;
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-contact a {
  background: black;
  color: white;
  font-weight: 700;
  font-size: 16px;
  width: 120px;
  height: 120px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  text-align: center;
  gap: 4px;
  z-index: 1;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin: 30px auto 0 auto;
  display: block;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-column p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin-top: 40px;
  font-family: 'DM Sans', sans-serif;
}

.contact-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.circle-text {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: spinCircle 20s linear infinite;
}

.circle-text text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  fill: #000; /* Match your style */
  letter-spacing: 1px;
}

.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: black;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

@keyframes spinCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.12);
  }
  70% {
    transform: scale(1);
  }
}

.contact-circle-bg {
  animation: heartbeat 1.6s infinite;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #E9FE53;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  padding: 10px;
  user-select: none;
}
.modal-close:hover {
  color: #ff0000;
}

a[href^="mailto:"] {
  position: relative;
  color: #000;
  text-decoration: none;
}

a[href^="mailto:"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #000;     /* Black underline */
  transition: width 0.4s ease;
}

a[href^="mailto:"]:hover::after {
  width: 100%;
}


/* --- Our Services New Section --- */
#services-new-section {
  padding: 100px 5vw;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
}

.services-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.services-left {
  flex: 1;
  min-width: 280px;
}

.services-heading {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 40px;
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-tab {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: transparent;
  transition: background 0.3s, color 0.3s;
  color: #000;
}

.service-tab.active {
  background-color: #000;
  color: #fff;
}

.services-right {
  flex: 2;
  min-width: 320px;
  padding-top: 150px;
}

.service-image {
  width: 100%;
  max-width: 400px; /* reduced from 800px */
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}


.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pills .pill {
  background-color: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 25px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.service-pills .pill:hover {
  background-color: #444;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .services-container {
    flex-direction: column;
  }

  .services-left {
    margin-bottom: 40px;
  }
}

.our-services-header {
  text-align: left;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.our-services-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.view-toggle button {
  background: #eee;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.view-toggle button.active {
  background: black;
  color: white;
}

.main-services-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.services-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

.footer-members h4 {
  font-size: 14px;
  margin-bottom: 10px;
  text-align: left;
  letter-spacing: 1px;
}

.footer-member-logos img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.service-heading-text {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* Make sure pills use the full right column width now that the image is gone */
#services-new-section .services-right .service-pills {
  width: 100%;
  max-width: 100%;
}

/* Brand yellow at the very top (fallback hex can be anything; JS below will overwrite with footer's exact bg) */
:root { --brand-yellow: #f7d046; }

/* Make the hero area and preloader match the footer yellow */
#hero-container { background: var(--brand-yellow); }
#preloader { background: var(--brand-yellow); }

/* Ensure rounded corners don't reveal white inside the hero */
#hero-inner { overflow: hidden; }

/* === Our Services === */
:root { --ix-yellow: #EDFD71; }

#services-new-section {
  background: var(--ix-yellow);
  padding: clamp(60px, 8vh, 120px) 5vw;
  font-family: 'DM Sans', sans-serif;
  min-height: 85vh;            /* gives room to center the pills */
}

#services-new-section .services-container {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 60px);
  justify-content: space-between;
  align-items: stretch;         /* left sticks to top; right can center */
  min-height: 85vh;             /* ensures children can stretch */
}

#services-new-section .services-left {
  flex: 1 1 280px;
  min-width: 280px;
}

#services-new-section .our-services-header {
  text-align: left;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  margin-bottom: 30px;
}

#services-new-section .main-services-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

#services-new-section .view-toggle {
  display: flex;
  gap: 10px;
}

#services-new-section .view-toggle button {
  background: #eee;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
#services-new-section .view-toggle button.active {
  background: #000;
  color: #fff;
}

#services-new-section .services-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

#services-new-section .services-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#services-new-section .service-tab {
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  color: #000;
  transition: background 0.25s, color 0.25s;
}
#services-new-section .service-tab.active {
  background: #000;
  color: #fff;
}

/* Right column: CENTER pills vertically */
#services-new-section .services-right {
  flex: 2 1 420px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;      /* vertical centering */
  align-items: stretch;
  /* kill any legacy offsets */
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: static !important;
}

#services-new-section .service-pills {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;                    /* no extra top gap */
}

#services-new-section .service-pills .pill {
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 25px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: background 0.25s ease;
}
#services-new-section .service-pills .pill:hover {
  background: #444;
}

/* Mobile: stack + top align pills */
@media (max-width: 900px) {
  #services-new-section { min-height: unset; }
  #services-new-section .services-container {
    min-height: unset;
    flex-direction: column;
    align-items: flex-start;
  }
  #services-new-section .services-left { margin-bottom: 24px; }
  #services-new-section .services-right { justify-content: flex-start; }
}


#services-new-section .service-pills .pill {
  will-change: transform, filter, opacity;
}

/* Match 'Events We Work On' heading */
#services-new-section .main-services-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 58px;       /* same as .section-heading */
  line-height: 56px;
  letter-spacing: -2.7px;
  margin: 0 0 20px 0;    /* tidy spacing */
  color: #fff;
}

/* Mobile sizing to mirror the hero heading */
@media (max-width: 768px) {
  #services-new-section .main-services-title {
    font-size: 29px;
    line-height: 32px;
    letter-spacing: -1.3px;
  }
}

/* Match 'Events We Work On' heading, but centered for Team */
.our-team-section .team-heading h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 58px;
  line-height: 56px;
  letter-spacing: -2.7px;
  color: #fff;
  text-align: center;
  margin: 0 0 10px 0;
}

/* Optional: tidy the subheading under it */
.our-team-section .team-heading p {
  font-size: 24px;
  line-height: 1.5;
  color: #ccc;
  max-width: 900px;
  margin: 10px auto 60px;
  text-align: center;
}

/* Mobile to mirror the hero heading scale */
@media (max-width: 768px) {
  .our-team-section .team-heading h2 {
    font-size: 29px;
    line-height: 32px;
    letter-spacing: -1.3px;
  }
  .our-team-section .team-heading p {
    font-size: 16px;
    margin: 8px auto 40px;
  }
}

/* Make footer tagline match 'Events We Work On' heading */
.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 58px;
  line-height: 56px;
  letter-spacing: -2.7px;
  color: #000;                 /* stays black on yellow */
  margin: 0 0 40px 0;
}

/* ensure each line is tight like the hero heading */
.footer-tagline .footer-line {
  display: block;
  margin: 0;
  padding: 0;
}

/* Mobile scale to mirror the hero heading */
@media (max-width: 768px) {
  .footer-tagline {
    font-size: 29px;
    line-height: 32px;
    letter-spacing: -1.3px;
  }
}

/* Fixed page-wide gradient, hidden by default */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;                 /* behind all content */
  pointer-events: none;
  background: linear-gradient(180deg, #2959F1 0%, #000 100%);
  opacity: 0;
  transition: opacity .35s ease;
}

/* Turn gradient on once we reach Our Services */
body.tail-gradient-on::before {
  opacity: 1;
}

/* Let the gradient show through these sections */
#services-new-section,
.core-values-section,
.our-team-section,
.footer-section {
  background: transparent !important;
}

/* Make sure section content sits above the gradient layer */
#services-new-section,
.core-values-section,
.our-team-section,
.footer-section {
  position: relative;
  z-index: 1;
}

/* Our Services: make the sub-heading + inactive tabs white on the gradient */
#services-new-section .services-heading {
  color: #fff;
}

/* Left-column list (“Conferences”, “Gala…”, etc.): white by default */
#services-new-section .services-tabs .service-tab {
  color: #fff;
  background: transparent;                          /* keep inactive tabs clear */
  border: 1px solid rgba(255,255,255,0.18);         /* optional: subtle outline */
}

/* Hover state for inactive tabs */
#services-new-section .services-tabs .service-tab:hover {
  background: rgba(255,255,255,0.10);
}

/* Keep the selected tab as black with white text (current look) */
#services-new-section .services-tabs .service-tab.active {
  background: #000;
  color: #fff;
  border-color: transparent;
}

/* ===== Pills: brand yellow with black text ===== */
:root {
  --brand-yellow: #FFD23F; /* ← replace with your yellow */
}

#services-new-section .service-pills .pill {
  background: var(--brand-yellow) !important;
  color: #111 !important;                         /* black text */
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset,
              0 1px 2px rgba(0,0,0,0.15);
}

/* Nice interactions (optional) */
#services-new-section .service-pills .pill:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
#services-new-section .service-pills .pill:active {
  filter: brightness(0.88);
  transform: translateY(0);
}
#services-new-section .service-pills .pill:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ===== Core Values / Vision white card ===== */
.core-values-section {
  position: relative;
  padding: clamp(48px, 6vw, 120px) 0;
}

.core-values-section .core-card {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.35);
  padding: clamp(24px, 3.5vw, 56px);
}

/* Layout inside the card (uses your existing markup) */
.core-values-section .core-values-container,
.core-values-section .vision-container {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

/* Visual divider between the two blocks */
.core-card-divider {
  height: 1px;
  border: 0;
  margin: clamp(16px, 3vw, 32px) 0;
  background: linear-gradient(90deg, rgba(16,24,40,.12), rgba(16,24,40,.12) 70%, rgba(16,24,40,0));
}

/* Typography inside the card */
.core-values-section .left-label {
  color: #0f172a;
  opacity: .65;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.core-values-section .right-text .line {
  color: #0f172a;                /* dark on white */
  font-weight: 600;
  line-height: 1.2;
  font-size: clamp(18px, 2.2vw, 34px);
  margin: .15em 0;
}

/* If you keep the faint background logo, soften it so the card pops */
.core-values-section .core-logo-bg {
  opacity: .06;                  /* optional */
  filter: grayscale(1);
}

/* Heading inside the white core card */
.core-card .main-services-title.core-card-title {
  color: #0f172a;                 /* black on white */
  margin: 0 0 clamp(12px, 2vw, 24px);
}

/* Make the section a bit tighter overall */
.core-values-section {
  padding: clamp(32px, 4vw, 80px) 0;  /* was larger */
}
.core-values-section .core-card {
  padding: clamp(20px, 3vw, 40px);    /* was larger */
}

/* Keep labels/text readable but tighter */
.core-values-section .right-text .line {
  line-height: 1.15;
  margin: .1em 0;
  font-size: clamp(18px, 2vw, 30px);  /* slightly smaller cap */
}

/* On desktop, place Core Values and Vision side-by-side */
@media (min-width: 1024px) {
  .core-values-section .core-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
  }
  .core-card .main-services-title.core-card-title {
    grid-column: 1 / -1;  /* heading spans both columns */
  }
  .core-card-divider { display: none; } /* no need for the HR when side-by-side */
}

/* Unify card gutters (white + yellow) */
:root{
  --card-max: 1200px;
  --card-pad-y: clamp(28px, 4vw, 56px);
  --card-pad-x: clamp(24px, 5vw, 72px);
}

/* Footer yellow box: match the white box spacing */
.footer-floating-box{
  width: 100%;                 /* stop using 90% */
  max-width: var(--card-max);
  margin-inline: auto;         /* center */
  padding: var(--card-pad-y) var(--card-pad-x);
  border-radius: 28px;         /* optional: match corners */
}

/* (If your white box is inside .core-values-section and the gutters
   come from section padding, mirror that on the footer section too) */
.core-values-section,
.footer-section{
  padding-inline: clamp(16px, 4vw, 56px);
}

/* bullets */
.values-list .line{
  position: relative;
  padding-left: 1.25em;
  margin: 0.35em 0;
}
.values-list .line::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #0b1220; /* same dark text color */
}

/* reduce big gap under "What Guides Us" inside the white card */
.core-card-title{ margin: 0 0 12px; }            /* was larger via .main-services-title */
.core-card .core-values-container{ margin-top: 0; }
/* if needed, also trim the card’s top padding */
.core-card{ padding-top: clamp(20px, 3vw, 32px); }


/* Tighten space under "What Guides Us" */
.core-card-title {
  margin: 0 0 16px;
}

/* Kill the huge top padding in this card only */
.core-card .core-values-container {
  padding-top: 16px;   /* was 80px */
  padding-bottom: 32px;
}

/* (optional) tighten the card’s own padding a touch */
.core-card {
  padding-top: 28px;
}

/* ===== Mobile hero: centered mid-screen + tighter type ===== */
@media (max-width: 768px) {
  #hero-container { min-height: 100svh; min-height: 100vh; }
  #hero-inner { height: 100%; position: relative; }

  /* put the block ~halfway up the screen */
  .hero-headline-container{
    position: absolute;
    top: 58vh;                 /* tweak 55–62vh to taste */
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100vw - 32px));   /* 16px side gutters */
    padding: 0;
  }

  .hero-headline{
    margin: 0;
    font-weight: 900;
    font-size: clamp(28px, 7.6vw, 42px);
    line-height: 1.02;         /* tighter line spacing */
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
  }

  /* keep GSAP line animation happy but remove extra gaps */
  .hero-headline .line{ margin: 0; line-height: inherit; }
  .hero-headline .line span{ display: inline-block; }
}

/* Mobile "Continue" button */
.scroll-next{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: #0f172a;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  cursor: pointer;

  /* start hidden; we toggle with JS */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

/* subtle “bounce” hint */
@keyframes scrollPulse {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -6px); }
}
.scroll-next.show{
  opacity: 1;
  pointer-events: auto;
  animation: scrollPulse 1.6s ease-in-out infinite;
}

/* Only show on mobile */
@media (min-width: 769px){
  .scroll-next{ display: none; }
}

/* lock background when modal is open */
body.modal-open { overflow: hidden; }

/* overlay */
.team-modal{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.team-modal.show{ display: flex; }

/* card */
.team-modal .modal-content{
  background: #fff;
  width: min(960px, 100%);
  max-height: min(92vh, 820px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
}

/* grid inside the card */
.modal-content-inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 28px;
}

/* close button */
.modal-close{
  position: absolute; top: 10px; right: 14px;
  width: 36px; height: 36px; border: none;
  background: transparent; color: #111; font-size: 28px; line-height: 1;
  cursor: pointer;
}

/* video keeps 16:9 and fills left panel */
.team-modal-left{ display: flex; align-items: center; }
.team-modal-video{
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  object-fit: cover;
}

/* text side scrolls if long */
.team-modal-right{
  overflow: auto;
}

/* Mobile stack */
@media (max-width: 768px){
  .modal-content-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  .team-modal-video{ border-radius: 12px; }
}

/* === Team modal: force the new layout and hide old styles === */
#teamModal{ 
  display: none !important;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  align-items: center; justify-content: center;
  padding: 16px;
}
#teamModal.show{ display: flex !important; }

/* card */
#teamModal .modal-content{
  background: #fff;
  width: min(960px, 92vw);
  max-height: min(92vh, 820px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
}

/* grid inside the card */
#teamModal .modal-content-inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 28px;
}

/* close button */
#teamModal .modal-close{
  position: absolute; top: 10px; right: 14px;
  width: 36px; height: 36px;
  border: none; background: transparent;
  color: #111; font-size: 28px; line-height: 1;
  cursor: pointer;
}

/* video */
#teamModal .team-modal-video{
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  object-fit: cover;
}

/* text side scrolls if long */
#teamModal .team-modal-right{ overflow: auto; }

/* Mobile stack */
@media (max-width: 768px){
  #teamModal .modal-content-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  #teamModal .team-modal-video{ border-radius: 12px; max-height: 46vh; }
}

/* Footer: stack columns on mobile */
@media (max-width: 768px){
  .footer-floating-box{
    padding: 28px 20px;
    overflow: hidden;           /* clip the circle text if it pokes out */
  }

  .footer-columns{
    flex-direction: column;     /* ← stack */
    align-items: stretch;
    gap: 24px;
  }

  .footer-column,
  .footer-col-left,
  .footer-col-center,
  .footer-col-right{
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* kill the desktop nudge */
  .footer-col-right{ margin-left: 0 !important; }

  /* tidy pieces inside */
  .contact-circle{ width: 150px; height: 150px; margin: 8px 0 20px; }
  .footer-logo{ max-width: 160px; margin: 12px 0 0; }
  .footer-socials{ margin-top: 16px; justify-content: flex-start; }
}

/* Footer: center all content on mobile */
@media (max-width: 768px){
  .footer-floating-box{
    margin-inline: auto;     /* keep the yellow card centered */
    text-align: center;      /* default to centered text */
    overflow: hidden;        /* clip any circle overflow */
  }

  .footer-columns{
    flex-direction: column;
    align-items: center;     /* center column blocks */
    gap: 24px;
  }

  .footer-column,
  .footer-col-left,
  .footer-col-center,
  .footer-col-right{
    width: 100%;
    max-width: 560px;        /* nice readable line length */
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;     /* center contents inside each column */
  }

  /* Headings/paragraphs in the right column */
  .footer-col-right h4,
  .footer-col-right p{
    text-align: center;
  }

  /* Contact circle + logo */
  .contact-circle{ width: 150px; height: 150px; margin: 8px auto 16px; }
  .footer-logo{ max-width: 160px; margin: 12px auto 0; }

  /* Socials + member logos */
  .footer-socials{ justify-content: center; margin-top: 16px; }
  .footer-member-logos{ display: flex; justify-content: center; gap: 16px; }
}

/* Footer tidy (mobile) — center left block, bigger contact circle, smaller address text */
@media (max-width: 768px){

  /* Center the headline + MEMBERS block */
  .footer-left-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-tagline{ text-align: center; margin: 0 0 24px; }

  /* Inline style on this <h4> was forcing left align — override it */
  .footer-members h4{ text-align: center !important; }
  .footer-member-logos{
    display: flex;
    justify-content: center !important;
    gap: 16px;
  }

  /* Make the “Contact Us” circle bigger */
  .contact-circle{ width: 220px; height: 220px; margin: 12px auto 20px; }
  .circle-center{ width: 120px; height: 120px; font-size: 18px; }
  .circle-text text{ font-size: 12px; } /* keeps the ring text readable at 220px */

  /* Logo under the circle */
  .footer-logo{ max-width: 180px; margin-top: 16px; }

  /* Make address/phone a touch smaller */
  .footer-col-right h4{ font-size: 16px; }
  .footer-col-right p{ font-size: 15px; line-height: 1.5; }

  /* Keep everything centered inside the yellow card */
  .footer-columns{
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer-column{ align-items: center; text-align: center; }
}

/* === Our Team: 2-up grid with angled cards on mobile === */
@media (max-width: 768px){
  .team-grid.angled-layout{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 16px 32px;
    justify-items: center;
    overflow: visible;
  }

  .team-card{
    width: 100%;
    height: 220px;
    border-radius: 12px;
    will-change: transform;
    transition: transform .25s ease;
  }

  .media-container{ height: 100%; }

  /* keep the tilt (smaller than desktop) */
  .rotate-left  { transform: rotate(-3.5deg); }
  .rotate-right { transform: rotate( 3.5deg); }

  /* optional: tone down hover on touch */
  .name-bubble,
  .name-bubble-float{ display: none; }
}

/* ultra-narrow phones: reduce tilt a bit more */
@media (max-width: 380px){
  .rotate-left  { transform: rotate(-2.5deg); }
  .rotate-right { transform: rotate( 2.5deg); }
}

/* ===== Modal video: portrait on desktop, landscape on mobile ===== */

/* Desktop/tablet: tall portrait video */
@media (min-width: 900px){
  /* give the left pane a fixed, portrait friendly column */
  .team-modal .modal-content .modal-content-inner{
    grid-template-columns: 420px 1fr; /* 420px tall column + text */
    align-items: center;
  }

  /* override any previous "height:100%" rules */
  .team-modal .team-modal-left .team-modal-video{
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 9 / 16;          /* ← portrait */
    object-fit: cover;
    border-radius: 18px;
    background: #000;
  }
}

/* Mobile: keep video 16:9 and full-width */
@media (max-width: 899px){
  .team-modal .team-modal-left .team-modal-video{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* ---- Team modal (single source of truth) ---- */
body.modal-open{ overflow: hidden; }

#teamModal{
  position: fixed; inset: 0;
  display: none;                               /* toggled with .show */
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.6);
  z-index: 10000;
}
#teamModal.show{ display: flex; }

#teamModal .modal-content{
  position: relative;
  background: #fff;
  width: min(1100px, 96vw);
  max-height: min(92vh, 840px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

#teamModal .modal-content-inner{
  display: grid;
  grid-template-columns: 380px 1fr;            /* portrait well + text */
  gap: 32px;
  padding: 28px;
  align-items: center;
}

/* Portrait media well (desktop) */
#teamModal .team-modal-left{
  width: 100%;
  aspect-ratio: 9 / 16;                        /* tall & skinny */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
#teamModal .team-modal-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column scrolls if long */
#teamModal .team-modal-right{ overflow: auto; }

/* Close button */
#teamModal .modal-close{
  position: absolute; top: 12px; right: 16px;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  color: #111; font-size: 28px; line-height: 1;
  cursor: pointer;
}

/* Mobile: stack + soften the portrait ratio */
@media (max-width: 768px){
  #teamModal .modal-content-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  #teamModal .team-modal-left{ aspect-ratio: 3 / 4; }
  #teamModal .team-modal-video{ border-radius: 12px; }
}

/* team-modal.fix.css  — drop-in override
   Makes desktop video portrait (9:16), mobile 3:4,
   and guarantees the close button can be clicked. */

/* stop background scroll when open (your JS toggles .modal-open) */
body.modal-open { overflow: hidden !important; }

/* overlay: support BOTH the old class (.team-modal) and the new id (#teamModal) */
#teamModal, .team-modal{
  position: fixed;
  inset: 0;
  display: none;                  /* toggled with .show */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.6);
  z-index: 10000;
}
#teamModal.show, .team-modal.show{
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* modal card */
#teamModal .modal-content,
.team-modal .modal-content{
  position: relative;
  background: #fff;
  width: min(1100px, 96vw);
  max-height: min(92vh, 840px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* grid inside card */
#teamModal .modal-content-inner,
.team-modal .modal-content-inner{
  display: grid;
  grid-template-columns: 380px 1fr;  /* portrait well + text */
  gap: 32px;
  padding: 28px;
  align-items: center;
}

/* left media well — PORTRAIT on desktop */
#teamModal .team-modal-left,
.team-modal .team-modal-left{
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;   /* tall & skinny */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

/* video element — fill the well */
#teamModal .team-modal-video,
#teamModal .team-modal-left video,
.team-modal .team-modal-video,
.team-modal .team-modal-left video{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* right side can scroll if copy is long */
#teamModal .team-modal-right,
.team-modal .team-modal-right{ overflow: auto; }

/* close button always on top + clickable */
#teamModal .modal-close,
.team-modal .modal-close{
  position: absolute;
  top: 12px;
  right: 16px;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;                 /* above everything in the card */
}

/* Mobile stack + softer ratio */
@media (max-width: 768px){
  #teamModal .modal-content-inner,
  .team-modal .modal-content-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  #teamModal .team-modal-left,
  .team-modal .team-modal-left{
    aspect-ratio: 3 / 4 !important; /* nicer than 16:9 for portrait clips */
  }
  #teamModal .team-modal-video,
  .team-modal .team-modal-video{ border-radius: 12px; }
}

/* ===== team-modal.fix.css — append to the end ===== */
:root{ --tm-gap: 24px; }

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

/* Support both old (.team-modal) and new (#teamModal) selectors */
#teamModal, .team-modal{
  position: fixed; inset: 0;
  display: none;                  /* toggled via .show */
  align-items: center; justify-content: center;
  padding: var(--tm-gap);
  background: rgba(0,0,0,.6);
  z-index: 10000;
}
#teamModal.show, .team-modal.show{
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Card */
#teamModal .modal-content,
.team-modal .modal-content{
  position: relative;
  background: #fff;
  width: min(1100px, 96vw);
  /* keep a little breathing room top/bottom */
  max-height: calc(100svh - (var(--tm-gap) * 2));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* Grid inside card */
#teamModal .modal-content-inner,
.team-modal .modal-content-inner{
  display: grid;
  grid-template-columns: 380px 1fr; /* portrait well + text */
  gap: 32px;
  padding: 28px;
  align-items: center;
}

/* Left media: PORTRAIT on desktop */
#teamModal .team-modal-left,
.team-modal .team-modal-left{
  width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

/* Video fills the well */
#teamModal .team-modal-video,
#teamModal .team-modal-left video,
.team-modal .team-modal-video,
.team-modal .team-modal-left video{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Right side can scroll if content is tall */
#teamModal .team-modal-right,
.team-modal .team-modal-right{ overflow: auto; }

/* Close button on top and clickable */
#teamModal .modal-close,
.team-modal .modal-close{
  position: absolute; top: 12px; right: 16px;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  color: #111; font-size: 28px; line-height: 1;
  cursor: pointer;
  z-index: 10001;
}

/* Mobile: stack and use a softer portrait */
@media (max-width: 768px){
  #teamModal .modal-content-inner,
  .team-modal .modal-content-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
  #teamModal .team-modal-left,
  .team-modal .team-modal-left{ aspect-ratio: 3 / 4 !important; }
  #teamModal .team-modal-video,
  .team-modal .team-modal-video{ border-radius: 12px; }
}

/* ---- Team modal hard override (close button + fit to viewport) ---- */
:root { --tm-gap: 24px; }

#teamModal, .team-modal{
  position: fixed; inset: 0;
  display: none;                 /* toggled with .show */
  align-items: center; justify-content: center;
  padding: var(--tm-gap);
  background: rgba(0,0,0,.6);
  z-index: 10000;
}
#teamModal.show, .team-modal.show{ display: flex !important; }

#teamModal .modal-content,
.team-modal .modal-content{
  position: relative;
  background: #fff;
  width: min(1100px, 96vw);
  max-height: calc(100svh - (var(--tm-gap) * 2)) !important; /* <= fit */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

#teamModal .modal-content-inner,
.team-modal .modal-content-inner{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  padding: 28px;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

/* left media: portrait on desktop */
#teamModal .team-modal-left,
.team-modal .team-modal-left{
  width: 100% !important;
  aspect-ratio: 9/16 !important;
  border-radius: 16px;
  overflow: hidden;
  background:#000;
}
#teamModal video.team-modal-video,
.team-modal video.team-modal-video{
  width:100% !important; height:100% !important; object-fit:cover !important;
}

/* right side scrolls if copy is long */
#teamModal .team-modal-right,
.team-modal .team-modal-right{ overflow:auto; }

/* visible, clickable X (even if your HTML didn’t provide one) */
#teamModal .modal-close,
.team-modal .modal-close{
  position:absolute; top:12px; right:16px;
  width:38px; height:38px;
  border:0; background:#0000000f;
  color:#111; font-size:28px; line-height:1; border-radius:999px;
  cursor:pointer; z-index:10001;
}
#teamModal .modal-close:hover,
.team-modal .modal-close:hover{ background:#0000001f; }

/* mobile: stack and shorter portrait */
@media (max-width:768px){
  #teamModal .modal-content-inner,
  .team-modal .modal-content-inner{ grid-template-columns:1fr; gap:16px; padding:18px; }
  #teamModal .team-modal-left,
  .team-modal .team-modal-left{ aspect-ratio:3/4 !important; }
}

/* ===== Contact circle: make inner control fill the black disk ===== */
.footer-contact .circle-center{
  /* keep the black disk itself here */
  width: 120px;              /* match your design (100 -> 120 if you want bigger) */
  height: 120px;
  border-radius: 50%;
  background:#000;
  color:#fff;
  display:grid;
  place-items:center;
}

/* Reset + style the inner link OR button */
.footer-contact .circle-center a,
.footer-contact .circle-center button{
  all: unset;                /* kill UA button styles */
  display:flex;
  align-items:center;
  justify-content:center;
  width:100% !important;
  height:100% !important;
  border-radius:50%;
  color:#fff !important;
  font-family:'DM Sans', sans-serif;
  font-weight:800;
  font-size:16px;
  line-height:1.1;
  text-align:center;
  cursor:pointer;
}

/* Nice affordances */
.footer-contact .circle-center a:hover,
.footer-contact .circle-center button:hover{
  transform: scale(1.03);
}
.footer-contact .circle-center a:focus-visible,
.footer-contact .circle-center button:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px #E9FE53, 0 0 0 6px #111;
  border-radius: 50%;
}

/* === WHAT GUIDES US: black card, white text + 4-col grid === */
.core-values-section .core-card{
  background:#000;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px; /* keeps your rounded look */
  display:grid;
  grid-template-columns:
    minmax(110px,160px)  minmax(280px,1fr)
    minmax(110px,160px)  minmax(360px,1.2fr); /* 1 & 3 narrower */
  gap:clamp(16px,2.2vw,32px);
}

/* Heading: match Our Services, but centered and white */
.core-card .main-services-title.core-card-title{
  font-family:'DM Sans',sans-serif;
  font-weight:900;
  font-size:58px;
  line-height:56px;
  letter-spacing:-2.7px;
  color:#fff;
  text-align:center;
  margin:0 0 20px;
}

/* Let the two inner groups place into the 4 columns */
.core-values-section .core-card > .core-values-container,
.core-values-section .core-card > .vision-container{ display:contents; }

/* Column placement */
.core-values-section .core-card > .core-values-container .left-label{ grid-column:1; }
.core-values-section .core-card > .core-values-container .right-text{ grid-column:2; }
.core-values-section .core-card > .vision-container       .left-label{ grid-column:3; }
.core-values-section .core-card > .vision-container       .right-text{ grid-column:4; }

/* Typography + bullets */
.core-values-section .left-label{
  color:rgba(255,255,255,.65);   /* keep gray */
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.core-values-section .right-text .line{ color:#fff; }
.values-list .line::before{ background:#fff; } /* white bullets */
.core-card-divider{ display:none; }

/* Tidy line spacing on the list */
.core-values-section .right-text{
  font-size:clamp(18px,2vw,30px);
  line-height:1.2;
}
.values-list .line{ margin:.25em 0; }

/* Mobile: stack back to 2-column groups with a subtle divider */
@media (max-width:900px){
  .core-values-section .core-card{ display:block; }
  .core-values-section .core-card > .core-values-container,
  .core-values-section .core-card > .vision-container{
    display:grid;
    grid-template-columns:minmax(120px,180px) 1fr;
    gap:16px;
    padding:16px 0;
  }
  .core-card-divider{
    display:block;
    height:1px; border:0; margin:12px 0;
    background:rgba(255,255,255,.15);
  }
}

/* Phone modal: safe-area padding, centered card, 9:16 well, capped height */
@media (max-width: 900px){
  #teamModal, .team-modal{
    /* top | right | bottom | left (use both safe-area sides so borders match) */
    padding:
      max(12px, calc(env(safe-area-inset-top) + 8px))
      max(12px, calc(env(safe-area-inset-right) + 16px))
      max(12px, calc(env(safe-area-inset-bottom) + 8px))
      max(12px, calc(env(safe-area-inset-left) + 16px));
  }

  #teamModal .modal-content,
  .team-modal .modal-content{
    box-sizing: border-box;
    width: calc(100vw - (max(24px, env(safe-area-inset-left) + 16px) + max(24px, env(safe-area-inset-right) + 16px)));
    max-width: 520px;                 /* keeps the video from feeling oversized */
    margin: 0 auto;                   /* perfectly centered */
    max-height: calc(100svh - (env(safe-area-inset-top) + env(safe-area-inset-bottom) + 24px));
    overflow: auto;
    border-radius: 24px;
  }

  #teamModal .modal-content-inner,
  .team-modal .modal-content-inner{
    display: block;                   /* one column on mobile */
    padding: 16px;
  }

  /* lightweight player well */
  .mobile-vid{
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;             /* matches 720×1280 */
    max-height: 62vh;                  /* keeps it below the close button + text */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin: 0 auto 12px;
  }
  .mobile-vid video{
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .mobile-vid .playbtn{
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(3px);
    border: 0; cursor: pointer;
  }
  .mobile-vid .playbtn svg{ width: 74px; height: 74px; }
  .mobile-vid .mutebtn{
    position: absolute; right: 8px; bottom: 8px;
    border: 0; border-radius: 999px;
    background: rgba(0,0,0,.6); color: #fff;
    padding: 8px 12px; font-size: 13px;
  }
}

/* Make the custom overlay definitely clickable */
.mobile-vid { position: relative; }
.mobile-vid video { position: relative; z-index: 1; }
.mobile-vid .playbtn,
.mobile-vid .mutebtn { z-index: 2; }

/* (Optional) Hide iOS’ native start overlay inside the mobile well */
.mobile-vid video::-webkit-media-controls-start-playback-button,
.mobile-vid video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

/* Phone: show the poster nicely, keep card within viewport */
@media (max-width: 900px){
  #teamModal .modal-content{
    box-sizing: border-box;
    width: calc(100vw - 32px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }
  #teamModal .team-modal-left{ aspect-ratio: auto !important; }
  #teamModal .team-modal-image{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #000;
  }
}

/* Phone modal: smaller media so the card fits without scrolling */
@media (max-width: 900px){
  /* keep the card inside the safe viewport */
  #teamModal .modal-content{
    box-sizing: border-box;
    width: calc(100vw - 32px) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    max-height: calc(100svh - (env(safe-area-inset-top) + env(safe-area-inset-bottom) + 24px)) !important;
    overflow: auto; /* just in case copy runs long */
    border-radius: 24px;
  }

  /* compact layout */
  #teamModal .modal-content-inner{
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
    padding: 16px !important;
  }

  /* PHOTO: intentionally smaller so title/role/bio fit on-screen */
  #teamModal .team-modal-left{ margin: 0; }
  #teamModal .team-modal-image{
    display: block;
    width: 100%;
    height: auto;
    /* tweak 34–40vh if you want more/less image */
    max-height: clamp(220px, 36vh, 380px);
    object-fit: cover;          /* or 'contain' if you want the full frame */
    border-radius: 12px;
    background: #000;
  }

  /* tighter type so we avoid scroll in most cases */
  #teamModal .team-modal-right h2{
    font-size: clamp(22px, 5.6vw, 28px);
    margin: 6px 0 2px;
  }
  #teamModal .team-modal-right h3{
    font-size: clamp(14px, 3.8vw, 16px);
    margin: 0 0 8px;
    opacity: .7;
  }
  #teamModal .team-modal-right p{
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.45;
    margin: 0;
  }

  /* keep the X comfortably inside the card */
  #teamModal .modal-close{
    top: 8px !important;
    right: 8px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 28px !important;
  }
}

/* Phone modal: show full 9:16 image, smaller, no cropping */
@media (max-width: 900px){
  #teamModal .modal-content{
    box-sizing: border-box;
    width: calc(100vw - 32px);
    max-width: 600px;
    margin: 0 auto;
    max-height: calc(100svh - (env(safe-area-inset-top) + env(safe-area-inset-bottom) + 24px));
    overflow: auto;
    border-radius: 24px;
  }

  #teamModal .modal-content-inner{
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
    padding: 16px !important;
  }

  /* The media well keeps a 9:16 frame and is capped in height so the card fits */
  #teamModal .team-modal-left{
    width: 100%;
    aspect-ratio: 9 / 16;          /* match your portraits */
    max-height: clamp(220px, 36vh, 380px);
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
  }

  /* IMPORTANT: show the whole photo (no crop) */
  #teamModal .team-modal-image{
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* <- replaces any earlier 'cover' */
    display: block;
  }

  /* Compact type so everything fits without scrolling */
  #teamModal .team-modal-right h2{
    font-size: clamp(22px, 5.6vw, 28px);
    margin: 6px 0 2px;
  }
  #teamModal .team-modal-right h3{
    font-size: clamp(14px, 3.8vw, 16px);
    margin: 0 0 8px;
    opacity: .7;
  }
  #teamModal .team-modal-right p{
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.45;
    margin: 0;
  }

  /* Keep the close button comfortably inside the card */
  #teamModal .modal-close{
    top: 8px; right: 8px;
    width: 40px; height: 40px;
    font-size: 28px;
  }
}

/* Phone modal: full-bleed portrait photo, favour the face, no scroll */
@media (max-width: 900px){
  #teamModal .team-modal-left{
    width: 100%;
    aspect-ratio: 9 / 16;                  /* match your 720x1280 */
    max-height: clamp(340px, 52vh, 560px); /* a bit larger but still fits */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;                      /* hidden behind the image */
  }

  /* Make the image fill and crop toward the face */
  #teamModal .team-modal-image{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover !important;          /* remove black bars */
    object-position: 50% 30% !important;   /* default: bias upward to face */
    border-radius: 12px;
  }

  /* Compact text so the whole card rarely needs to scroll */
  #teamModal .team-modal-right h2{ font-size: clamp(22px, 5.6vw, 28px); margin: 8px 0 2px; }
  #teamModal .team-modal-right h3{ font-size: clamp(14px, 3.8vw, 16px); margin: 0 0 8px; opacity: .7; }
  #teamModal .team-modal-right p { font-size: clamp(14px, 4.2vw, 16px); line-height: 1.45; margin: 0; }
}

.yt-portrait{
  position: relative;
  width: 100%;
  max-width: 480px;        /* keep card compact */
  aspect-ratio: 9 / 16;    /* portrait */
  border-radius: 16px;
  overflow: hidden;
  background:#000;
  margin: 0 auto;          /* centered in the modal */
}
.yt-portrait > img,
.yt-portrait > iframe{
  width:100%; height:100%; object-fit: cover; display:block;
}

.yt-play{
  position:absolute; inset:0; display:grid; place-items:center;
  background: rgba(0,0,0,.28); border:0; cursor:pointer;
}
.yt-play::before{
  content:""; width:72px; height:72px; border-left:22px solid #fff;
  border-top:14px solid transparent; border-bottom:14px solid transparent;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
}

.yt-sound{
  position:absolute; right:8px; bottom:8px;
  padding:8px 12px; border:0; border-radius:999px;
  background: rgba(0,0,0,.65); color:#fff; font-size:13px;
}

/* YouTube portrait wrapper (phones) */
.yt-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;     /* vertical video */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.yt-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === PHONE MODAL: force 9:16 + smaller media well === */
@media (max-width: 900px){
  /* keep the card inside the viewport nicely */
  #teamModal .modal-content{
    box-sizing: border-box;
    width: calc(100vw - 32px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    border-radius: 24px;
  }

  /* stack layout and pad a touch */
  #teamModal .modal-content-inner{
    display: block !important;
    padding: 16px !important;
  }

  /* the media column itself — center and cap the size */
  #teamModal .team-modal-left{
    width: clamp(240px, 70vw, 360px) !important;   /* smaller than full card */
    margin: 0 auto 14px !important;
    aspect-ratio: auto !important;                 /* cancel earlier ratios */
  }

  /* YouTube wrapper = real vertical 9:16 */
  #teamModal .team-modal-left .yt-wrap{
    position: relative;
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
    background:#000;
    border-radius: 12px;
    overflow: hidden;
  }
  #teamModal .team-modal-left .yt-wrap iframe{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
  }

  /* image fallback matches the same size/feel */
  #teamModal .team-modal-left .team-modal-image{
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: cover !important;
    object-position: 50% 30% !important;           /* bias toward face */
    border-radius: 12px !important;
    display: block;
  }

  /* tighten text area below */
  #teamModal .team-modal-right h2{ margin: 4px 0 8px; }
  #teamModal .team-modal-right h3{ margin: 0 0 10px; }
  #teamModal .team-modal-right p { margin: 0; }
}

/* unmute pill */
.yt-unmute{
  position:absolute; right:8px; bottom:8px;
  padding:8px 12px; font-size:13px;
  border:0; border-radius:999px;
  background:rgba(0,0,0,.65); color:#fff;
}

.yt-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;      /* portrait */
  background:#000;
  border-radius:12px;
  overflow:hidden;
}
.yt-wrap iframe{ width:100%; height:100%; display:block; }

/* Phone: make the “DROP US A LINE” ring text a touch bigger */
@media (max-width: 768px){
  .circle-text text{
    font-size: 14px;      /* was 12px in your mobile override */
    letter-spacing: 1.1px;/* tiny breathing room so it doesn’t feel cramped */
  }
}

@media (max-width: 768px){
  .core-card .main-services-title.core-card-title{
    font-size: 29px !important;
    line-height: 32px !important;
    letter-spacing: -1.3px !important;
  }
}

@media (max-width: 768px){
  .core-values-section .core-card{
    display: block !important;
  }
  .core-values-section .core-card > .core-values-container,
  .core-values-section .core-card > .vision-container{
    display: grid !important;
    grid-template-columns: minmax(110px,160px) 1fr !important; /* label | text */
    gap: 12px 16px !important;
    padding: 12px 0 !important;
  }
  .core-values-section .left-label,
  .core-values-section .right-text{
    text-align: left !important;
  }
}

/* ===== What Guides Us: fix mobile layout (left-align both blocks) ===== */
@media (max-width: 768px){
  /* kill the desktop 4-col grid behavior */
  .core-values-section .core-card{
    display: block !important;
  }

  /* make BOTH blocks a simple 2-col grid: [label | text] */
  .core-values-section .core-card > .core-values-container,
  .core-values-section .core-card > .vision-container{
    display: grid !important;
    grid-template-columns: minmax(110px,160px) 1fr !important;
    gap: 12px 16px !important;
    padding: 12px 0 !important;
    align-items: start;
    justify-items: start;
  }

  /* neutralize desktop column targeting (3|4) so it doesn’t push right */
  .core-values-section .core-card > .core-values-container .left-label,
  .core-values-section .core-card > .core-values-container .right-text,
  .core-values-section .core-card > .vision-container .left-label,
  .core-values-section .core-card > .vision-container .right-text{
    grid-column: auto !important;
    text-align: left !important;
  }
}

/* ===== Services: compact mobile layout ===== */
@media (max-width: 768px){
  /* subheading "By Event Type / By Capability" */
  #services-new-section .services-heading{
    font-size: 22px;
    margin: 10px 0 12px;
    letter-spacing: -0.3px;
  }

  /* view-toggle buttons */
  #services-new-section .view-toggle button{
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 22px;
  }

  /* left-side tabs (Conferences / Gala / Festivals...) */
  #services-new-section .services-tabs{ gap: 12px; }
  #services-new-section .service-tab{
    font-size: 1rem;              /* was 1.1rem */
    padding: 12px 14px;           /* was 12px 16px */
    border-radius: 14px;
  }

  /* pills: smaller + tighter wrap */
  #services-new-section .service-pills{
    gap: 8px;                     /* was 12px */
    margin-top: 8px;
  }
  #services-new-section .service-pills .pill{
    font-size: 0.86rem;           /* ~13–14px */
    padding: 6px 12px;
    border-radius: 999px;
  }

  /* clamp the pills by default with a fade + toggle */
  #services-new-section .service-pills.is-clamped{
    max-height: 44vh;             /* shows a good chunk, avoids endless scroll */
    overflow: hidden;
    position: relative;
  }
  #services-new-section .service-pills.is-clamped::after{
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 60px;
    /* gentle fade to the section bg; tweak the rgba if needed */
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.28));
    pointer-events: none;
  }

  /* Show all / Show less button */
  .pills-toggle{
    margin-top: 10px;
    align-self: center;
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    background: #000;
    color: #fff;
  }
}

/* Mobile "Continue" circle next to the text */
.continue-circle{
  position: absolute;
  right: 16px;
  top: 120px;                     /* initial position; JS nudges it to align with the paragraph */
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.95);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  display: none;                  /* mobile only (see media rule) */
  z-index: 5;                     /* above canvas/text so it's tappable */
  -webkit-tap-highlight-color: transparent;

  /* perfect centering */
  display: grid;
  place-items: center;
  text-align: center;
}
.continue-circle .label{
  display: block;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.05;
}
.continue-circle .arrow{
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
}
.continue-circle:active{ transform: scale(.98); }

/* Show only on phones */
@media (max-width: 768px){
  .continue-circle{ display: grid; }
}

/* Circle content layout */
.continue-circle{
  display: grid;               /* keeps the text centered perfectly */
  place-items: center;
  padding: 0;                  /* make sure we aren’t adding extra space */
}

/* If you used two spans */
.continue-circle .label{
  font-weight: 800;
  font-size: 13px;
  line-height: 1;              /* tighter */
  margin: 0;                   /* kill default margin */
}
.continue-circle .arrow{
  font-size: 18px;
  line-height: 1;              /* tighter */
  margin-top: 2px;             /* small gap under “Continue” */
}

/* If you kept a single-span “Continue ↓”, this still helps */
.continue-circle span{ display:block; line-height:1; }

/* Continue circle — layout & look */
#continue-circle{
  position: absolute;
  right: clamp(16px, 6vw, 40px);
  /* ↓ sits a bit lower than before */
  top: clamp(260px, 40vh, 420px);

  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.95);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  -webkit-tap-highlight-color: transparent;

  /* perfect centering + tight gap */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;              /* controls space between label and arrow */
  text-align: center;
  padding: 0;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  user-select: none;
  touch-action: manipulation;
}

/* text + arrow */
#continue-circle .label{
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}
#continue-circle .arrow{
  font-size: 20px;
  line-height: 1;
  margin: 0;
  transform: translateY(-1px); /* tiny optical nudge */
}

/* Works even if your markup is a single <span> */
#continue-circle span{ display: block; }

/* Only show on mobile */
@media (min-width: 769px){
  #continue-circle{ display: none; }
}

/* Continue bubble — smaller + higher */
#continue-circle{
  /* move up a little */
  top: clamp(170px, 33vh, 320px);
  right: clamp(12px, 5vw, 32px);

  /* smaller size */
  width: 88px;
  height: 88px;

  /* tighter label↕arrow gap */
  gap: 2px;
}

/* tighter typography inside */
#continue-circle .label{
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
}
#continue-circle .arrow{
  font-size: 18px;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* even smaller on short screens */
@media (max-height: 700px){
  #continue-circle{
    top: clamp(140px, 30vh, 280px);
    width: 80px; height: 80px;
  }
  #continue-circle .label{ font-size: 12px; }
  #continue-circle .arrow{ font-size: 16px; }
}
