/* ===================================================================
   pillars.css — TMRW pillar component (Reality / Impact / Aurora)

   Reused on /what-we-do/ (teaser cards) and the three pillar pages
   (hero band). The SKIN (per-pillar gradients, motion keyframes and
   SVG motifs) is ported verbatim from home-v3.css so the cards match
   the homepage exactly. The LAYOUT below is what-we-do specific and
   is decoupled from the homepage sticky `.pillar-stack`.
   =================================================================== */

/* ---- Component base + layers ---------------------------------- */
.pillar-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  color: var(--color-text-on-dark);
}
.pillar-panel__base     { position: absolute; inset: 0;    z-index: 0; }
.pillar-panel__gradient { position: absolute; inset: 0;    z-index: 1; pointer-events: none; }
.pillar-panel__motion   { position: absolute; inset: -18%; z-index: 2; pointer-events: none; }
.pillar-panel__scrim    { position: absolute; inset: 0;    z-index: 3; pointer-events: none; }

.pillar-panel__inner { position: relative; z-index: 5; width: 100%; }
.pillar-panel__copy  { display: grid; gap: var(--space-5); }
.pillar-panel__eyebrow {
  font-size: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  opacity: 0.82;
}
.pillar-panel__h2 {
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.pillar-panel__lead { margin: 0; }
.pillar-panel__visual { display: flex; align-items: center; }

.pillar-panel__cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-body);
  padding: var(--space-3) 0;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.pillar-panel__cta-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--motion-emphasis) var(--ease-standard);
}
.pillar-panel__cta-link:hover::after { transform: scaleX(0); transform-origin: right; }
.pillar-panel__cta--disabled {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--type-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  border-radius: 999px;
  cursor: default;
}

/* ---- Context A: hub teaser cards (3-up) ----------------------- */
.wwd-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .wwd-cards { grid-template-columns: repeat(3, 1fr); }
}
.wwd-card {
  text-decoration: none;
  border-radius: 10px;
  min-height: 440px;
  transition: transform var(--motion-emphasis) var(--ease-standard);
}
.wwd-card:hover { transform: translateY(-4px); }
.wwd-card:focus-visible { outline: var(--focus-ring-width) solid #fff; outline-offset: 3px; }
.wwd-card .pillar-panel__inner {
  align-self: end;
  display: block;
  padding: var(--space-8);
}
.wwd-card .pillar-panel__h2 { font-size: var(--type-title); max-width: 14ch; }
.wwd-card .pillar-panel__lead {
  font-size: var(--type-body);
  line-height: 1.5;
  max-width: 36ch;
  margin-top: var(--space-4);
  opacity: 0.92;
}
.wwd-card .pillar-panel__cta { margin-top: var(--space-5); }
/* motif as an ambient signature in the top-right corner */
.wwd-card .pillar-panel__visual {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-6);
  pointer-events: none;
  opacity: 0.5;
}
.wwd-card .pillar-svg { width: clamp(120px, 42%, 200px); }

/* ---- Context B: pillar-page hero band (full viewport) --------- */
.wwd-pillar-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
}
.wwd-pillar-hero .pillar-panel__inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-inline: var(--layout-gutter);
  padding-block: var(--space-20);
  align-self: center;
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 1024px) {
  .wwd-pillar-hero .pillar-panel__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}
.wwd-pillar-hero .pillar-panel__h2 { font-size: var(--type-display); max-width: 18ch; }
.wwd-pillar-hero .pillar-panel__lead {
  font-size: var(--type-body-lg);
  line-height: 1.55;
  max-width: 52ch;
  margin-top: var(--space-5);
}
.wwd-pillar-hero .pillar-panel__visual { justify-content: flex-end; justify-self: end; }
.wwd-pillar-hero .pillar-svg { width: clamp(220px, 26vw, 360px); }
@media (max-width: 1023px) {
  /* keep the mobile hero clean — the gradient carries it */
  .wwd-pillar-hero .pillar-panel__visual { display: none; }
  .wwd-pillar-hero .pillar-panel__inner { grid-template-columns: 1fr; }
}

/* ===================================================================
   SKIN — ported verbatim from home-v3.css (per-pillar gradients,
   motion keyframes, SVG motifs, reduced-motion). Do not edit values;
   keep in sync with the homepage cards.
   =================================================================== */
.pillar-panel--reality { color: var(--color-text-on-dark); }
.pillar-panel--reality .pillar-panel__base {
  background: #BF1B57; /* opaque magenta base — guarantees opacity */
}
.pillar-panel--reality .pillar-panel__gradient {
  inset: -25%;
  background: linear-gradient(
    334deg,
    #F2071B 0%,
    #D91136 20%,
    #BF1B57 40%,
    #5F328C 58%,
    #056CF2 78%,
    #BF1B57 100%
  );
  background-size: 220% 220%;
  background-position: 0% 50%;
  animation: pillarRealityMotion 11s ease-in-out infinite;
  transform-origin: center center;
}
.pillar-panel--reality .pillar-panel__motion {
  inset: -30%;
  background: linear-gradient(
    120deg,
    rgba(242, 7, 27, 0.90) 0%,
    rgba(217, 17, 54, 0.72) 24%,
    rgba(191, 27, 87, 0.56) 46%,
    rgba(95, 50, 140, 0.48) 64%,
    rgba(5, 108, 242, 0.82) 82%,
    rgba(242, 7, 27, 0.78) 100%
  );
  background-size: 240% 240%;
  background-position: 100% 50%;
  opacity: 0.30;
  filter: blur(36px);
  animation: pillarRealityMotion2 14s ease-in-out infinite;
}
.pillar-panel--reality .pillar-panel__scrim {
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.035) 0%,
    rgba(255,255,255,0.012) 44%,
    rgba(255,255,255,0) 76%);
}
@keyframes pillarRealityMotion {
  0%   { background-position: 0% 50%;   transform: rotate(0deg)  scale(1); }
  24%  { background-position: 100% 50%; transform: rotate(0deg)  scale(1.02); }
  42%  { background-position: 100% 50%; transform: rotate(10deg) scale(1.06); }
  68%  { background-position: 0% 50%;   transform: rotate(10deg) scale(1.03); }
  86%  { background-position: 0% 50%;   transform: rotate(0deg)  scale(1.01); }
  100% { background-position: 0% 50%;   transform: rotate(0deg)  scale(1); }
}
@keyframes pillarRealityMotion2 {
  0%   { background-position: 100% 50%; transform: rotate(0deg) scale(1); }
  24%  { background-position: 30% 60%;  transform: rotate(0deg) scale(1.03); }
  42%  { background-position: 30% 60%;  transform: rotate(-8deg) scale(1.08); }
  68%  { background-position: 100% 40%; transform: rotate(-8deg) scale(1.04); }
  86%  { background-position: 100% 40%; transform: rotate(0deg) scale(1.02); }
  100% { background-position: 100% 50%; transform: rotate(0deg) scale(1); }
}

.pillar-panel--impact { color: #033722; }
.pillar-panel--impact .pillar-panel__base {
  background: #EFF5EB; /* opaque cream base = var(--impact-light) from preset */
}
.pillar-panel--impact .pillar-panel__gradient {
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 245, 235, 0.92) 0%, rgba(239, 245, 235, 0) 38%),
    radial-gradient(circle at 78% 72%, rgba(63, 94, 70, 0.24) 0%, rgba(63, 94, 70, 0) 42%),
    linear-gradient(135deg, #EFF5EB 0%, #DCE9DF 38%, rgba(159, 180, 162, 0.56) 62%, rgba(39, 77, 54, 0.26) 100%);
}
.pillar-panel--impact .pillar-panel__motion {
  background:
    radial-gradient(circle at 80% 18%, rgba(220, 233, 223, 0.78) 0%, rgba(220, 233, 223, 0) 60%),
    radial-gradient(circle at 16% 80%, rgba(239, 245, 235, 0.92) 0%, rgba(239, 245, 235, 0) 64%),
    radial-gradient(circle at 50% 60%, rgba(159, 180, 162, 0.42) 0%, rgba(159, 180, 162, 0) 60%);
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.85;
  animation: pillarImpactDrift 12s ease-in-out infinite alternate;
}
.pillar-panel--impact .pillar-panel__scrim {
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.06) 42%,
    rgba(255,255,255,0) 72%);
}
@keyframes pillarImpactDrift {
  from { transform: translate3d(-1vw, -1vh, 0) scale(1); }
  to   { transform: translate3d(2vw, 2vh, 0)   scale(1.06); }
}

.pillar-panel--aurora { color: rgba(136, 232, 242, 0.78); }
.pillar-panel--aurora .pillar-panel__eyebrow { color: rgba(136, 232, 242, 0.82); }
.pillar-panel--aurora .pillar-panel__h2      { color: #88E8F2; }      /* photon-cyan */
.pillar-panel--aurora .pillar-panel__lead    { color: rgba(136, 232, 242, 0.78); }
.pillar-panel--aurora .pillar-panel__base {
  background: #0D2052; /* opaque deep-blue base */
}
.pillar-panel--aurora .pillar-panel__gradient {
  background:
    radial-gradient(circle at 16% 28%, rgba(13, 32, 82, 0.95) 0%, transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(13, 32, 82, 0.82) 0%, transparent 44%),
    linear-gradient(135deg, #0D2052 0%, #0D2052 28%, #1D4B73 54%, #3088BF 78%, #4EB1D9 100%);
}
.pillar-panel--aurora .pillar-panel__motion {
  inset: -35%;
  background: conic-gradient(
    from 90deg at 50% 50%,
    rgba(13, 32, 82, 1) 0%,
    rgba(13, 32, 82, 1) 24%,
    rgba(29, 75, 115, 0.96) 45%,
    rgba(48, 136, 191, 0.68) 62%,
    rgba(78, 177, 217, 0.42) 76%,
    rgba(136, 232, 242, 0.22) 88%,
    rgba(13, 32, 82, 1) 100%
  );
  filter: blur(92px);
  opacity: 0.96;
  animation: pillarAuroraRotateField 13s linear infinite;
  transform-origin: center;
}
.pillar-panel--aurora .pillar-panel__scrim {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.25) 100%);
}
.pillar-panel--aurora .pillar-panel__cta--disabled {
  color: rgba(136, 232, 242, 0.86);
  border: 1px solid rgba(136, 232, 242, 0.38);
}
@keyframes pillarAuroraRotateField {
  from { transform: rotate(0deg)   scale(1.04); }
  to   { transform: rotate(360deg) scale(1.04); }
}

/* ---- SVG motifs ---------------------------------------------- */
.pillar-svg {
  width: clamp(220px, 22vw, 380px);
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.pillar-svg .line-1px,
.pillar-svg .line-1px-dim,
.pillar-svg .line-1px-very-dim {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.pillar-svg .line-1px-dim       { opacity: 0.55; }
.pillar-svg .line-1px-very-dim  { opacity: 0.30; }

.pillar-svg--reality { color: rgba(255, 255, 255, 0.85); }
.pillar-svg--reality .hologram-ellipse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pillarHologramOscillate 6s linear infinite;
}
@keyframes pillarHologramOscillate {
  0%   { transform: translateY(40px);  opacity: 0; }
  25%  { transform: translateY(0);     opacity: 0.5; }
  50%  { transform: translateY(-40px); opacity: 0; }
  75%  { transform: translateY(0);     opacity: 0.5; }
  100% { transform: translateY(40px);  opacity: 0; }
}
.pillar-svg--reality .hologram-ellipse:nth-of-type(1)  { animation-delay:  0s;   }
.pillar-svg--reality .hologram-ellipse:nth-of-type(2)  { animation-delay: -0.2s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(3)  { animation-delay: -0.4s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(4)  { animation-delay: -0.6s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(5)  { animation-delay: -0.8s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(6)  { animation-delay: -1.0s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(7)  { animation-delay: -1.2s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(8)  { animation-delay: -1.4s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(9)  { animation-delay: -1.6s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(10) { animation-delay: -1.8s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(11) { animation-delay: -2.0s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(12) { animation-delay: -2.2s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(13) { animation-delay: -2.4s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(14) { animation-delay: -2.6s; }
.pillar-svg--reality .hologram-ellipse:nth-of-type(15) { animation-delay: -2.8s; }

.pillar-svg--impact { color: rgba(3, 55, 34, 0.72); }

.pillar-svg--aurora { color: rgba(136, 232, 242, 0.72); }
.pillar-svg--aurora .anchor-dot { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .pillar-panel__gradient,
  .pillar-panel__motion,
  .pillar-svg *,
  .pillar-svg *::before,
  .pillar-svg *::after {
    animation: none !important;
    transition: none !important;
  }
  .pillar-svg animate { display: none; }
  .pillar-svg--reality .hologram-ellipse {
    opacity: 0.4;
    transform: translateY(0);
  }
}
