/* ============================================
   Kamaan — Main styles & animations
   ============================================ */

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

:root {
  --cream: #f5f0e8;
  --black: #0d0d0d;
  --gray-dark: #3a3a3a;
  --gray-mid: #7a7a7a;
  --gray-light: #c8c2b8;
  --accent-orange: #ff4d1c;
  --card-dark: #2a2a2a;
  --card-medium: #888880;
  --card-light: #d4cfc6;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* --------------------------------------------
   NAV
-------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--black);
  color: var(--cream) !important;
  padding: 9px 20px !important;
  border-radius: 100px;
  opacity: 1 !important;
}

/* --------------------------------------------
   SIDEBAR
-------------------------------------------- */
.sidebar {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-mid);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.sidebar-dot.active,
.sidebar-dot:hover {
  opacity: 1;
  transform: scale(1.4);
  background: var(--black);
}

/* --------------------------------------------
   HERO
-------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 40px 0px;
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  max-width: 900px;
  color: var(--black);
}

.hero h1 .copyright-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  height: 0.85em;
  border: 0.06em solid var(--black);
  border-radius: 50%;
  font-size: 1em;
  vertical-align: middle;
  margin-right: -0.04em;
  position: relative;
  top: -0.04em;
}

/* Ticker strip */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  margin: 40px 0 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 22s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  padding: 0 40px;
  white-space: nowrap;
}

.ticker-track span.dot {
  color: var(--black);
  padding: 0;
  opacity: 0.25;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero p {
  margin-top: 36px;
  font-size: 15px;
  color: var(--gray-mid);
  max-width: 380px;
  line-height: 1.75;
}

.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.hero-cta:hover { opacity: 0.6; }

.hero-cta .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(0,0,0,0.25);
  border-radius: 50%;
  font-size: 13px;
}

.hero-video-block {
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: var(--black);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video-block span {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------
   SCROLL REVEAL (animations)
-------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------
   FEATURED WORK
-------------------------------------------- */
.featured {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.section-header p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray-mid);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
}

.work-card {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.work-card:hover { transform: scale(0.98); }

.work-card.dark { background: var(--card-dark); }
.work-card.medium { background: var(--card-medium); }
.work-card.light { background: var(--card-light); }

.work-card.tall { grid-row: span 2; }

.work-card-label {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card .client-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.work-card-body {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
}

.work-card-type {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

/* --------------------------------------------
   SCROLL VIDEO REVEAL
-------------------------------------------- */
.scroll-video-section {
  position: relative;
  height: 260vh;
  background: var(--cream);
  margin-top: 0;
}

.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 6vh, 68px) 40px 24px;
}

.scroll-video-shell {
  width: min(100%, 1020px);
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  transform-origin: center center;
  will-change: transform, border-radius;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

.scroll-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.scroll-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.12) 48%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.scroll-video-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------
   IMMERSIVE STRIP
-------------------------------------------- */
.immersive-strip {
  margin-top: 270px;
  padding: 90px 40px 50px;
  background: var(--cream);
}

.immersive-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.immersive-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.immersive-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 10px;
}

.immersive-sub {
  color: var(--gray-dark);
  font-size: 15px;
  line-height: 1.75;
  max-width: 460px;
}

.immersive-video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.immersive-video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.immersive-chip {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(13,13,13,0.78);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 9px 14px;
  backdrop-filter: blur(8px);
}

.chip-top {
  top: 16px;
  left: 16px;
  animation: float-chip 5.5s ease-in-out infinite;
}

.chip-bottom {
  right: 16px;
  bottom: 16px;
  animation: float-chip 6.2s ease-in-out infinite reverse;
}

@keyframes float-chip {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* --------------------------------------------
   SEE MORE (spinning CTA)
-------------------------------------------- */
.see-more-section {
  background: var(--cream);
  margin-top: 50px;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.see-more-stage {
  width: min(97vw, 1320px);
  height: min(92vh, 980px);
  border-radius: 28px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.6s ease;
  will-change: width, height, border-radius;
}

.see-more-section.is-active .see-more-stage {
  background: #fff;
}

.see-more-orbit {
  position: relative;
  width: min(88vw, 760px);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-track {
  position: absolute;
  inset: 0;
  transform: rotate(0deg);
  will-change: transform;
}

.orbit-card {
  position: relative;
  width: 170px;
  aspect-ratio: 1/1;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 22px 42px rgba(0,0,0,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
}

.orbit-card span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.orbit-card.card-1 { --x: -230px; --y: -210px; --r: -9deg; background: linear-gradient(135deg, #0f172a, #1e293b); }
.orbit-card.card-2 { --x: 20px; --y: -260px; --r: 8deg; background: linear-gradient(135deg, #4c1d95, #7e22ce); }
.orbit-card.card-3 { --x: 250px; --y: -180px; --r: 10deg; background: linear-gradient(135deg, #312e81, #0f172a); }
.orbit-card.card-4 { --x: 280px; --y: 25px; --r: -7deg; background: linear-gradient(135deg, #0f172a, #1f2937); }
.orbit-card.card-5 { --x: 170px; --y: 230px; --r: 11deg; background: linear-gradient(135deg, #f97316, #fb923c); }
.orbit-card.card-6 { --x: -45px; --y: 270px; --r: -12deg; background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.orbit-card.card-7 { --x: -250px; --y: 190px; --r: 8deg; background: linear-gradient(135deg, #111827, #374151); }
.orbit-card.card-8 { --x: -290px; --y: -15px; --r: -10deg; background: linear-gradient(135deg, #334155, #0f172a); }

.spinning-cta {
  width: clamp(220px, 32vw, 340px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.spinning-cta .center-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(44px, 8.4vw, 96px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 0.9;
  letter-spacing: -1.5px;
  z-index: 2;
  transition: color 0.8s ease;
}

.see-more-section.is-active .spinning-cta .center-text {
  color: #0d0d0d;
}

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

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

/* --------------------------------------------
   WHAT WE SHIP
-------------------------------------------- */
.ship-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.ship-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 48px;
}

.ship-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ship-card-main {
  border-radius: 16px;
  background: var(--black);
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-card-main span {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ship-card-sub {
  background: var(--gray-dark);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 160px;
}

.ship-card-sub h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--cream);
  max-width: 280px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ship-card-btn {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.ship-card-btn:hover { background: rgba(255,255,255,0.22); }

/* Services row */
.services-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.service-card {
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.service-icon {
  font-size: 24px;
  color: rgba(255,255,255,0.5);
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-top: auto;
}

.service-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.service-card:nth-child(2) .service-desc { color: var(--gray-mid); }
.service-card:nth-child(2) .service-name { color: var(--black); }
.service-card:nth-child(2) .service-icon { color: var(--accent-orange); }

.service-clients {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* --------------------------------------------
   TRUSTED
-------------------------------------------- */
.trusted-section {
  padding: 80px 40px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.trusted-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
}

.founders-count {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: var(--accent-orange);
}

.stacked-cards {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  height: 120px;
  position: relative;
}

.stacked-card {
  position: absolute;
  width: 90px;
  height: 110px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.stacked-card:nth-child(1) { background: #e8e2d8; transform: rotate(-8deg) translateX(-60px); }
.stacked-card:nth-child(2) { background: #3a3a3a; transform: rotate(-3deg) translateX(-20px); z-index: 1; }
.stacked-card:nth-child(3) { background: #888880; transform: rotate(2deg) translateX(20px); }
.stacked-card:nth-child(4) { background: #1a1a1a; transform: rotate(7deg) translateX(60px); }

/* --------------------------------------------
   TEAM INTRO ORBIT
-------------------------------------------- */
.team-intro-section {
  background: #f0efe8;
  padding: clamp(72px, 12vw, 130px) clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.team-intro-stage {
  position: relative;
  max-width: 1120px;
  min-height: clamp(360px, 58vw, 620px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

.team-intro-eyebrow {
  margin: 0 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3.8vw, 62px);
  line-height: 1;
  font-weight: 700;
  color: #121212;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 26;
}

.team-intro-title {
  margin: 0;
  line-height: 0.84;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(74px, 18vw, 250px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(75, 67, 67, 0.56);
  text-transform: lowercase;
  position: relative;
  z-index: 24;
}

.team-intro-title span {
  display: block;
}

.team-intro-cta {
  margin-top: clamp(18px, 3vw, 26px);
  color: #111;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  z-index: 26;
}

.team-intro-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
  z-index: 25;
}

.team-intro-card {
  --size: clamp(72px, 10vw, 130px);
  --tilt: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: calc(var(--size) * 1.28);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0.9;
}

.team-intro-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-intro-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 118, 31, 0.22) 0%, rgba(255, 60, 0, 0.38) 100%);
  mix-blend-mode: multiply;
}

@media (max-width: 820px) {
  .team-intro-stage {
    min-height: clamp(360px, 92vw, 520px);
  }

  .team-intro-card {
    --size: clamp(66px, 22vw, 104px);
    --radius: clamp(120px, 36vw, 220px);
    border-radius: 10px;
  }
}

/* --------------------------------------------
   OUR WORK — Case studies grid (dark)
-------------------------------------------- */
.works-section {
  background: var(--black);
  padding: 80px 40px 100px;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.works-heading-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.works-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.works-header-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.works-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.works-filter-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
}

.works-filter {
  appearance: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.98);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 32px 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23ff4d1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.works-filter:hover,
.works-filter:focus {
  border-color: rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.1);
  outline: none;
}

.works-filter option {
  color: #111;
  background: #f7f3eb;
}

.works-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--cream);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Works page — 2×2 visible, scroll for 10 total */
.works-page-body {
  background: var(--black);
  min-height: 100vh;
}

.works-page-body nav {
  background: var(--black);
  border-bottom-color: rgba(255,255,255,0.08);
}

.works-page-body .nav-logo,
.works-page-body .nav-links a {
  color: var(--cream);
}

.works-page-body .nav-links a:not(.nav-cta) {
  opacity: 0.65;
}

.works-page-body .nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.works-page-main {
  padding-top: 72px;
  padding-bottom: 24px;
}

.works-page.works-section {
  padding-top: 48px;
  padding-bottom: 70px;
}

.works-scroll-hint {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin: -14px auto 28px;
  max-width: 1120px;
}

.works-scroll-viewport {
  max-width: 1120px;
  margin: 0 auto;
  overflow: visible;
  padding-right: 0;
}

.works-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 0;
}

.works-card {
  --center-scale: 0.82;
  --center-lift: 0px;
  --center-rotate: 0deg;
  --center-glow: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.1s linear, border-color 0.22s ease, background-color 0.22s ease, opacity 0.22s ease, box-shadow 0.15s linear;
  opacity: 0;
  transform: translateY(24px) scale(0.82);
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.works-card:hover {
  transform: translateY(calc(var(--center-lift) - 2px)) scale(calc(var(--center-scale) + 0.02)) rotate(var(--center-rotate));
  border-color: rgba(255,255,255,0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.works-card.is-visible {
  opacity: 1;
  transform: translateY(var(--center-lift)) scale(var(--center-scale)) rotate(var(--center-rotate));
  box-shadow:
    0 calc(12px + (var(--center-glow) * 16px)) calc(28px + (var(--center-glow) * 38px)) rgba(0, 0, 0, 0.32),
    0 0 calc(4px + (var(--center-glow) * 18px)) rgba(255, 255, 255, 0.12);
}

.works-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.works-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--card-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.45s ease;
}

.works-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #0b0d11;
}

.works-card:hover .works-card-image {
  transform: scale(1.03);
}

.works-card-video-wrap {
  position: relative;
  background: #101216;
  min-height: clamp(210px, 28vw, 340px);
  overflow: hidden;
}

.works-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #0b0d11;
}

.works-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--cream);
  margin-top: 14px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.works-card-categories {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 2px;
}

/* --------------------------------------------
   TEAM SECTION (small team, big results)
-------------------------------------------- */
.team-section {
  padding: 100px 40px;
  text-align: center;
}

.team-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
}

.team-section .big-word {
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
  opacity: 0.12;
  display: block;
  margin-top: -10px;
}

.floating-cards {
  position: relative;
  height: 220px;
  margin: 0 auto;
  max-width: 500px;
}

.float-card {
  position: absolute;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.float-card:nth-child(1) { width: 100px; height: 130px; background: var(--black); top: 20px; left: 40px; transform: rotate(-12deg); }
.float-card:nth-child(2) { width: 80px; height: 100px; background: var(--card-medium); top: 60px; left: 100px; transform: rotate(-5deg); }
.float-card:nth-child(3) { width: 110px; height: 140px; background: var(--card-dark); top: 10px; right: 80px; transform: rotate(10deg); }
.float-card:nth-child(4) { width: 70px; height: 90px; background: var(--card-light); top: 80px; right: 40px; transform: rotate(5deg); }

.float-card.hovered:nth-child(1) { transform: rotate(-12deg) scale(1.08); }
.float-card.hovered:nth-child(2) { transform: rotate(-5deg) scale(1.08); }
.float-card.hovered:nth-child(3) { transform: rotate(10deg) scale(1.08); }
.float-card.hovered:nth-child(4) { transform: rotate(5deg) scale(1.08); }

.team-cta {
  margin-top: 48px;
  font-size: 13px;
  color: var(--gray-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Team cards & stats (for future sections) */
.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 48px auto 0;
  text-align: left;
}

.team-member-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.team-member-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.3px;
}

.team-member-role {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-top: 2px;
}

.team-member-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-mid);
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 56px auto 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.team-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.team-stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--black);
}

.stat-label {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
}

/* --------------------------------------------
   TESTIMONIALS
-------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
  text-align: left;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-dark);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.testimonial-role {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------
   WIREFRAME HEMISPHERES (Griflan-style scroll section)
-------------------------------------------- */
.wire-sphere-section {
  position: relative;
  min-height: 280vh;
  background: #030303;
  color: var(--cream);
}

.wire-sphere-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

#wire-sphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wire-sphere-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  max-width: min(640px, 88vw);
  text-align: center;
  padding: 20px 28px;
  pointer-events: none;
}

.wire-sphere-content a {
  pointer-events: auto;
}

.wire-sphere-kicker {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--accent-orange);
  margin-bottom: 28px;
}

.wire-sphere-lead {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 32px;
}

.wire-sphere-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wire-sphere-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 77, 28, 0.35);
}

/* Full-bleed on Services (section sits outside padded .services-main) */
.wire-sphere-section--services {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* --------------------------------------------
   CTA FOOTER
-------------------------------------------- */
.cta-footer {
  background: var(--black);
  padding: 100px 40px;
  text-align: center;
}

.cta-footer h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  color: var(--cream);
}

.cta-footer h2 em {
  font-style: italic;
  color: var(--accent-orange);
}

.cta-footer p {
  margin-top: 20px;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.footer-cta-btn {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-orange);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,77,28,0.4);
}

/* --------------------------------------------
   BOTTOM NAV
-------------------------------------------- */
.bottom-nav {
  background: var(--black);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.bottom-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
}

.bottom-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.bottom-nav-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.bottom-nav-links a:hover { color: rgba(255,255,255,0.8); }

.dynamic-footer + .bottom-nav {
  background: linear-gradient(120deg, var(--footer-gradient-start, #0f2f2c), var(--footer-gradient-end, #0f1720));
  border-top: 1px solid rgba(255,255,255,0.08);
}

.dynamic-footer + .bottom-nav .bottom-nav-logo {
  color: color-mix(in srgb, var(--footer-text-color, #e9f1ea) 78%, transparent);
}

.dynamic-footer + .bottom-nav .bottom-nav-links a {
  color: color-mix(in srgb, var(--footer-text-color, #e9f1ea) 56%, transparent);
}

.dynamic-footer + .bottom-nav .bottom-nav-links a:hover {
  color: color-mix(in srgb, var(--footer-text-color, #e9f1ea) 90%, transparent);
}

/* --------------------------------------------
   DYNAMIC FOOTER
-------------------------------------------- */
.dynamic-footer {
  --footer-gradient-start: #0f2f2c;
  --footer-gradient-end: #0f1720;
  --footer-glow-color: #a8f29a;
  --footer-surface-color: #121a20;
  --footer-text-color: #e9f1ea;
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 34px);
  color: var(--footer-text-color);
  background: linear-gradient(120deg, var(--footer-gradient-start), var(--footer-gradient-end));
}

.dynamic-footer::before {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -34%;
  width: min(440px, 62vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--footer-glow-color) 82%, transparent), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.dynamic-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(16px, 2.4vw, 24px);
}

.dynamic-footer-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dynamic-footer-card {
  min-height: 118px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--footer-surface-color) 92%, #ffffff 8%);
  padding: 14px;
  text-decoration: none;
  color: var(--footer-text-color);
  display: flex;
  align-items: flex-end;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.dynamic-footer-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.dynamic-footer-contact {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--footer-surface-color) 94%, #ffffff 6%);
  padding: 16px;
}

.dynamic-footer-contact h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
}

.dynamic-footer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dynamic-footer-form input,
.dynamic-footer-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--footer-text-color);
  padding: 10px 11px;
  font: inherit;
}

.dynamic-footer-form textarea {
  grid-column: 1 / -1;
  min-height: 86px;
  resize: vertical;
}

.dynamic-footer-btn {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--footer-glow-color) 72%, #ffffff 28%);
  color: #09110d;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .dynamic-footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------
   INNER PAGES — Page hero
-------------------------------------------- */
.page-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 40px 80px;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--black);
  max-width: 720px;
}

.page-hero p {
  margin-top: 20px;
  font-size: 16px;
  color: var(--gray-mid);
  max-width: 440px;
  line-height: 1.7;
}

/* Services hero variant */
.services-hero {
  min-height: auto;
  align-items: stretch;
  text-align: left;
  padding: 132px 40px 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.services-hero-top {
  text-align: center;
  margin: 0 auto;
}

.services-hero-eyebrow {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.services-hero h1 {
  max-width: none;
  font-size: clamp(46px, 7vw, 98px);
  line-height: 0.98;
  letter-spacing: -2px;
}

.services-hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  text-align: center;
}

.services-hero-cats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.services-cat span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 10px;
}

.services-cat-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(13,13,13,0.35), rgba(13,13,13,0.08));
}

/* --------------------------------------------
   CONTACT PAGE — Form
-------------------------------------------- */
.contact-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  background: white;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(13,13,13,0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-light);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-submit {
  margin-top: 12px;
  align-self: flex-start;
  background: var(--black);
  color: var(--cream);
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.contact-form .form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-form .form-submit.accent {
  background: var(--accent-orange);
  color: white;
}

.contact-extra {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  font-size: 14px;
  color: var(--gray-mid);
}

.contact-extra a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------
   SERVICES PAGE — Detail blocks
-------------------------------------------- */
.services-intro {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.services-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-mid);
}

.service-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.service-detail-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.service-detail-block:first-child { padding-top: 0; }

.service-detail-block:last-child { border-bottom: none; }

.service-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--black);
}

.service-detail-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 8px;
}

.service-detail-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.service-detail-content p,
.service-detail-content ul {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-dark);
  margin-bottom: 16px;
}

.service-detail-content ul {
  list-style: none;
  padding-left: 0;
}

.service-detail-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
}

.services-cta-section {
  background: var(--black);
  padding: 80px 40px;
  text-align: center;
  margin-top: 24px;
}

.services-cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--cream);
  margin-bottom: 12px;
}

.services-cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  margin-bottom: 28px;
}

/* --------------------------------------------
   SERVICES V2 — Editorial full page
-------------------------------------------- */
.services-page-body {
  background: #181616;
  color: #fffddb;
  font-family: sans-serif;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.4;
  overflow-x: hidden;
  overscroll-behavior: none;
}

.services-page-body nav {
  background: rgba(24,22,22,0.72);
  border-bottom: 1px solid rgba(255,253,219,0.08);
  backdrop-filter: blur(6px);
}

.services-page-body .nav-logo,
.services-page-body .nav-links a {
  color: #fffddb;
}

.services-main {
  padding: 112px 40px 84px;
}

.services-v2-hero {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.services-v2-eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a89f95;
  margin-bottom: 14px;
}

.services-v2-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 9vw, 116px);
  letter-spacing: -2.5px;
  line-height: 0.96;
  margin-bottom: 16px;
  color: #fffddb;
}

.services-v2-sub {
  max-width: 620px;
  margin: 0 auto;
  color: #cbc3b7;
  line-height: 1.75;
  font-size: 16px;
}

.services-v2-rails {
  position: sticky;
  top: 74px;
  z-index: 20;
  margin: 54px auto 38px;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  background: rgba(20,18,18,0.76);
  border: 1px solid rgba(255,253,219,0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  padding: 14px 8px;
}

.services-v2-rail {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8d0c3;
  position: relative;
  padding-bottom: 10px;
}

.services-v2-rail::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,253,219,0.25);
}

.services-v2-rail::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: calc(var(--rail-progress, 0) * 100%);
  background: var(--accent-orange);
  transform-origin: left center;
  transition: width 0.18s linear;
}

.services-v2-rail.active {
  color: var(--accent-orange);
}

.services-v2-rail.active::after {
  background: rgba(255,253,219,0.25);
}

.services-v2-blocks {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.services-v2-story {
  max-width: 1100px;
  margin: 0 auto;
}

.services-v2-frame {
  position: sticky;
  top: 118px;
  min-height: min(88vh, 920px);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.services-v2-frame-copy,
.services-v2-frame-visual {
  position: relative;
  min-height: min(82vh, 820px);
  overflow: hidden;
}

.services-v2-frame-copy {
  display: flex;
  align-items: center;
}

.services-v2-panel,
.services-v2-visual-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.services-v2-panel.is-active,
.services-v2-visual-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-v2-steps {
  margin-top: 24px;
}

.services-v2-step {
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-v2-step span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,13,13,0.38);
  display: none;
}

.services-v2-block {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.services-v2-visual {
  border-radius: 14px;
  aspect-ratio: 16 / 12;
  box-shadow: 0 24px 52px rgba(0,0,0,0.14);
  transition: transform 0.35s ease, filter 0.3s ease;
}

.services-v2-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.services-v2-gallery-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s ease-out;
  will-change: transform;
  padding-right: 2px;
}

.services-v2-visual-grid .tile-lg {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.services-v2-visual-grid .tile-sm {
  aspect-ratio: 1 / 1;
}

.services-v2-gif {
  overflow: hidden;
}

.services-v2-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-v2-block:hover .services-v2-visual {
  transform: translateY(-4px) scale(1.01);
  filter: saturate(1.07);
}

.services-v2-copy {
  background: rgba(255,253,219,0.05);
  border: 1px solid rgba(255,253,219,0.16);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.services-v2-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 10px;
}

.services-v2-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.7vw, 46px);
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 14px;
  color: #fffddb;
}

.services-v2-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: #d4ccc1;
}

.services-v2-copy p.services-v2-word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12em 0.26em;
}

.services-v2-word {
  display: inline-block;
  opacity: 0.14;
  filter: blur(0.6px);
}

.services-v2-word.is-flicker {
  animation: services-word-flicker 520ms steps(2, end) forwards;
}

@keyframes services-word-flicker {
  0% { opacity: 0.06; filter: blur(1px); transform: translateY(2px); }
  14% { opacity: 0.9; filter: blur(0.1px); }
  26% { opacity: 0.2; }
  44% { opacity: 1; filter: blur(0); transform: translateY(0); }
  63% { opacity: 0.5; }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.services-v2-fields {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.services-v2-field-btn {
  border: 1px solid rgba(255,253,219,0.18);
  background: rgba(255,253,219,0.06);
  color: #f0e9de;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.services-v2-field-btn:hover,
.services-v2-field-btn:focus-visible,
.services-v2-field-btn.is-active {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(255,77,28,0.45);
  background: rgba(255,77,28,0.2);
  color: #fff4ef;
}

.services-v2-testimonials {
  margin: 96px 0 0;
  padding: 56px 0 64px;
  background: #0d0d0d;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.services-v2-testimonials h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -1.5px;
  margin-bottom: 36px;
  padding: 0 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cream);
}

.services-v2-marquee {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  padding: 32px 0 40px;
  -webkit-user-select: none;
  user-select: none;
  perspective: 1100px;
}

.services-v2-marquee.is-dragging {
  cursor: grabbing;
}

@media (pointer: fine) {
  .services-v2-marquee,
  .services-v2-marquee.is-dragging {
    cursor: none;
  }
}

/* Custom follower cursor (mouse only) — black disc, red ring, red hand */
.confessions-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s ease;
  will-change: transform, left, top;
}

.confessions-cursor.is-visible {
  opacity: 1;
  visibility: visible;
}

.confessions-cursor-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
  border: 2px solid #ff0000;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confessions-cursor-hand {
  display: block;
  flex-shrink: 0;
}

.confessions-cursor.confessions-cursor--right .confessions-cursor-hand {
  transform: scaleX(-1);
}

.services-v2-marquee .services-v2-quote-card {
  transition: box-shadow 0.25s ease;
  /* Six cards visible across viewport: 40px set padding each side, five 18px gaps */
  flex: 0 0 calc((100vw - 80px - 90px) / 6);
  min-width: 0;
  min-height: 200px;
}

/* Two up, two down, two up: pairs 1–2 & 5–6 raised, pair 3–4 lowered */
.services-v2-marquee-set .services-v2-quote-card:nth-child(4n + 1),
.services-v2-marquee-set .services-v2-quote-card:nth-child(4n + 2) {
  --stagger-y: -28px;
}

.services-v2-marquee-set .services-v2-quote-card:nth-child(4n + 3),
.services-v2-marquee-set .services-v2-quote-card:nth-child(4n) {
  --stagger-y: 28px;
}

/* Narrower viewports: fewer cards per row so copy stays readable */
@media (max-width: 1200px) and (min-width: 701px) {
  .services-v2-marquee .services-v2-quote-card {
    flex: 0 0 calc((100vw - 80px - 54px) / 4);
  }
}

.services-v2-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.services-v2-marquee-set {
  display: flex;
  gap: 18px;
  padding: 0 40px;
  flex-shrink: 0;
}

.services-v2-quote-card {
  --lift: 0px;
  --stagger-y: 0px;
  --card-tilt: 0deg;
  position: relative;
  flex: 0 0 min(340px, 78vw);
  min-height: 220px;
  border-radius: 16px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.65;
  transform: translateY(calc(var(--lift) + var(--stagger-y))) rotateZ(var(--card-tilt));
  transition: transform 0.14s ease-out, box-shadow 0.25s ease;
  transform-origin: center center;
}

.services-v2-quote-card:hover {
  --lift: -5px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.services-v2-quote-card.is-cream {
  background: #f5f0e8;
  color: var(--accent-orange);
}

.services-v2-quote-card.is-cream p {
  color: var(--accent-orange);
}

.services-v2-quote-card.is-cream cite {
  color: rgba(180, 60, 30, 0.85);
}

.services-v2-quote-card.is-red {
  background: var(--accent-orange);
  color: #fff;
}

.services-v2-quote-card.is-red p {
  color: rgba(255,255,255,0.98);
}

.services-v2-quote-card.is-red cite {
  color: rgba(255,255,255,0.88);
}

.services-v2-quote-card cite {
  display: block;
  margin-top: auto;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.services-v2-qmark {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
}

.services-v2-quote-card.is-red .services-v2-qmark {
  opacity: 0.6;
  color: rgba(255,255,255,0.9);
}

.services-v2-contact-strip {
  max-width: 1100px;
  margin: 72px auto 0;
  background: #1a1a1a;
  color: var(--cream);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
}

.services-v2-contact-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.services-v2-contact-strip h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.services-v2-contact-strip p {
  max-width: 520px;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.7;
}

.services-v2-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.services-v2-contact-actions > a:first-child {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
}

.services-v2-contact-btn {
  background: var(--accent-orange);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* --------------------------------------------
   RESPONSIVE
-------------------------------------------- */
@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .work-card.tall { grid-row: span 1; }
  .hero { padding: 100px 24px 60px; }
  .wire-sphere-section { min-height: 220vh; }
  .wire-sphere-content { padding: 20px 20px; }
  .featured,
  .ship-section { padding: 60px 24px; }
  .sidebar { display: none; }
  .cta-footer { padding: 60px 24px; }
  .services-row { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .team-stats { flex-wrap: wrap; }
  .team-stat { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .page-hero { padding: 120px 24px 60px; min-height: 50vh; }
  .services-hero {
    padding: 118px 24px 44px;
    min-height: auto;
  }
  .services-hero h1 { font-size: clamp(40px, 12vw, 66px); }
  .services-hero-cats { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .contact-section { padding: 0 24px 60px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .service-detail { padding: 0 24px 48px; }
  .service-detail-block { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .services-cta-section { padding: 60px 24px; }
  .services-main { padding: 102px 24px 62px; }
  .services-v2-hero h1 { font-size: clamp(44px, 13vw, 72px); }
  .services-v2-sub { font-size: 14px; }
  .services-v2-rails {
    position: static;
    margin: 34px auto 26px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .services-v2-story { margin-top: 14px; }
  .services-v2-frame {
    position: static;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .services-v2-frame-copy,
  .services-v2-frame-visual {
    min-height: auto;
  }
  .services-v2-panel,
  .services-v2-visual-panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 16px;
  }
  .services-v2-visual-panel:last-child,
  .services-v2-panel:last-child {
    margin-bottom: 0;
  }
  .services-v2-steps { display: none; }
  .services-v2-block { grid-template-columns: 1fr; gap: 16px; }
  .services-v2-visual-grid { gap: 10px; }
  .services-v2-copy { padding: 22px 18px; }
  .services-v2-fields { grid-template-columns: 1fr; gap: 8px; }
  .services-v2-testimonials { padding: 40px 0 48px; }
  .services-v2-testimonials h3 { padding: 0 24px; }
  .services-v2-marquee-set { padding: 0 24px; gap: 14px; }
  .services-v2-marquee .services-v2-quote-card {
    flex: 0 0 calc((100vw - 48px - 42px) / 3);
    min-height: 200px;
  }
  .services-v2-quote-card { flex-basis: min(300px, 85vw); min-height: 200px; }
  .services-v2-contact-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .services-v2-contact-actions { align-items: flex-start; }
  .works-section { padding: 60px 24px 80px; }
  .works-header { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; }
  .works-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .works-scroll-hint { margin-top: -2px; margin-bottom: 20px; }
  .works-header-sub { font-size: 13px; }
  .works-card { padding: 10px; border-radius: 14px; }
  .scroll-video-section { height: 250vh; }
  .scroll-video-sticky { padding: 16px 20px; }
  .scroll-video-shell { width: 100%; border-radius: 16px; }
  .scroll-video-overlay { padding: 18px; }
  .immersive-strip {
    margin-top: 44px;
    padding: 56px 24px 28px;
  }
  .immersive-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .immersive-copy h2 { font-size: clamp(30px, 8vw, 42px); }
  .immersive-sub { max-width: none; }
  .immersive-video-wrap { border-radius: 14px; }
  .immersive-chip { font-size: 10px; padding: 8px 12px; }
  .see-more-section {
    margin-top: 36px;
    min-height: 90vh;
    padding: 24px;
  }
  .see-more-stage {
    width: 96vw;
    height: min(84vh, 720px);
    border-radius: 22px;
  }
  .see-more-orbit { width: min(94vw, 520px); }
  .orbit-card { width: 116px; border-radius: 12px; }
  .orbit-card.card-1 { --x: -130px; --y: -145px; }
  .orbit-card.card-2 { --x: 16px; --y: -178px; }
  .orbit-card.card-3 { --x: 145px; --y: -118px; }
  .orbit-card.card-4 { --x: 170px; --y: 10px; }
  .orbit-card.card-5 { --x: 95px; --y: 160px; }
  .orbit-card.card-6 { --x: -25px; --y: 182px; }
  .orbit-card.card-7 { --x: -145px; --y: 132px; }
  .orbit-card.card-8 { --x: -170px; --y: -5px; }
}

/* --- Case study detail (DB-driven hero) --- */
.case-study-page {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  font-family: "DM Sans", system-ui, sans-serif;
}

.case-study-loading,
.case-study-error {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* display:flex above would otherwise beat the [hidden] attribute — keep state toggles reliable */
.case-study-loading[hidden],
.case-study-error[hidden] {
  display: none !important;
}

.case-study-hero[hidden] {
  display: none !important;
}

.case-study-error p {
  margin: 0 0 20px;
  max-width: 360px;
  line-height: 1.5;
}

.case-study-error-back {
  color: #fffddb;
  text-decoration: underline;
  font-size: 14px;
}

.case-study-hero-track {
  position: relative;
}

.case-study-hero-track[hidden] {
  display: none !important;
}

/* Agency-style scrub: extra scroll length; hero stays sticky while user scrolls the track */
.case-study-hero-track--agency-scroll {
  min-height: 280vh;
}

.case-study-hero-track--agency-scroll .case-study-hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.case-study-hero-track--agency-scroll .case-study-hero-video-slot {
  width: 100%;
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Initial shell: small template (matches tighter GSAP start ~28%); GSAP scrubs to full width */
.case-study-hero-track--agency-scroll .case-study-video-shell.case-study-video-shell--hero {
  width: 28%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  overflow: hidden;
  will-change: width, border-radius;
  transform: translateZ(0);
}

.case-study-hero-track--reduced-motion .case-study-video-shell.case-study-video-shell--hero {
  width: min(100%, 960px) !important;
  max-width: min(100%, 960px) !important;
  border-radius: 18px !important;
  transform: none !important;
}

.case-study-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 48px) clamp(28px, 5vw, 52px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  color: #fff;
  transition: background-color 0.45s ease;
  overflow: visible;
}

.case-study-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.case-study-hero-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.12);
}

.case-study-hero-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-hero-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.case-study-back {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.case-study-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Fixed page scroll indicator — dot moves with scroll (--scroll-progress 0→1) */
.case-study-scroll-rail {
  --scroll-progress: 0;
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 12px;
  height: min(38vh, 280px);
  border-radius: 6px;
  background: rgba(123, 44, 191, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.case-study-scroll-line {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.case-study-scroll-dot {
  position: absolute;
  left: 50%;
  top: calc(var(--scroll-progress) * (100% - 14px));
  width: 10px;
  height: 10px;
  margin: 0;
  transform: translate(-50%, 0);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(255, 255, 255, 0.35);
  transition: top 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .case-study-scroll-dot {
    transition: none;
  }
}

.case-study-hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(12px, 3vh, 40px) clamp(20px, 5vw, 48px) clamp(28px, 6vh, 56px);
}

.case-study-title {
  margin: 0 0 clamp(16px, 2.5vw, 28px);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.case-study-hero-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(920px, 100%);
}

.case-study-hero-meta-band {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(40px, 11vw, 120px);
  position: relative;
  z-index: 0;
}

.case-study-hero-video-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(960px, 100%);
  margin-top: clamp(8px, 1.8vw, 20px);
}

.case-study-hero-video-stage[hidden] {
  display: none !important;
}

.case-study-hero-inline-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
}

.case-study-hero-video-title {
  margin: 0 auto clamp(6px, 1.2vw, 12px);
  padding: 0 12px;
  width: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.case-study-hero-video-title[hidden] {
  display: none !important;
}

.case-study-hero-video-slot {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.case-study-hero-video-slot[hidden] {
  display: none !important;
}

.case-study-hero-kicker {
  font-family: "DM Sans", system-ui, sans-serif;
  margin: clamp(12px, 2.2vw, 22px) auto 0;
  padding: 0 clamp(16px, 4vw, 28px);
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 22ch;
}

.case-study-hero-kicker--outloud {
  font-size: clamp(1.65rem, 4.6vw, 3.2rem);
  max-width: min(100%, 38ch);
}

.case-study-hero-kicker[hidden] {
  display: none !important;
}

.case-study-meta-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: max(72px, min-content);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.case-study-meta-col--year {
  text-align: right;
  align-items: flex-end;
}

.case-study-meta-col--industry {
  text-align: left;
  align-items: flex-start;
}

.case-study-meta-label {
  font-size: clamp(10px, 1.2vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.case-study-meta-value {
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.case-study-hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  flex-shrink: 0;
}

.case-study-agency {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.case-study-agency strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.case-study-agency-code {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.case-study-tagline {
  margin: 0;
  text-align: center;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.95;
}

.case-study-clock {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.72;
  white-space: nowrap;
}

/* Full viewport after hero / video track — DB: post_video_description */
.case-study-post-video {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  padding: clamp(48px, 10vh, 120px) clamp(24px, 6vw, 80px);
  box-sizing: border-box;
}

.case-study-post-video[hidden] {
  display: none !important;
}

.case-study-post-video-inner {
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0 auto;
}

.case-study-post-video-heading {
  margin: 0 0 clamp(14px, 3vh, 24px);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

.case-study-post-video-text {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
}

/* Gallery after intro — case_study_gallery_items (any count); 2-col stagger on desktop */
.case-study-gallery {
  position: relative;
  background: #000;
  color: #fff;
  padding: clamp(26px, 5vh, 56px) clamp(20px, 5vw, 72px) clamp(44px, 8vh, 86px);
  box-sizing: border-box;
}

.case-study-gallery[hidden] {
  display: none !important;
}

.case-study-gallery-inner {
  max-width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3.5vw, 44px);
  row-gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* Right column items (2nd, 4th, …) sit lower — masonry-lite stagger */
.case-study-gallery-item:nth-child(even) {
  margin-top: clamp(26px, 6vh, 58px);
}

.case-study-gallery-item {
  border-radius: 6px;
  outline: none;
}

.case-study-gallery-item--long {
  grid-column: 1 / -1;
  margin-top: 0 !important;
}

.case-study-gallery-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.case-study-gallery-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #141414;
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.case-study-gallery-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
}

.case-study-gallery-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
}

/* Overlay: sits above image; image drops back (lower stack + scale) on hover/focus */
.case-study-gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: clamp(18px, 3.5vw, 28px);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0) 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-study-gallery-overlay-inner {
  width: 100%;
  transform: translate3d(0, 14px, 0) scale(0.9);
  opacity: 0.96;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-img,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-img {
  transform: scale(0.93);
  filter: brightness(0.58) saturate(0.88);
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-video,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-video {
  transform: scale(0.93);
  filter: brightness(0.58) saturate(0.88);
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-overlay,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-overlay-inner,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-overlay-inner {
  transform: translate3d(0, 0, 0) scale(1.06);
  opacity: 1;
}

.case-study-gallery-caption {
  margin: 0 0 6px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
  transition: font-size 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-gallery-label {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(11px, 1.15vw, 13px);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    font-size 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s ease;
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-caption,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-caption {
  font-size: clamp(1.08rem, 1.85vw, 1.38rem);
}

.case-study-gallery-item--has-overlay:hover .case-study-gallery-label,
.case-study-gallery-item--has-overlay:focus-within .case-study-gallery-label {
  font-size: clamp(12px, 1.25vw, 14px);
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .case-study-gallery-img,
  .case-study-gallery-overlay,
  .case-study-gallery-overlay-inner,
  .case-study-gallery-caption,
  .case-study-gallery-label {
    transition-duration: 0.01ms !important;
  }

  .case-study-gallery-item--has-overlay:hover .case-study-gallery-img,
  .case-study-gallery-item--has-overlay:focus-within .case-study-gallery-img {
    transform: none;
    filter: brightness(0.65);
  }

  .case-study-gallery-item--has-overlay .case-study-gallery-overlay {
    opacity: 1;
    pointer-events: none;
  }

  .case-study-gallery-item--has-overlay .case-study-gallery-overlay-inner {
    transform: none;
    opacity: 1;
  }
}

/* Touch / no hover: always show overlay copy so content is readable */
@media (hover: none) {
  .case-study-gallery-item--has-overlay .case-study-gallery-overlay {
    opacity: 1;
    pointer-events: none;
  }

  .case-study-gallery-item--has-overlay .case-study-gallery-overlay-inner {
    transform: none;
    opacity: 1;
  }

  .case-study-gallery-item--has-overlay .case-study-gallery-img {
    filter: brightness(0.72);
  }
}

@media (max-width: 768px) {
  .case-study-gallery-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(40px, 9vh, 64px);
  }

  .case-study-gallery-item--long {
    grid-column: auto;
  }

  .case-study-gallery-item:nth-child(even) {
    margin-top: 0;
  }
}

.case-study-placeholder {
  padding: 64px clamp(24px, 6vw, 80px) 100px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 15px;
}

.case-study-placeholder-link {
  display: inline-block;
  margin-top: 20px;
  color: #fffddb;
  font-size: 14px;
}

@media (max-width: 720px) {
  .case-study-back {
    left: 16px;
    top: auto;
    bottom: 120px;
    transform: none;
  }

  .case-study-scroll-rail {
    right: 14px;
    top: auto;
    bottom: max(100px, env(safe-area-inset-bottom, 0px));
    transform: none;
    height: 120px;
    width: 11px;
  }

  .case-study-hero-center {
    padding: 0px 0px;
  }

  .case-study-hero-meta-band {
    justify-content: center;
    gap: clamp(0px, 0vw, 0px);
  }

  .case-study-meta-col--year,
  .case-study-meta-col--industry {
    text-align: center;
    align-items: center;
  }

  .case-study-hero-video-stage {
    margin-top: clamp(4px, 2vw, 14px);
     justify-content: center;
  }

  .case-study-video-shell.case-study-video-shell--hero {
    width: min(60px, 26vw);
  }

  .case-study-hero-track--agency-scroll .case-study-video-shell.case-study-video-shell--hero {
    width: 40%;
    max-width: 100%;
    border-radius: 10px;
  }

  .case-study-hero-kicker--outloud {
    font-size: clamp(1.35rem, 5.5vw, 2.4rem);
  }

  .case-study-hero-inline-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .case-study-promo-copy--hero-inline {
    flex-direction: column;
    align-items: center;
  }

  .case-study-hero-foot {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-study-tagline {
    order: -1;
  }

  .case-study-clock {
    text-align: center;
  }
}

/* Case study: black promo band + scroll video (GSAP, near-fullscreen cap) */
.case-study-promo-section {
  position: relative;
  height: 260vh;
  background: #000;
  color: #fff;
}

.case-study-promo-section[hidden] {
  display: none !important;
}

.case-study-promo-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 7vh, 72px) clamp(18px, 4vw, 56px) 24px;
  box-sizing: border-box;
}

.case-study-promo-stack--scroll-spacer {
  min-height: 40vh;
}

.case-study-promo-stack {
  max-width: min(1120px, 100%);
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
}

.case-study-promo-kicker {
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: left;
  font-size: clamp(1.65rem, 4.2vw, 3.1rem);
  font-weight: 600;
  margin: 0 0 clamp(14px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.case-study-promo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(14px, 2.5vw, 28px);
}

.case-study-promo-row--accent-only {
  justify-content: center;
  width: 100%;
}

.case-study-video-shell {
  width: min(220px, 32vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  transform-origin: left top;
  will-change: transform, border-radius;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
  position: relative;
}

.case-study-video-shell.case-study-video-shell--hero {
  width: min(104px, 24vw);
  max-width: 100%;
  border-radius: 8px;
  contain: none;
  transform-origin: center center;
}

.case-study-promo-copy--hero-inline {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 14px;
  min-width: 0;
  text-align: center;
}

.case-study-hero-inline-row .case-study-promo-headline {
  font-size: clamp(0.62rem, 2.15vw, 1.05rem);
  line-height: 1.35;
}

.case-study-hero-inline-row .case-study-promo-badge {
  font-size: clamp(10px, 1.4vw, 12px);
  color: rgba(255, 107, 90, 0.95);
}

.case-study-promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.case-study-promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

.case-study-promo-overlay.is-empty {
  display: none;
}

.case-study-promo-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-promo-copy {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px 18px;
  min-width: 0;
}

.case-study-promo-headline {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(0.55rem, 1.65vw, 0.95rem);
  line-height: 1.5;
  color: #ef4444;
  margin: 0;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.case-study-promo-badge {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .case-study-promo-section {
    height: 220vh;
  }

  .case-study-video-shell {
    width: min(200px, 58vw);
    transform-origin: left top;
  }

  .case-study-promo-row {
    flex-direction: row;
    align-items: flex-end;
  }

  .case-study-promo-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .case-study-promo-sticky {
    padding-top: clamp(24px, 6vh, 56px);
  }
}
