/* Friendly Fire — dark space / ember aesthetic */
:root {
  --bg: #07060b;
  --bg-elev: #100e18;
  --bg-card: #161322;
  --bg-card-hover: #1e1a2e;
  --border: rgba(255, 140, 60, 0.18);
  --border-strong: rgba(255, 140, 60, 0.4);
  --text: #f4ece4;
  --text-muted: #b9a99a;
  --ember: #ff6b2c;
  --ember-hot: #ffb347;
  --flame: #ff3d00;
  --purple: #7b4dff;
  --purple-deep: #3a1d6e;
  --glow: 0 0 40px rgba(255, 90, 30, 0.25);
  --radius: 14px;
  --nav-h: 68px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(123, 77, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 61, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255, 107, 44, 0.06), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-hot); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ember); color: #000;
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 11, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.logo span.fire {
  background: linear-gradient(135deg, var(--ember-hot), var(--flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 90, 30, 0.5);
  border: 1px solid var(--border-strong);
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255, 107, 44, 0.12);
}
.nav-links a.store-link {
  background: linear-gradient(135deg, var(--flame), var(--purple));
  color: #fff;
  margin-left: 0.35rem;
}
.nav-links a.store-link:hover { filter: brightness(1.1); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 8, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-links a.store-link { margin: 0.5rem 0 0; text-align: center; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, var(--ember-hot), var(--text) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) saturate(1.15);
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(7,6,11,0.55) 45%, rgba(7,6,11,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 3rem 0 3.5rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.1);
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #fff, var(--ember-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--flame), var(--ember-hot));
  color: #1a0a00;
  box-shadow: var(--glow);
}
.btn-primary:hover { color: #1a0a00; filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}
.socials a:hover {
  color: var(--ember-hot);
  border-color: var(--border-strong);
  background: rgba(255, 107, 44, 0.1);
}

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0a0810; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card-num {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--ember); text-transform: uppercase; margin-bottom: 0.25rem;
}

/* Product cards wider */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--border-strong); }
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 2px;
  background: #0a0810;
  min-height: 140px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.product-gallery img:hover { opacity: 0.85; }
.product-gallery img.featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
  max-height: 280px;
}
.product-card .card-body { flex: 1; }

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
}
.gallery a, .gallery button {
  display: block; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.gallery a:hover, .gallery button:hover {
  border-color: var(--border-strong);
  transform: scale(1.02);
  box-shadow: var(--glow);
}
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}

/* YouTube embeds */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-section { margin-bottom: 3rem; }

/* About story */
.story {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .story { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.story-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 1.15rem;
}
.story-text p:first-of-type { color: var(--text); font-size: 1.1rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(123, 77, 255, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(123, 77, 255, 0.1);
}
.story-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.story-aside img {
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.story-aside img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
}

/* Feature strip on home */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.feature {
  padding: 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--ember-hot); }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Contact CTA */
.cta-band {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,61,0,0.15), rgba(123,77,255,0.15));
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1rem; color: var(--text-muted); }
.cta-band a.email {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ember-hot);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  background: rgba(0,0,0,0.35);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; }
.footer-meta a { color: var(--ember-hot); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--ember-hot); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,107,44,0.3); }

.page-hero {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  margin: 0 0 0.4rem;
  font-weight: 900;
}
.page-hero p { margin: 0; color: var(--text-muted); max-width: 40rem; }

.coming-soon {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.8;
}


/* Pax Dei extras */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.feature-card strong { display: block; margin-bottom: 0.35rem; color: var(--ember-hot); }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.info-note {
  background: rgba(123, 77, 255, 0.12);
  border: 1px solid rgba(123, 77, 255, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
}
.clan-tag {
  border-left: 3px solid var(--ember);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.flame-list {
  color: var(--text-muted);
  line-height: 1.8;
}
.cta-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(58, 29, 110, 0.45), rgba(16, 14, 24, 0.9));
  border: 1px solid rgba(123, 77, 255, 0.35);
}
.cta-box h3 { margin-top: 0; }
.cta-box kbd {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
}
.cta-box .closing { margin-bottom: 0; color: var(--ember-hot); }
.hero-compact .hero-content { padding-top: 4rem; padding-bottom: 3rem; }

/* Lightbox navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,107,44,0.35); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.1rem; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.25rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

/* Footer banner image */
.footer-banner {
  width: 100%;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.footer-banner img {
  display: block;
  width: 100%;
  height: clamp(160px, 26vw, 320px);
  object-fit: cover;
  object-position: center 35%;
}
