:root {
  --bg0: #0c1110;
  --bg1: #121a18;
  --ink: #e8f0ec;
  --muted: #8a9a93;
  --line: rgba(232, 240, 236, 0.12);
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.18);
  --good: #3dba7a;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(212, 160, 23, 0.16), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(61, 186, 122, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #0a0f0e);
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.top-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.top-link:hover {
  color: var(--accent);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
}

.hero-copy {
  max-width: 32rem;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: #1a1405;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.45rem;
  height: 2px;
  background: rgba(26, 20, 5, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: #e0b12a;
}

.cta:hover::after {
  transform: scaleX(1);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 280px;
}

.panel {
  width: min(100%, 380px);
  padding: 1.25rem 1.35rem 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(232, 240, 236, 0.04), transparent 40%),
    rgba(10, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  animation: panel-in 1s ease both;
}

.panel-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.panel-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--good);
  margin-bottom: 0.75rem;
}

.spark {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.85rem;
}

.spark-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-line 1.6s 0.25s ease forwards;
}

.spark-dot {
  fill: var(--accent);
  opacity: 0;
  animation: dot-in 0.4s 1.5s ease forwards;
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.strip h2,
.close h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.strip-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 28rem;
}

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}

.beats li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.beats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.beats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.close {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  border-top: 1px solid var(--line);
}

.close .brand-mark {
  font-size: clamp(2rem, 5vw, 3rem);
}

.close p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}

/* entrances */
.hero-copy .brand-mark,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-row {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.hero-copy .brand-mark {
  animation-delay: 0.05s;
}
.hero-copy h1 {
  animation-delay: 0.18s;
}
.hero-copy .lede {
  animation-delay: 0.32s;
}
.hero-copy .cta-row {
  animation-delay: 0.45s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    gap: 2rem;
  }

  .hero-visual {
    justify-content: stretch;
    min-height: 0;
  }

  .panel {
    width: 100%;
  }

  .beats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-copy .brand-mark,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-copy .cta-row,
  .spark-line,
  .spark-dot,
  .panel {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
