/* ─────────────────────────────────────────────────────
   SECTIONS — All section-specific layout & styles
───────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════
   SECTION 1 — HERO (centered, gradient bars bg)
══════════════════════════════════════════════════ */
#hero {
  position: relative;
  background: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vh, 140px) clamp(16px, 5vw, 48px) clamp(60px, 8vh, 100px);
  overflow: hidden;
  text-align: center;
}

/* Gradient bars background */
#hero-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}

.gradient-bar {
  flex: 1;
  height: 100%;
  transform-origin: bottom;
}

@keyframes pulseBar {
  from { transform: scaleY(var(--bar-scale, 1)); }
  to   { transform: scaleY(calc(var(--bar-scale, 1) * 0.55)); }
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-expo) 0.3s, transform 0.5s var(--ease-expo) 0.3s;
  position: relative;
  z-index: 2;
}
.hero-tagline.visible { opacity: 1; transform: translateY(0); }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 9.5vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin-bottom: 36px;
  overflow: visible;
  text-align: center;
}
.hero-headline em { color: var(--red); font-style: normal; }

/* Word split spans — JS injects .word > .word-inner */
.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  vertical-align: bottom;
  margin-right: 0.2em;
}
.hero-headline .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-expo);
}
.hero-headline .word-inner.visible { transform: translateY(0); }

.hero-sub {
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--bone-dim);
  max-width: 520px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
  text-align: center;
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo), color 0.2s;
  cursor: none;
  margin-top: 48px;
}
.hero-cta.visible { opacity: 1; transform: translateY(0); }
.hero-cta:hover { color: var(--red); }

.hero-cta-arrow {
  width: 36px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease-expo);
}
.hero-cta:hover .hero-cta-arrow { width: 54px; }
.hero-cta-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0;
  transition: opacity 0.7s var(--ease-expo) 1.1s;
  z-index: 2;
  cursor: default;
  white-space: nowrap;
}
.hero-scroll-hint.visible { opacity: 0.4; }

/* ══════════════════════════════════════════════════
   SECTION 2 — VIRAL VIDEOS (3D STRIP)
══════════════════════════════════════════════════ */
.s-viral {
  background: var(--black);
  padding-bottom: 100px;
  overflow: hidden;
}

.s-viral .section-header {
  padding-bottom: 0;
}

.viral-strip-outer {
  margin-top: 64px;
  overflow: hidden;
  padding: 60px 0 80px;
  margin-left: -48px;
  margin-right: -48px;
}

.viral-strip-3d {
  transform: perspective(1200px) rotate(-0.5deg) rotateX(15deg) rotateY(-6deg);
  transform-origin: center center;
  will-change: transform;
}

.viral-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  animation: viralMarquee 50s linear infinite;
  padding: 16px 0;
  will-change: transform;
  transform: translateZ(0);
}
.viral-marquee-track:hover { animation-play-state: paused; }

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

.viral-item {
  flex-shrink: 0;
  cursor: none;
  position: relative;
  transform: translateY(0);
  transition: transform 0.35s var(--ease-expo), filter 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.viral-item:hover {
  transform: translateY(-14px) scale(1.04);
  z-index: 2;
}

.viral-views-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   SECTION 3 — STATS
══════════════════════════════════════════════════ */
.s-stats {
  background: var(--bone);
  color: var(--black);
  padding: 0 48px 100px;
  position: relative;
  overflow: hidden;
}

.s-stats .section-header {
  padding-bottom: 0;
}

.stats-rule {
  width: 100%;
  height: 1px;
  background: var(--black);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-expo);
  margin-bottom: 0;
}
.stats-rule.visible { transform: scaleX(1); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 60px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.stat-item {
  padding: 0 32px 0 0;
  border-right: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.stat-item:last-child { border-right: none; padding-right: 0; padding-left: 32px; }
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(2) { transition-delay: 0.08s; }
.stat-item:nth-child(3) { transition-delay: 0.16s; }
.stat-item:nth-child(4) { transition-delay: 0.24s; }

.stat-number {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--black);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.stat-suffix {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0;
}

.stat-label {
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
  margin-top: 18px;
  line-height: 1.5;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

.stat-landing-note {
  margin-top: 36px;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.04em;
  line-height: 1.65;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   SECTION 4 — PRODUCTION (STICKY SCROLL)
══════════════════════════════════════════════════ */
.s-production {
  background: var(--black);
}

.prod-intro {
  padding-bottom: 40px;
}

.prod-panel {
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--black);
  border-top: 1px solid var(--bone-dim-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 64px 32px;
  overflow: hidden;
}
.prod-panel:nth-child(even) { background: var(--black-card); }

.prod-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.prod-step-num {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 10vw, 136px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--red);
  min-width: 0;
  flex-shrink: 0;
}

.prod-panel-info {
  padding-top: 20px;
}

.prod-panel-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.prod-panel-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 16px;
}

.prod-panel-tag {
  font-size: 14px;
  color: var(--bone-dim);
  letter-spacing: 0.01em;
}

.prod-phones {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Large height-driven sizing — width auto-computed from aspect-ratio */
#prod-panels .iphone-frame {
  height: clamp(380px, 56vh, 560px);
  width: auto;
  cursor: pointer;
}

/* 6-phone 2×3 grid for Trainers panel */
.prod-phones-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px 40px;
  overflow: hidden;
  padding: 0;
}
.prod-phones-6 .prod-phone-wrap {
  height: 100%;
  justify-content: center;
}
#prod-panels .prod-phones-6 .iphone-frame {
  height: 100%;
  width: auto;
}

.prod-panel--continuation {
  padding-top: 48px;
  padding-bottom: 48px;
}

.prod-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.prod-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.prod-spec-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.3);
  border: 1px solid rgba(237,234,227,0.1);
  padding: 6px 14px;
}

/* ══════════════════════════════════════════════════
   SECTION 5 — CLIENT WEIGHTS (AUTO-SCROLL MARQUEE)
══════════════════════════════════════════════════ */
.s-weights {
  background: var(--bone);
  color: var(--black);
  padding: 0 0 100px;
  position: relative;
  overflow: hidden;
}

.s-weights .section-header {
  padding-bottom: 0;
  padding-left: 48px;
  padding-right: 48px;
}

.weights-marquee-outer {
  margin-top: 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

#weights-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: weightsMarquee 28s linear infinite;
  padding: 20px 10px;
}
#weights-track:hover { animation-play-state: paused; }

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

.weight-card {
  flex-shrink: 0;
  width: 280px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.weight-card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.weight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.75);
  transition:
    filter 0.5s var(--ease-expo),
    transform 0.5s var(--ease-expo);
  display: block;
}

.weight-card:hover .weight-card-img img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.weight-card::after {
  content: attr(data-views-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
  pointer-events: none;
}
.weight-card:hover::after { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   SECTION 6 — TESTIMONIALS (3-col slider)
══════════════════════════════════════════════════ */
.s-testimonials {
  background: var(--black);
  padding-bottom: 120px;
}

.ts-slider {
  padding: 0 64px;
}

.ts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0 64px;
  align-items: center;
  min-height: 580px;
}

/* Center: video */
.ts-center {
  position: relative;
  height: 580px;
  overflow: visible;
  border-radius: 8px;
  background: #0A0A0A;
}

.ts-video-outer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* Force iphone to fill the center column height */
.ts-video-outer .iphone-frame {
  height: 100% !important;
  width: auto !important;
  min-width: 0 !important;
  --iphone-w: 240px;
}

/* Right: text + nav */
.ts-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 580px;
  padding-left: 0;
  padding-top: 32px;
}

.ts-text-wrap { flex: 1; }

.ts-affil {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.ts-name {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--bone);
  margin-top: 10px;
  letter-spacing: -0.02em;
}

.ts-quote {
  margin-top: 32px;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.ts-nav {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
}

.ts-prev-btn, .ts-next-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(237,234,227,0.2);
  background: transparent;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.ts-next-btn {
  background: var(--bone);
  color: var(--black);
  border-color: var(--bone);
}
.ts-prev-btn:hover { border-color: rgba(237,234,227,0.5); }
.ts-next-btn:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

/* ══════════════════════════════════════════════════
   SECTION 7 — ONE TEAM. ONE CITY. (QUANTA ABOUT STYLE)
══════════════════════════════════════════════════ */
.s-inhouse {
  background: var(--bone);
  color: var(--black);
  overflow: hidden;
}

/* Centered column layout */
.inhouse-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 64px 56px;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.inhouse-headline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--black);
  max-width: 800px;
}

.inhouse-body-wrap {
  max-width: 640px;
  text-align: left;
}

.inhouse-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.58);
  margin-bottom: 14px;
}

.inhouse-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  width: fit-content;
  transition: background 0.25s, transform 0.25s;
  cursor: none;
  text-decoration: none;
}
.inhouse-cta-btn:hover { background: #B01520; transform: scale(1.03); }

/* Bottom: full-width photo strip */
.inhouse-photo-strip {
  margin: 0 64px 64px;
  height: clamp(220px, 42vw, 560px);
  overflow: hidden;
  border-radius: 4px;
}

.inhouse-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s var(--ease-expo);
}
.inhouse-photo-strip:hover img { transform: scale(1.025); }

.inhouse-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 64px 64px;
}

.inhouse-photo-sub {
  height: clamp(160px, 30vw, 340px);
  overflow: hidden;
  border-radius: 4px;
}

.inhouse-photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s var(--ease-expo);
}
.inhouse-photo-sub:first-child img { object-position: center 25%; }
.inhouse-photo-sub:last-child img  { object-position: center 20%; }
.inhouse-photo-sub:hover img { transform: scale(1.025); }

/* ══════════════════════════════════════════════════
   SECTION 9 — PROCESS (HOVER TO OPEN)
══════════════════════════════════════════════════ */
.s-process {
  background: var(--black);
  padding: 100px 48px;
}

.process-header {
  margin-bottom: 64px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.process-items { max-width: 900px; margin-left: auto; margin-right: auto; }

.process-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin-bottom: 20px;
}

.process-sub {
  font-size: 17px;
  color: var(--bone-dim);
}

.process-items { border-top: 1px solid var(--bone-dim-3); }

.process-item {
  border-bottom: 1px solid var(--bone-dim-3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.process-item.visible { opacity: 1; transform: translateY(0); }

.process-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 0;
  cursor: pointer;
}

.process-item-left {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.process-number {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: color 0.25s;
  min-width: 80px;
}
.process-item.open .process-number { color: var(--red); }

.process-item-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  color: var(--bone);
  padding-top: 8px;
  transition: color 0.25s;
}
.process-item:hover .process-item-title { color: var(--red); }

.process-toggle {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-dim);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  margin-top: 8px;
  transition: transform 0.3s var(--ease-expo), color 0.25s;
}
.process-item.open .process-toggle { transform: rotate(45deg); color: var(--red); }

.process-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s var(--ease-expo);
}
.process-item.open .process-body { max-height: 400px; }

.process-body-inner {
  padding: 0 0 40px 112px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--bone-dim);
  max-width: 600px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease-expo) 0.25s, transform 0.75s var(--ease-expo) 0.25s;
}
.process-item.open .process-body-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   SECTION 10 — CTA (GRADIENT BARS GLOW, NO IMAGE)
══════════════════════════════════════════════════ */
.s-cta {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  text-align: center;
}

#cta-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70%;
  height: 55%;
  background: radial-gradient(ellipse at bottom, rgba(225, 29, 42, 0.32) 0%, rgba(225,29,42,0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 120px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-headline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--bone);
  max-width: 900px;
  margin-bottom: 52px;
  text-shadow: 0 0 60px rgba(225, 29, 42, 0.25), 0 0 120px rgba(225, 29, 42, 0.1);
}
.cta-headline em { color: var(--red); font-style: normal; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px;
  background: var(--bone);
  color: var(--black);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  cursor: none;
  border: none;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-expo);
}
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn:hover { color: var(--bone); }
.cta-btn:active { transform: scale(0.97); }

.cta-btn-text { position: relative; z-index: 1; }
.cta-btn-arrow {
  position: relative; z-index: 1;
  transition: transform 0.3s var(--ease-expo);
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(5px); }

.cta-contact-row {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.cta-contact-item {
  font-size: 13px;
  color: rgba(237,234,227,0.35);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════
   FOOTER — Quanta style
══════════════════════════════════════════════════ */
footer {
  background: #050505;
  border-top: 1px solid var(--bone-dim-3);
}

/* Top row: wordmark + email */
.footer-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  padding: 72px 64px 56px;
}

.footer-wordmark {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.footer-logo-img.visible { opacity: 1; transform: translateY(0); }

.footer-tagline {
  font-size: 13px;
  color: rgba(237,234,227,0.35);
  line-height: 1.75;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.35);
  margin-bottom: 14px;
}

.footer-email-big {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 38px);
  color: var(--bone);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email-big:hover { color: var(--red); }

/* Divider */
.footer-rule {
  height: 1px;
  background: var(--bone-dim-3);
  margin: 0 64px;
}

/* Mid row: nav + social */
.footer-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 52px 64px 56px;
}

.footer-nl-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.35);
  margin-bottom: 14px;
  display: block;
}

.footer-nl-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 24px);
  color: var(--bone);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.footer-nl-form {
  display: flex;
}

.footer-nl-input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(237,234,227,0.05);
  border: 1px solid rgba(237,234,227,0.1);
  border-right: none;
  color: var(--bone);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.footer-nl-input::placeholder { color: rgba(237,234,227,0.22); }
.footer-nl-input:focus { border-color: rgba(237,234,227,0.28); }

.footer-nl-btn {
  padding: 11px 20px;
  background: var(--red);
  color: var(--bone);
  border: none;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
}
.footer-nl-btn:hover { background: #B01520; }

.footer-col-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.35);
  margin-bottom: 18px;
  display: block;
  font-weight: 600;
}

.footer-nav-col,
.footer-social-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-col a,
.footer-social-col a {
  font-size: 15px;
  color: rgba(237,234,227,0.45);
  line-height: 2.2;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
  cursor: none;
}
.footer-nav-col a:hover,
.footer-social-col a:hover { color: var(--bone); }

.footer-mid-location {
  font-size: 15px;
  color: rgba(237,234,227,0.45);
  line-height: 2.2;
  display: block;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237,234,227,0.1);
  border-radius: 50%;
  color: rgba(237,234,227,0.45);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: none;
  flex-shrink: 0;
}
.footer-social-icon:hover {
  color: var(--bone);
  border-color: rgba(237,234,227,0.3);
  background: rgba(237,234,227,0.06);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 64px 32px;
  border-top: 1px solid var(--bone-dim-3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(237,234,227,0.2);
  letter-spacing: 0.04em;
  flex: 1;
}

.footer-link {
  font-size: 12px;
  color: rgba(237,234,227,0.28);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  cursor: none;
}
.footer-link:hover { color: var(--bone); }

/* ══════════════════════════════════════════════════
   SECTION 5 — SERVICES (FLOW-ART SCROLL)
══════════════════════════════════════════════════ */
.s-services {
  background: var(--black);
}

.srv-intro {
  padding-bottom: 24px;
}

.srv-flow {
  position: relative;
}

/* Each sticky panel */
.srv-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--srv-bg, var(--black));
}

/* Rotating inner — the FlowArt core */
.srv-panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 64px;
  background: var(--srv-bg, var(--black));
  transform-origin: bottom left;
  will-change: transform;
}

/* Top label row */
.srv-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
  flex-shrink: 0;
}

.srv-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.srv-category {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 400;
}

/* Horizontal dividers */
.srv-hr {
  width: 100%;
  height: 1px;
  background: var(--bone-dim-3);
  flex-shrink: 0;
}

/* Main two-column body — image stretches full height between HR rules */
.srv-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 72px;
  flex: 1;
  padding: 0;
  min-height: 0;
}

/* Image left, text right on flipped panels */
.srv-panel--flip .srv-body {
  flex-direction: row-reverse;
}

/* Text column — centered vertically with inner padding */
.srv-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  padding: 40px 0;
}

.srv-headline {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--bone);
}

.srv-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  color: var(--bone-dim);
  max-width: 480px;
}

.srv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.srv-pill {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,234,227,0.3);
  border: 1px solid rgba(237,234,227,0.1);
  padding: 6px 14px;
}

/* Image column — fills full height of body row */
.srv-img-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}

.srv-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.srv-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35);
  transition:
    transform 0.9s var(--ease-expo),
    filter 0.6s var(--ease-expo);
}

.srv-panel:hover .srv-img-wrap img {
  transform: scale(1.03);
  filter: grayscale(0);
}

/* Bottom CTA row */
.srv-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0 22px;
  flex-shrink: 0;
}

.srv-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  cursor: none;
  transition: color 0.25s;
}
.srv-cta-link:hover { color: var(--red); }

.srv-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}
.srv-cta-link:hover .srv-arrow { transform: translateX(6px); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
  .stat-item { border-right: none; padding: 0 0 24px; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .stat-item:last-child { padding: 0; border: none; }
  .ts-grid { grid-template-columns: 120px 1fr 1fr; gap: 0 32px; }
  .footer-top-row { gap: 48px; padding: 56px 48px 44px; }
}

/* ── TABLET (≤ 900px) ────────────────────────────── */
@media (max-width: 900px) {
  /* Hero */
  #hero { padding: 100px 24px 80px; }

  /* Stats */
  .s-stats { padding: 0 24px 72px; }

  /* Production — disable sticky scroll, stack as normal panels */
  .s-production { padding: 0 24px 72px; overflow: visible; }
  .prod-panel {
    position: relative !important;
    height: auto !important;
    overflow: visible;
    padding: 64px 24px 32px;
    border-bottom: 1px solid var(--bone-dim-3);
  }
  .prod-panel-top { margin-bottom: 24px; }
  .prod-phones {
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: none;
  }
  .prod-phones::-webkit-scrollbar { display: none; }
  .prod-phone-wrap { scroll-snap-align: center; flex-shrink: 0; }
  #prod-panels .iphone-frame { height: auto; width: clamp(160px, 45vw, 220px); }
  .prod-phones-6 {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    gap: 16px;
  }
  .prod-phones-6 .prod-phone-wrap { scroll-snap-align: center; height: auto; }
  #prod-panels .prod-phones-6 .iphone-frame { height: auto; width: clamp(160px, 45vw, 220px); }

  /* Services — disable sticky flow-art, show as normal scroll */
  .srv-panel { position: relative; height: auto; overflow: visible; }
  .srv-panel + .srv-panel { border-top: 1px solid var(--bone-dim-3); }
  .srv-panel-inner {
    height: auto;
    padding: 0 24px;
    transform: none !important;  /* cancel any GSAP rotation */
  }
  .srv-body {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .srv-text-col { padding: 32px 0 24px; }
  .srv-img-col { height: clamp(220px, 45vw, 360px); align-self: auto; }
  .srv-img-wrap { height: 100%; }
  .srv-bottom-row { justify-content: flex-start; padding: 16px 0 32px; }

  /* Client Weights */
  .s-weights .section-header { padding-left: 24px; padding-right: 24px; }

  /* Testimonials */
  .ts-slider { padding: 0 24px; }
  .ts-grid { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .ts-center { height: clamp(280px, 55vw, 380px); }
  .ts-right { height: auto; padding-top: 24px; }

  /* About */
  .inhouse-top { padding: 64px 24px 40px; gap: 24px; }
  .inhouse-photo-strip { margin: 0 24px 24px; height: clamp(180px, 38vw, 400px); }
  .inhouse-photo-row { margin: 0 24px 48px; gap: 16px; }
  .inhouse-photo-sub { height: clamp(140px, 26vw, 280px); }

  /* Process */
  .s-process { padding: 72px 24px; }
  .process-body-inner { padding-left: 0; }
  .process-item-left { gap: 16px; }

  /* CTA + Footer */
  .s-cta .cta-content { padding: 80px 24px; }
  .footer-top-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 36px; }
  .footer-mid-row { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 24px 48px; }
  .footer-rule { margin: 0 24px; }
  .footer-bottom { padding: 16px 24px 28px; gap: 20px; flex-wrap: wrap; }

  /* Shared */
  .viral-strip-outer { margin-left: -24px; margin-right: -24px; }
  .section-header { padding: 64px 24px 48px; }
}

/* ── MOBILE (≤ 600px) ────────────────────────────── */
@media (max-width: 600px) {
  /* Production */
  .prod-panel { padding: 56px 16px 24px; }
  .prod-step-num { font-size: clamp(52px, 13vw, 76px); }
  .prod-panel-top { gap: 14px; margin-bottom: 16px; }
  #prod-panels .iphone-frame { width: 72vw; max-width: 260px; }
  .prod-specs { margin-top: 12px; gap: 6px; }

  /* Services */
  .srv-panel-inner { padding: 0 16px; }
  .srv-headline { font-size: clamp(40px, 11vw, 64px); }
  .srv-img-col { height: clamp(180px, 50vw, 280px); }

  /* Testimonials */
  .ts-center { height: clamp(240px, 65vw, 300px); }
  .ts-quote { font-size: clamp(16px, 5vw, 22px); }

  /* Client weights */
  .weight-card { width: clamp(160px, 45vw, 220px); }

  /* Footer */
  .footer-mid-row { grid-template-columns: 1fr; }

  /* CTA */
  .cta-contact-row { flex-direction: column; align-items: center; gap: 12px; }
}

/* ── TOUCH DEVICES — restore pointer cursor ──────── */
/* Custom cursor is hidden on touch; cursor:none on links/buttons
   causes them to appear unclickable on mobile. Fix with pointer. */
@media (hover: none), (pointer: coarse) {
  #cursor-dot { display: none !important; }
  a, button,
  .hero-cta,
  .inhouse-cta-btn,
  .cta-btn,
  .srv-cta-link,
  .footer-nav-col a,
  .footer-social-col a,
  .footer-link,
  .footer-email-big,
  .footer-social-icon,
  .viral-item,
  .weight-card,
  .iphone-frame,
  .prod-phone-wrap {
    cursor: pointer !important;
  }
}

/* ── SMALL PHONES (≤ 420px) ──────────────────────── */
@media (max-width: 420px) {
  .hero-headline { font-size: clamp(44px, 13vw, 64px); }
  .section-heading { font-size: clamp(28px, 9vw, 40px); }
  .inhouse-photo-strip { margin: 0 12px 16px; }
  .inhouse-photo-row { margin: 0 12px 32px; gap: 10px; }
  .prod-panel { padding: 56px 12px 20px; }
  .srv-panel-inner { padding: 0 12px; }
  .s-cta .cta-content { padding: 60px 16px; }
  .cta-headline { font-size: clamp(32px, 10vw, 48px); }
  .footer-top-row { padding: 40px 16px 28px; }
  .footer-mid-row { padding: 28px 16px 36px; }
  .footer-rule { margin: 0 16px; }
  .footer-bottom { padding: 14px 16px 24px; }
}
