/* =============== Blocks — layout handled in sections.css =============== */
/* Legacy rule removed: was overriding horizontal scroll layout */


/* =============== Hero =============== */
.hero {
  min-height: 100vh;
  padding: calc(6rem + 2vh) var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 40%;
}

/* ——— Hero background (shader + layers) ——— */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* CSS fallback — shown if WebGL fails or reduced motion is active */
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(201, 168, 107, 0.22),
      transparent 55%
    ),
    radial-gradient(ellipse at 80% 70%, rgba(45, 90, 75, 0.5), transparent 60%),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(184, 82, 52, 0.15),
      transparent 70%
    ),
    linear-gradient(180deg, #0e1513 0%, #080c0b 100%);
  filter: blur(30px) saturate(1.1);
  opacity: 0; /* Hidden by default to reveal the global WebGL canvas behind it */
  transform: scale(1.05);
  transition: opacity 1s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback {
    opacity: 1;
  }
  #webgl-canvas {
    display: none !important;
  }
}

/* WebGL canvas */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-shader.is-ready {
  opacity: 1;
}

/* Film grain on top for tactile finish */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.91  0 0 0 0 0.82  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* Edge vignette for title legibility (guarantees dark backing for text) */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
        /* Subtle shadow pool behind left-aligned hero text for readability with higher transparency */
    radial-gradient(
      circle at 25% 65%,
      rgba(13, 13, 16, 0.7) 0%,
      rgba(13, 13, 16, 0.28) 45%,
      transparent 75%
    ),
    /* Overall soft radial vignette to blend screen borders with lighter inner area */
    radial-gradient(
        ellipse at 50% 50%,
        transparent 30%,
        rgba(13, 13, 16, 0.85) 95%
      ),
    /* Soft linear gradient transitions */
    linear-gradient(
        180deg,
        rgba(13, 13, 16, 0.45) 0%,
        transparent 25%,
        transparent 60%,
        rgba(13, 13, 16, 0.9) 100%
      );
  pointer-events: none;
  z-index: 2;
}

/* Content-area scrim — deepens background directly behind the hero text.
   Very subtle on desktop, assertive on mobile where the shader can otherwise clash with copy. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 21, 19, 0) 0%,
    rgba(14, 21, 19, 0.35) 25%,
    rgba(14, 21, 19, 0.55) 55%,
    rgba(14, 21, 19, 0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

@media (max-width: 900px) {
  .hero-eyebrow, .hero-meta {
    display: none !important;
  }
  .hero-scrim {
    opacity: 1;
  }
  .hero-vignette {
    background:
      radial-gradient(
        ellipse at 50% 45%,
        transparent 20%,
        rgba(13, 13, 16, 0.65) 95%
      ),
      linear-gradient(
        180deg,
        rgba(13, 13, 16, 0.4) 0%,
        transparent 22%,
        transparent 55%,
        rgba(13, 13, 16, 0.85) 100%
      );
  }
  .hero-shader {
    opacity: 0;
  }
  .hero-shader.is-ready {
    opacity: 0.75;
  }
  .hero-grain {
    opacity: 0.35;
  }
}
@media (max-width: 560px) {
  .hero-vignette {
    background:
      radial-gradient(
        ellipse at 50% 40%,
        transparent 15%,
        rgba(13, 13, 16, 0.75) 95%
      ),
      linear-gradient(
        180deg,
        rgba(13, 13, 16, 0.5) 0%,
        transparent 28%,
        transparent 60%,
        rgba(13, 13, 16, 0.9) 100%
      );
  }
  .hero-shader.is-ready {
    opacity: 0.6;
  }
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pulse {
  width: 7px;
  height: 7px;
  background: #6acb8f;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(106, 203, 143, 0.7);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 203, 143, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(106, 203, 143, 0);
  }
}

.hero-meta {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dot-sep {
  color: var(--accent-gold);
  opacity: 0.7;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 1vw, 3rem) 0 2rem;
  gap: clamp(2rem, 4vw, 3.5rem);
}



.hero-sub {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 3rem;
  max-width: 1100px;
  align-items: start;
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light); /* Upgraded for high contrast */
  
  /* AWWWARDS Designer Box (Frosted Pill) */
  background: rgba(14, 21, 19, 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(201, 168, 107, 0.2);
  border-radius: 60px;
  padding: 0.6rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.role-dash {
  width: 8px; /* Shrunk from long dash to a subtle accent dot/bar inside the pill */
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.hero-lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.78);
  max-width: 620px;
}
.hero-lede::first-line {
  color: var(--text-light);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  position: relative;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 60px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  border: 1px solid var(--line-strong);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.9s cubic-bezier(0.2, 0.9, 0.25, 1);
  pointer-events: none;
  z-index: 0;
}
.btn:hover::before {
  left: 140%;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn-text {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.25em;
}
.btn-text span {
  display: block;
  transition: transform 0.55s var(--ease);
}
.btn-text span + span {
  position: absolute;
  top: 100%;
  left: 0;
}
.btn:hover .btn-text span {
  transform: translateY(-100%);
}
.btn-arrow {
  transition: transform 0.4s var(--ease);
  font-family: var(--font-serif);
}
.btn:hover .btn-arrow {
  transform: translateX(6px) rotate(-10deg);
}

.btn-primary {
  background: var(--accent-cream);
  color: var(--bg-deep);
  border-color: var(--accent-cream);
}
.btn-primary:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 107, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text-light);
}
.btn-ghost:hover {
  color: var(--accent-cream);
  border-color: var(--accent-gold);
}
.btn-solid {
  background: var(--bg-deep);
  color: var(--text-light);
  border-color: var(--bg-deep);
}
.btn-solid:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-deep);
}
.btn-outline {
  background: transparent;
  color: var(--bg-deep);
  border-color: var(--line-dark);
}
.btn-outline:hover {
  background: var(--bg-deep);
  color: var(--text-light);
  border-color: var(--bg-deep);
}

.hero-scroll {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-scroll svg {
  animation: scrollBob 2.4s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}


/* --- FROM hero-title.css --- */
/* ============================================================
   HERO TITLE TYPOGRAPHY & AURA STYLES
   Cinematic Pocket & SVG Spark Redesign ($200k AWWWARDS Level)
   ============================================================ */

.hero-title-wrapper {
  position: relative;
  display: inline-block;
  z-index: 10;
}

/* --- The Cinematic Pocket (Background Void) --- */
/* Shrunk down drastically to tightly hug the text and NOT cover the whole screen */
.hero-title-void {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%; 
  height: 125%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(10, 14, 12, 0.95) 0%, rgba(10, 14, 12, 0.7) 40%, rgba(10, 14, 12, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px); /* Heavy blur to blend the tight edges seamlessly */
}

.hero-title.cinematic {
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 15px;
  perspective: 1500px;
  position: relative;
}

.cht-line {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 1.5rem;
  align-items: baseline;
  overflow: hidden; /* For staggered sliding GSAP entrance */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.cht-word-wrap {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  will-change: transform, opacity, filter;
  z-index: 100;
}

.cht-word {
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* --- Pristine Typography --- */
.cht-sans {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--text-light) !important;
  -webkit-text-fill-color: var(--text-light) !important;
  -webkit-text-stroke: 0;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.cht-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  text-transform: none;
}

/* Redesigned to an elegant gold outline to remove solid color weirdness */
.cht-gold {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.5px var(--accent-gold);
  background: none;
  text-shadow: 0 4px 15px rgba(201, 168, 107, 0.15); /* Very subtle glow */
}

/* Make Reality pop perfectly against the void */
.cht-reality {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- SVG Spark Accents (The $200k Detail) --- */
.svg-spark {
  position: absolute;
  top: 10%;
  right: -25%; /* Pushed outside the word */
  width: 0.4em;
  height: 0.4em;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(201, 168, 107, 0.8));
  animation: sparkRotate 12s linear infinite, sparkPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1; /* Placed slightly behind text */
}

.spark-sm {
  width: 0.3em;
  height: 0.3em;
  top: -5%;
  right: -15%;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  animation-duration: 15s, 3s;
  animation-delay: 0s, 1s;
}

@keyframes sparkRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sparkPulse {
  0% { opacity: 0.5; transform: scale(0.8) rotate(var(--rot, 0deg)); }
  100% { opacity: 1; transform: scale(1.2) rotate(var(--rot, 0deg)); }
}

@media (max-width: 768px) {
  .hero-title.cinematic {
    font-size: clamp(2rem, 11vw, 3.5rem); /* Allows dynamic scaling so SCALING fits perfectly */
    gap: 8px;
  }
  .cht-line {
    gap: 0.7rem;
  }
  .hero-title-void {
    width: 140%; /* Expanded to fully cover text horizontally on mobile */
    height: 160%; /* Expanded to fully cover text vertically on mobile */
    filter: blur(25px); /* Softer edge on mobile */
  }
  .svg-spark {
    width: 0.35em;
    height: 0.35em;
    right: -10%;
    top: -15%;
  }
  .spark-sm {
    width: 0.25em;
    height: 0.25em;
    right: -5%;
    top: -20%;
  }
}


