/* ==========================================================================
   3PEDIA DIGITAL — SERVICES DIRECTORY STYLES (services.css v4.0)
   ========================================================================== */

@keyframes sheen {
  0% { background-position: 130% 0; }
  100% { background-position: -110% 0; }
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(244, 244, 244, 0.35); }
  70% { box-shadow: 0 0 0 26px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes svcIn {
  to { opacity: 1; transform: none; }
}

/* --- HERO --- */
.svc-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 120px 20px 40px;
  text-align: center;
  overflow: hidden;
}

.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 75%);
  animation: gridpan 16s linear infinite;
  pointer-events: none;
}

.svc-hero-in-centered {
  max-width: 920px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.h-mega {
  font-family: 'Archivo', sans-serif;
  font-stretch: 122%;
  font-weight: 900;
  font-size: clamp(48px, 11vw, 156px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(110deg, var(--ink) 42%, color-mix(in srgb, var(--ink) 45%, var(--bg)) 50%, var(--ink) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 7s linear infinite;
}

.h-mega-sub {
  max-width: 540px;
  margin: 24px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.svc-hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.svc-rv {
  opacity: 0;
  transform: translateY(22px);
  animation: svcIn 0.8s var(--ease) forwards;
}

.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.30s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 0.60s; }

.svc-hero-foot {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
  z-index: 1;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-scroll .ar {
  animation: bob 1.6s ease-in-out infinite;
}

/* --- SERVICE DIRECTORY & FILTER PILLS --- */
.svc-grid-sec {
  background: var(--bg-alt);
  padding-top: 70px;
}

.svc-head-compact {
  margin-bottom: 24px;
  max-width: 100%;
}

.h-sec-nowrap {
  white-space: nowrap;
  font-size: clamp(22px, 3.4vw, 44px);
  margin-bottom: 10px;
}

.filter-row-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 36px;
}

.filter-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
  background: transparent;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.psvc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.psvc-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: #0A0A0A;
  transition: transform 0.5s var(--ease);
  opacity: 1;
}

.psvc-card.hide {
  display: none;
}

.psvc-card:hover {
  transform: translateY(-8px);
}

.psvc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.75);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease);
}

.psvc-card:hover .psvc-img {
  filter: grayscale(0.15) contrast(1.05) brightness(0.65);
  transform: scale(1.07);
}

.psvc-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.15) 40%, rgba(10, 10, 10, 0.92) 100%);
}

.psvc-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 120%;
  font-size: 13px;
  font-weight: 800;
  color: rgba(244, 244, 244, 0.55);
  letter-spacing: 0.08em;
  z-index: 1;
}

.psvc-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px;
  z-index: 1;
  transform: translateY(4px);
  transition: transform 0.5s var(--ease);
}

.psvc-card:hover .psvc-body {
  transform: translateY(0);
}

.psvc-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.55);
  margin-bottom: 8px;
  display: block;
}

.psvc-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-size: 19.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #F4F4F4;
  line-height: 1.15;
  margin-bottom: 10px;
}

.psvc-hook {
  font-size: 13px;
  color: rgba(244, 244, 244, 0.72);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.4s var(--ease);
}

.psvc-card:hover .psvc-hook {
  max-height: 70px;
  opacity: 1;
}

.psvc-plus {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 244, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4F4F4;
  font-size: 18px;
  z-index: 1;
  transition: all 0.35s var(--ease);
}

.psvc-card:hover .psvc-plus {
  background: #F4F4F4;
  color: #0A0A0A;
  transform: rotate(90deg);
}

/* --- SERVICE MODAL --- */
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.svc-modal.open {
  visibility: visible;
  opacity: 1;
}

.svc-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
}

.svc-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.5s var(--ease);
  padding: 0;
}

.svc-modal.open .svc-modal-panel {
  transform: translateY(0);
}

.svc-modal-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.svc-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.7);
}

.svc-modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.1), var(--surface));
}

.svc-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 244, 244, 0.15);
  border: 1px solid rgba(244, 244, 244, 0.3);
  color: #F4F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.svc-modal-body {
  padding: 8px 44px 48px;
}

.svc-modal-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: block;
}

.svc-modal-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.05;
}

.svc-modal-hook {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 18px;
}

.svc-modal-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 640px;
}

.svc-modal-deliv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}

.svc-modal-deliv li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-modal-deliv li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

/* --- PROOF STRIP & ENGAGEMENT PILLARS --- */
.proof {
  background: var(--panel);
  color: var(--panel-ink);
  padding: 74px 0;
}

.proof-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.proof-line {
  font-family: 'Archivo', sans-serif;
  font-stretch: 108%;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.28;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.proof-line b {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--panel-ink);
  font-weight: 800;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 36px;
}

.pstat-n {
  font-family: 'Archivo', sans-serif;
  font-stretch: 112%;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
}

.pstat-l {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.5);
  margin-top: 6px;
}

.pillars {
  background: var(--bg-alt);
}

.pl-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1400px;
}

.pl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 46px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pl-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.pl-ghost {
  position: absolute;
  top: -18px;
  right: -6px;
  font-family: 'Archivo', sans-serif;
  font-stretch: 120%;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

.pl-ico {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

.pl-name {
  font-family: 'Archivo', sans-serif;
  font-stretch: 110%;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.pl-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.72;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* --- LIVING ATMOSPHERE STAGE --- */
.atmo-sec {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.atmo-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.atmo-head .eyebrow {
  justify-content: center;
}

.atmo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto 28px;
}

.atmo-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.atmo-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.atmo-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.atmo-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1326;
}

#atmoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.atmo-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.atmo-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .psvc-grid,
  .pl-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-in { grid-template-columns: 1fr; gap: 36px; }
  .svc-modal-deliv { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .h-sec-nowrap { white-space: normal; }
}

@media (max-width: 640px) {
  .psvc-grid,
  .pl-grid { grid-template-columns: 1fr; }
  .svc-hero-foot { flex-direction: column; gap: 10px; font-size: 10.5px; }
  .svc-modal-body { padding: 8px 24px 40px; }
  .svc-modal-panel { border-radius: 14px 14px 0 0; }
  .proof { padding: 56px 0; }
  .proof-stats { gap: 20px 22px; }
  .atmo-stage { aspect-ratio: 4/3; }
}