: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: #5C3632;
  --heading: #400700;
  --bg-a: #FFFAF3;
  --bg-b: #FFE7D3;
  --bg-c: #FFEDBA;
  --scroll-ratio: 0;
  --accent: #1f6e62;
  --accent-soft: #76a49c;
  --line: #c9d8d3;

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

* {
  box-sizing: border-box;
}

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

html {
  font-size: clamp(15px, 0.25vw + 14px, 18px);
}

body {
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(
      1200px 800px at calc(15% + (var(--scroll-ratio) * 20%)) calc(10% + (var(--scroll-ratio) * 12%)),
      color-mix(in srgb, var(--bg-b) 82%, white) 0%,
      transparent 62%
    ),
    radial-gradient(
      1000px 760px at calc(85% - (var(--scroll-ratio) * 18%)) calc(85% - (var(--scroll-ratio) * 10%)),
      color-mix(in srgb, var(--bg-c) 76%, white) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, var(--bg-a) 0%, var(--bg-b) 48%, var(--bg-c) 100%);
  line-height: 1.6;
  overflow-x: clip;
  transition: background 220ms linear;
}

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: #FFE7D3;
}

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

.orb-c {
  width: 352px;
  height: 352px;
  bottom: -128px;
  left: 20vw;
  background: #FFEDBA;
  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: #F5B600;
  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: rgba(255, 250, 243, 0.5) !important;
  border-bottom: 1px solid rgba(52, 25, 64, 0.14) !important;
  box-shadow: 0 8px 20px rgba(249, 243, 227, 0.45);
  padding-block: var(--space-16);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 250, 243, 0.75) !important;
  box-shadow: 0 12px 28px rgba(249, 243, 227, 0.62);
}

.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;
}

.scene-intro {
  min-height: 72vh;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-24);
  align-items: center;
}

.intro-col-center {
  display: grid;
  justify-items: center;
  gap: var(--space-24);
  text-align: center;
}

.intro-col-left,
.intro-col-right {
  display: grid;
  align-items: center;
}

.intro-col-center h1 {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.intro-visual {
  width: min(100%, 480px);
  display: grid;
  justify-items: center;
}

.intro-visual img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

.intro-stage {
  width: min(100%, 560px);
  min-height: 220px;
}

.side-anim {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.side-anim span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(245, 182, 0, 0.2);
  filter: blur(1px);
  animation: drift 7s ease-in-out infinite;
}

.side-anim span:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 12%;
  left: 14%;
}

.side-anim span:nth-child(2) {
  width: 72px;
  height: 72px;
  top: 46%;
  left: 48%;
  animation-delay: -1.4s;
}

.side-anim span:nth-child(3) {
  width: 96px;
  height: 96px;
  top: 70%;
  left: 20%;
  animation-delay: -2.6s;
}

.side-anim-right span:nth-child(1) {
  left: auto;
  right: 18%;
}

.side-anim-right span:nth-child(2) {
  left: auto;
  right: 52%;
}

.side-anim-right span:nth-child(3) {
  left: auto;
  right: 24%;
}

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

h1,
h2,
h3 {
  font-family: "Arvo", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-16);
  color: var(--heading);
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

p,
ul {
  margin: 0;
  font-size: 1.125rem;
}

.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: 0.875rem;
  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-24);
  border: 1px solid #F57400;
  background: #F57400;
  color: #400700;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 180ms ease;
}

.button.secondary {
  background: transparent;
  color: #400700;
  border-color: #400700;
}

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

.button:hover {
  transform: translateY(-2px);
  background: #400700;
  color: #F57400;
  border-color: #400700;
}

.button.secondary:hover {
  background: #F57400;
  color: #400700;
  border-color: #F57400;
}

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

.footer-links {
  margin-top: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.footer-links a,
.link-button {
  color: #400700;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover,
.link-button:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: var(--space-16);
  right: var(--space-16);
  bottom: var(--space-16);
  z-index: 50;
}

.cookie-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-24);
  border-radius: var(--radius-16);
  border: 1px solid rgba(52, 25, 64, 0.2);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: 0 20px 48px rgba(64, 7, 0, 0.18);
}

.cookie-actions {
  margin-top: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.cookie-dialog {
  border: 1px solid rgba(52, 25, 64, 0.2);
  border-radius: var(--radius-16);
  padding: 0;
  max-width: 540px;
  width: min(92vw, 540px);
  background: #fffaf3;
}

.cookie-dialog::backdrop {
  background: rgba(64, 7, 0, 0.26);
}

.cookie-dialog-inner {
  padding: var(--space-24);
}

.cookie-toggle-row {
  margin-top: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  font-weight: 700;
}

.site-form {
  margin-top: var(--space-24);
  display: grid;
  gap: var(--space-16);
}

.site-form label {
  font-weight: 700;
  color: var(--heading);
}

.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid rgba(64, 7, 0, 0.25);
  border-radius: var(--radius-16);
  padding: var(--space-16);
  font: inherit;
  color: var(--text);
  background: rgba(255, 250, 243, 0.88);
}

.site-form textarea {
  resize: vertical;
}

.site-form input:focus,
.site-form textarea:focus {
  outline: 2px solid rgba(245, 116, 0, 0.35);
  outline-offset: 1px;
  border-color: #F57400;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.form-feedback {
  min-height: 1.5em;
  font-weight: 700;
}

.form-feedback[data-status=\"ok\"] {
  color: #2f6f31;
}

.form-feedback[data-status=\"error\"] {
  color: #9b1c1c;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.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);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-16px) scale(1.08);
    opacity: 0.95;
  }
}

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

@media (max-width: 820px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-col-left,
  .intro-col-right {
    display: none;
  }

  .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;
  }

  .cookie-banner {
    left: var(--space-8);
    right: var(--space-8);
    bottom: var(--space-8);
  }

}
