/* ============================================================
   SERVICES.CSS — hero-specific, practice sections, pattern-bg, chips
   ============================================================ */

/* ── Hero (services-specific) ── */
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-family: "NimbusMono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-300);
  border: 1px solid var(--rule-2);
  padding: 6px 10px;
}

/* ── Practice Sections ── */
.practice {
  position: relative;
  padding: 180px 0;
  border-bottom: 1px solid var(--rule);
}
.practice.dark {
  background: radial-gradient(at 80% 0%, rgba(63, 185, 122, 0.1),
    transparent 55%),
    radial-gradient(at 20% 100%, rgba(1, 97, 54, 0.18), transparent 60%),
    #050708;
}
.practice-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
}
.practice.dark .practice-bg {
  opacity: 0.055;
}
.practice-bg.grid {
  background-image: url("../assets/brand/pattern-grid.svg");
  background-size: 48px 48px;
}
.practice-bg.dots {
  background-image: url("../assets/brand/pattern-dots.svg");
  background-size: 32px 32px;
}
.practice-bg.circuit {
  background-image: url("../assets/brand/pattern-circuit.svg");
  background-size: 240px 240px;
}
.practice-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.practice.mirror .practice-inner {
  grid-template-columns: 1fr 1.1fr;
}
.practice.mirror .practice-copy {
  order: 2;
}
.practice.mirror .practice-visual {
  order: 1;
}
.practice-eyebrow {
  font-family: "NimbusMono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green-400);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.practice-eyebrow .num {
  color: var(--ink-3);
}
.practice-eyebrow .arrow {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--green-400);
  position: relative;
}
.practice-eyebrow .arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border-top: 1px solid var(--green-400);
  border-right: 1px solid var(--green-400);
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}
.practice-copy h2 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink);
}
.practice-copy h2 .em {
  color: var(--green-400);
}
.practice-copy h2 .thin {
  font-weight: 300;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: -0.025em;
}
.practice-divider {
  margin: 28px 0 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-400);
  font-family: "NimbusMono", monospace;
}
.practice-divider .diamond {
  font-size: 10px;
}
.practice-divider .line {
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, var(--green-400), transparent);
}
.practice-divider .arrowhead {
  font-size: 14px;
  color: var(--green-400);
}
.practice-copy p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 56ch;
}
.practice-copy p:last-of-type {
  margin-bottom: 0;
}
.practice-copy p b,
.practice-copy p strong {
  color: var(--ink);
  font-weight: 600;
}
.practice-copy code {
  font-family: "NimbusMono", monospace;
  font-size: 0.92em;
  padding: 2px 7px;
  color: var(--green-300);
  background: rgba(63, 185, 122, 0.07);
  border: 1px solid var(--rule-2);
}

/* ── Visual Panel ── */
.practice-visual {
  position: relative;
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  min-height: 420px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.practice.dark .practice-visual {
  background: rgba(8, 12, 11, 0.6);
  border-color: rgba(63, 185, 122, 0.18);
  box-shadow: 0 0 0 1px rgba(63, 185, 122, 0.08),
    0 30px 80px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.practice-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-400),
    transparent);
  opacity: 0.5;
}
.pv-label {
  font-family: "NimbusMono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pv-label .marker {
  color: var(--green-400);
}
.pv-diagram {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-top: 20px;
  overflow: hidden;
}
.pv-diagram svg {
  max-width: 100%;
  width: 100%;
  height: 100%;
}

/* ── Chips ── */
.chips {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: "NimbusMono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 11px;
  background: transparent;
  color: var(--green-300);
  border: 1px solid var(--rule-2);
  transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}
.chip:hover {
  background: rgba(63, 185, 122, 0.08);
  border-color: var(--green-400);
  color: var(--green-300);
}
.practice.dark .chip {
  border-color: rgba(63, 185, 122, 0.22);
  background: rgba(63, 185, 122, 0.04);
}
.practice.dark .chip:hover {
  background: rgba(63, 185, 122, 0.12);
  border-color: var(--green-400);
}

/* ── SVG Diagram Animations ── */
@keyframes impl-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(1.4); }
}
@keyframes impl-cursor {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0; }
}
.impl-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: impl-pulse 3.5s ease-in-out infinite;
}
.impl-cursor {
  animation: impl-cursor 1.2s step-end infinite;
}

/* ── Footer strip (services page uses same footer from global) ── */

/* ── Responsive ── */
@media (max-width: 1100px) {
  .practice-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .practice.mirror .practice-copy {
    order: 2;
  }
  .practice.mirror .practice-visual {
    order: 1;
  }
}
@media (max-width: 720px) {
  .hero {
    padding: 100px 0 140px;
  }
  .practice {
    padding: 100px 0;
  }
  .practice-visual {
    min-height: 280px;
    padding: 22px;
  }
}
