/* Five Torches Deep — landing page */
:root {
  --bg: #0d0a08;
  --bg-2: #110d0a;
  --card: #15100c;
  --line: #2a211a;
  --line-2: #2e241c;
  --line-3: #3a2c20;
  --ink: #f6eee2;
  --text: #efe6d8;
  --body: #cdbfab;
  --muted: #9c8f7d;
  --soft: #b8aa96;
  --torch: #f0a848;
  --torch-hi: #ffd08a;
  --on-torch: #1a0f05;
  --display: 'Cinzel', serif;
  --serif: 'Spectral', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--torch); }
a:hover { color: var(--torch-hi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--torch); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--torch); color: var(--on-torch); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--torch);
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 44rem; margin-bottom: 56px; }
.section-head h2, .h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; }
.section-head p:not(.eyebrow) { color: var(--body); }
.section { padding-top: 104px; padding-bottom: 104px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  text-decoration: none; border-radius: 2px; transition: background .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--torch); color: var(--on-torch); box-shadow: 0 0 40px rgba(240,168,72,0.25); }
.btn-primary:hover { background: var(--torch-hi); color: var(--on-torch); box-shadow: 0 0 56px rgba(240,168,72,0.4); }
.btn-ghost { border: 1px solid #5a4a3b; color: var(--text); padding: 0 26px; }
.btn-ghost:hover { border-color: var(--torch); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(13,10,8,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em;
}
.brand:hover { color: var(--ink); }
.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links a { color: var(--soft); text-decoration: none; padding: 12px 0; display: inline-block; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--on-torch); background: var(--torch); padding: 12px 20px; border-radius: 2px; font-weight: 500; }
.nav-links .nav-cta:hover { background: var(--torch-hi); color: var(--on-torch); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 72% 55%, rgba(240,168,72,0.16), rgba(13,10,8,0) 70%), var(--bg);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 900; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: 0.01em; }
.hero h1 span { color: var(--torch); }
.lede { font-size: 1.3rem; line-height: 1.6; color: var(--body); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.byline { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-art img {
  width: 100%; max-width: 440px; height: auto;
  border: 1px solid var(--line-3); border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 120px rgba(240,168,72,0.18);
}

/* Hero motion: flickering torchlight, rising embers, drifting cover, staggered entrance */
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 38% 50% at 72% 58%, rgba(255,170,70,0.22), rgba(255,140,40,0) 70%);
  animation: glow-flicker 4.2s infinite;
}
@keyframes glow-flicker {
  0%, 100% { opacity: .85; transform: scale(1); }
  12% { opacity: 1; }
  18% { opacity: .7; }
  30% { opacity: .95; transform: scale(1.03); }
  46% { opacity: .78; }
  58% { opacity: 1; transform: scale(.99); }
  70% { opacity: .82; }
  84% { opacity: .96; transform: scale(1.02); }
}

.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s, 3px); height: var(--s, 3px);
  border-radius: 50%; background: #ffc46b;
  box-shadow: 0 0 6px 2px rgba(255,150,50,0.7);
  opacity: 0;
  animation: ember var(--d, 9s) linear var(--delay, 0s) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(var(--drift, 30px), -50vh) scale(.8); opacity: .7; }
  100% { transform: translate(calc(var(--drift, 30px) * -0.6), -105vh) scale(.3); opacity: 0; }
}
.embers span:nth-child(1)  { --x: 52%; --d: 9s;   --delay: 0s;   --drift: 40px; }
.embers span:nth-child(2)  { --x: 58%; --d: 11s;  --delay: 1.5s; --drift: -30px; --s: 2px; }
.embers span:nth-child(3)  { --x: 63%; --d: 8s;   --delay: 3s;   --drift: 25px; }
.embers span:nth-child(4)  { --x: 67%; --d: 12s;  --delay: .8s;  --drift: -45px; --s: 4px; }
.embers span:nth-child(5)  { --x: 71%; --d: 10s;  --delay: 4.2s; --drift: 35px; --s: 2px; }
.embers span:nth-child(6)  { --x: 74%; --d: 9.5s; --delay: 2.2s; --drift: -20px; }
.embers span:nth-child(7)  { --x: 78%; --d: 13s;  --delay: 5s;   --drift: 50px; --s: 2px; }
.embers span:nth-child(8)  { --x: 82%; --d: 8.5s; --delay: 1s;   --drift: -35px; }
.embers span:nth-child(9)  { --x: 86%; --d: 11s;  --delay: 6s;   --drift: 20px; --s: 4px; }
.embers span:nth-child(10) { --x: 90%; --d: 10s;  --delay: 3.6s; --drift: -25px; --s: 2px; }
.embers span:nth-child(11) { --x: 69%; --d: 14s;  --delay: 7s;   --drift: 60px; --s: 2px; }
.embers span:nth-child(12) { --x: 60%; --d: 12s;  --delay: 8s;   --drift: -50px; }
.embers span:nth-child(13) { --x: 76%; --d: 9s;   --delay: 6.8s; --drift: 30px; --s: 2px; }
.embers span:nth-child(14) { --x: 84%; --d: 12.5s;--delay: 2.8s; --drift: -40px; --s: 3px; }
.embers span:nth-child(15) { --x: 15%; --d: 14s;  --delay: 4.5s; --drift: 30px; --s: 2px; }
.embers span:nth-child(16) { --x: 35%; --d: 13s;  --delay: 9s;   --drift: -30px; --s: 2px; }

.hero-art img { animation: cover-drift 7s ease-in-out infinite; }
@keyframes cover-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-copy > * { animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero-art { animation: rise-in 1.1s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* CTA torch flicker */
.torch { overflow: visible; filter: drop-shadow(0 0 10px rgba(240,168,72,0.55)); animation: torch-glow 2.6s infinite; }
.torch .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-flicker 1.7s infinite; }
@keyframes flame-flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); opacity: 1; }
  15% { transform: scale(.96, 1.05) skewX(-2deg); opacity: .9; }
  32% { transform: scale(1.03, .95) skewX(1.5deg); opacity: 1; }
  48% { transform: scale(.98, 1.07) skewX(-1deg); opacity: .82; }
  66% { transform: scale(1.02, .97) skewX(2deg); opacity: .96; }
  82% { transform: scale(.97, 1.03) skewX(-1.5deg); opacity: .88; }
}
@keyframes torch-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(240,168,72,0.55)); }
  25% { filter: drop-shadow(0 0 16px rgba(255,170,70,0.75)); }
  50% { filter: drop-shadow(0 0 7px rgba(240,168,72,0.4)); }
  75% { filter: drop-shadow(0 0 14px rgba(255,180,80,0.7)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .embers span, .hero-art img, .hero-copy > *, .hero-art, .torch, .torch .flame { animation: none !important; }
  .embers { display: none; }
}

/* What is it */
.what { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 80px; padding-bottom: 80px; }
.what-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.what-copy p:not(.eyebrow) { color: var(--body); }
.facts {
  flex: 1 1 440px; min-width: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.facts div { background: var(--bg-2); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.facts dt { order: 2; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--torch); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 16px;
}
.card .kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.4rem; line-height: 1.25; }
.card p:last-child { color: var(--body); font-size: 1.05rem; }

/* Art banner */
.banner { margin: 0; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.banner img { width: 100%; height: 520px; object-fit: cover; object-position: center; }
.banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 24px 40px;
  background: linear-gradient(to top, rgba(13,10,8,0.95), rgba(13,10,8,0));
}
.banner figcaption p {
  max-width: var(--wrap); margin: 0 auto; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--ink);
}
.banner figcaption span { color: var(--body); font-weight: 500; }

/* Mechanics */
.mechanics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 56px;
  margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2);
}
.mechanics li { padding: 36px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 22px; }
.numeral { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--torch); min-width: 32px; }
.mechanics li div { display: flex; flex-direction: column; gap: 8px; }
.mechanics h3 { font-size: 1.25rem; }
.mechanics p { color: var(--body); font-size: 1.05rem; }

.stats-panel {
  margin-top: 72px; background: var(--card); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 40px 32px; display: flex; flex-direction: column; gap: 28px;
}
.stats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.stats-head h3 { font-size: 1.5rem; }
.stats-head p { color: var(--muted); font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.stats div { border: 1px solid var(--line-3); border-radius: 2px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stats dt { font-family: var(--mono); font-weight: 500; font-size: 1.4rem; color: var(--torch); letter-spacing: 0.08em; }
.stats dd { margin: 0; color: var(--body); font-size: 1rem; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.class { border-top: 2px solid var(--torch); background: var(--bg); padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.class h3 { font-weight: 900; font-size: 1.7rem; }
.class-sum { color: var(--body); font-style: italic; font-size: 1.05rem; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.class dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.class dl div { display: flex; flex-direction: column; gap: 2px; }
.class dt { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--torch); }
.class dd { margin: 0; color: var(--body); font-size: 1rem; line-height: 1.55; }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.audience { display: flex; flex-direction: column; gap: 12px; }
.audience::before { content: ""; display: block; width: 40px; height: 1px; background: var(--torch); }
.audience h3 { font-size: 1.3rem; }
.audience p { color: var(--body); font-size: 1.05rem; }

/* CTA + footer */
.cta {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(240,168,72,0.2), rgba(13,10,8,0) 70%), var(--bg);
}
.cta-inner {
  max-width: 760px; margin: 0 auto; padding: 120px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta h2 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; }
.cta p { font-size: 1.2rem; color: var(--body); }
.cta .btn { min-height: 56px; padding: 0 34px; margin-top: 8px; font-size: 1.05rem; box-shadow: 0 0 50px rgba(240,168,72,0.3); }
.site-footer {
  border-top: 1px solid var(--line); padding: 28px 24px; font-size: 0.9rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; text-align: center;
}
.social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  color: var(--soft); text-decoration: none; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em;
}
.social:hover { color: var(--torch); }

@media (max-width: 640px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero-inner { padding-top: 56px; padding-bottom: 72px; gap: 48px; }
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 4px 20px; }
  .banner img { height: 360px; }
  .facts dd { font-size: 2.1rem; }
  .card, .stats-panel { padding: 28px 22px; }
  .cta-inner { padding: 88px 24px; }
}
