:root {
  --bf-bg-deep: #150b06;
  --bf-bg-mid: #301b10;
  --bf-orange: #eb7828;
  --bf-orange-light: #f5a623;
  --bf-cream: #d9d1c2;
  --bf-charcoal: #1c1a20;
  --bf-white: #ffffff;
  --bf-max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bf-bg-deep);
  color: var(--bf-white);
  line-height: 1.5;
  position: relative;
}

a { color: inherit; }

/* ==========================================================================
   Full-page anvil-and-sparks background -- a real photo now (Workers AI,
   flux-2-dev), not the earlier hand-drawn SVG. Fixed (not scoped to the
   hero) so it sits behind every section on every page as content scrolls
   over it, per Jeremy's direction. The photo is already almost entirely
   black outside the anvil/hammer/forge, so the overlay here only needs to
   dim the lit elements a bit for text contrast, not mask a busy image.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("anvil-bg.jpg");
  background-repeat: no-repeat;
  background-position: center 55%;
  background-size: cover;
  opacity: 0.78;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(21,11,6,0.22) 0%, rgba(21,11,6,0.65) 55%, rgba(21,11,6,0.9) 100%);
  z-index: 0;
  pointer-events: none;
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: var(--bf-max-width); margin: 0 auto; padding: 0 32px; }

.topbar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--bf-orange) 0%, var(--bf-orange-light) 50%, var(--bf-orange) 100%);
}

/* Nav */
nav { padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-text { font-weight: 800; font-size: 17px; line-height: 1.15; }
.brand-text span { display: block; color: var(--bf-orange); font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--bf-orange-light); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--bf-orange); color: #1a0e04; }
.btn-primary:hover { background: var(--bf-orange-light); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.35); color: var(--bf-white); background: transparent; }

/* Hero (home page only) */
header.hero-header { padding: 100px 0 110px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero.hero-centered { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; text-align: center; }
.hero.hero-centered .hero-ctas { justify-content: center; }
.hero.hero-centered .lede { margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--bf-orange-light); font-weight: 800; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: 50px; font-weight: 900; line-height: 1.1; margin: 0 0 22px; }
h1 .accent { background: var(--bf-orange); color: #1a0e04; padding: 2px 10px; display: inline-block; }
.hero p.lede { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; max-width: 260px; opacity: 0.92; }

/* Simple sub-page header (Services / Ember / Portfolio / About) */
header.page-header { padding: 60px 0 50px; text-align: center; }
header.page-header .eyebrow { text-align: center; }
header.page-header h1 { font-size: 40px; }
header.page-header p.lede { margin-left: auto; margin-right: auto; text-align: center; }

/* Sections */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; font-weight: 900; margin: 0 0 12px; }
.section-head p { color: rgba(255,255,255,0.72); font-size: 16px; margin: 0; }

/* Offerings grid */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  backdrop-filter: blur(2px);
}
.offer-card.coming-soon { opacity: 0.75; border-style: dashed; }
.offer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.offer-badge.live { background: rgba(235,120,40,0.2); color: var(--bf-orange-light); }
.offer-badge.soon { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); }
.offer-card h3 { font-size: 19px; margin: 0 0 10px; }
.offer-card p { font-size: 14.5px; color: rgba(255,255,255,0.75); margin: 0 0 18px; }
.offer-card .price { font-weight: 800; color: var(--bf-orange-light); font-size: 14px; margin-bottom: 16px; }
.offer-card a.cta { font-size: 13.5px; font-weight: 700; color: var(--bf-orange-light); text-decoration: none; }
.offer-card a.cta:hover { text-decoration: underline; }

/* Ember panel (used on home teaser + full Ember page) */
.ember-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ember-copy h2 { font-size: 30px; font-weight: 900; margin: 0 0 16px; }
.ember-copy p { color: rgba(255,255,255,0.8); font-size: 16px; margin: 0 0 18px; }
.ember-copy ul { padding-left: 20px; margin: 0 0 24px; color: rgba(255,255,255,0.8); font-size: 15px; }
.ember-copy li { margin-bottom: 8px; }
.ember-callout {
  background: rgba(235,120,40,0.14);
  border: 1px solid rgba(235,120,40,0.4);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 600;
}
.ember-mock {
  background: rgba(28,26,32,0.85);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.14);
}
.ember-mock .mock-header { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.ember-mock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-orange); }
.ember-mock .bubble { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 10px; max-width: 85%; }
.ember-mock .bubble.bot { background: rgba(255,255,255,0.1); }
.ember-mock .bubble.visitor { background: var(--bf-orange); color: #1a0e04; margin-left: auto; }

/* Tier cards (Services + Ember pricing) */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 30px 26px;
}
.tier-card.featured { border-color: var(--bf-orange); background: rgba(235,120,40,0.08); }
.tier-card h3 { margin: 0 0 6px; font-size: 18px; }
.tier-card .tier-price { font-size: 30px; font-weight: 900; color: var(--bf-orange-light); margin: 0 0 16px; }
.tier-card ul { padding-left: 18px; margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.78); }
.tier-card li { margin-bottom: 8px; }

/* Portfolio (separate page) */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.portfolio-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  color: var(--bf-white);
  display: block;
  background: rgba(255,255,255,0.05);
}
.portfolio-thumb-wrap { height: 230px; overflow: hidden; background: var(--bf-bg-mid); }
.portfolio-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.35s ease; }
.portfolio-card:hover .portfolio-thumb-wrap img { transform: scale(1.04); }
.portfolio-card .pc-body { padding: 20px 22px; }
.portfolio-card h4 { margin: 0 0 6px; font-size: 18px; }
.portfolio-card p { margin: 0 0 10px; font-size: 13.5px; color: rgba(255,255,255,0.68); }
.portfolio-card .pc-link { font-size: 13px; font-weight: 700; color: var(--bf-orange-light); }

/* About page */
.about-block { max-width: 760px; margin: 0 auto; }
.about-block p { font-size: 16.5px; color: rgba(255,255,255,0.82); margin: 0 0 20px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.about-values .value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 22px;
}
.about-values h4 { margin: 0 0 8px; font-size: 15.5px; color: var(--bf-orange-light); }
.about-values p { font-size: 14px; margin: 0; color: rgba(255,255,255,0.72); }

/* Footer */
footer { padding: 50px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-inner p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-links a { text-decoration: none; opacity: 0.75; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  h1 { font-size: 36px; }
  .offer-grid, .tier-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .ember-panel { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
