/* ============================================================
   ANIMATION & 3D PAGE — Dustin Hill Productions
   Inherits global tokens from style.css
   Type system: SIZE 1 hero, SIZE 2 headings, SIZE 3 body, SIZE 4 labels
============================================================ */

/* ── IMAGE PLACEHOLDER ──────────────────────────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.img-placeholder span {
  font-size: 0.8125rem;
  font-weight: var(--fw-500);
  color: var(--c-text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 320px;
}
.img-placeholder--hero   { aspect-ratio: 4 / 3; }
.img-placeholder--feature { aspect-ratio: 4 / 3; }

/* ── HERO ────────────────────────────────────────────────── */
.a3-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 75% 55% at 20% 0%,  rgba(26,127,212,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 100%, rgba(74,163,245,0.08) 0%, transparent 55%),
    linear-gradient(160deg, #020d1c 0%, #010810 35%, #000 70%);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Subtle technical grid overlay */
.a3-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,127,212,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,127,212,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.a3-hero-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
.a3-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 85% 50%, transparent, var(--c-black) 72%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.a3-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .a3-hero-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

.a3-hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem); /* SIZE 1 — Display */
  font-weight: var(--fw-700);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--space-3);
}
.a3-hero-sub {
  font-size: 1.125rem; /* SIZE 3 — Body */
  color: var(--c-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.a3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Hero visual — actual render image */
.a3-hero-visual { width: 100%; }
.a3-hero-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 60px rgba(26,127,212,0.15), 0 24px 64px rgba(0,0,0,0.6);
}

/* ── STATS ───────────────────────────────────────────────── */
.a3-stats { padding: var(--space-6) 0; }
.a3-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}
@media (min-width: 768px) { .a3-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.a3-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid rgba(26,127,212,0.4);
  padding-left: var(--space-2);
}
.a3-stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-700);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.a3-stat-label {
  font-size: 0.875rem; /* SIZE 4 — Label */
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── OVERVIEW ────────────────────────────────────────────── */
.a3-overview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .a3-overview-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.a3-overview-body p {
  font-size: 1.125rem; /* SIZE 3 */
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.a3-overview-body p:last-child { margin-bottom: 0; }

/* Overview visual — Airbus / showcase image */
.a3-overview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  filter: drop-shadow(0 0 40px rgba(26,127,212,0.12));
}

/* ── DNA CANVAS SECTIONS (shared by use-cases + capabilities) */
.a3-dna-section {
  position: relative;
  overflow: hidden;
}
.a3-section-dna {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.18;
  pointer-events: none;
}
.a3-dna-section .container { position: relative; z-index: 1; }
.a3-section-sub {
  font-size: 1.125rem;
  margin-top: var(--space-2);
  line-height: 1.7;
}

/* ── USE CASES GRID ──────────────────────────────────────── */
.a3-usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px)  { .a3-usecases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .a3-usecases-grid { grid-template-columns: repeat(3, 1fr); } }

.a3-usecase {
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: var(--space-4);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.a3-usecase:hover {
  border-color: rgba(26,127,212,0.3);
  background: rgba(26,127,212,0.04);
}

.a3-usecase-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.a3-usecase-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--fw-700);
  color: rgba(74,163,245,0.30);
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: 2.2ch;
}
.a3-usecase-title {
  font-size: 1rem;
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  padding-top: 0.35em; /* align with number cap height */
}
.a3-usecase-body {
  font-size: 1.125rem; /* SIZE 3 */
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ── PROCESS ─────────────────────────────────────────────── */
.a3-process { background: var(--c-dark); }
.a3-process-sub {
  font-size: 1.125rem;
  margin-top: var(--space-2);
  line-height: 1.7;
}
.a3-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.a3-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.a3-step:last-child { border-bottom: none; }

@media (min-width: 1024px) {
  .a3-step                     { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .a3-step--flip .a3-step-content { order: 2; }
  .a3-step--flip .a3-step-visual  { order: 1; }
}

.a3-step-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: var(--fw-900);
  color: rgba(255,255,255,0.06);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.a3-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-2);
}
.a3-step-tag {
  font-size: 0.75rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-accent-hi);
  background: rgba(26,127,212,0.10);
  border: 1px solid rgba(26,127,212,0.20);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.a3-step-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-700);
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}
.a3-step-desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.a3-step-desc:last-of-type { margin-bottom: 0; }

/* Featured step (Step 2 — Modelling) */
.a3-step--featured { align-items: flex-start; }
.a3-step--featured .a3-step-content {
  background: rgba(26,127,212,0.04);
  border: 1px solid rgba(26,127,212,0.12);
  border-radius: 4px;
  padding: var(--space-4);
}

/* Checklist inside featured step */
.a3-step-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-2) 0;
}
.a3-step-checklist li {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}
.a3-step-checklist li .hi { font-weight: var(--fw-700); flex-shrink: 0; }

/* Callout block */
.a3-step-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(26,127,212,0.08);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 2px 2px 0;
}
.a3-step-callout svg { stroke: var(--c-accent-hi); flex-shrink: 0; margin-top: 2px; }
.a3-step-callout span {
  font-size: 1rem;
  font-weight: var(--fw-600);
  color: var(--c-accent-hi);
  line-height: 1.5;
}

/* Visual column */
.a3-step-visual { width: 100%; }
.a3-step-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Wireframe images — white render on dark bg, add subtle glow */
.a3-step-img--wireframe {
  background: rgba(255,255,255,0.02);
  border-color: rgba(26,127,212,0.20);
  filter: drop-shadow(0 0 24px rgba(26,127,212,0.18));
}

/* Stacked visuals — two images with gap */
.a3-step-visual--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* GIF — constrain height */
.a3-step-img--gif {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── MOBILE REORDER ──────────────────────────────────────────
   Below 1024px, image sits between heading and body copy.
   Desktop layout is untouched via grid-area scoping above. */
@media (max-width: 1023.98px) {
  /* Hero: heading → image → sub copy → actions */
  .a3-hero-content { display: contents; }
  .a3-hero-sub,
  .a3-hero-actions { order: 1; }

  /* Process steps: num → tags → title → image → body */
  .a3-step-content { display: contents; }
  .a3-step-visual { order: 1; }
  .a3-step-desc,
  .a3-step-checklist,
  .a3-step-callout { order: 2; }

  /* Featured Step 02 wireframe pair: keep second image on mobile */
  .a3-step-visual--stack .a3-step-img:nth-child(1) { display: none; }

  /* Tighter paragraph spacing in step body */
  .a3-step-desc { margin-bottom: var(--space-1); }

  /* Hero center alignment */
  .a3-hero-heading,
  .a3-hero-sub { text-align: center; }
  .a3-hero-sub { margin-left: auto; margin-right: auto; }
  .a3-hero-actions { justify-content: center; }

  /* Section headers center alignment */
  .section-header { text-align: center; }

  /* Section subtitles center alignment */
  .a3-process-sub,
  .a3-section-sub { text-align: center; }

  /* Center eyebrow (hero + section eyebrows) */
  .section-eyebrow { text-align: center; }

  /* Compress hero vertical space so CTAs sit above the fold.
     min-height: auto lets hero shrink to content — no dead space below CTAs
     on copy-light pages. Hero grows naturally if copy is longer. */
  .a3-hero { min-height: auto; align-items: flex-start; }
  .a3-hero-inner {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    gap: var(--space-2);
  }
  .a3-hero-heading,
  .a3-hero-sub { margin-bottom: 0; }

  /* Force 16:9 hero image, center-cropped */
  .a3-hero-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }
}

/* ── CAPABILITIES GRID ───────────────────────────────────── */
.a3-cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px)  { .a3-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .a3-cap-grid { grid-template-columns: repeat(3, 1fr); } }

.a3-cap-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: var(--space-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.a3-cap-card:hover {
  border-color: rgba(26,127,212,0.3);
  background: rgba(26,127,212,0.04);
}
.a3-cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: rgba(26,127,212,0.08);
  border: 1px solid rgba(26,127,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.a3-cap-icon svg { stroke: var(--c-accent-hi); }
.a3-cap-body { flex: 1; min-width: 0; }
.a3-cap-title {
  font-size: 1rem;
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.3;
}
.a3-cap-desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ── MOBILE SPACING + REORDER (LATE-CASCADE OVERRIDES) ─────────
   This block sits at end-of-file so it wins the cascade against
   overview default rules defined further up in the file. */
@media (max-width: 1023.98px) {
  /* OVERVIEW — image between heading and body */
  .a3-overview-text { display: contents; }
  .a3-overview-body { order: 1; }
  .a3-overview-inner { gap: var(--space-2); }
  .a3-overview-body p { margin-bottom: var(--space-1); }
  .a3-overview-body p:last-child { margin-bottom: 0; }

  /* PROCESS STEPS — uniform 16px gap, zero per-element margins */
  .a3-step {
    gap: var(--space-2);
    padding: var(--space-3) 0;
  }
  .a3-step-num,
  .a3-step-tags,
  .a3-step-title,
  .a3-step-desc,
  .a3-step-desc:last-of-type,
  .a3-step-checklist { margin-bottom: 0; }
}
