/* ==========================================================================
   HOMEPAGE STYLESHEET (css/home.css)
   Visual Inspiration: Nutriholic Diet (Deep Forest Emerald, Warm Terracotta/Coral,
   Refined Typography Hierarchy, Layered Cards, Polished Spacing)
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION: DUAL-ASPECT VIDEO REEL
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   HERO SECTION: DUAL-ASPECT PREMIUM VIDEO REEL
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   HERO SECTION: FULL-WIDTH CINEMATIC VIDEO REEL
   -------------------------------------------------------------------------- */

.home-hero-section.full-width-hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: #07251F;
}

/* Background video fills entire hero behind transparent header with 0 gap */
.hero-fullwidth-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #07251F;
  border: none;
  box-shadow: none;
}

.hero-bg-video,
.hero-bg-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Cinematic Dark Vignette & Readability Gradient */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 35%, rgba(0,0,0,0.25) 70%, rgba(7,37,31,0.92) 100%);
}

/* Centered Typography & Play Action matching Figma design */
.hero-content-cinema {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
  padding: 130px 24px 60px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content-cinema h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.16;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

.hero-content-cinema .hero-aspect-heading {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

.hero-content-cinema p {
  font-size: clamp(15px, 1.9vw, 19px);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Centered White Circle Play/Sound Button */
.hero-play-circle-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  box-shadow: 0 0 36px rgba(0, 208, 156, 0.65), 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-play-circle-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(0, 208, 156, 0.9), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-play-circle-btn svg {
  width: 28px;
  height: 28px;
  fill: #00D09C;
  margin-left: 4px;
}

.hero-media-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(7, 37, 31, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

.hero-video-controls-bottom {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 4;
}

.hero-sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 37, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-sound-toggle-btn:hover {
  background: rgba(0, 208, 156, 0.9);
  color: #07251F;
  border-color: #00D09C;
  transform: translateY(-2px);
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
}

.hero-media-wrapper:hover .hero-media-img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   SECTION: "WE BUILD IDEAS THAT WORK..." (INTERACTIVE TABS)
   -------------------------------------------------------------------------- */

.home-services-section {
  padding: 90px 0 70px;
}

.services-header {
  margin-bottom: 48px;
}

.services-layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 40px;
  align-items: stretch;
}

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

.service-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.service-tab-btn .tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  transition: all 0.25s ease;
}

.service-tab-btn:hover {
  background: #FFFFFF;
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateX(4px);
}

.service-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 95, 80, 0.28);
  transform: translateX(6px);
}

.service-tab-btn.active .tab-icon {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 10px var(--color-accent-glow);
}

.service-display-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: all 0.35s ease;
}

.service-card-media {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background: #0C3E34;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.service-display-card:hover .service-card-img {
  transform: scale(1.03);
}

.service-card-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  background: #FFFFFF;
}

.service-card-body p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: 18px;
}

.service-card-cta {
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   SECTION: "BRANDS WE'RE PROUD TO WORK WITH"
   -------------------------------------------------------------------------- */

.home-brands-section {
  padding: 70px 0 90px;
  text-align: center;
}

.brands-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.brands-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
}

.brands-pill-container {
  background: #FFFFFF;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-full);
  padding: 24px 52px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  box-shadow: 0 12px 36px rgba(18, 95, 80, 0.06);
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.brand-item:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   SECTION: "IDEAS THAT MADE IT WORK.." (SCROLL-CONTROLLED PORTFOLIO SHOWCASE)
   -------------------------------------------------------------------------- */

.home-case-studies-section {
  position: relative;
  width: 100%;
  padding: 0;
  background: #FBFDFD;
}

.portfolio-scroll-track {
  position: relative;
  width: 100%;
  height: 480vh; /* Controlled scroll height for 4 projects */
}

.portfolio-showcase-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 0 24px;
  box-sizing: border-box;
  background: 
    radial-gradient(circle at 85% 15%, rgba(0, 208, 156, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(228, 92, 58, 0.04) 0%, transparent 40%),
    #FBFDFD;
  z-index: 10;
}

.portfolio-header-container {
  flex-shrink: 0;
  z-index: 2;
}

.portfolio-header-container .case-studies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.portfolio-kicker-badge {
  margin-bottom: 6px;
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.portfolio-header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.portfolio-arrow-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: scale(1.06);
}

.portfolio-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 62, 52, 0.06);
  border: 1px solid rgba(12, 62, 52, 0.12);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}

.portfolio-counter-pill .counter-num.current {
  color: var(--color-primary);
  min-width: 18px;
  text-align: right;
}

.portfolio-counter-pill .counter-divider {
  color: rgba(12, 62, 52, 0.35);
}

.portfolio-counter-pill .counter-num.total {
  color: var(--text-muted);
}

.portfolio-view-all-btn {
  font-size: 13px;
  padding: 8px 18px;
}

/* Main Stage Viewport */
.portfolio-stage-container {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 8px 0;
}

.portfolio-cards-stage {
  position: relative;
  width: 100%;
  height: 540px;
  max-height: calc(100vh - 210px);
  perspective: 1200px;
}

/* Individual Slide Card */
.portfolio-slide-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(12, 62, 52, 0.1);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 
    0 24px 60px -12px rgba(12, 62, 52, 0.12),
    0 6px 18px -4px rgba(12, 62, 52, 0.06);
  cursor: pointer;
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-slide-card:hover {
  border-color: rgba(0, 208, 156, 0.4);
  box-shadow: 
    0 28px 70px -10px rgba(12, 62, 52, 0.16),
    0 8px 24px -4px rgba(0, 208, 156, 0.1);
}

.portfolio-slide-card.active {
  pointer-events: auto;
}

/* Card Visual Column */
.slide-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 510px;
  border-radius: 20px;
  overflow: hidden;
  background: #0C3E34;
}

.slide-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.05);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-slide-card:hover .slide-img {
  transform: scale(1.1);
}

.slide-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 62, 52, 0.05) 0%, rgba(12, 62, 52, 0.5) 100%);
  pointer-events: none;
}

.slide-play-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0C3E34;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, background 0.25s ease;
}

.slide-play-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.portfolio-slide-card:hover .slide-play-badge {
  transform: translateY(-2px);
  background: #FFFFFF;
}

.slide-float-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(12, 62, 52, 0.88);
  backdrop-filter: blur(8px);
  color: #00D09C;
  border: 1px solid rgba(0, 208, 156, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card Narrative Column */
.slide-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 20px 10px 0;
}

.slide-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slide-client-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.25s ease;
}

.portfolio-slide-card:hover .slide-title {
  color: var(--color-primary);
}

.slide-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.slide-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F3F6F5;
  color: var(--text-primary);
  border: 1px solid rgba(12, 62, 52, 0.06);
}

.slide-chip.highlight {
  background: rgba(0, 208, 156, 0.12);
  color: #087556;
  border-color: rgba(0, 208, 156, 0.35);
  font-weight: 700;
}

.slide-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 62, 52, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.25s ease;
}

.portfolio-slide-card:hover .slide-action-row {
  color: var(--color-accent);
}

.slide-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 62, 52, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.portfolio-slide-card:hover .slide-cta-arrow {
  transform: translateX(4px);
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Bottom Progress Scrubber */
.portfolio-footer-container {
  flex-shrink: 0;
  z-index: 2;
}

.portfolio-footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 62, 52, 0.06);
}

.portfolio-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hint-wheel-icon {
  width: 14px;
  height: 22px;
  border: 1.5px solid rgba(12, 62, 52, 0.3);
  border-radius: 999px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.hint-wheel-dot {
  width: 3px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 999px;
  animation: hintWheelScroll 1.6s infinite ease-in-out;
}

@keyframes hintWheelScroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.portfolio-scrub-track {
  flex: 1;
  max-width: 480px;
  height: 4px;
  background: rgba(12, 62, 52, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.portfolio-scrub-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--mint) 100%);
  border-radius: 999px;
  will-change: width;
  transition: width 0.08s linear;
}

.portfolio-page-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scrub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(12, 62, 52, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.scrub-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Responsive Adaptations */
@media (max-width: 1024px) {
  .portfolio-slide-card {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px;
  }
  .slide-title {
    font-size: 26px;
  }
}

@media (max-width: 860px) {
  .portfolio-showcase-viewport {
    height: 100vh;
    padding: 85px 0 16px;
  }
  .portfolio-cards-stage {
    height: 500px;
    max-height: calc(100vh - 160px);
  }
  .portfolio-slide-card {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
  }
  .slide-media-wrap {
    min-height: 200px;
    max-height: 220px;
  }
  .slide-info-wrap {
    padding: 0;
    gap: 10px;
  }
  .slide-title {
    font-size: 22px;
  }
  .slide-desc {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
  .slide-chips-row .slide-chip:nth-child(n+3) {
    display: none;
  }
  .portfolio-scroll-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   SECTION: "TEAM THAT WORKING TO MAKE IT."
   -------------------------------------------------------------------------- */

.home-team-section {
  padding: 100px 0 110px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.team-header {
  margin-bottom: 54px;
}

/* =========================
   TEAM CONTAINER (MATCHING REFERENCE)
========================= */

.team-wrapper {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
  overflow: visible;
}

.team {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  min-height: 280px;
}

/* =========================
   MEMBER CARD
========================= */

.member {
  position: relative;

  /* Closed state */
  width: 114px;
  height: 280px;
  flex: 0 0 114px;

  border-radius: 60px;
  overflow: hidden;
  cursor: pointer;

  transition:
    width 0.55s cubic-bezier(.22, .61, .36, 1),
    flex-basis 0.55s cubic-bezier(.22, .61, .36, 1),
    border-radius 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease;

  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* HOVER / EXPANDED STATE */
.member:hover,
.member.expanded {
  width: 500px;
  flex-basis: 500px;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

/* IMAGE */
.member-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    width 0.55s cubic-bezier(.22, .61, .36, 1),
    filter 0.4s ease;
}

.member:hover .member-image,
.member.expanded .member-image {
  width: 52%;
  filter: brightness(0.85);
}

/* Dark gradient over image */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0.1) 60%);
  pointer-events: none;
  transition: background 0.4s ease;
}

.member:hover .image-overlay,
.member.expanded .image-overlay {
  background: linear-gradient(to right, rgba(0,0,0,.2) 0%, rgba(0,0,0,.02) 100%);
}

/* CLOSED CARD TEXT */
.mini-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: white;
  padding: 0 8px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.mini-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.mini-role {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.2;
  opacity: .92;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.linkedin-mini {
  margin-top: 10px;
  width: 20px;
  height: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #0E4438;
  font-size: 11px;
  font-weight: 800;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hide pill text when expanded */
.member:hover .mini-info,
.member.expanded .mini-info {
  opacity: 0;
  transform: translateY(10px);
}

/* EXPANDED INFORMATION */
.expanded-info {
  position: absolute;
  left: 52%;
  top: 0;
  width: 48%;
  height: 100%;
  padding: 28px 24px;
  background: white;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition:
    opacity 0.3s ease 0.18s,
    transform 0.45s ease 0.12s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  overflow-y: auto;
}

.member:hover .expanded-info,
.member.expanded .expanded-info {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.expanded-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0E4438;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.linkedin-large {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00D09C;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.linkedin-large:hover {
  background: #0E4438;
  transform: scale(1.1);
}

.expanded-role {
  color: #555;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.description {
  color: #222;
  font-size: 12.5px;
  line-height: 1.45;
}

/* MOBILE ADAPTATION */
@media (max-width: 900px) {
  .team {
    gap: 12px;
    overflow-x: auto;
    padding: 15px 10px 30px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .member {
    width: 100px;
    flex: 0 0 100px;
  }
  .member:hover,
  .member.expanded {
    width: 380px;
    flex: 0 0 380px;
  }
}

/* --------------------------------------------------------------------------
   SECTION: "QUESTIONS WE'RE OFTEN ASKED." (FAQ)
   -------------------------------------------------------------------------- */

.home-faq-section {
  padding: 90px 0 110px;
}

.faq-header {
  margin-bottom: 54px;
  text-align: center;
}

.faq-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 52px;
  align-items: flex-start;
}

.faq-portrait-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  aspect-ratio: 4 / 5;
  background: #E8EFEA;
}

.faq-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.faq-item-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color 0.25s ease;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-item.active {
  border-left: 4px solid var(--color-accent);
  border-color: var(--border-warm);
  box-shadow: 0 10px 28px rgba(18, 95, 80, 0.08);
}

.faq-accordion-item.active .faq-item-title {
  color: var(--color-primary-dark);
}

.faq-accordion-item.active .faq-toggle-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 26px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-accordion-item.active .faq-item-body {
  max-height: 220px;
  padding: 0 26px 22px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (HOMEPAGE)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
  .case-studies-preview-grid {
    grid-template-columns: 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-portrait-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-hero-section,
  .home-hero-section.full-width-hero {
    padding: 20px 0 40px;
    min-height: auto;
    margin-top: 0;
  }
  .hero-header-container {
    padding: 0 18px;
    margin-bottom: 22px;
  }
  .hero-fullwidth-video-wrap {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-video-banner {
    padding: 34px 18px 24px;
    border-radius: var(--radius-lg);
  }
  .hero-video-header {
    margin-bottom: 20px;
  }
  .hero-video-header h1,
  .hero-video-header h2 {
    font-size: 25px;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .hero-video-header p {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
  }
  .hero-badge-pill {
    padding: 6px 14px;
    font-size: 11px;
    margin-bottom: 14px;
  }
  .hero-media-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-height: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }
  .services-layout {
    gap: 24px;
  }
  .service-display-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  .service-card-media {
    min-height: 240px;
  }
  .service-card-body {
    padding: 28px 22px;
  }
  .service-card-body p {
    font-size: 17px;
  }
  .home-brands-section {
    padding: 50px 0 60px;
  }
  .brands-title {
    font-size: 32px;
    margin-bottom: 22px;
  }
  .brands-pill-container {
    padding: 18px 24px;
    gap: 20px;
    border-radius: var(--radius-xl);
    justify-content: center;
  }
  .brand-item {
    font-size: 18px;
  }
  .case-studies-preview-grid {
    gap: 20px;
  }
  .case-study-hero-card {
    border-radius: var(--radius-lg);
  }
  .cs-card-title {
    font-size: 24px;
  }
  .case-study-compact-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  .compact-card-media {
    height: 170px;
  }
  .home-team-section {
    padding: 60px 0 70px;
  }
  .home-faq-section {
    padding: 60px 0 80px;
  }
}
