:root {
  --bg: #dce6ef;
  --bg-deep: #c5d3e2;
  --ink: #14233a;
  --ink-soft: #5a6b7d;
  --accent: #e07020;
  --teal: #2a9d8f;
  --steel: #3d5a80;
  --paper: #f3f7fb;
  --shadow: rgba(20, 35, 58, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(42, 157, 143, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(224, 112, 32, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  mix-blend-mode: multiply;
}

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

.top-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 0.1rem;
}

.world {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 1;
}

.stage-frame {
  width: min(92vw, 1100px);
  aspect-ratio: 3 / 2;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 30px 80px var(--shadow),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transform-origin: 50% 45%;
  will-change: transform;
  background: var(--bg);
}

.stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stage-img.is-active {
  opacity: 1;
}

.stage-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(220, 230, 239, 0.05) 40%,
    rgba(220, 230, 239, 0.55) 78%,
    rgba(197, 211, 226, 0.92) 100%
  );
}

.panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 6vh, 4rem);
  margin-top: -100vh;
  margin-top: -100dvh;
}

.panel + .panel {
  margin-top: 0;
}

.panel-inner {
  max-width: 34rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(20, 35, 58, 0.08);
  transform: translateY(24px);
  opacity: 0.35;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.panel.is-inview .panel-inner {
  opacity: 1;
  transform: translateY(0);
}

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

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

h1,
h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  max-width: 16ch;
}

.lede,
.body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36ch;
}

.cta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: #f7fbff;
}

.btn.primary:hover {
  background: var(--steel);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
}

.scroll-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.hero .panel-inner {
  max-width: 38rem;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding-left: 0;
  padding-right: 0;
}

.finale .panel-inner {
  max-width: 36rem;
}

.foot {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

@media (max-width: 720px) {
  .stage-frame {
    width: 96vw;
    border-radius: 1rem;
  }

  .panel {
    align-items: flex-end;
  }

  .brand-mark {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero .lede {
    max-width: 30ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }

  .panel-inner,
  .stage-img,
  .btn {
    transition: none !important;
  }
}
