@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0a0908;
  --fg: #f4efe8;
  --muted: #a39a90;
  --ember: #ff6a1a;
  --ember-hot: #ffb347;
  --cord: #5c4d40;
  --ash: #2b2521;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(255, 106, 26, 0.10), transparent 60%),
    radial-gradient(80% 60% at 50% -10%, rgba(255, 179, 71, 0.04), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: 1fr auto auto 1.15fr auto;
  min-height: 100svh;
  overflow-x: hidden;
}

/* Fine film grain so the black has texture, drawn with CSS only. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  z-index: 0;
}

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stage {
  position: relative;
  z-index: 2;
  grid-row: 2;
  text-align: center;
  padding: 0 16px;
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1.75rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px 2px rgba(255, 106, 26, .7);
  animation: pulse 2.4s ease-in-out infinite;
}

.wordmark {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: .9;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fffaf3 0%, #e9e1d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.period {
  color: var(--ember);
  -webkit-text-fill-color: var(--ember);
  text-shadow: 0 0 24px rgba(255, 106, 26, .55), 0 0 64px rgba(255, 106, 26, .25);
  animation: flicker 3.2s ease-in-out infinite;
}

.pitch {
  margin: 1.6rem 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sub {
  margin: .7rem auto 0;
  max-width: 44ch;
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: var(--muted);
}

.fuse-wrap {
  grid-row: 3;
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: clamp(2.5rem, 7vh, 5rem) auto 0;
  padding: 0 16px;
}

#fuse { display: block; width: 100%; height: auto; overflow: visible; }

.cord, .ash, .heat { fill: none; stroke-linecap: round; }
.cord { stroke: var(--cord); stroke-width: 3.2; }
.ash  { stroke: var(--ash); stroke-width: 2; stroke-dasharray: 2 7; }
.heat { stroke: var(--ember); stroke-width: 5; opacity: .9; }

.file-body { fill: #14110f; stroke: #6d5f52; stroke-width: 1.6; }
.file-fold { fill: none; stroke: #6d5f52; stroke-width: 1.6; }
.file-line { fill: none; stroke: #4a4038; stroke-width: 2.2; stroke-linecap: round; }
.file { transform-box: fill-box; transform-origin: 50% 60%; }

.foot {
  grid-row: 5;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 16px 1.5rem;
  font-size: .78rem;
  color: #8a8178;
  letter-spacing: .02em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: .82; }
  50% { opacity: .95; }
  70% { opacity: .78; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .period { animation: none; }
}

.wordmark--sm { font-size: clamp(2.6rem, 9vw, 5.5rem); }
.link { color: var(--ember-hot); text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 640px) {
  .fuse-wrap { margin-top: 2.5rem; padding: 0 8px; }
  .cord { stroke-width: 4.5; }
  .ash { stroke-width: 3; }
}
