:root {
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;

  --max-width: 1200px;
  --text: #1f2a33;
  --bg-a: #f7f7f2;
  --bg-b: #e9f0eb;
  --bg-c: #dce9e4;
  --accent: #1f6e62;
  --accent-soft: #76a49c;
  --line: #c9d8d3;

  --radius-8: 8px;
  --radius-16: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 50%, var(--bg-c) 100%);
  line-height: 1.6;
  overflow-x: clip;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  z-index: 1;
  animation: float 10s ease-in-out infinite;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: -96px;
  left: -96px;
  background: #c8ddd6;
}

.orb-b {
  width: 280px;
  height: 280px;
  top: 25vh;
  right: -96px;
  background: #d5d6e9;
  animation-delay: -2s;
}

.orb-c {
  width: 352px;
  height: 352px;
  bottom: -128px;
  left: 20vw;
  background: #d4e6c9;
  animation-delay: -4s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  z-index: 30;
  background: color-mix(in srgb, var(--line) 45%, transparent);
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  transition: width 120ms linear;
}

.container {
  width: min(100% - var(--space-64), var(--max-width));
  margin-inline: auto;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: #341940 !important;
  border-bottom: 1px solid color-mix(in srgb, #fffcf5 18%, #341940) !important;
  padding-block: var(--space-16);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.brand-logo img {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

.scene {
  padding-block: var(--space-64);
  min-height: 65vh;
  display: grid;
  align-items: center;
  scroll-margin-top: 88px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin: 0 0 var(--space-16);
  color: color-mix(in srgb, var(--text) 72%, white);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-16);
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 48px);
}

h3 {
  font-size: 24px;
}

p,
ul {
  margin: 0;
  font-size: 18px;
}

.lede {
  margin-top: var(--space-24);
  max-width: 64ch;
}

.story-grid {
  display: flex;
  gap: var(--space-40);
  align-items: center;
}

.story-copy,
.story-visual {
  flex: 1 1 0;
  min-width: 0;
}

.story-grid .story-copy {
  order: 1;
}

.story-grid .story-visual {
  order: 2;
}

.story-grid.reverse .story-copy {
  order: 2;
}

.story-grid.reverse .story-visual {
  order: 1;
}

.story-copy p + p {
  margin-top: var(--space-16);
}

.story-visual {
  display: grid;
  align-items: center;
}

.visual-stage {
  border: 1px dashed color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, #ffffff 66%, transparent);
  border-radius: var(--radius-16);
  padding: var(--space-32);
  box-shadow: 0 24px 56px color-mix(in srgb, #1f2a33 12%, transparent);
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.visual-stage::before,
.visual-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 20%, transparent);
}

.visual-stage::before {
  width: 192px;
  height: 192px;
  top: -64px;
  right: -48px;
}

.visual-stage::after {
  width: 144px;
  height: 144px;
  bottom: -56px;
  left: -32px;
}

.stage-label {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--text) 62%, white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-32);
  border-radius: var(--radius-8);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.site-header .button.secondary {
  color: #fffcf5 !important;
  border-color: #fffcf5 !important;
  height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover {
  transform: translateY(-2px);
}

.site-footer {
  padding-block: var(--space-32);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(var(--space-32)) scale(0.99);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene.is-active .visual-stage {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  transform: translateY(-4px);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(24px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 1000px) {
  .story-grid {
    gap: var(--space-32);
  }
}

@media (max-width: 820px) {
  .story-grid,
  .story-grid.reverse {
    flex-direction: column;
  }

  .story-grid .story-visual,
  .story-grid.reverse .story-visual {
    order: 1;
  }

  .story-grid .story-copy,
  .story-grid.reverse .story-copy {
    order: 2;
  }

  .visual-stage {
    min-height: 288px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - var(--space-32), var(--max-width));
  }

  .scene {
    padding-block: var(--space-48);
    min-height: auto;
  }

  .scroll-progress {
    height: 4px;
  }

  p,
  ul {
    font-size: 16px;
  }
}
