/* ==========================================================================
   FEET OF FIRE DANCE ACADEMY — STYLESHEET
   You shouldn't need to edit this file. All editable content lives in
   index.html, gallery.html, and js/config.js.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colors — warm, charred palette. Not pure black/white on purpose. */
  --void:        #0b0908;   /* base background, soot-black */
  --void-soft:   #171210;   /* raised surfaces / cards */
  --void-soft-2: #221a17;   /* hover surfaces */
  --line:        #33261f;   /* hairline borders */
  --ember:       #d62839;   /* red */
  --ember-dim:   #8f1c28;
  --flame:       #f77f00;   /* orange */
  --spark:       #ffb627;   /* hot gold highlight */
  --ash:         #b8aca3;   /* muted warm gray — body text */
  --bone:        #f5ede6;   /* warm off-white — headings */

  --gradient-flame: linear-gradient(90deg, var(--ember) 0%, var(--flame) 55%, var(--spark) 100%);
  --gradient-flame-vert: linear-gradient(180deg, var(--spark) 0%, var(--flame) 45%, var(--ember) 100%);
  --gradient-veil: linear-gradient(180deg, rgba(11,9,8,0.2) 0%, rgba(11,9,8,0.75) 65%, var(--void) 100%);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1.25rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Grain/grit texture overlay — sits above everything, adds a rougher,
   less-polished edge in keeping with a funkier, less minimal look. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bone);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

::selection { background: var(--ember); color: var(--bone); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding-block: var(--space-xl); position: relative; }
.section--tinted {
  background: var(--void-soft);
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.section--tinted::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 40, 57, 0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(247, 127, 0, 0.12), transparent 45%);
  animation: firelight-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes firelight-drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(2%, -2%) scale(1.08); opacity: 1; }
}
.section-inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gradient-flame);
}
.eyebrow--hero {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--bone);
  background: rgba(11, 9, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(247, 127, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(247, 127, 0, 0.25);
}
.eyebrow--hero::before {
  background: var(--gradient-flame);
  box-shadow: 0 0 8px rgba(247, 127, 0, 0.6);
}

/* Centered variant with a small diamond flourish on each side, used for
   section headers styled after a punchier, more decorative reference. */
.eyebrow--centered {
  justify-content: center;
  width: 100%;
}
.eyebrow--centered::before,
.eyebrow--centered::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gradient-flame);
  transform: rotate(45deg);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-md);
}

/* Elegant script accent — used for brand tagline/quotes, matching the
   cursive style used throughout the academy's brand book. */
.script-accent {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--spark);
  line-height: 1.3;
}

.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head p { font-size: 1.05rem; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.9rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient-flame);
  color: var(--void);
  box-shadow: 0 8px 24px -8px rgba(247, 127, 0, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(247, 127, 0, 0.7); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--flame); background: rgba(247, 127, 0, 0.08); }
.btn--block { width: 100%; }

/* ---------- Scroll progress (signature flame trail) ---------- */
.flame-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: rgba(11,9,8,0.4);
}
.flame-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-flame);
  box-shadow: 0 0 12px 1px rgba(247, 127, 0, 0.65);
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 900;
  padding: 1.15rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(11, 9, 8, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.is-scrolled {
  background: rgba(11, 9, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--bone);
}
.brand__mark { width: 50px; height: 50px; flex-shrink: 0; object-fit: contain; }
.brand__mark--full { height: 76px; width: auto; }
.brand__word span { background: var(--gradient-flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding-block: 0.3rem;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gradient-flame);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__cta { margin-left: var(--space-sm); }

.nav__toggle {
  display: none;
  width: 32px; height: 22px;
  position: relative;
  z-index: 1001;
}
.nav__toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--bone);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav__toggle.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Full-screen mobile menu — hidden by default; only shown/positioned
   inside the max-width: 900px breakpoint below. Missing this rule is
   what caused it to render as plain unstyled text on desktop. */
.nav__mobile { display: none; }

.nav__close {
  display: none;
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 32px; height: 32px;
}
.nav__close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 2px;
  background: var(--bone);
  transform-origin: center;
}
.nav__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.nav__close:hover span { background: var(--flame); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  background:
    var(--gradient-veil),
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(214, 40, 57, 0.22), transparent 60%),
    var(--void) url('../assets/hero-background.jpeg') center 30% / cover no-repeat;
}
/*
  ✏️ TO ADD YOUR OWN BACKGROUND PHOTO (see README.md "Adding your photos"):
  1. Save your photo into the assets folder, e.g. assets/hero-background.jpg
  2. Change the .hero background rule above to:

     background:
       var(--gradient-veil),
       radial-gradient(ellipse 80% 50% at 50% 30%, rgba(214, 40, 57, 0.22), transparent 60%),
       var(--void) url('../assets/hero-background.jpg') center 30% / cover no-repeat;

  A dark or dimly-lit photo works best — the gradients above are tuned to
  sit on top of a DARK image so the text stays easy to read. A bright
  photo will need a darker overlay (increase the 0.75 value inside the
  --gradient-veil variable near the top of this file).
*/
.hero__embers, .ember-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ember-dot {
  position: absolute;
  bottom: -5%;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 8px 2px rgba(255, 182, 39, 0.7);
  opacity: 0;
  animation: rise var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--pos, 50%);
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-105vh) translateX(20px); opacity: 0; }
}

/* Pulsing flame glow — a soft breathing radial glow dropped behind a
   heading or icon for extra fire atmosphere. */
.glow-pulse { position: relative; }
.glow-pulse::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247, 127, 0, 0.28), transparent 70%);
  filter: blur(10px);
  animation: glow-breathe 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-size: clamp(3.6rem, 11vw, 8rem);
  line-height: 0.92;
  margin-bottom: var(--space-sm);
}
.hero__title .flicker {
  background: var(--gradient-flame);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flicker 3s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__tagline {
  font-family: var(--font-display);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}
.hero__tagline-line {
  display: block;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__tagline-line--1 { color: var(--bone); }
.hero__tagline-line--2 {
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: var(--space-md);
  color: var(--ash);
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0.8;
}
.hero__scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--flame), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* On shorter screens the hero's text + buttons can run taller than the
   available height, which pushes the buttons down toward this indicator.
   It's a decorative hint, not something essential — simplest safe fix is
   to just not show it when there isn't guaranteed room. */
@media (max-height: 760px) {
  .hero__scroll { display: none; }
  .hero { padding-top: 4.5rem; }
  .hero .script-accent { margin-bottom: var(--space-2xs) !important; }
  .hero__tagline { margin-bottom: var(--space-xs); }
  .hero__sub { margin-bottom: var(--space-sm); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}
.about__text p { margin-bottom: var(--space-sm); font-size: 1.02rem; }
.about__text p:last-of-type { margin-bottom: var(--space-md); }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.mv-card {
  padding: var(--space-sm);
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--flame);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}
.mv-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--space-2xs);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
}
.badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bone);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.badge:hover { border-color: var(--flame); transform: translateY(-2px); }
.badge__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--flame); }

.photo-slot__img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.photo-slot:has(.photo-slot__img) {
  padding: 0;
}
.photo-slot {
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: var(--void-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}
.photo-slot__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  max-width: 20ch;
}
.photo-slot::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(247,127,0,0.12), transparent 55%);
}

/* ---------- Leadership ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}
.leader-grid--single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.leader-grid--single .leader-card {
  max-width: 480px;
  width: 100%;
}
.leader-card {
  padding: var(--space-md);
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.35s var(--ease);
}
.leader-card:hover { border-color: var(--flame); }
.leader-card__photo {
  width: 168px;
  height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--void-soft-2), var(--void));
  border: 2px solid var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  position: relative;
}
.leader-card__photo svg { width: 40px; height: 40px; color: var(--flame); }
.leader-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
}
.leader-card__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--void-soft));
  pointer-events: none;
}
.leader-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 0.2rem;
}
.leader-card__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--bone);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}
.leader-card__list { display: flex; flex-direction: column; gap: var(--space-2xs); }
.leader-card__list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.9rem;
  line-height: 1.5;
}
.leader-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-flame);
}
.leader-stat { text-align: center; padding-inline: var(--space-sm); }
.leader-stat__num {
  font-family: var(--font-display);
  font-size: 3rem;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.leader-stat__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: var(--space-2xs);
}

/* ---------- Dance Styles ---------- */
/* Both rows below are horizontally scrollable single rows (not wrapping
   grids) — sized to be comfortably large, scrolling horizontally on any
   screen where they don't all fit rather than shrinking or wrapping. */
.scroll-row-wrap { margin-bottom: var(--space-xl); }

.styles-grid {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2xs) var(--space-2xs) var(--space-sm);
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, black 14px, black calc(100% - 22px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 14px, black calc(100% - 22px), transparent 100%);
}
.styles-grid::-webkit-scrollbar { display: none; }
.styles-grid::-webkit-scrollbar { height: 6px; }

.style-card {
  position: relative;
  flex: 1 0 210px;
  min-width: 210px;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--void-soft-2), var(--void-soft));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.style-card--photo {
  aspect-ratio: auto;
  background: none;
  border: none;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}
.style-card--photo:hover { border-color: transparent; transform: none; }
.style-card--photo::before { content: none; }
.style-card--photo .style-card__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.style-card--photo:hover .style-card__photo {
  border-color: var(--flame);
  transform: translateY(-4px) rotate(-1deg);
}
.style-card--photo .style-card__name {
  position: static;
  z-index: auto;
  padding-inline: 0;
  padding-top: var(--space-2xs);
  font-size: 1.05rem;
}
.style-card--photo::before {
  background: linear-gradient(to top, rgba(11,9,8,0.9) 15%, rgba(11,9,8,0.15) 60%, transparent 100%);
}
.style-card:hover { border-color: var(--flame); transform: translateY(-4px) rotate(-1deg); }
.style-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(247, 127, 0, 0.13), transparent 60%);
}
.style-card__icon { width: 44px; height: 44px; color: var(--flame); position: relative; z-index: 1; }
.style-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  text-align: center;
  position: relative;
  z-index: 1;
  padding-inline: var(--space-sm);
}

/* Divided feature row (icon + title + description) */
/* Feature row (icon + title + description) */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md) 0;
  padding: var(--space-2xs) var(--space-2xs) var(--space-sm);
}
.feature-row__item {
  padding-inline: var(--space-sm);
  border-left: 1px solid var(--line);
  text-align: center;
}
.feature-row__item:first-child { border-left: none; }
.feature-row__icon { width: 26px; height: 26px; color: var(--flame); margin: 0 auto var(--space-xs); }
.feature-row__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--bone);
  margin-bottom: 0.25rem;
}
.feature-row__desc { font-size: 0.76rem; line-height: 1.4; }

/* ---------- Achievements ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: var(--space-2xs);
}

.achieve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.achieve-card {
  padding: var(--space-md) var(--space-sm);
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.achieve-card:hover { border-color: var(--flame); transform: translateY(-4px); }
.achieve-card__icon {
  width: 34px; height: 34px;
  margin-bottom: var(--space-sm);
  color: var(--spark);
}
.achieve-card h3 {
  font-family: var(--font-body);
  color: var(--bone);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2xs);
  letter-spacing: normal;
}
.achieve-card p { font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.contact-card {
  padding: var(--space-md);
  background: var(--void-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
}
.contact-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--space-2xs);
}
.contact-card__name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bone);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}
.contact-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding-block: var(--space-2xs);
  font-size: 0.94rem;
  color: var(--ash);
  border-top: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}
.contact-card__row:first-of-type { border-top: none; }
.contact-card__row svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--flame); }
a.contact-card__row:hover { color: var(--bone); }

.contact__footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-lg);
}
.contact__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.96rem;
  max-width: 40ch;
}
.contact__address svg { width: 19px; height: 19px; color: var(--flame); flex-shrink: 0; margin-top: 3px; }

/* ---------- Contact: map ---------- */
.contact__map {
  margin-bottom: var(--space-lg);
}
.contact__map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 5;
  background: var(--void-soft);
}
.contact__map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flame);
  transition: color 0.3s var(--ease);
}
.contact__map-link svg { width: 15px; height: 15px; }
.contact__map-link:hover { color: var(--bone); }
@media (max-width: 640px) {
  .contact__map-frame { aspect-ratio: 4 / 3; }
}

.social-row { display: flex; gap: var(--space-xs); }
.social-row a {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-flame);
  border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(247, 127, 0, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.social-row a:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 26px -6px rgba(247, 127, 0, 0.7); }
.social-row svg { width: 20px; height: 20px; color: var(--void); }

/* Footstep trail leading to the CTA */
.footstep-trail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}
.footstep-trail svg {
  width: 16px; height: 16px;
  opacity: var(--o, 0.3);
}
.footstep-trail svg:nth-child(1) { opacity: 0.25; color: var(--ash); }
.footstep-trail svg:nth-child(2) { opacity: 0.45; color: var(--ash); transform: translateY(4px); }
.footstep-trail svg:nth-child(3) { opacity: 0.7; color: var(--flame); }
.footstep-trail svg:nth-child(4) { opacity: 0.9; color: var(--flame); transform: translateY(4px); }
.footstep-trail svg:nth-child(5) { opacity: 1; color: var(--spark); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-lg) var(--space-md);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__tagline { max-width: 32ch; margin-top: var(--space-sm); font-size: 0.92rem; }
.footer__links { display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--ash);
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--flame); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ash);
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-sm);
  right: var(--space-sm);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-flame);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(247,127,0,0.6);
  z-index: 800;
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; color: var(--void); }

/* ---------- Gallery page ---------- */
.gallery-hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: var(--space-lg);
}
.gallery-hero .section-title { margin-bottom: var(--space-sm); }

/* Used on whichever section leads a page (no hero above it) so its content
   clears the fixed nav bar with the same breathing room as the gallery page. */
.section--first { padding-top: 9rem; }

.filter-row {
  display: flex;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--flame); color: var(--bone); }
.filter-btn.is-active {
  background: var(--gradient-flame);
  border-color: transparent;
  color: var(--void);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--void-soft);
  border: 1px solid var(--line);
}
.gallery-item img, .gallery-item .thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img, .gallery-item:hover .thumb-img { transform: scale(1.08); }
.gallery-item__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,9,8,0.85) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}
.gallery-item:hover .gallery-item__veil { opacity: 1; }
.gallery-item__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11,9,8,0.55);
  border: 1px solid rgba(245,237,230,0.5);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.play-badge svg { width: 18px; height: 18px; color: var(--bone); margin-left: 2px; }

/* Items beyond the current "Load More" batch stay in the DOM (so no
   refetching/re-rendering is ever needed) but are simply not laid out. */
.gallery-item--hidden { display: none; }

/* Fade-up entrance for a batch just revealed by "Load More". Applied only
   to the newly-shown items, then removed on animationend (see script.js).
   The site-wide prefers-reduced-motion rule near the top of this file
   already collapses this to ~0ms, so no extra override is needed here. */
@keyframes gallery-item-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery-item--enter {
  animation: gallery-item-fade-up 0.4s var(--ease) both;
}

.gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}
.gallery-load-more-wrap.is-hidden { display: none; }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}
.gallery-empty__icon { width: 40px; height: 40px; color: var(--flame); margin: 0 auto var(--space-sm); }
.gallery-empty h3 { font-family: var(--font-body); color: var(--bone); font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-2xs); }
.gallery-empty p { font-size: 0.92rem; max-width: 40ch; margin-inline: auto; }

.gallery-skeleton {
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  background: linear-gradient(100deg, var(--void-soft) 30%, var(--void-soft-2) 50%, var(--void-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,9,8,0.94);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { max-width: 90vw; max-height: 82vh; position: relative; }
.lightbox__stage img, .lightbox__stage video {
  max-height: 82vh;
  max-width: 90vw;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--void-soft);
}
.lightbox__stage iframe.lightbox__video {
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 82vh;
  margin-inline: auto;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--void-soft);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23,18,16,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close svg, .lightbox__prev svg, .lightbox__next svg { width: 18px; height: 18px; color: var(--bone); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { border-color: var(--flame); transform: scale(1.06); }
.lightbox__close { top: var(--space-md); right: var(--space-md); }
.lightbox__prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta {
    padding: 0.55rem 1.05rem;
    font-size: 0.78rem;
    border-radius: 999px;
    margin-right: var(--space-xs);
  }
  .nav__mobile {
    position: fixed; inset: 0;
    background: var(--void);
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }
  .nav__mobile.is-open { transform: translateY(0); }
  .nav__close { display: block; }
  .nav__mobile a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--bone);
  }

  .feature-row { grid-template-columns: 1fr; }
  .feature-row__item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-block: var(--space-sm);
  }
  .feature-row__item:first-child { border-top: none; }

  .about__grid { grid-template-columns: 1fr; }
  .photo-slot { order: -1; aspect-ratio: 16/9; }
  .badge-grid { grid-template-columns: 1fr 1fr; }

  .leader-grid { grid-template-columns: 1fr; gap: var(--space-md); }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-md); }
  .achieve-grid { grid-template-columns: 1fr 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__footline { flex-direction: column; align-items: flex-start; }

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

  .footer__top { flex-direction: column; }
}

@media (max-width: 560px) {
  .achieve-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xs); }
  .lightbox__prev { left: var(--space-2xs); }
  .lightbox__next { right: var(--space-2xs); }
  .footer__links { gap: var(--space-md); }
}
