/* Iron Elite — premium cinematic layer */

:root {
  --ie-blue: #006dff;
  --ie-blue-hi: #3d8bff;
  --ie-blue-glow: rgba(0, 109, 255, 0.45);
  --ie-section-y: clamp(72px, 10vw, 104px);
  --ie-glow-scale: 0.75;
}

/* Global texture + spacing */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-flow > .page-section,
.home-flow > .cta--final {
  padding-top: var(--ie-section-y);
  padding-bottom: var(--ie-section-y);
}

.home-flow > .page-section + .page-section,
.home-flow > .hero + .page-section,
.home-flow > .hero + .philosophy {
  margin-top: 0;
}

/* Nav — glass premium */
.nav {
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links a {
  position: relative;
  letter-spacing: 0.14em;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ie-blue-hi);
  box-shadow: 0 0 8px rgba(0, 109, 255, calc(0.5 * var(--ie-glow-scale)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions .btn--primary {
  padding-inline: 22px;
}

/* Hero — cinematic */
.hero--cinematic {
  min-height: 100svh;
  max-height: 100svh;
  background: #050505;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero--cinematic:not(.hero--bright) .hero-media {
  will-change: transform;
}

.hero--cinematic:not(.hero--bright) .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero--cinematic .hero-poster,
.hero--cinematic .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero--cinematic.no-video .hero-poster {
  display: block;
  opacity: 1;
  z-index: 0;
}

.hero--cinematic .hero-video {
  display: none;
}

.hero--cinematic.has-video .hero-video {
  display: block;
}

.hero--cinematic.has-video .hero-poster {
  opacity: 0;
}

.hero--cinematic.has-video .hero-video {
  display: block;
  opacity: 0.88;
}

.hero--cinematic:not(.hero--bright)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.12) 45%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.15) 0%, rgba(5, 5, 5, 0.25) 100%);
  pointer-events: none;
}

.hero--cinematic:not(.hero--bright)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 140, 0, 0.06) 50%, transparent 100%),
    linear-gradient(0deg, transparent 75%, rgba(255, 140, 0, 0.08) 100%);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero--cinematic:not(.hero--impact).no-video .hero-poster,
  .hero--cinematic:not(.hero--impact).has-video .hero-video {
    animation: heroCineKen 22s ease-in-out infinite alternate;
  }
}

@keyframes heroCineKen {
  from { transform: scale(1.05); }
  to { transform: scale(1.1); }
}

.hero--cinematic .hero-layout {
  z-index: 3;
  align-items: center;
  padding-bottom: clamp(48px, 8vh, 72px);
}

.hero--cinematic .hero-inner {
  max-width: 720px;
}

.hero-kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ie-blue-hi);
  margin: 0 0 14px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: 88px;
}

.hero-headline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin: 0 0 12px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

.hero-tagline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.9);
  margin: 0 0 16px;
}

.hero--cinematic .hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.72);
  max-width: 36ch;
  margin-bottom: 28px;
}

.hero--cinematic .hero-acts {
  gap: 14px;
}

/* Philosophy */
.philosophy {
  background: linear-gradient(180deg, #080808 0%, #050505 100%);
  position: relative;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  max-width: var(--max, 1200px);
  margin: 0 auto;
}

.philosophy__copy .lbl {
  color: var(--ie-blue-hi);
}

.philosophy__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.95;
  margin: 12px 0 16px;
}

.philosophy__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.78);
  max-width: 38ch;
  margin: 0;
}

.philosophy__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pillar-card {
  padding: 22px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 109, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 109, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 109, 255, calc(0.15 * var(--ie-glow-scale)));
}

.pillar-card__n {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.pillar-card__p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 242, 242, 0.65);
  margin: 0;
}

/* Premium program cards (non-compact layouts only; compact home uses compact.css) */
.home-flow:not(.home-flow--compact) .programs--premium .prog-grid {
  align-items: stretch;
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 24px 26px;
  background: linear-gradient(160deg, rgba(22, 22, 24, 0.92), rgba(8, 8, 10, 0.95));
  border: 1px solid rgba(0, 109, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.35s ease, box-shadow 0.4s ease;
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 109, 255, 0.5);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 109, 255, calc(0.12 * var(--ie-glow-scale)));
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-card:hover::before {
  transform: translateX(120%);
}

.home-flow:not(.home-flow--compact) .programs--premium .pathway-phase {
  color: var(--ie-blue-hi);
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.home-flow:not(.home-flow--compact) .programs--premium .prog-tag {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 242, 242, 0.68);
}

/* Stats band */
.stats-band {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max, 1200px);
  margin: 0 auto;
}

.stat-card {
  padding: 24px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(0, 109, 255, 0.35);
  transform: translateY(-3px);
}

.stat-card__label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(242, 242, 242, 0.88);
  margin: 0;
}

/* Gallery */
.facility--gallery .facility-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
  margin-top: 28px;
}

.facility--gallery .gallery-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
}

.facility--gallery .gallery-tile--wide {
  grid-column: span 7;
}

.facility--gallery .gallery-tile--tall {
  grid-column: span 5;
}

.facility--gallery .gallery-tile--half {
  grid-column: span 6;
}

.facility--gallery .gallery-tile img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.facility--gallery .gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, 0.75) 100%);
  pointer-events: none;
}

.facility--gallery .gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.85);
}

/* Closing CTA */
.cta--cinematic {
  text-align: center;
}

.cta--cinematic .cta-inner {
  max-width: 640px;
}

.cta--cinematic .cta-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: 12px;
}

.cta--cinematic .cta-desc {
  margin-bottom: 28px;
}

.cta--cinematic .cta-acts {
  justify-content: center;
}

.cta--cinematic .cta-bg::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 109, 255, calc(0.14 * var(--ie-glow-scale))) 0%, transparent 65%);
}

/* Footer minimal */
.footer--minimal .footer-grid {
  gap: 32px;
}

.footer--minimal .footer-brand--mark-only {
  margin-bottom: 8px;
}

.footer--minimal .footer-rule {
  margin: 8px 0 10px;
}

.footer--minimal .footer-about {
  max-width: 280px;
  margin-top: 0;
}

.footer--minimal .footer-socials {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .footer--minimal .footer-brand--mark-only {
    justify-content: flex-start;
  }
}

/* Section titles boost */
.home-flow .section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: 0.02em;
}

/* Reduce global glow intensity ~25% */
.btn--primary:hover,
.prog-card:hover,
.cta-bg {
  filter: brightness(1);
}

.home-flow .btn--primary {
  box-shadow: 0 10px 32px rgba(242, 140, 0, 0.34), 0 0 0 1px rgba(255, 200, 120, 0.22);
}

/* Hide redundant dev banner */
.dev-banner {
  display: none !important;
}

/* Mobile */
@media (max-width: 900px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
  }

  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facility--gallery .facility-gallery {
    grid-template-columns: 1fr;
  }

  .facility--gallery .gallery-tile--wide,
  .facility--gallery .gallery-tile--tall,
  .facility--gallery .gallery-tile--half {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero--cinematic {
    max-height: none;
    min-height: 100svh;
    padding-bottom: 88px;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .hero-tagline {
    letter-spacing: 0.12em;
  }

  .hero--cinematic .hero-inner {
    text-align: center;
    margin-inline: auto;
  }

  .hero--cinematic .hero-sub {
    margin-inline: auto;
  }

  .hero--cinematic .hero-acts {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .hero--cinematic .hero-acts .btn {
    width: 100%;
    min-height: 52px;
  }

  .philosophy__pillars {
    grid-template-columns: 1fr;
  }

  .stats-band__grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn--primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--cinematic.no-video .hero-poster,
  .hero--cinematic.has-video .hero-video {
    animation: none;
  }

  .programs--premium .prog-card::before {
    display: none;
  }
}
