/* ============================================================ */
/* XENTROX — Automation Page Styles                             */
/* ============================================================ */

/* -------------------------------------------------------- */
/* AUTOMATION OPENER — Decode Wordmark + Orbital Rings         */
/* Same family as Home/Productions, cyan-dominant tint         */
/* Target word: "AUTOMATION" (10 chars)                       */
/* Three pillars: Design · Build · Scale                      */
/* -------------------------------------------------------- */

/* Override shared intro tokens for Automation (~35% smaller, matching Productions) */
.auto-opener {
  --intro-wordmark-size: clamp(2.4rem, 12.5vw, 10rem);
  --intro-brand-label-size: clamp(0.7rem, 1.4vw, 1rem);
  --intro-pillars-size: clamp(0.55rem, 0.95vw, 0.68rem);
}

/* Override aurora — cyan-dominant for Automation */
.auto-opener .hero-aurora {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0,184,255,0.2), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 25%, rgba(255,47,163,0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 70%, rgba(127,144,255,0.1), transparent 60%);
}

/* Override core glow — cyan center, pink edge */
.auto-opener .hero-core-glow {
  background: radial-gradient(circle, rgba(0,184,255,0.22) 0%, rgba(255,47,163,0.1) 35%, transparent 65%);
}

/* XENTROX brand label above wordmark */
.auto-brand-label {
  position: relative;
  z-index: 10;
  font-size: var(--intro-brand-label-size);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
}

/* Scroll-to-expand: wordmark scales up and glow intensifies on scroll */
.auto-opener .wordmark {
  transition: transform 0.1s linear;
  will-change: transform;
}
.auto-opener .hero-core-glow {
  transition: opacity 0.1s linear, transform 0.1s linear;
  will-change: opacity, transform;
}

/* Override wordmark stroke for Automation */
.auto-opener .wordmark {
  -webkit-text-stroke: 0.4px rgba(255,255,255,0.9);
  paint-order: stroke fill;
}

/* Glitch shake — cyan/pink for Automation */
.auto-opener.glitch-wrap[data-active="1"] .wordmark {
  animation: autoGlitchShake .55s steps(2) 2;
}
@keyframes autoGlitchShake {
  0% { transform: translate(0); }
  20% { transform: translate(-4px,1px); text-shadow: 3px 0 #ff2fa3, -3px 0 #00b8ff; }
  40% { transform: translate(4px,-1px); text-shadow: -3px 0 #ff2fa3, 3px 0 #00b8ff; }
  60% { transform: translate(-2px,2px); }
  100% { transform: translate(0); text-shadow: none; }
}

/* Glow text — cyan-dominant for Automation */
.auto-opener .glow-text {
  text-shadow:
    0 0 20px rgba(0,184,255,0.35),
    0 0 60px rgba(0,184,255,0.18),
    0 0 120px rgba(255,47,163,0.12);
}

/* Responsive — smaller wordmark on mobile */
@media (max-width: 768px) {
  .auto-opener {
    --intro-wordmark-size: clamp(1.6rem, 10vw, 3.5rem);
    --intro-brand-label-size: clamp(0.65rem, 2vw, 0.85rem);
    --intro-pillars-size: clamp(0.5rem, 1.5vw, 0.6rem);
  }
}

/* -------------------------------------------------------- */
/* STATS ROW — 4 stat counters                               */
/* -------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stat-box {
  padding: var(--space-8) var(--space-4);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------- */
/* SERVICE BLOCKS — uses Productions .service-block pattern  */
/* (defined in productions.css: 4-col grid cards)            */
/* Image fitting for real .webp assets                       */
/* -------------------------------------------------------- */
.service-block-img img,
.media-tile-img img,
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-image {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.industry-card-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}
.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------- */
/* WORKFLOW STEPS — numbered step cards                      */
/* -------------------------------------------------------- */
.workflow-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: border-color var(--motion-base) var(--ease-out-expo),
              transform var(--motion-slow) var(--ease-out-expo),
              box-shadow var(--motion-base) var(--ease-out-expo);
}
.workflow-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.workflow-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.6;
}
.workflow-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.workflow-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* -------------------------------------------------------- */
/* CARD TAGS — small tags inside cards                       */
/* -------------------------------------------------------- */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.card-tag {
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------------------------------------------------------- */
/* BLOG CARDS — article preview cards                        */
/* -------------------------------------------------------- */
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--motion-base) var(--ease-out-expo),
              transform var(--motion-slow) var(--ease-out-expo),
              box-shadow var(--motion-base) var(--ease-out-expo);
}
.blog-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.blog-card-image {
  width: 100%;
  position: relative;
}
.blog-card-image .placeholder-img {
  width: 100%;
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-panel));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-image .placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}
.blog-card-image .placeholder-img span {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}
.blog-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.blog-card-meta {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
}
.blog-card-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.6;
}
.blog-card-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-2);
  transition: color var(--motion-base) ease;
}
.blog-card-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* -------------------------------------------------------- */
/* CTA — uses Productions .productions-cta pattern           */
/* (defined in productions.css: cinematic gradient + halo)   */
/* No override needed — productions.css handles it           */
/* -------------------------------------------------------- */

/* -------------------------------------------------------- */
/* RESPONSIVE — Automation-specific adjustments              */
/* -------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Stats — 2 columns on tablet */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Stats — 2 columns on mobile */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .stat-value {
    font-size: 1.75rem;
  }
}
