/* Small additions for the PHP version. The original theme lives untouched in style.css / hero.css. */

/* Accessibility: skip link, visible only when focused by keyboard */
.sdac-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: #ffd400;
  color: #111111;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.sdac-skip-link:focus { left: 0; }

/* Spam trap field: invisible to people, present for bots */
.sdac-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pillar modal "outcome" box (was an inline style in the original markup) */
.sdac-outcome-box {
  background-color: #f7f7f7;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

/* Pillar cards: entrance reveal (replaces the GSAP stagger with identical timing, no library needed).
   boot.js adds .sdac-motion only when the visitor has not asked for reduced motion. */
.sdac-motion [data-pillar-card]:not(.is-settled) {
  opacity: 0;
  transform: translateY(24px);
}
.sdac-motion [data-pillar-card].is-revealed:not(.is-settled) {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.55s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-delay: var(--sdac-reveal-delay, 0s);
}

/* ---------------------------------------------------------------------------
   Hero (M2) – replaces inline styles and GSAP tweens from the original build
   --------------------------------------------------------------------------- */
.hero-hud-lines { font-size: 0.72rem; line-height: 1.45; }
.hero-hud-arch-title { font-size: 0.68rem; letter-spacing: 0.06em; color: #ffd400; }
.hero-arch-nodes { font-size: 0.72rem; }
.hero-arch-node { background: rgba(255, 255, 255, 0.08); }
.hero-banner-caption { font-size: 0.78rem; }

/* Tech ring: slow rotation + scale, composed inside ONE transform so the
   translate(-50%,-50%) centring from hero.css is preserved. */
@property --ring-rot   { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --ring-scale { syntax: '<number>'; inherits: false; initial-value: 0.96; }
@keyframes sdac-ring-spin { to { --ring-rot: 360deg; } }

.sdac-motion .hero-tech-ring {
  transform: translate(-50%, -50%) rotate(var(--ring-rot)) scale(var(--ring-scale));
  animation: sdac-ring-spin 28s linear infinite;
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), --ring-scale 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sdac-motion .hero-shield-overlay {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Small additions for the PHP version. The original theme lives untouched in style.css / hero.css. */

/* Accessibility: skip link, visible only when focused by keyboard */
.sdac-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: #ffd400;
  color: #111111;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.sdac-skip-link:focus { left: 0; }

/* Spam trap field: invisible to people, present for bots */
.sdac-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Pillar modal "outcome" box (was an inline style in the original markup) */
.sdac-outcome-box {
  background-color: #f7f7f7;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

/* Pillar cards: entrance reveal (replaces the GSAP stagger with identical timing, no library needed).
   boot.js adds .sdac-motion only when the visitor has not asked for reduced motion. */
.sdac-motion [data-pillar-card]:not(.is-settled) {
  opacity: 0;
  transform: translateY(24px);
}
.sdac-motion [data-pillar-card].is-revealed:not(.is-settled) {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.55s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-delay: var(--sdac-reveal-delay, 0s);
}

/* ---------------------------------------------------------------------------
   Hero (M2) – replaces inline styles and GSAP tweens from the original build
   --------------------------------------------------------------------------- */
.hero-hud-lines { font-size: 0.72rem; line-height: 1.45; }
.hero-hud-arch-title { font-size: 0.68rem; letter-spacing: 0.06em; color: #ffd400; }
.hero-arch-nodes { font-size: 0.72rem; }
.hero-arch-node { background: rgba(255, 255, 255, 0.08); }
.hero-banner-caption { font-size: 0.78rem; }

/* Tech ring: slow rotation + scale, composed inside ONE transform so the
   translate(-50%,-50%) centring from hero.css is preserved. */
@property --ring-rot   { syntax: '<angle>';  inherits: false; initial-value: 0deg; }
@property --ring-scale { syntax: '<number>'; inherits: false; initial-value: 0.96; }
@keyframes sdac-ring-spin { to { --ring-rot: 360deg; } }

.sdac-motion .hero-tech-ring {
  transform: translate(-50%, -50%) rotate(var(--ring-rot)) scale(var(--ring-scale));
  animation: sdac-ring-spin 28s linear infinite;
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), --ring-scale 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sdac-motion .hero-shield-overlay {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------------------------------------------------------------------------
   AI / ML track (M5) – replaces the GSAP tweens of the original build
   --------------------------------------------------------------------------- */
@keyframes sdac-holo-scan  { from { transform: translateY(18px);  opacity: 0.25; } to { transform: translateY(370px); opacity: 0.9; } }
@keyframes sdac-holo-float { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes sdac-holo-spin  { to { rotate: 360deg; } }

.sdac-motion #holo-scanline-sweep { animation: sdac-holo-scan 2.8s ease-in-out infinite alternate; }
.sdac-motion #holo-mascot-frame   { animation: sdac-holo-float 2.6s ease-in-out infinite alternate; }
.sdac-motion #holo-pedestal-ring  { animation: sdac-holo-spin 24s linear infinite; }

/* Racing chart: rows glide to their new rank, bars grow/shrink (same easing as the original power3.out) */
.sdac-motion .racing-row {
  transition: transform 0.65s cubic-bezier(0.215, 0.61, 0.355, 1),
              background-color 160ms var(--sdac-ease), border-color 160ms var(--sdac-ease);
}
.sdac-motion .racing-bar-fill { transition: transform 0.72s cubic-bezier(0.215, 0.61, 0.355, 1); }

/* Without JavaScript the rows simply stack in normal flow (values are already rendered by PHP) */
html:not(.js) .racing-rows-viewport { height: auto; }
html:not(.js) .racing-row { position: relative; transform: none !important; margin-bottom: 8px; }
.sdac-logo { height: 44px; width: auto; display: block; }
@media (max-width: 575.98px) { .sdac-logo { height: 36px; } }