/* ================= SERVICES PAGE — PREMIUM TYPOGRAPHY ================= */
.page-services {
  background-color: #000000 !important;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page-services .site-nav {
  background: transparent !important;
}

/* ---------- Hero ---------- */
.svcs-hero {
  padding: 160px 0 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.svcs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FF6600 0%, #FF8533 40%, #FFD6B3 70%, #F5F5F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svcs-hero h1 .highlight {
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.svcs-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Service Nav Tabs ---------- */
.svcs-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 80px auto 0;
  max-width: 800px;
  padding-bottom: 30px;
}

.svcs-nav-item {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.svcs-nav-item sup {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: super;
  margin-right: 4px;
  color: inherit;
  opacity: 0.6;
}

.svcs-nav-item:hover {
  color: var(--heading-color);
}

.svcs-nav-item.active {
  background: linear-gradient(135deg, #FF6600 0%, #FF8533 40%, #FFD6B3 70%, #F5F5F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

/* Up arrow for active nav */
.svcs-nav-item.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

/* ---------- Container ---------- */
.svcs-container {
  background: #0A0A0A;
  border-radius: 48px;
  margin: 40px 40px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

/* ---------- Service Sections ---------- */
.svcs-section {
  padding: 80px 64px;
}
.svcs-section:not(.active) {
  display: none;
}

/* ---------- Top Row: Shape (left) + Text (right) ---------- */
.svcs-top-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

/* ---------- Shape (no box, just floating on dark bg) ---------- */
.svcs-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.svcs-shape svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ---------- SVG Shape Animations ---------- */

/* Rise-in entrance: shapes start collapsed & hidden, morph out when .in-view triggers */
.svcs-shape .morph-shape {
  transform-origin: center;
  opacity: 0;
  transform: scale(0.1) rotate(-90deg);
  transition: all 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* When the reveal triggers .in-view, morph shapes expand out with staggered delays */
.svcs-shape.in-view .morph-shape {
  opacity: 1;
  transform: scale(1.15) rotate(0deg);
  animation: svcs-orbit 7s ease-in-out infinite alternate;
}

.svcs-shape.in-view .morph-shape:nth-child(1) {
  transition-delay: 0s;
  animation-delay: 0s;
  animation-name: svcs-orbit-1;
}
.svcs-shape.in-view .morph-shape:nth-child(2) {
  transition-delay: 0.15s;
  animation-delay: 0.5s;
  animation-name: svcs-orbit-2;
}
.svcs-shape.in-view .morph-shape:nth-child(3) {
  transition-delay: 0.3s;
  animation-delay: 1s;
  animation-name: svcs-orbit-3;
}
.svcs-shape.in-view .morph-shape:nth-child(4) {
  transition-delay: 0.45s;
  animation-delay: 1.5s;
  animation-name: svcs-orbit-4;
}

/* Each shape has its own unique floating orbit so they feel alive and independent */
@keyframes svcs-orbit-1 {
  0%   { transform: scale(1.15) rotate(0deg) translateY(0); }
  25%  { transform: scale(1.1) rotate(2deg) translateY(-4px); }
  50%  { transform: scale(1.18) rotate(-1deg) translateY(2px); }
  75%  { transform: scale(1.12) rotate(1.5deg) translateY(-3px); }
  100% { transform: scale(1.15) rotate(-0.5deg) translateY(1px); }
}

@keyframes svcs-orbit-2 {
  0%   { transform: scale(1.15) rotate(0deg) translateX(0); }
  25%  { transform: scale(1.18) rotate(-2deg) translateX(3px); }
  50%  { transform: scale(1.1) rotate(1.5deg) translateX(-2px); }
  75%  { transform: scale(1.16) rotate(-1deg) translateX(4px); }
  100% { transform: scale(1.15) rotate(0.5deg) translateX(-1px); }
}

@keyframes svcs-orbit-3 {
  0%   { transform: scale(1.15) rotate(0deg) translate(0, 0); }
  25%  { transform: scale(1.12) rotate(1.5deg) translate(-3px, 3px); }
  50%  { transform: scale(1.2) rotate(-2deg) translate(2px, -2px); }
  75%  { transform: scale(1.14) rotate(0.5deg) translate(-2px, 4px); }
  100% { transform: scale(1.15) rotate(-1deg) translate(1px, -1px); }
}

@keyframes svcs-orbit-4 {
  0%   { transform: scale(1.15) rotate(0deg) translate(0, 0); }
  25%  { transform: scale(1.2) rotate(-1.5deg) translate(4px, -3px); }
  50%  { transform: scale(1.1) rotate(2deg) translate(-3px, 2px); }
  75%  { transform: scale(1.17) rotate(-0.5deg) translate(2px, -4px); }
  100% { transform: scale(1.15) rotate(1deg) translate(-1px, 1px); }
}

/* Breathing pulse on the entire SVG container */
.svcs-shape .step-svg {
  animation: svcs-breathe 5s ease-in-out infinite;
}

@keyframes svcs-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.03)); }
  50%      { transform: scale(1.03); filter: drop-shadow(0 0 40px rgba(255, 102, 0, 0.15)); }
}

/* Hover on the shape area intensifies the animation */
.svcs-shape:hover .morph-shape {
  transform: scale(1.28) rotate(0deg) !important;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.svcs-shape:hover .step-svg {
  filter: drop-shadow(0 0 50px rgba(255, 102, 0, 0.25));
  transition: filter 0.4s ease;
}

/* ---------- Intro Text (right column) ---------- */
.svcs-intro {
  max-width: 520px;
}

.svcs-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #fff;
}

.svcs-title sup {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: super;
  margin-right: 8px;
  color: var(--text-faint);
}

.svcs-title .highlight {
  color: var(--accent-light);
  font-weight: 400;
}

.svcs-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 24px;
  color: #fff;
}

.svcs-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ---------- Full-width Body (below top row) ---------- */
.svcs-body {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 48px;
}

/* ---------- "What we do" List ---------- */
.svcs-list-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: #fff;
}

.svcs-list-title .highlight {
  color: var(--accent-light);
  font-weight: 400;
}

.svcs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.svcs-list li {
  position: relative;
  padding-left: 20px;
}

.svcs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.svcs-list h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.svcs-list p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .svcs-container {
    border-radius: 32px;
    margin: 24px 20px 0;
  }
  .svcs-section {
    padding: 56px 32px;
  }
  .svcs-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .svcs-shape {
    padding: 20px;
    max-width: 240px;
    margin: 0 auto;
  }
  .svcs-nav {
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
  }
  .svcs-nav-item {
    font-size: 16px;
    white-space: nowrap;
  }
  .svcs-title {
    font-size: clamp(32px, 8vw, 44px);
  }
  .svcs-list-title {
    font-size: 22px;
  }
  .svcs-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .svcs-container {
    border-radius: 24px;
    margin: 16px 12px 0;
  }
  .svcs-section {
    padding: 40px 20px;
  }
  .svcs-shape {
    max-width: 180px;
  }
  .svcs-nav {
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 8px;
  }
  .svcs-nav-item {
    font-size: 13px;
  }
  .svcs-nav-item sup {
    display: none;
  }
}
