/* =============================================================
   SPECIALITY — 4 Core Pillars with Asymmetrical Editorial Grid
   Features mouse spotlight tracking, card dimming, expandable
   numbers, and smooth mobile accordion.
   ============================================================= */

.speciality-intro {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* ------- Desktop Asymmetrical 12-Column Grid -------
   Row 1: [ 01 PRODUCTION (7 cols) ] [ 02 CONTENT & EDITING (5 cols) ]
   Row 2: [ 03 SOCIAL MEDIA (5 cols)] [ 04 STRATEGY & GROWTH (7 cols) ]
   --------------------------------------------------- */
.pillars-grid {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.pillar-card {
  position: relative;
  background: #090a09;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 38px 36px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .4s cubic-bezier(.2, .8, .2, 1),
    border-color .4s cubic-bezier(.2, .8, .2, 1),
    box-shadow .4s cubic-bezier(.2, .8, .2, 1),
    opacity .4s cubic-bezier(.2, .8, .2, 1),
    filter .4s cubic-bezier(.2, .8, .2, 1);
}

/* Asymmetrical column spans */
.pillar-card:nth-child(1) { grid-column: span 7; } /* 01 PRODUCTION (Large Feature) */
.pillar-card:nth-child(2) { grid-column: span 5; } /* 02 CONTENT & EDITING */
.pillar-card:nth-child(3) { grid-column: span 5; } /* 03 SOCIAL MEDIA */
.pillar-card:nth-child(4) { grid-column: span 7; } /* 04 STRATEGY & GROWTH (Large Feature) */

/* Interactive spotlight glow following mouse */
.pillar-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s cubic-bezier(.2, .8, .2, 1);
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(240, 207, 123, 0.12) 0%,
    rgba(213, 170, 75, 0.04) 40%,
    transparent 70%
  );
  z-index: 1;
}

.pillar-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header: Number + Expandable Label + Arrow */
.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-num-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.pillar-num {
  font: 400 32px / 1 var(--display);
  color: var(--gold2);
  letter-spacing: .02em;
}

/* Expands from "01" to "01 / PRODUCTION" on hover */
.pillar-num-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition:
    opacity .35s ease,
    max-width .45s cubic-bezier(.2, .8, .2, 1),
    transform .35s ease;
  transform: translateX(-4px);
}

.pillar-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    color .3s ease,
    border-color .3s ease,
    transform .35s cubic-bezier(.2, .8, .2, 1);
}
.pillar-arrow svg {
  width: 14px;
  height: 14px;
}

/* Content: Title & Tagline */
.pillar-content {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-title {
  margin: 0;
  font: 400 clamp(24px, 2.3vw, 36px) / 1.05 var(--display);
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .3s ease, transform .3s ease;
}

.pillar-tagline {
  margin: 10px 0 0;
  color: var(--gold2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Services Capabilities List */
.pillar-services {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pillar-services-label {
  color: var(--muted2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pillar-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 500;
  color: #cfcbc2;
  transition:
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .25s ease;
}

.pillar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold2);
  opacity: .75;
}

/* ------- Hover Interactions (Desktop) ------- */
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 207, 123, 0.40);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(213, 170, 75, 0.08);
  z-index: 3;
}

.pillar-card:hover .pillar-spotlight {
  opacity: 1;
}

.pillar-card:hover .pillar-title {
  color: #fff;
  transform: translateY(-2px);
}

.pillar-card:hover .pillar-arrow {
  color: var(--gold2);
  border-color: rgba(240, 207, 123, 0.35);
  transform: translate(2px, -2px);
}

.pillar-card:hover .pillar-num-label {
  opacity: 1;
  max-width: 260px;
  transform: translateX(0);
}

.pillar-card:hover .pillar-tag {
  border-color: rgba(240, 207, 123, 0.22);
  background: rgba(213, 170, 75, 0.06);
  color: #fff;
}

/* Dimming effect: hovering one card dims the remaining three */
@media (hover: hover) and (pointer: fine) {
  .pillars-grid:hover .pillar-card:not(:hover) {
    opacity: 0.45;
    filter: grayscale(0.2);
    transform: scale(0.995);
  }
}
