:root {
  --bg-color: #fbfbfb;
  --bg-rgb: 251, 251, 251;
  --text-color: #000000;
  --text-rgb: 0, 0, 0;
  --text-muted: #666666;
  --text-dark: #ffffff;
  --accent: #000000;
  --font-main: "Outfit", sans-serif;
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --border-light: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --bg-rgb: 10, 10, 10;
  --text-color: #ffffff;
  --text-rgb: 255, 255, 255;
  --text-muted: #a0a0a0;
  --border-light: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
}

/* Dark Mode Logo Optimization */
[data-theme="dark"] .client-card {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .client-card img {
  filter: none;
  /* Removed inversion per suggestion to use background instead */
  opacity: 1 !important;
}

body {
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  /* Custom physical cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 999999;
  pointer-events: none;
  will-change: left, top;
  /* GPU-composite movement, no mix-blend-mode repaint cost */
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #000;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.5);
  background: transparent;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

/* Dark mode cursor colors */
[data-theme="dark"] .cursor-dot {
  background-color: #fff;
}

[data-theme="dark"] .cursor-outline {
  border-color: rgba(255, 255, 255, 0.5);
}

/* New Cursor Action Button */
.cursor-action-btn {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  white-space: nowrap;
}

.cursor-action-btn.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

a,
button {
  cursor: none;
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  /* Standardized wide-screen spacing */
}

@media (max-width: 1280px) {
  .section {
    padding: 60px 0;
    /* Reduced as requested for better flow on smaller screens */
  }
}

.services-section,
.team-section,
.awards-section {
  padding-top: 60px;
}

.about-header {
  padding-bottom: 120px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 100px;
}

/* Added back a precise small amount of breathing room */
.section-label {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  /* Increased for cinematic presence */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 30px;
  /* Removed border and extra padding per request */
  padding-bottom: 10px;
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 5%;
  z-index: 100;
  color: var(--text-color);
  background: transparent;
  transition:
    padding 0.4s ease,
    transform 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;
}

.navbar.nav-scrolled {
  padding: 15px 5%;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 60px;
  /* Separates logo and links on the left */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-color);
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.btn-contact {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.3s,
    background-color 0.3s,
    color 0.3s;
}

/* Hamburger & Mobile Menu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.bar {
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transition: 0.3s;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  color: var(--text-color);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.close-mobile-nav {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-link {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

@media screen and (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

/* Hero Section */
.relative {
  position: relative;
}

/* --- Hero SVG Aura --- */
.hero-svg-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.05));
  opacity: 0.8;
  /* Increased for blurred look */
}

.clay-shape {
  width: 100%;
  height: 100%;
  animation: rotateBlob 8s ease-in-out infinite alternate !important;
}

@keyframes rotateBlob {
  0% {
    transform: rotate(0deg) scale(0.9) translateY(0) translateX(0);
  }

  50% {
    transform: rotate(30deg) scale(1.1) translateY(-40px) translateX(20px);
  }

  100% {
    transform: rotate(-15deg) scale(0.95) translateY(20px) translateX(-30px);
  }
}

.hero {
  padding-top: 0;
  padding-bottom: 0;
  display: block;
}

.hero-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 180px;
  /* Standardized for equal spacing between Nav and Headline */
}

@media (max-width: 1200px) {
  .hero-inner {
    min-height: auto;
    padding-bottom: 100px;
  }
}

.hero-top h1 {
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  /* Further reduced per request for cleaner layout */
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 25px;
  max-width: 800px;
  line-height: 1.5;
}

.hero-sub-tags {
  font-size: 1.05rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 45px;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
}

.typing-caret {
  border-right: 2px solid var(--text-color);
  margin-left: 2px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--text-color);
  }
}

.hero-ctas {
  display: flex;
  gap: 80px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  transition:
    transform 0.3s,
    background 0.3s;
  font-weight: 500;
}

.btn-primary {
  background: var(--text-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: var(--text-muted);
}

.btn-secondary {
  border: 1px solid var(--text-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: rgba(var(--text-rgb), 0.05);
}

/* Hero Showreel Video */
.hero-showreel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 0px;
  clip-path: inset(0 10% 0 10% round 40px); /* Hardware accelerated 80% width with 40px radius */
  overflow: hidden;
  height: 100vh;
  background: #f4f4f4;
  will-change: transform; /* Keeps GPU layer but avoids expensive paint budgets */
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  /* Lighter overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: background 0.4s;
}

.hero-showreel:hover .video-overlay {
  background: rgba(255, 255, 255, 0.3);
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--bg-rgb), 0.8);
  color: var(--text-color);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

/* Animations */
.reveal-text,
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active,
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* Capabilities - Premium Split Accordion */
.capabilities-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  align-items: start;
  /* Removed border-top per request */
  padding-top: 20px;
}

/* Accordion Left Side */
.accordion-item {
  border-bottom: 2px solid var(--border-light);
  padding: 30px 0;
  transition: all 0.4s var(--transition-smooth);
}

.accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 15px;
  /* Reduced from 30px to save space */
}

.service-num {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.accordion-header h3 {
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  /* Reduced to prevent wrap */
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1.2;
  white-space: nowrap;
  /* Forces single line */
}

.accordion-icon {
  margin-left: auto;
  font-size: 1.8rem;
  font-weight: 300;
  transition: transform 0.4s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.3s;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-top: 30px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active h3 {
  color: var(--text-color);
}

.service-list {
  list-style: none;
}

.service-list li {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: "•";
  /* Subtle bullet instead of dash */
  position: absolute;
  left: 0;
}

/* Capabilities Right Side - Editorial */
.capabilities-manifesto {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 40px;
}

.capabilities-centered {
  max-width: 1100px;
  margin: 80px auto 0;
}

.capabilities-centered .capabilities-manifesto {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 100px;
  text-align: left;
}

.capability-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cap-tag {
  padding: 8px 18px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.3s;
}

.cap-tag:hover {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

@media (max-width: 991px) {
  .capabilities-split {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Clients Section */
.clients-section {
  background: rgba(var(--text-rgb), 0.03);
  padding: 90px 0;
  margin-top: 0;
  text-align: center;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 120px;
  /* Increased for cinematic brand separation */
  align-items: center;
  justify-content: center;
  padding: 0;
}

.clients-list span {
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 500;
  color: #bbb;
  transition: all 0.4s ease;
  display: block;
  animation: breathe 20s ease-in-out infinite;
}

/* Staggered Blink Delays Restored */
.clients-list span:nth-child(2) {
  animation-delay: 2.5s;
}

.clients-list span:nth-child(3) {
  animation-delay: 6s;
}

.clients-list span:nth-child(4) {
  animation-delay: 1.5s;
}

.clients-list span:nth-child(5) {
  animation-delay: 8.5s;
}

.clients-list span:nth-child(6) {
  animation-delay: 4s;
}

.clients-list span:nth-child(7) {
  animation-delay: 10s;
}

.clients-list span:hover {
  color: var(--text-color);
  transform: translateY(-5px);
  animation-play-state: paused;
  opacity: 1 !important;
}

@keyframes breathe {

  /* 0% to 40%: Completely Still & Clear (User reads name) */
  0%,
  40%,
  60%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  /* 40% to 60%: Rapid 'Fast' Blink Effect */
  50% {
    opacity: 0.3;
    transform: scale(0.96);
  }
}

@media (max-width: 768px) {
  .clients-list {
    flex-direction: column;
    /* Robust centering for all brand lengths */
    gap: 50px;
  }
}

/* Work / Projects */
.work-section {
  padding-top: 80px;
}

.section-title {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 120px;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .project-card:nth-child(even) {
    margin-top: 120px;
    /* offset grid like Clay */
  }
}

/* Project Showcase 2-Column Grid (Aligned with Portfolio) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 120px;
  /* Matched to main grid */
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    /* Switched to 2-column to match */
    gap: 60px;
  }

  /* Vertical Offset to match the Featured Work's Clay-style grid */
  .showcase-grid .showcase-item:nth-child(even) {
    margin-top: 120px;
  }
}

/* Showcase items now inherit the standard 4/5 aspect ratio */

.project-card {
  display: block;
}

.project-visual {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/5;
  background: var(--border-light);
  /* Light grey placeholder holding area */
}

.image-wrapper {
  width: 100%;
  height: 100%;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Optional: subtle border for images on white background */
  border: 1px solid var(--border-light);
}

.hover-play {
  opacity: 0;
  background: rgba(var(--bg-rgb), 0.9);
  color: var(--text-color);
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.3s,
    transform 0.3s;
  transform: translateY(20px);
}

.project-card:hover .placeholder-img {
  transform: scale(1.1);
  /* Increased for more impact */
}

.project-card:hover .hover-play {
  opacity: 1;
  transform: translateY(0);
}

.project-category {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  /* Invisible by default */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-category {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 15px;
  max-width: 450px;
}

/* Footer & Contact Massive */
.contact-massive {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 80px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer {
  contain: layout; /* Prevent footer reflows from affecting parent */
}

@media (min-width: 1200px) {
  .contact-massive {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .contact-heading {
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: 40px;
  }
  
  .footer-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    color: var(--text-color);
    margin-top: 40px;
  }
}

@media (max-width: 1199px) {
  .footer-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    color: var(--text-color);
    margin-top: 40px;
  }
}

.contact-ustext-link {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  display: inline-block;
  transition:
    color 0.3s,
    transform 0.3s;
}

.contact-ustext-link:hover {
  color: var(--text-muted);
  transform: translateX(20px);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  /* Proportional split for bio vs links */
  gap: 100px;
  margin-bottom: 100px;
  align-items: start;
}

.footer-info p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
}

.footer-legal {
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Footer Background --- */
.footer-bg-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* CSS gradient layer for a uniform base */
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 0, 0, 0.04) 0%,
    transparent 70%
  );
}

.footer-clay-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Dark mode: invert the opacity so blobs read as light on dark */
[data-theme="dark"] .footer-bg-aura {
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(255, 255, 255, 0.025) 0%,
    transparent 70%
  );
  filter: invert(1);
  opacity: 0.08;
}


/* --- ABOUT PAGE STYLES --- */

/* Vision Interactive Sticky Layout */
.vision-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 60px;
}

.vision-visuals {
  position: sticky;
  top: 150px;
  aspect-ratio: 3/2;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border-light);
}

.vision-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-content {
  display: flex;
  flex-direction: column;
}

.vision-item {
  display: flex;
  flex-direction: column;
  /* Stack number on top of text */
  align-items: flex-start;
  /* Left align contents */
  justify-content: center;
  /* Vertically center within 100vh pane */
  gap: 20px;
  padding: 60px 0;
  min-height: 100vh;
  /* Scrollytelling full height single view */
  border-bottom: 1px solid var(--border-light);
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1200px) {
  .vision-item {
    min-height: auto;
    padding: 80px 0;
  }
}

.vision-item:first-child {
  border-top: 1px solid var(--border-light);
}

.vid-num {
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-color);
}

.vid-text h3 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
}

.vid-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Hover & Scroll Engine :has() Magic */
.vision-split:not(:hover):not(:has(.vision-item.active)) #v-img-1,
.vision-split:has(.vision-item:nth-child(1):hover) #v-img-1,
.vision-split:has(.vision-item:nth-child(1).active) #v-img-1 {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.vision-split:not(:hover):not(:has(.vision-item.active)) .vision-item:nth-child(1),
.vision-item:hover,
.vision-item.active {
  opacity: 1;
}

.vision-split:has(.vision-item:nth-child(2):hover) #v-img-2,
.vision-split:has(.vision-item:nth-child(2).active) #v-img-2 {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.vision-split:has(.vision-item:nth-child(3):hover) #v-img-3,
.vision-split:has(.vision-item:nth-child(3).active) #v-img-3 {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.team-member {
  display: block;
}

.team-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--border-light);
}

.team-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: grayscale(100%);
}

.team-visual:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}


.team-meta h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.team-meta .project-category {
  margin-bottom: 0;
}

.team-socials {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
  /* Safety for small screens */
}

.team-social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-social-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

/* Responsive Design System */

/* Tablet & Smaller Screens (Up to 780px) */
@media screen and (max-width: 780px) {
  .container {
    padding: 0 40px;
  }

  .hero-inner {
    padding-top: 140px;
    /* Reduced from Desktop */
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    /* Stack capabilities for tablet */
    border-right: none;
  }

  .capability-item {
    border-right: none;
    border-bottom: 2px solid var(--border-light);
    padding: 50px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    /* Single column projects */
    gap: 60px;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
    /* Clear asymmetrical offset on small screens */
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for tablet footer */
    gap: 40px;
  }

  .nav-links {
    display: none;
    /* Mobile menu hidden by default */
  }

  .btn-contact {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  /* About Page Tablet/Mobile */
  .vision-split,
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .vision-visuals {
    position: relative;
    top: 0;
    height: 60vh;
    margin-bottom: 40px;
  }
}

/* Smartphone Specific (Up to 430px) */
@media screen and (max-width: 430px) {
  .container {
    padding: 0 24px;
  }

  .nav-right {
    gap: 12px;
  }

  .btn-contact {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .hero-inner {
    padding-top: 120px;
    /* Equalized mobile spacing for Logo vs Headline */
    min-height: auto;
    /* Allow content to float naturally without 100vh */
    padding-bottom: 0;
    /* No gap whatsoever */
  }

  .hero-top h1 {
    font-size: clamp(2.8rem, 12vw, 3.5rem);
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .hero-sub-tags {
    font-size: 0.9rem;
    letter-spacing: 0.2px;
  }

  .hero-showreel {
    height: 75vh;
    /* Much taller for immersive mobile video impact */
    /* Removed width: 100% !important to allow expansion animation on scroll */
  }

  .section {
    padding: 0 0 30px 0;
    /* Reduced from 80px bottom gap for seamless mobile flow */
    /* Border-to-border mobile flow */
    border-top: none;
  }

  .section-label {
    margin-top: 20px;
    /* Added margin at top as requested */
    margin-bottom: 20px;
    border-top: none;
  }

  .capabilities-split {
    border-top: none;
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-section {
    padding: 0 0 40px 0;
    /* No top gap for direct mobile section flow */
  }

  .project-overview {
    padding: 0 0 40px 0;
    /* Fixes massive whitespace below video / above brief on mobile */
  }

  .clients-section {
    background: transparent !important;
    padding-top: 10px !important;
    /* Reduced from 30px */
  }

  .section-title {
    font-size: 3.2rem;
    margin-top: 0;
    /* Zero vertical gap for direct mobile section flow */
    margin-bottom: 10px;
    /* Essential sliver for title legibility */
  }

  .contact-massive {
    margin-top: 60px !important;
    /* Added significant breathing room on phone */
  }

  .contact-ustext-link {
    font-size: 3.8rem;
    margin-top: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    /* Single column footer for phone */
    gap: 40px;
  }

  .footer-info p {
    font-size: 1.1rem;
  }

  /* Hide custom agency cursor & SVG Blob on phone */
  .cursor-dot,
  .cursor-outline,
  .hero-svg-wrapper {
    display: none !important;
  }
}

/* Large & Pro Screens (Fluid Scaling) */
@media screen and (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }

  .hero-top h1 {
    font-size: 8rem;
  }
}

/* Logo Animation Placeholder */
.logo-animation-placeholder {
  margin-bottom: 40px;
  display: flex;
}

.logo-anim-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(90deg,
      var(--text-color) 0%,
      var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: simpleLogoReveal 2s ease-out forwards;
}

@keyframes simpleLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Video Modal */
.hero-showreel {
  cursor: none;
}

.hero-showreel:hover .video-overlay {
  cursor: none;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Semi-transparent backdrop */
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--text-color);
  border: none;
  color: var(--bg-color);
  font-size: 1.5rem;
  cursor: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition:
    transform 0.3s,
    background 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--text-muted);
}

.modal-content {
  width: 80%;
  max-width: 1000px;
  /* Smaller constrained width */
  aspect-ratio: 16/9;
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .modal-content {
  transform: scale(1);
}

.modal-content video {
  width: 100%;
  height: 100%;
}

/* --- PORTFOLIO (WORK) PAGE STYLES --- */

/*
  Interior pages use a fixed navbar. The page content must be pushed down
  by enough to clear it. We use '!important' here to win specificity fights
  with the generic .section padding rule.
*/
.portfolio-main,
.blog-main,
.article-main,
.services-main {
  padding-top: 140px !important;
  background-color: var(--bg-color);
}

.portfolio-header {
  margin-bottom: 80px;
  max-width: 1000px;
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 60px;
}

/* DD.NYC Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 80px;
  position: sticky;
  top: 120px;
  z-index: 10;
  transition: transform var(--transition-smooth);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-color);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--text-color);
}

.filter-btn.active {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

/* Clay Style Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 100px;
}

.work-item {
  width: 100%;
  margin-bottom: 40px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.work-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f4f4;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.project-card:hover .work-preview-video {
  opacity: 1;
}

.work-card:hover .work-visual img {
  transform: scale(1.05);
}

.work-info {
  padding: 30px 0;
}

.work-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.work-title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #000;
}

.view-project-link {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--transition-smooth);
}

.work-card:hover .view-project-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- PROJECT CASE STUDY LAYOUT (TEMPLATE) --- */

.project-hero-inner {
  min-height: 80vh;
}

@media screen and (max-width: 1270px) {
  .project-hero-inner {
    min-height: auto;
    padding-bottom: 30px;
  }
}

.project-hero {
  padding: 0;
  height: 90vh;
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.project-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.project-hero-content {
  position: absolute;
  bottom: 80px;
  left: 5%;
  color: #fff;
  max-width: 1200px;
}

.project-hero-category {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: block;
}

.project-hero-title {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-overview {
  padding: 120px 0;
  background: var(--bg-color);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
}

.project-brief h3 {
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 40px;
  color: var(--text-color);
}

.project-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-meta-sidebar {
  border-left: 1px solid var(--border-light);
  padding-left: 40px;
}

.meta-item {
  margin-bottom: 40px;
}

.meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.project-gallery {
  padding: 60px 0;
}

.full-visual {
  width: 100%;
  margin-bottom: 60px;
  border-radius: 40px;
  overflow: hidden;
}

.full-visual img,
.full-visual video {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 900px) {
  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .project-overview {
    padding: 8px 0;
    background: var(--bg-color);
  }

  .project-meta-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 40px 0 !important;
  }

  .section-label {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
  }

  .project-overview {
    padding: 8px 0;
    background: var(--bg-color);
  }

  .project-brief h3 {
    margin-bottom: 20px;
  }

  .project-gallery {
    padding: 20px 0;
  }

  .full-visual {
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .project-meta-grid {
    gap: 30px;
  }

  .project-meta-sidebar {
    padding-top: 20px;
  }

  .meta-item {
    margin-bottom: 20px;
  }

  .projects-grid {
    gap: 40px;
  }

  .capability-item {
    padding: 24px 0;
  }

  .footer-bottom {
    gap: 40px;
  }

  .clients-list {
    gap: 30px;
  }

  .contact-massive {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .vision-split,
  .awards-grid {
    gap: 40px;
  }

  .vision-visuals {
    height: 50vh;
    margin-bottom: 20px;
  }

  .vision-item {
    padding: 40px 0;
    gap: 20px;
    min-height: auto;
    /* Disable 100vh gaps on smaller mobile viewports */
  }

  .team-grid {
    gap: 20px;
  }
}

/* Transition Roll Button (Huge 스타일) */
.contact-usnav-btn {
  position: relative;
  display: block;
  height: 48px;
  /* Reduced from 64px */
  width: 140px;
  /* Reduced from 180px */
  overflow: hidden;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  cursor: none;
}

.contact-usbtn-track {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
}

.contact-usnav-btn:hover .contact-usbtn-track {
  transform: rotateX(-90deg);
}

.contact-usbtn-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.contact-usbtn-face.front {
  background: #000;
  color: #fff;
  transform: translateZ(24px);
  /* Half of 48px height */
}

.contact-usbtn-face.back {
  background: #48ff65;
  /* Huge Neon Green */
  color: #000;
  transform: rotateX(90deg) translateZ(24px);
  /* Half of 48px height */
}

/* Override for navbar link area to fit the taller button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .contact-usnav-btn {
    height: 44px;
    width: 120px;
    font-size: 14px;
  }

  /* Recalculate 3D cube for native 44px height */
  .contact-usbtn-face.front {
    transform: translateZ(22px);
  }

  .contact-usbtn-face.back {
    transform: rotateX(90deg) translateZ(22px);
  }
}

/* --- CONTACT PAGE STYLES --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 120px;
  margin-top: 40px;
  /* Reduced from 100px */
}

.dd-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.dd-form .full-width {
  grid-column: span 2;
}

.dd-form .form-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dd-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.dd-form input,
.dd-form select,
.dd-form textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-light);
  padding: 15px 0;
  font-size: 1.3rem;
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
}

.dd-form input:focus,
.dd-form select:focus,
.dd-form textarea:focus {
  outline: none;
  border-color: var(--text-color);
}

.dd-form input::placeholder,
.dd-form textarea::placeholder {
  color: #ccc;
  font-weight: 300;
}

.info-item {
  margin-bottom: 40px;
}

.info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.info-item p {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 400;
}

@media screen and (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

@media screen and (max-width: 480px) {
  .dd-form .form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dd-form .full-width {
    grid-column: span 1;
  }

  .info-item p {
    font-size: 1.1rem;
  }
}

/* --- Clients Logo Grid --- */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Show exactly 5 logos in a row */
  gap: 40px;
  align-items: center;
}

/* Show only 3 rows (15 logos total) when collapsed */
.clients-logo-grid.collapsed .client-card:nth-child(n + 16) {
  display: none;
}

/* When expanded, show all logos */
.clients-logo-grid:not(.collapsed) .client-card {
  display: block;
}

@media screen and (max-width: 1024px) {
  .clients-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .clients-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-link:hover {
  text-decoration-thickness: 2px;
  opacity: 0.7;
}

.editorial-link .expand-icon {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s;
}

.client-card {
  background-color: transparent;
  /* Restored original light mode */
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.5s var(--transition-smooth);
}

.client-card img {
  max-width: 100%;
  max-height: 120px;
  /* Increased from 80px to 120px for larger logos */
  object-fit: contain;
  filter: brightness(0);
  /* Black silhouettes */
  opacity: 0.5;
  transition: all 0.5s var(--transition-smooth);
}

.client-card:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark mode specific: Use modern grey cards and full clarity */
[data-theme="dark"] .client-card {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px;
  padding: 12px;
  /* Minimized padding to maximize image size */
}

[data-theme="dark"] .client-card img {
  filter: none !important;
  /* Show real brand colors/clarity in dark mode */
  opacity: 1 !important;
  max-width: 95%;
  /* Maximized to fill the card nearly entirely */
}

/* Cleaned up duplicate hover */

/* --- Hero 3D Orbital Engine (Elite Physics) --- */
.hero-orbital-wrapper {
  position: absolute;
  top: 55%;
  /* Shifted a little below vertically */
  left: 80%;
  /* Kept at right horizontal */
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  perspective: 2000px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

@media (max-width: 1350px) {
  .hero-orbital-wrapper {
    display: none;
    /* Only show the expensive 3D animation on large desktops (1350px+) */
  }
}

.orbital-system {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.central-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  box-shadow:
    inset -40px -40px 80px rgba(0, 0, 0, 0.08),
    inset 40px 40px 80px rgba(255, 255, 255, 0.4),
    0 30px 100px rgba(0, 0, 0, 0.05);
  /* Glassmorphic Sheen */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Fallback without backdrop-filter to prevent massive layout thrashing on animated siblings */
  overflow: hidden;
  /* Added for internal shadow catching */
  will-change: transform;
}

/* --- Dynamic Ball Shadows --- */
.sat-shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  /* Use radial gradient instead of expensive blur filter */
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

.shadow-x {
  animation: orbitShadowX 15s linear infinite;
  background: radial-gradient(circle, rgba(106, 90, 204, 0.6) 0%, transparent 70%); /* Purple color bleed */
}

.shadow-y {
  animation: orbitShadowY 25s linear infinite;
  background: radial-gradient(circle, rgba(255, 138, 108, 0.6) 0%, transparent 70%); /* Orange color bleed */
}

.shadow-z {
  animation: orbitShadowZ 20s linear infinite;
  background: radial-gradient(circle, rgba(8, 255, 127, 0.6) 0%, transparent 70%); /* Green color bleed */
}

/* Shadows follow the same path but at a smaller radius to stay ON the ball surface */
@keyframes orbitShadowX {
  0% {
    transform: rotateY(0deg) translateX(120px) rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateY(180deg) translateX(120px) rotateY(-180deg);
    opacity: 0;
  }

  /* Hide when ball is behind */
  100% {
    transform: rotateY(360deg) translateX(120px) rotateY(-360deg);
    opacity: 1;
  }
}

@keyframes orbitShadowY {
  0% {
    transform: rotateX(0deg) translateY(140px) rotateX(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateX(180deg) translateY(140px) rotateX(-180deg);
    opacity: 0;
  }

  100% {
    transform: rotateX(360deg) translateY(140px) rotateX(-360deg);
    opacity: 1;
  }
}

@keyframes orbitShadowZ {
  0% {
    transform: rotateZ(45deg) rotateY(0deg) translateX(110px) rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: rotateZ(45deg) rotateY(180deg) translateX(110px) rotateY(-180deg);
    opacity: 0;
  }

  100% {
    transform: rotateZ(45deg) rotateY(360deg) translateX(110px) rotateY(-360deg);
    opacity: 1;
  }
}

/* --- Orbital Paths --- */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  transform-style: preserve-3d;
  will-change: transform;
}

.orbit-1 {
  animation: orbitX 15s linear infinite;
}

.orbit-2 {
  animation: orbitY 25s linear infinite;
}

.orbit-3 {
  animation: orbitZ 20s linear infinite;
}

.satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  /* Reduced from 60 */
  height: 45px;
  margin-top: -22px;
  margin-left: -22px;
  border-radius: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.sat-purple {
  background: radial-gradient(circle at 30% 30%,
      rgba(138, 43, 226, 1) 0%,
      rgba(106, 90, 204, 1) 30%,
      rgba(40, 30, 100, 1) 100%);
  box-shadow: 0 15px 45px rgba(106, 90, 204, 0.5);
  /* Glow matches color */
}

.sat-orange {
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 180, 140, 1) 0%,
      rgba(255, 138, 108, 1) 30%,
      rgba(180, 60, 40, 1) 100%);
  width: 80px;
  height: 80px;
  box-shadow: 0 15px 45px rgba(255, 138, 108, 0.4);
}

.sat-green {
  background: radial-gradient(circle at 30% 30%,
      rgba(144, 255, 185, 1) 0%,
      rgba(8, 255, 127, 1) 30%,
      rgba(4, 120, 60, 1) 100%);
  width: 60px;
  height: 60px;
  box-shadow: 0 15px 45px rgba(8, 255, 127, 0.4);
}

/* --- Refined 3D Orbit Keyframes --- */
@keyframes orbitX {
  0% {
    transform: rotateY(0deg) translateX(210px) rotateY(0deg);
    z-index: 2;
  }

  50% {
    transform: rotateY(180deg) translateX(210px) rotateY(-180deg);
    z-index: -1;
  }

  100% {
    transform: rotateY(360deg) translateX(210px) rotateY(-360deg);
    z-index: 2;
  }
}

@keyframes orbitY {
  0% {
    transform: rotateX(0deg) translateY(240px) rotateX(0deg);
    z-index: 2;
  }

  50% {
    transform: rotateX(180deg) translateY(240px) rotateX(-180deg);
    z-index: -1;
  }

  100% {
    transform: rotateX(360deg) translateY(240px) rotateX(-360deg);
    z-index: 2;
  }
}

@keyframes orbitZ {
  0% {
    transform: rotateZ(45deg) rotateY(0deg) translateX(180px) rotateY(0deg);
    z-index: 2;
  }

  50% {
    transform: rotateZ(45deg) rotateY(180deg) translateX(180px) rotateY(-180deg);
    z-index: -1;
  }

  100% {
    transform: rotateZ(45deg) rotateY(360deg) translateX(180px) rotateY(-360deg);
    z-index: 2;
  }
}

/* --- Atmospheric Atmospheric Glows --- */
.orbital-glow {
  position: absolute;
  border-radius: 50%;
  /* Removed filter: blur(100px) as it causes massive GPU lag, using gradients natively provides the softness */
  z-index: -1;
  opacity: 0.3;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(106, 90, 204, 0.3) 0%,
      transparent 70%);
  top: 10%;
  left: -10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(255, 138, 108, 0.2) 0%,
      transparent 70%);
  bottom: -10%;
  right: -20%;
}

.split-reveal {
  overflow: hidden;
  line-height: 1.1;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.2em);
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s;
}

.char.active {
  opacity: 1;
  transform: translateY(0);
}

.word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.12em;
}

/* --- Case Study Format Styles --- */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 60px;
}

.project-info-grid .info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  /* Override previous info-item margin */
}

.narrative-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1000px;
}

.narrative-section h3 {
  margin-bottom: 30px;
}

.narrative-text {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--text-color);
}

.approach-item {
  margin-bottom: 40px;
}

.approach-item h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  color: var(--text-color);
}

.approach-item p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.outcome-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.outcome-val {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.outcome-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-item.full-width {
  grid-column: span 2;
}

.video-preview {
  aspect-ratio: 16/9;
}

@media screen and (max-width: 768px) {

  .project-info-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .gallery-item.full-width {
    grid-column: span 1;
  }
}

/* --- Full-screen Team Modal --- */
.full-screen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fbfbfb;
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  overflow-y: auto;
}

.full-screen-modal.active {
  display: block;
  opacity: 1;
}

.modal-close {
  position: fixed;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: none;
  /* Custom cursor takes over */
  z-index: 2100;
}

.modal-container {
  max-width: 1400px;
  margin: 15vh auto;
  padding: 0 5%;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.modal-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
}

.modal-info h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 20px 0 10px;
  letter-spacing: -0.03em;
}

.modal-info h3 {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.modal-bio {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #333;
}

.team-member {
  cursor: pointer;
}

.modal-social-wrap {
  display: flex;
  gap: 20px;
}

.modal-social-wrap .team-social-btn {
  width: 45px;
  height: 45px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-social-wrap .team-social-btn:hover {
  transform: translateY(-5px);
  background: var(--text-muted);
}

@media (max-width: 900px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modal-container {
    margin: 100px auto;
  }

  .modal-bio {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .modal-info h2 {
    font-size: 3rem;
  }
}

/* --- Portfolio Grid (Work.html Specific Sync) --- */
#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 50px;
}

#portfolioGrid .work-item {
  margin-top: 0 !important;
  /* Remove staggered offset for this grid */
}

#portfolioGrid .project-visual {
  aspect-ratio: 16/10;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease;
}

#portfolioGrid .work-item:hover .project-visual {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

/* --- Cover Image (Default State) --- */
.slider-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

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

.project-card:hover .slider-cover {
  /* opacity: 0; */
}

/* --- Hover Mini-Slider --- */
.hover-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  background: #000;
  pointer-events: none;
}

.project-card:hover .hover-slider {
  opacity: 1;
  pointer-events: auto;
}

.hover-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.hover-slider img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Slider Navigation Buttons - Arrow UI */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--text-rgb), 0.15);
  border-radius: 50%;
  color: var(--text-color);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-nav svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.project-card:hover .slider-nav {
  opacity: 1;
}

.slider-nav:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.slider-nav:hover svg {
  transform: scale(1.1);
}

.slider-prev:hover svg {
  transform: translateX(-2px) scale(1.1);
}

.slider-next:hover svg {
  transform: translateX(2px) scale(1.1);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider progress indicator */
.slider-progress {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.project-card:hover .slider-progress {
  opacity: 1;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--bg-rgb), 0.4);
  border: 1px solid rgba(var(--text-rgb), 0.2);
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--text-color);
  border-color: var(--text-color);
  transform: scale(1.3);
}

@keyframes slideSequence {

  0%,
  33.33% {
    opacity: 1;
  }

  33.34%,
  100% {
    opacity: 0;
  }
}

/* --- Card Metadata Below (Work.html Specific) --- */
.card-info-below {
  padding-top: 20px;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.card-info-below .card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.card-info-below .card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-color);
}

.card-info-below .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-info-below .tag {
  font-size: 0.6rem;
  padding: 3px 10px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--text-rgb), 0.03);
  color: var(--text-muted);
}

/* --- Scroll Reveal Engine --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s;
}

.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* --- Services Split-Section (Clay.global Style) --- */
.services-split-section {
  position: relative;
  padding-bottom: 200px;
}

.split-container {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.services-list {
  width: 45%;
  padding-top: 100px;
}

.service-item {
  margin-bottom: 120px;
  opacity: 0.15;
  transition: opacity 0.4s var(--transition-smooth);
  cursor: pointer;
}

.service-item.active {
  opacity: 1;
}

.service-num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #808080;
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-content p {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 90%;
}

.service-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.service-tags li {
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--text-color);
  opacity: 0.7;
  position: relative;
  padding-left: 20px;
  transition: opacity 0.4s ease;
}

.service-tags li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #808080;
}

.service-item.active .service-tags li {
  opacity: 1;
}

.service-item.active .service-tags li {
  border-color: transparent;
}

.service-mobile-img {
  display: none;
}

/* Sticky Visuals Engine */
.services-visuals {
  width: 50%;
  position: relative;
}

.visual-tray-sticky {
  position: sticky;
  top: 15vh;
  height: 70vh;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #f0f0f0;
}

.visual-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.4s var(--transition-smooth),
    transform 0.6s var(--transition-smooth);
  z-index: 1;
}

.visual-wrapper.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Page-specific overrides to remove all fades and reveal animations on Services */
.services-page .reveal-text,
.services-page .reveal-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.services-page .visual-wrapper {
  transition: none !important;
}

.services-page .char {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustment for Split Section */
@media (max-width: 1024px) {
  .split-container {
    display: block;
    /* Simpler stack */
  }

  /* Hide the complex sticky visual tray on mobile */
  .services-visuals {
    display: none;
  }

  .services-list {
    width: 100%;
    padding: 0;
  }

  /* Show the per-item images only on mobile */
  .service-mobile-img {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
    background: #f0f0f0;
  }

  .service-mobile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .service-item {
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    /* Increased slightly per request */
    border-bottom: 1px solid var(--border-light);
    opacity: 1 !important;
  }

  .service-num {
    font-size: 0.9rem;
  }

  .service-title {
    font-size: 1.8rem;
  }
}

/* --- Blog Grid (Clay Style) --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.blog-card-link {
  display: block;
  height: 100%;
}

.blog-visual {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border-light);
  margin-bottom: 25px;
}

.blog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

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

.blog-info {
  padding: 0 5px;
}

.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--text-muted);
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* Pagination System */
.pagination {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-number,
.page-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.page-number:hover,
.page-link:hover:not(.disabled) {
  background: rgba(var(--text-rgb), 0.06);
}

.page-number.active {
  background: var(--text-color);
  color: var(--bg-color);
}

.page-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .pagination {
    gap: 20px;
  }

  .page-numbers {
    display: none;
    /* Hide numbers on mobile for simple Next/Prev */
  }
}

#portfolioGrid .image-wrapper img {
  border-radius: 20px;
}

/* --- Showcase Grid (Index.html - Our Portfolio Section) --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.showcase-item {
  width: 100%;
}

.showcase-item .project-card {
  height: 100%;
}

@media (max-width: 1100px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- Blog Post Detail Layout --- */
.blog-post-page {
  background: var(--bg-color);
  /* Editorial feel */
}

/* Reading Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-light);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: var(--text-color);
  width: 0%;
}

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.article-header {
  margin-top: 0;
  margin-bottom: 60px;
  text-align: center;
}

.article-breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.article-breadcrumb a {
  color: inherit;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--text-color);
}

.article-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.01em;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.article-hero-image {
  margin-bottom: 80px;
}

.article-hero-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.article-content {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 40px;
}

.article-content .lead-paragraph {
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 60px;
}

.article-content h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 80px;
  margin-bottom: 30px;
  line-height: 1.2;
}

.article-content h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 60px;
  margin-bottom: 20px;
}

.article-content blockquote {
  font-size: 2rem;
  font-style: italic;
  line-height: 1.3;
  padding: 60px 0;
  margin: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-color);
  text-align: center;
  font-weight: 300;
}

/* Article Share */
.article-share {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.share-icons {
  display: flex;
  gap: 20px;
}

.share-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.share-btn:hover {
  color: var(--text-muted);
}

/* Related Posts Custom Label */
.related-posts .section-label {
  text-align: center;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .container-narrow {
    padding: 0 8%;
  }

  .article-header {
    margin-top: 60px;
  }

  .article-content .lead-paragraph {
    font-size: 1.3rem;
  }

  .article-content blockquote {
    font-size: 1.5rem;
  }
}

/* --- Article Comments Section --- */
.article-comments {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}

.comments-header {
  margin-bottom: 60px;
}

.comment-item {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 600;
  color: var(--text-color);
}

.comment-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Leave a Comment Form */
.leave-comment {
  margin-top: 100px;
}

.comment-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(var(--text-rgb), 0.03);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  background: rgba(var(--text-rgb), 0.06);
  border-color: var(--text-muted);
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.submit-comment-btn {
  align-self: flex-start;
  background: #808080;
  color: #fff;
  padding: 18px 40px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.submit-comment-btn:hover {
  background: var(--text-muted);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .article-comments {
    margin-top: 60px;
  }

  .form-row {
    flex-direction: column;
  }

  .submit-comment-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  #portfolioGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #portfolioGrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: none;
  padding: 10px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.theme-toggle:hover {
  transform: rotate(45deg) scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

@media (max-width: 1024px) {
  .theme-toggle {
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  #themeToggle {
    display: none;
  }
}

#mobileThemeToggle {
  margin: 30px auto 0;
  padding: 20px;
  width: fit-content;
}

#mobileThemeToggle svg {
  width: 30px;
  height: 30px;
}

/* ====================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints: 480px | 780px | 1080px | 1280px+
   ==================================================== */

/* --- 1080px: Medium Desktop / Large Tablet Landscape --- */
@media screen and (max-width: 1080px) {
  .container {
    padding: 0 4%;
  }

  .hero-inner {
    padding-top: 160px;
  }

  .hero-top h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
  }

  .section {
    padding: 80px 0;
  }

  /* Interior pages: reduce top push slightly at 1080px */
  .portfolio-main,
  .blog-main,
  .article-main,
  .services-main {
    padding-top: 150px !important;
  }

  .portfolio-header {
    margin-bottom: 50px;
  }

  /* Nav: smaller gap */
  .nav-links {
    gap: 24px;
  }

  .contact-usnav-btn {
    width: 130px;
    font-size: 13px;
  }

  /* Portfolio 2-col at this size */
  .portfolio-grid,
  #portfolioGrid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Show-case 2-col */
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Blog grid 2-col */
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Services split stacks */
  .split-container {
    flex-direction: column-reverse;
    gap: 60px;
  }

  .services-list,
  .services-visuals {
    width: 100%;
  }

  .visual-tray-sticky {
    height: 50vh;
    position: relative;
    top: unset;
  }

  /* Footer adjust */
  .footer-bottom {
    grid-template-columns: 1fr 2fr;
    gap: 60px;
  }

  /* Article */
  .container-narrow {
    max-width: 900px;
  }

  .article-content {
    font-size: 1.15rem;
  }
}

/* --- 780px: Tablet --- */
@media screen and (max-width: 780px) {
  .container {
    padding: 0 32px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .contact-usnav-btn {
    height: 42px;
    width: 118px;
    font-size: 13px;
  }

  /* Hero */
  .hero-inner {
    padding-top: 130px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-top h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .hero-showreel {
    width: 100%;
    height: 60vh;
    border-radius: 20px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  /* Interior pages: navbar is ~60px tall on tablet, need at least 120px */
  .portfolio-main,
  .blog-main,
  .article-main,
  .services-main {
    padding-top: 130px !important;
  }

  .portfolio-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(3rem, 9vw, 5rem);
  }

  /* Grids → single column */
  .projects-grid,
  .portfolio-grid,
  #portfolioGrid,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .showcase-item:nth-child(even) {
    margin-top: 0;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Capabilities */
  .capabilities-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About / Vision */
  .vision-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-visuals {
    position: relative;
    top: 0;
    height: 55vw;
    margin-bottom: 30px;
  }

  /* Awards */
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .dd-form .form-grid {
    grid-template-columns: 1fr;
  }

  .dd-form .full-width {
    grid-column: span 1;
  }

  /* Footer */
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* Article */
  .article-header {
    margin-top: 0;
  }

  .article-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .article-content {
    font-size: 1.1rem;
  }

  .article-content blockquote {
    font-size: 1.5rem;
    padding: 40px 0;
  }

  /* Portfolio filters wrap */
  .portfolio-filters {
    gap: 10px;
    top: 80px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* Case study grid */
  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-meta-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
  }

  /* Pagination */
  .pagination {
    gap: 15px;
    margin-top: 60px;
  }
}

/* --- 480px: Mobile --- */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  /* Nav */
  .navbar {
    padding: 18px 5%;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-right {
    gap: 8px;
  }

  .contact-usnav-btn {
    display: none;
    /* Hide on very small screens, use mobile menu */
  }

  #themeToggle {
    display: none;
  }

  /* Hero */
  .hero-inner {
    padding-top: 110px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-top h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-sub-tags {
    font-size: 0.85rem;
    margin-bottom: 30px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 0 5%;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 180px;
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 1rem;
    text-align: center;
  }

  .hero-showreel {
    width: 100%;
    height: 55vh;
    border-radius: 16px;
  }

  /* Sections */
  .section {
    padding: 30px 0;
  }

  /* Remove scroll transitions for smaller screens */
  .reveal-text,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Interior pages: navbar shrinks to ~58px on mobile (18px padding * 2 + logo) */
  .portfolio-main,
  .blog-main,
  .article-main,
  .services-main {
    padding-top: 80px !important;
  }

  .portfolio-header {
    margin-bottom: 30px;
  }

  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  /* Pull images up for denser mobile flow */
  .services-hero {
    padding-bottom: 10px;
  }

  .services-split-section {
    padding-top: 0;
  }

  .section-label {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  /* Scale tagline down to fit single line on mobile */
  .hero-sub-tags {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .section-title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    margin-bottom: 30px;
  }

  /* One-column everything */
  .projects-grid,
  .portfolio-grid,
  #portfolioGrid,
  .showcase-grid,
  .blog-grid,
  .outcome-grid,
  .gallery-grid,
  .project-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card:nth-child(even),
  .showcase-item:nth-child(even) {
    margin-top: 0;
  }

  /* Blog card text */
  .blog-title {
    font-size: 1.25rem;
  }

  /* Capabilities */
  .capabilities-split {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 0;
  }

  .accordion-header h3 {
    font-size: 1.2rem;
    white-space: normal;
  }

  /* Vision */
  .vision-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vision-visuals {
    position: relative;
    top: 0;
    height: 50vw;
    min-height: 220px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Awards */
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dd-form .form-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-ustext-link {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  /* Footer */
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  /* Accordion */
  .accordion-item {
    padding: 20px 0;
  }

  .accordion-content {
    font-size: 0.95rem;
  }

  /* Services split */
  .split-container {
    flex-direction: column;
    gap: 40px;
  }

  .services-list,
  .services-visuals {
    width: 100%;
  }

  .visual-tray-sticky {
    height: 55vw;
    min-height: 220px;
    position: relative;
    top: unset;
  }

  .service-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Portfolio filters */
  .portfolio-filters {
    top: 70px;
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Mobile overlay text */
  .mobile-link {
    font-size: 1.8rem;
  }

  /* Article */
  .article-header {
    margin-top: 0;
    margin-bottom: 40px;
  }

  .article-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.6rem;
    margin-top: 50px;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-content blockquote {
    font-size: 1.3rem;
    padding: 30px 0;
  }

  .article-share {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .comment-form input,
  .comment-form textarea {
    padding: 15px;
  }

  .form-row {
    flex-direction: column;
  }

  /* Case study */
  .project-gallery {
    padding: 20px 0;
  }

  .full-visual {
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .narrative-text {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  /* Clients */
  .clients-list {
    gap: 30px 60px;
  }

  /* Hide custom cursor on mobile */
  .cursor-dot,
  .cursor-outline,
  .cursor-action-btn,
  .hero-svg-wrapper {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

/* ====================================================
   TEAM MEMBER FULL-SCREEN MODAL
   ==================================================== */

.full-screen-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  color: var(--text-color);
  z-index: 100000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-screen-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-close {
  position: fixed;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: none;
  z-index: 100001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.modal-close:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: rotate(90deg);
}

.modal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.modal-visual {
  position: sticky;
  top: 120px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--border-light);
}

.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding-top: 20px;
}

.modal-info .section-label {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.modal-info h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 15px;
  color: var(--text-color);
}

.modal-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-bio {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-color);
  opacity: 0.85;
}

.modal-bio p {
  margin-bottom: 24px;
}

.modal-social-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-social-wrap .team-social-btn {
  width: 42px;
  height: 42px;
}

/* Responsive: stack on tablet/mobile */
@media (max-width: 780px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modal-visual {
    position: relative;
    top: unset;
    aspect-ratio: 4/3;
  }

  .modal-container {
    padding: 100px 5% 60px;
  }

  .modal-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    padding: 90px 5% 50px;
  }

  .modal-info h2 {
    font-size: 2rem;
  }

  .modal-bio {
    font-size: 1rem;
  }
}

/* --- Section Title Button UI --- */
.section-title-btn {
  display: inline-block;
  padding: 24px 50px;
  border: 1.5px solid var(--text-color);
  border-radius: 100px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 60px;
  transition: all 0.5s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.section-title-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateX(15px);
}

@media (max-width: 780px) {
  .section-title-btn {
    padding: 18px 40px;
    font-size: 1.8rem;
  }
}

/* --- Testimonials & Blog Enhancements --- */
.testimonial-list {
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  display: flex;
  gap: 30px;
  padding: 60px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.1);
  position: relative;
}

.testimonial-card:first-child {
  padding-top: 0;
}

.testimonial-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* --- Testimonial Stacking Layout --- */
.testimonials-section {
  padding: 80px 0 40px;
}

.testimonials-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

/* Left Column - Static Content */
.testimonials-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  /* height: 100vh only applies on desktop - overridden via media query */
}

.testimonials-left .section-title {
  text-align: left;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  /* Reduced from massive 8rem global scale */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.testimonials-left .testimonials-intro {
  text-align: left;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 450px;
  /* Constrained for better editorial layout */
  margin: 0 0 40px 0;
  line-height: 1.5;
  opacity: 0.8;
}

.testimonials-left .view-all-container {
  margin-top: 40px;
}

/* Right Column - Scrollable Cards */
.testimonials-right {
  position: relative;
}

.testimonials-scroll {
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* Space between cards during scroll */
}

.testimonials-scroll .testimonial-card {
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 50px;
  display: block;
  position: sticky;
  width: 100%;
  height: auto;
  min-height: unset;
  /* Let content define height */
  box-shadow: none;
  transition: transform 0.5s var(--transition-smooth);
}

.testimonial-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.testimonial-top {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.testimonial-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.testimonial-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
}

.testimonial-quote-mark {
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: -10px;
  color: var(--text-color);
  font-family: serif;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin: 0;
}

.testimonial-author-info {
  padding-left: 110px;
  /* Aligned with the text under the quote */
}

.testimonial-author-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-color);
}

.testimonial-author-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .testimonial-top {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .testimonial-avatar-circle {
    width: 60px;
    height: 60px;
  }

  .testimonial-author-info {
    padding-left: 80px;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* Premium Stacking: Each card sticks slightly lower to reveal edges with depth scaling */
/* Bottom-most cards (starting cards) are smaller to create perspective */
.testimonials-scroll .testimonial-card:nth-child(1) {
  top: 120px;
  z-index: 1;
  transform: none;
}

.testimonials-scroll .testimonial-card:nth-child(2) {
  top: 120px;
  z-index: 2;
  transform: none;
}

.testimonials-scroll .testimonial-card:nth-child(3) {
  top: 120px;
  z-index: 3;
  transform: none;
}

.testimonials-scroll .testimonial-card:nth-child(4) {
  top: 120px;
  z-index: 4;
  transform: none;
}

.testimonials-scroll .testimonial-card:nth-child(5) {
  top: 120px;
  z-index: 5;
  transform: none;
}

.testimonials-scroll .testimonial-card:nth-child(6) {
  top: 120px;
  z-index: 6;
  transform: none;
}

.testimonials-scroll-container {
  padding-bottom: 80px;
  /* Reduced buffer to close the gap before the next section */
}

/* =============================================
   MOBILE RESPONSIVE — Testimonials
   Breakpoint: <= 1024px (tablets & phones)
   Cards listed top-to-bottom, no animation
   ============================================= */
@media (max-width: 1024px) {
  .testimonials-section {
    padding: 60px 0 40px;
  }

  .testimonials-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Unpin the left column so it flows normally */
  .testimonials-left {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: 0 0 40px;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .testimonials-left .section-title {
    text-align: center;
    margin-bottom: 16px;
  }

  .testimonials-left .testimonials-intro {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 100%;
  }

  .testimonials-left .view-all-container {
    text-align: center;
    margin-top: 8px;
  }

  /* Remove ALL stacking animation for mobile */
  .testimonials-scroll {
    gap: 24px;
  }

  .testimonials-scroll .testimonial-card,
  .testimonials-scroll .testimonial-card:nth-child(1),
  .testimonials-scroll .testimonial-card:nth-child(2),
  .testimonials-scroll .testimonial-card:nth-child(3),
  .testimonials-scroll .testimonial-card:nth-child(4),
  .testimonials-scroll .testimonial-card:nth-child(5),
  .testimonials-scroll .testimonial-card:nth-child(6) {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    height: auto !important;
    min-height: unset !important;
    width: 100% !important;
    opacity: 1 !important;
    margin-bottom: 0;
    padding: 36px 28px;
  }

  .testimonials-scroll-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0;
  }

  .testimonial-wrapper {
    gap: 16px;
  }

  /* Card internals: keep the avatar on the left */
  .testimonial-top {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
  }

  .testimonial-avatar-circle {
    width: 60px;
    height: 60px;
  }

  .testimonial-quote-mark {
    font-size: 2.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-author-info {
    padding-left: 80px;
    /* Align with text above */
    text-align: left;
    margin-top: 20px;
  }
}

/* --- Clay.Global Style News Section --- */
.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
}

.news-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.5s var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

@media (min-width: 900px) {
  .news-row {
    grid-template-columns: 450px 1fr auto;
    align-items: stretch;
    gap: 60px;
    padding: 50px 0;
  }
}

.news-row:hover {
  padding-left: 20px;
  padding-right: 20px;
  background: rgba(var(--text-rgb), 0.02);
}

.news-content {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.news-tag {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.news-meta-bottom {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.read-time {
  opacity: 0.7;
}

.news-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.news-visual {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  margin: 20px 0;
}

@media (min-width: 900px) {
  .news-visual {
    margin: 0;
    width: 450px;
    height: 100%;
    aspect-ratio: unset;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .news-row:hover .news-visual img {
    transform: scale(1.05);
  }
}

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

.news-arrow {
  font-size: 2rem;
  color: var(--text-muted);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.news-row:hover .news-arrow {
  transform: translateX(10px) rotate(-45deg);
  color: var(--text-color);
}

/* --- Spacing & Layering Overrides --- */
.latest-thinking-section {
  padding-top: 20px !important;
  position: relative;
  z-index: 20;
  /* Layers over the testimonial stack */
  background: var(--bg-color);
  /* Prevents cards from showing through */
}