/* ============================================
   GLOBAL BRAND VARIABLES
   ============================================ */
:root {
  --orange: #ff6a00;
  --amber: #ffb000;
  --matte-black: #0d0d0d;
  --steel-grey: #4a4a4a;
  --soft-white: #f5f5f5;
  --slate-grey: #2f2f2f;

  /* Scroll-driven variables */
  --scroll: 0;
  --header-scale: 1;
  --header-bg-shift: 0;
}

/* ============================================
   PAGE TRANSITION FADE
   ============================================ */
body {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
body.loaded {
  opacity: 1;
}

/* ============================================
   HERO HEADER — CINEMATIC VERSION
   ============================================ */
.hero-header {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 4px solid var(--matte-black);
  animation: fadeInHero 0.8s ease-out forwards;
  transform: scale(var(--header-scale));
  transition: transform 0.2s ease-out;
}

/* Background image */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transform: scale(1.2);
  animation: heroZoom 12s ease-out forwards;
}

/* Dark radial overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.1), rgba(0,0,0,0.75));
  animation: pulseGlow 6s ease-in-out infinite;
}

/* ============================================
   ROTATING COG (70% HEIGHT, VERY SUBTLE)
   ============================================ */
.hero-cog {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0.08;
  filter: blur(2px);
  animation: rotateCog 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   HEADER TEXT
   ============================================ */
.hero-text {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 800;
  color: var(--soft-white);
  text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 18px rgba(0,0,0,0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
  white-space: nowrap;
  animation: fadeInText 1.2s ease-out forwards;
  z-index: 2;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInHero {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  0% { transform: scale(1.2); }
  100% { transform: scale(1.05); }
}

@keyframes pulseGlow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes rotateCog {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   PARALLAX ON SCROLL
   ============================================ */
.hero-header.parallax .hero-bg {
  transform: translateY(calc(var(--scroll) * 0.25)) scale(1.2);
}

/* ============================================
   HEADER SHRINK + COLOUR SHIFT
   ============================================ */
.hero-header.shrink {
  --header-scale: 0.92;
}
.hero-header.shift {
  filter: hue-rotate(8deg);
}

/* ============================================
   RESPONSIVE SCALING
   ============================================ */
@media (max-width: 900px) {
  .hero-header { height: 240px; }
  .hero-text { font-size: 22px; }
}

@media (max-width: 600px) {
  .hero-header { height: 180px; }
  .hero-text {
    font-size: 18px;
    white-space: normal;
    padding: 0 12px;
  }
}

@media (max-width: 400px) {
  .hero-header { height: 150px; }
  .hero-text { font-size: 16px; }
}

/* ============================================
   MATCHING FOOTER
   ============================================ */
.site-footer {
  background: var(--matte-black);
  color: var(--soft-white);
  padding: 24px;
  text-align: center;
  font-size: 14px;
  border-top: 4px solid var(--orange);
  opacity: 0.95;
}