:root {
  --bg: #fefefb;
  --ink: #0a0a0a;
  --ink-soft: #8b8b8b;
  --line: #c9c9c6;
  --honey: 254, 230, 140;   /* glow centre, sampled from the mockup */
  --honey-soft: 254, 240, 190;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Original mockup scale and proportions. */
  --stage-w: 700px;
  --stage-h: 430px;
  --bee-w: 450px;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  /* Anchor the footer to the complete page, including on short screens. */
  position: relative;
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px clamp(20px, 5.5vw, 84px);
  z-index: 2;
}


/* ---------- Footer ---------- */
.site-footer {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  padding: 0 clamp(20px, 5.5vw, 84px) 30px;
  z-index: 2;
  pointer-events: none;
}
.site-footer__copy {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--pill {
  padding: 18px 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}
.btn--pill:hover { border-color: #9a9a97; background: #fff; }
.btn--pill:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px clamp(16px, 5vw, 60px) 100px;
}
.hero--compact { padding-top: 140px; }

.stage {
  position: relative;
  width: min(var(--stage-w), 100%);
  height: var(--stage-h);
  margin-bottom: 26px;
  flex: none;
}

/* Soft honey glow behind the bee. Centre sits slightly right/below the bee, like the mockup. */
.glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 720px;
  height: 720px;
  transform: translate(-46%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(var(--honey), .68) 0%,
      rgba(var(--honey), .52) 18%,
      rgba(var(--honey-soft), .34) 32%,
      rgba(var(--honey-soft), .12) 44%,
      rgba(var(--honey-soft), 0) 56%);
  filter: blur(6px);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}

/* ---------- Bee ---------- */
/* Vector joints overlap the body; all appendage pivots stay at their roots. */
.bee {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bee-w);
  aspect-ratio: 480 / 400;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.bee__drift, .bee__bob, .bee__art { width: 100%; height: 100%; }
.bee__drift {
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--tilt, 0deg));
}
.bee__art { display: block; overflow: visible; }
.bee__bob { position: relative; }
.bee__canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.bee--rive .bee__canvas { visibility: visible; }
.bee--rive .bee__art { visibility: hidden; }
.bee--rive .bee__art * { animation-play-state: paused !important; }
.bee__interaction {
  position: absolute;
  z-index: 1;
  left: 17%;
  top: 12%;
  width: 66%;
  height: 67%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #8b794f;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bee__interaction[hidden] { display: none; }
.bee__interaction:disabled { pointer-events: none; }
.bee__interaction:focus-visible { outline: 1px solid #b49a5c; outline-offset: 12px; }
@keyframes glow-breathe {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: .94; scale: 1.025; }
}
.stage.is-paused * { animation-play-state: paused; }

/* ---------- Copy ---------- */
.headline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(42px, 5.3vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.lede {
  margin: 34px 0 0;
  max-width: 40rem;
  font-weight: 300;
  font-size: clamp(14.5px, 1.36vw, 20.5px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  text-wrap: balance;
}
.lede a { text-decoration-color: var(--line); text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  :root { --stage-h: 330px; --bee-w: 365px; }
  .site-header { padding: 20px; }
  .site-footer { padding: 0 20px 20px; }
  .btn--pill { padding: 14px 22px; font-size: 15px; }
  .glow { width: 560px; height: 560px; }
  .hero { padding-top: 96px; }
  .lede__break { display: none; }
}
@media (max-width: 420px) {
  :root { --stage-h: 280px; --bee-w: 325px; }
  .glow { width: 460px; height: 460px; }
  .headline { font-size: clamp(35px, 10.4vw, 45px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bee *, .glow { animation: none !important; }
  .bee__drift { transform: none; }
  .bee--rive .bee__canvas { visibility: hidden; }
  .bee--rive .bee__art { visibility: visible; }
}
