/* ==========================================================================
   Wildfire Labs — shared tokens + base
   ========================================================================== */

:root {
  /* Surfaces */
  --wf-black: #0B0B0D;
  --wf-black-2: #141416;
  --wf-black-3: #1C1C1F;
  --wf-line: rgba(255,255,255,0.08);
  --wf-line-strong: rgba(255,255,255,0.16);
  --wf-text: #F4F1EC;
  --wf-text-dim: #9A968F;
  --wf-text-faint: #5E5B56;

  /* Light section */
  --wf-cream: #F6F3EE;
  --wf-cream-2: #ECE7DE;
  --wf-ink: #111114;
  --wf-ink-dim: #5A5752;

  /* Brand — fire */
  --wf-red: #ED1C24;
  --wf-orange: #F26522;
  --wf-amber: #F7941E;
  --wf-fire: linear-gradient(90deg, #ED1C24 0%, #F26522 55%, #F7941E 100%);
  --wf-fire-v: linear-gradient(180deg, #ED1C24 0%, #F26522 55%, #F7941E 100%);

  /* Type */
  --wf-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --wf-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --wf-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --wf-gutter: clamp(20px, 4vw, 56px);
  --wf-max: 1440px;
  --wf-radius: 4px;
  --wf-radius-lg: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--wf-black);
  color: var(--wf-text);
  font-family: var(--wf-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--wf-red); color: #fff; }

/* Layout ------------------------------------------------------------------ */

.wf-wrap {
  width: 100%;
  max-width: var(--wf-max);
  margin: 0 auto;
  padding-left: var(--wf-gutter);
  padding-right: var(--wf-gutter);
}

.wf-section { position: relative; padding: clamp(80px, 12vh, 160px) 0; }
.wf-section--tight { padding: clamp(56px, 8vh, 96px) 0; }

.wf-section.is-light {
  background: var(--wf-cream);
  color: var(--wf-ink);
}

/* Typography -------------------------------------------------------------- */

.wf-display {
  font-family: var(--wf-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-wrap: balance;
  margin: 0;
}

.wf-h1 { font-size: clamp(56px, 10vw, 160px); }
.wf-h2 { font-size: clamp(44px, 7.2vw, 104px); }
.wf-h3 { font-size: clamp(32px, 4.6vw, 68px); }
.wf-h4 { font-size: clamp(24px, 2.6vw, 36px); }

.wf-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--wf-text-dim);
  max-width: 60ch;
  text-wrap: pretty;
}

.is-light .wf-lead { color: var(--wf-ink-dim); }

.wf-eyebrow {
  font-family: var(--wf-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wf-text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wf-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.is-light .wf-eyebrow { color: var(--wf-ink-dim); }

.wf-fire-text {
  background: var(--wf-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Buttons ----------------------------------------------------------------- */

.wf-btn {
  --_bg: var(--wf-red);
  --_fg: #fff;
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid var(--_bd);
  font-family: var(--wf-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .3s ease, background .2s ease;
  white-space: nowrap;
}
.wf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(237,28,36,0.45), 0 0 0 1px rgba(247,148,30,0.2);
}
.wf-btn .wf-btn-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.wf-btn:hover .wf-btn-arrow { transform: translateX(4px); }

.wf-btn--ghost {
  --_bg: transparent;
  --_fg: var(--wf-text);
  --_bd: var(--wf-line-strong);
}
.wf-btn--ghost:hover {
  --_bd: rgba(255,255,255,0.4);
  box-shadow: none;
}
.is-light .wf-btn--ghost {
  --_fg: var(--wf-ink);
  --_bd: rgba(0,0,0,0.2);
}

/* Nav --------------------------------------------------------------------- */

.wf-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(11,11,13,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wf-line);
  transition: background .3s ease;
}
.wf-nav__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.wf-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--wf-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wf-scroll-progress-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 101;
  background: rgba(255,255,255,0.04);
}
.wf-scroll-progress {
  height: 100%;
  width: 0%;
  background: var(--wf-fire);
  box-shadow: 0 0 12px rgba(247,148,30,0.6);
  transition: width .1s linear;
}
.wf-logo__mark {
  width: 32px; height: 32px;
  background-image: url('logo-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 10px rgba(237,28,36,0.35));
  position: relative;
  animation: logoFlicker 3.4s ease-in-out infinite;
}
@keyframes logoFlicker {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(237,28,36,0.3)) drop-shadow(0 0 16px rgba(242,101,34,0.2)); transform: scale(1); }
  25% { filter: drop-shadow(0 0 14px rgba(247,148,30,0.55)) drop-shadow(0 0 22px rgba(237,28,36,0.35)); transform: scale(1.04); }
  55% { filter: drop-shadow(0 0 6px rgba(237,28,36,0.25)) drop-shadow(0 0 14px rgba(242,101,34,0.18)); transform: scale(0.98); }
  75% { filter: drop-shadow(0 0 12px rgba(247,148,30,0.5)) drop-shadow(0 0 20px rgba(237,28,36,0.3)); transform: scale(1.03); }
}
.wf-nav__links {
  display: flex; gap: 36px; align-items: center;
  list-style: none; padding: 0; margin: 0;
}
.wf-nav__links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--wf-text-dim);
  transition: color .2s;
}
.wf-nav__links a:hover { color: var(--wf-text); }
.wf-nav__cta { display: flex; gap: 14px; align-items: center; }
.wf-nav__cta .wf-btn { padding: 12px 20px; font-size: 12px; }

@media (max-width: 860px) {
  .wf-nav__links { display: none; }
}

/* Footer ------------------------------------------------------------------ */

.wf-footer {
  background: #050506;
  color: var(--wf-text-dim);
  padding: 80px 0 32px;
  border-top: 1px solid var(--wf-line);
}
.wf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.wf-footer h5 {
  font-family: var(--wf-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wf-text-faint);
  margin: 0 0 20px;
  font-weight: 500;
}
.wf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.wf-footer ul a:hover { color: var(--wf-text); }
.wf-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--wf-line);
  font-size: 12px; font-family: var(--wf-mono);
  color: var(--wf-text-faint);
}
@media (max-width: 860px) {
  .wf-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Utility ----------------------------------------------------------------- */

.wf-num {
  font-family: var(--wf-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--wf-text-faint);
  font-weight: 500;
}
.is-light .wf-num { color: var(--wf-ink-dim); }

.wf-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.03) 0 12px,
      rgba(255,255,255,0.06) 12px 24px),
    var(--wf-black-2);
  border: 1px solid var(--wf-line);
  color: var(--wf-text-faint);
  font-family: var(--wf-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wf-placeholder::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Ember / fire background effect -------------------------------------------- */

.wf-embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wf-embers::before,
.wf-embers::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.wf-embers::before {
  width: 620px; height: 620px;
  left: -10%; top: 20%;
  background: radial-gradient(circle, #ED1C24 0%, rgba(237,28,36,0) 60%);
  animation: emberA 14s ease-in-out infinite alternate;
}
.wf-embers::after {
  width: 520px; height: 520px;
  right: -8%; top: 10%;
  background: radial-gradient(circle, #F7941E 0%, rgba(247,148,30,0) 60%);
  animation: emberB 18s ease-in-out infinite alternate;
}
@keyframes emberA {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.15); }
}
@keyframes emberB {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(0.9); }
}

/* Reveal on scroll -------------------------------------------------------- */

.wf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.wf-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .wf-reveal { opacity: 1; transform: none; transition: none; }
  .wf-embers::before, .wf-embers::after { animation: none; }
  .wf-logo__mark { animation: none; }
}

/* Floating spark particles ------------------------------------------------ */
.wf-pagehero {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 100%, rgba(237,28,36,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 0%, rgba(247,148,30,0.14) 0%, transparent 50%),
    var(--wf-black);
}
.wf-pagehero__inner { position: relative; z-index: 2; }
.wf-pagehero__crumb {
  font-family: var(--wf-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wf-orange);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wf-pagehero__crumb::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.wf-pagehero h1 {
  font-family: var(--wf-display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.wf-pagehero h1 .fire {
  background: var(--wf-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: fireShift 6s linear infinite;
}
.wf-pagehero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
}
.wf-pagehero__sub {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--wf-text-dim);
  max-width: 54ch;
  text-wrap: pretty;
}

/* Section header helper */
.wf-secthead {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.wf-secthead h2 { margin: 0; }
.wf-secthead p { margin: 0; max-width: 48ch; }
@media (max-width: 860px) {
  .wf-secthead { grid-template-columns: 1fr; gap: 24px; }
}
.wf-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.wf-spark {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #F7941E;
  box-shadow: 0 0 8px #F7941E, 0 0 16px #ED1C24;
  bottom: -20px;
  opacity: 0;
  animation: sparkRise linear infinite;
}
.wf-spark:nth-child(odd) { background: #ED1C24; box-shadow: 0 0 10px #ED1C24; }
.wf-spark:nth-child(3n) { background: #F26522; box-shadow: 0 0 10px #F26522; width: 2px; height: 2px; }
.wf-spark:nth-child(4n) { width: 4px; height: 4px; }

@keyframes sparkRise {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translate(0, -10vh) scale(1); }
  80% { opacity: 0.7; }
  100% { transform: translate(var(--sx, 30px), -110vh) scale(0.4); opacity: 0; }
}

/* Continuous shifting gradient for .fire text */
.wf-fire-text, .hero__title .line--fire, .final-cta h2 .fire, .positioning__body em, .hero__stat .n, .quote__mark {
  background-size: 200% 100%;
  animation: fireShift 6s linear infinite;
}
@keyframes fireShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Animated gradient border on cards */
@keyframes borderGlow {
  0%, 100% { border-color: var(--wf-line); }
  50% { border-color: rgba(242,101,34,0.22); }
}

/* Parallax wrappers */
[data-parallax] { will-change: transform; transition: transform .1s linear; }

/* Hero title letter-by-letter reveal */
.hero__title .line {
  overflow: hidden;
  padding-bottom: 0.08em; /* keep descenders from getting clipped by overflow:hidden */
}
.hero__title .line > span.word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordIn 1s cubic-bezier(.2,.7,.2,1) forwards;
}
/* Re-apply the fire gradient onto each word span, since background-clip:text
   doesn't paint through inline-block children of the .line ancestor. */
.hero__title .line--fire > span.word {
  background: var(--wf-fire);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordIn 1s cubic-bezier(.2,.7,.2,1) forwards, fireShift 6s linear infinite;
}
.hero__title .line--outline > span.word {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
}
.hero__title .line:nth-child(1) .word { animation-delay: .1s; }
.hero__title .line:nth-child(2) .word { animation-delay: .25s; }
.hero__title .line:nth-child(3) .word { animation-delay: .4s; }
@keyframes wordIn {
  to { transform: translateY(0); }
}

/* Scrolling mono ticker */
.wf-ticker {
  position: absolute;
  top: 110px;
  right: 0;
  overflow: hidden;
  max-width: 40vw;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.wf-ticker__track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  font-family: var(--wf-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wf-text-faint);
  padding-right: 48px;
}
.wf-ticker__track span::before {
  content: "◆ ";
  color: var(--wf-red);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scroll cue */
.wf-scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--wf-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wf-text-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.wf-scrollcue::before {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--wf-amber));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Podcast waveform (used on Home + Apply) -------------------------------- */
@keyframes waveGo {
  0%, 100% { height: 15%; opacity: 0.55; }
  50% { height: 95%; opacity: 1; }
}

/* Home studio card play-button triangle */
.home-play {
  position: relative;
  box-shadow: 0 0 0 0 rgba(237,28,36,0.5);
  animation: playPulseHome 2.4s ease-out infinite;
}
.home-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
@keyframes playPulseHome {
  0% { box-shadow: 0 0 0 0 rgba(237,28,36,0.55); }
  100% { box-shadow: 0 0 0 22px rgba(237,28,36,0); }
}
