/* ============================================
   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;
  /* Compact band (was 100vh): the Switchboard should peek above the fold */
  min-height: clamp(540px, 72vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-hero);
}

.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-emphasis);
  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__proof {
  margin-top: 20px;
  animation: fadeUp 0.6s ease 0.6s both;
}

/* ============================================
   S2: HORIZONTAL SCROLL SERVICE PANELS
   ============================================ */
/* ============================================
   S2: SWITCHBOARD — one stage, four tabs
   (replaces the sticky horizontal-scroll deepdive)
   ============================================ */
.swb {
  padding: 120px 0 96px;
}

.swb__header {
  max-width: 720px;
  margin-bottom: 56px;
}

.swb__header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

/* Stage: active slide flows (sets height), inactive slides stack under it */
.swb__stage {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.swb__slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 64px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.swb__slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.swb__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.swb__copy h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.swb__tag {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.swb__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}

.swb__list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.swb__list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 9px;
  color: var(--accent);
}

.swb__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.swb__link:hover { text-decoration: underline; }

.swb__plate {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.swb__plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Quick scale-in when a slide becomes active */
.swb__slide.is-active .swb__plate img {
  animation: swbPlateIn 0.55s var(--ease-smooth);
}

@keyframes swbPlateIn {
  from { transform: scale(1.045); }
  to   { transform: scale(1); }
}

/* ── Tabs ── */
.swb__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.swb__tab {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 16px 22px;
  cursor: pointer;
  transition: color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}

.swb__tab:hover { color: var(--text); border-color: var(--text-dim); }

.swb__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ── Timer: brutalist strikethrough. A 2px line draws left-to-right
   THROUGH the active tab's label over the 6s dwell (owner call
   2026-06-11, replacing the outline ring). The line spans exactly the
   text because it lives inside .swb__tab-label. services.js advances
   on its animationend. */
.swb__tab-label { position: relative; display: inline-block; }

.swb__tab-progress {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.swb.is-live .swb__tab.is-active .swb__tab-progress {
  animation: swbProgress 6s linear forwards;
}
.swb.is-live:hover .swb__tab.is-active .swb__tab-progress,
.swb.is-live:focus-within .swb__tab.is-active .swb__tab-progress {
  animation-play-state: paused;
}

@keyframes swbProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
}

@media (prefers-reduced-motion: reduce) {
  .swb__slide { transition: none; }
  .swb__slide.is-active .swb__plate img { animation: none; }
  .swb.is-live .swb__tab.is-active .swb__tab-progress { animation: none; }
}

/* ============================================
   S3: ANTI-AGENCY TICKER (concepts J + I hybrid)
   ============================================ */
.tkr {
  padding: 110px 0 90px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tkr__lane {
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}

.tkr__track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px; /* matches gap so the -50% loop seam is invisible */
  animation: tkrScroll 44s linear infinite;
  will-change: transform;
}

.tkr__lane--reverse .tkr__track {
  animation: tkrScrollReverse 50s linear infinite;
}

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

.tkr__item {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(26px, 3.3vw, 46px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

.tkr__lane--reverse .tkr__item { color: var(--text-dim); }

.tkr__item--hl {
  background: var(--accent);
  color: #ffffff;
}
.tkr__lane--reverse .tkr__item--hl { color: #ffffff; }

/* Capsule renders as separators: wide pill crops of the 16:9 art */
.tkr__capsule {
  flex: 0 0 auto;
  width: 132px;
  height: 54px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--border);
  user-select: none;
  -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
  .tkr__track { animation: none; }
  .tkr__lane { overflow-x: auto; }
}

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

.svc-retainer__title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 12px 0 16px;
}

.svc-retainer__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 64ch;
}

.svc-retainer__diagram {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tier toggle: the blog-controls pill group, the sitewide standard */
.svc-retainer__tiers {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-surface);
}

.svc-retainer__tier {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 999px;
  transition: background var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth);
}

.svc-retainer__tier:hover:not(.is-active) { color: var(--text); }

.svc-retainer__tier.is-active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

.svc-retainer__fact {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 18px;
}

.svc-retainer__stem {
  width: 0;
  height: 40px;
  border-left: 1.5px dashed var(--text-dim);
}

.svc-retainer__package {
  width: min(640px, 100%);
  padding: 28px 32px;
  background: var(--bg-surface);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  text-align: center;
}

.svc-retainer__package-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.svc-retainer__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.svc-retainer__chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.svc-retainer__chip--qa {
  border-color: var(--accent);
  color: var(--accent);
}

.svc-retainer__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.svc-retainer__link {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.svc-retainer__link:hover { text-decoration: underline; }

/* ============================================
   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-num {
  font-family: var(--mono);
  font-size: 64px;
  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) {
  .swb__slide {
    gap: 32px;
    padding: 40px;
  }
  .svc-process__grid {
    gap: 48px;
  }
}

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

  /* Switchboard stacks: plate above copy, tabs go 2x2 */
  .swb__slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px 36px;
  }
  .swb__plate { order: -1; }
  .swb__tabs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .swb__tab { padding: 13px 16px; font-size: 11px; }

  /* Ticker */
  .tkr { padding: 72px 0 60px; }
  .tkr__track { gap: 32px; padding-right: 32px; }
  .tkr__item { font-size: 22px; }
  .tkr__capsule { width: 96px; height: 40px; }

  /* Architecture - flatten */

  /* 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;
  }
}
