/* ============================================
   BRILLION STUDIO - SERVICES PAGE
   ============================================ */

/* ── Shared Placeholder Style ── */
.placeholder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.placeholder-label--small {
  font-size: 9px;
}

/* ── Nav active state ── */
.nav-active {
  color: var(--accent) !important;
}

/* ── Fade-up animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   S1: PARALLAX HERO
   ============================================ */
.svc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.svc-hero__video-wrap {
  position: absolute;
  inset: -25% 0;
  z-index: 0;
  overflow: hidden;
}

.svc-hero__video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Vanta NET background for hero */
.svc-hero__vanta {
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.6) 50%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,0.6) 50%, transparent 85%);
}

.svc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.85) 0%,
    rgba(11, 11, 11, 0.5) 50%,
    rgba(11, 11, 11, 0.95) 100%
  );
}
[data-theme="light"] .svc-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(248, 246, 242, 0.85) 0%,
    rgba(248, 246, 242, 0.5) 50%,
    rgba(248, 246, 242, 0.95) 100%
  );
}

.svc-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 80px;
}

.svc-hero__eyebrow {
  animation: fadeUp 0.6s ease both;
}

.svc-hero__title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 0;
  max-width: 800px;
  animation: fadeUp 0.6s ease 0.15s both;
}

.svc-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 24px 0 0;
  animation: fadeUp 0.6s ease 0.3s both;
}

.svc-hero__cta {
  margin-top: 40px;
  animation: fadeUp 0.6s ease 0.45s both;
}

.svc-hero__scroll-hint {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeUp 0.6s ease 0.6s both;
}

/* ============================================
   S2: HORIZONTAL SCROLL SERVICE PANELS
   ============================================ */
.svc-deepdive {
  position: relative;
}

.svc-deepdive__header {
  padding-top: 120px;
  padding-bottom: 48px;
}

.svc-deepdive__header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 12px;
}

.svc-deepdive__track-wrap {
  /* 3 panels × 100vh = 300vh of horizontal-scroll range,
     + 60vh of "linger" at the end so the last panel doesn't drop
     straight into the next section as soon as it lands. */
  height: 360vh;
  position: relative;
}


.svc-deepdive__track {
  /* Sticky viewport-sized "window". Stays put. No transform here. */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.svc-deepdive__slider {
  /* Inner flex row — this is what actually translates. */
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.svc-deepdive__panel {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  flex-grow: 0;
  display: grid;
  /* minmax(0,1fr) prevents the image column from forcing the panel wider
     than the viewport when a natural-sized image renders inside it. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0 max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
  gap: 48px;
  align-items: center;
  box-sizing: border-box;
}

.svc-deepdive__panel-img {
  width: 100%;
  height: 60vh;
  max-height: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.svc-deepdive__panel-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-deepdive__panel-content {
  max-width: 480px;
}

.svc-deepdive__panel-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.svc-deepdive__panel-content h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.svc-deepdive__panel-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.svc-deepdive__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}

.svc-deepdive__list {
  list-style: none;
  margin-bottom: 32px;
}

.svc-deepdive__list li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
}

.svc-deepdive__list li::before {
  content: '+';
  color: var(--accent);
  margin-right: 10px;
  font-weight: 600;
}

.svc-deepdive__panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.svc-deepdive__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.svc-deepdive__link:hover { opacity: 0.7; }

.svc-deepdive__icon-3d {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   S3: FULL-BLEED MEDIA BREAK
   ============================================ */
.svc-media-break {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0;
}

.svc-media-break__media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.svc-media-break__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: scale(0.8);
  border-radius: 16px;
  transition: none; /* controlled by JS */
}

.svc-media-break__content {
  position: relative;
  z-index: 2;
}

.svc-media-break__quote {
  text-align: center;
  opacity: 0;
  transition: none; /* controlled by JS */
}

.svc-media-break__quote p {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

.svc-media-break__quote cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
}

/* ============================================
   S4: ISOMETRIC 3D ARCHITECTURE
   ============================================ */
.svc-arch {
  padding: 120px 0;
  overflow: hidden;
}

.svc-arch__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 12px;
}

.svc-arch__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 500px;
}

.svc-arch__scene-wrap {
  margin-top: 64px;
  perspective: 1200px;
}

.svc-arch__scene {
  position: relative;
  height: 360px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateX(25deg) rotateY(-20deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.svc-arch__block {
  width: 200px;
  height: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease,
              border-color 0.4s ease;
  will-change: transform;
}

/* Starting positions (before assembly) */
.svc-arch__block--brand      { transform: translate(-80px, -60px); opacity: 0; }
.svc-arch__block--platform   { transform: translate(0, 80px); opacity: 0; }
.svc-arch__block--acquisition { transform: translate(80px, -60px); opacity: 0; }

/* Assembled positions */
.svc-arch.is-assembled .svc-arch__block {
  transform: translate(0, 0);
  opacity: 1;
}
.svc-arch.is-assembled .svc-arch__block:hover {
  border-color: var(--accent);
}

.svc-arch__block-inner {
  text-align: center;
}

.svc-arch__block-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.svc-arch__block-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.svc-arch__connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.svc-arch__connections line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s ease 0.6s;
}

.svc-arch.is-assembled .svc-arch__connections line {
  stroke-dashoffset: 0;
}

/* ============================================
   S5: SCROLL-PINNED PROCESS
   ============================================ */
.svc-process {
  padding: 120px 0;
  background: var(--bg-surface);
}

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

.svc-process__left {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.svc-process__left h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 12px;
}

.svc-process__right {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.svc-process__step {
  opacity: 0.25;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(8px);
}

.svc-process__step.is-active {
  opacity: 1;
  transform: none;
}

.svc-process__step.is-done {
  opacity: 0.45;
  transform: none;
}

.svc-process__step-img {
  width: 100%;
  height: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.svc-process__step-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-process__step-num {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.svc-process__step.is-active .svc-process__step-num {
  color: var(--accent);
}

.svc-process__step-content h4 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.svc-process__step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   S6: TESTIMONIALS MARQUEE
   ============================================ */
.svc-testimonials {
  padding: 120px 0 80px;
}

.svc-testimonials__header {
  margin-bottom: 64px;
}

.svc-testimonials__header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 12px;
}

/* Pure CSS marquee + custom drag layer (JS handles drag overrides) */
.svc-marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
  cursor: grab;
  touch-action: pan-y;
}
.svc-marquee-wrap.is-dragging,
.svc-marquee-wrap:active {
  cursor: grabbing;
}
.svc-marquee-wrap.is-dragging,
.svc-marquee-wrap.is-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

@keyframes svcMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.svc-marquee {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: svcMarquee 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

/* Pause auto-scroll on hover or while dragging */
.svc-marquee-wrap:hover .svc-marquee,
.svc-marquee-wrap.is-dragging .svc-marquee,
.svc-marquee.is-paused {
  animation-play-state: paused;
}

.svc-marquee__card {
  min-width: 340px;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  flex-shrink: 0;
}

.svc-marquee__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.svc-marquee__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-marquee__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.svc-marquee__avatar-img {
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
}

.svc-marquee__author strong {
  font-size: 14px;
  color: var(--text);
}

.svc-marquee__author span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   S7: CTA BANNER
   ============================================ */
.svc-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.svc-cta__content {
  position: relative;
  z-index: 2;
}

.svc-cta__content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 12px;
}

.svc-cta__content .section-sub {
  margin: 16px auto 0;
  max-width: 480px;
}

.svc-cta__content .btn {
  margin-top: 32px;
}

@keyframes float3d {
  0%, 100% { transform: perspective(600px) rotateX(10deg) rotateY(-10deg) translateY(0); }
  50%      { transform: perspective(600px) rotateX(12deg) rotateY(-8deg) translateY(-12px); }
}

.svc-cta__floating-shape {
  position: absolute;
  z-index: 0;
  width: 300px;
  height: 200px;
  top: 50%;
  left: 50%;
  margin-top: -140px;
  margin-left: -200px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.2;
  animation: float3d 6s ease-in-out infinite;
}

.svc-cta__floating-shape--alt {
  width: 200px;
  height: 150px;
  margin-left: 40px;
  margin-top: -60px;
  animation-delay: -3s;
  opacity: 0.12;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .svc-deepdive__panel {
    gap: 32px;
  }
  .svc-process__grid {
    gap: 48px;
  }
  .svc-arch__scene {
    gap: 32px;
  }
  .svc-arch__block {
    width: 160px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .svc-hero__content {
    padding-top: 120px;
  }

  /* Horizontal scroll disabled - stack panels */
  .svc-deepdive__track-wrap {
    height: auto !important;
  }
  .svc-deepdive__track {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  .svc-deepdive__slider {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }
  .svc-deepdive__panel {
    min-width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .svc-deepdive__panel-img {
    height: 240px;
  }

  /* Media break */
  .svc-media-break__quote p {
    font-size: 24px;
  }

  /* Architecture - flatten */
  .svc-arch__scene {
    transform: none;
    flex-direction: column;
    height: auto;
    gap: 24px;
  }
  .svc-arch__block {
    width: 100%;
    max-width: 300px;
  }
  .svc-arch__connections {
    display: none;
  }

  /* Process - single column */
  .svc-process__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .svc-process__left {
    position: relative;
    top: auto;
  }
  .svc-process__step {
    opacity: 1;
    transform: none;
  }

  /* Marquee cards smaller */
  .svc-marquee__card {
    min-width: 280px;
    max-width: 280px;
  }

  /* CTA shapes */
  .svc-cta__floating-shape {
    width: 200px;
    height: 140px;
  }
}
