/* Limone con Amore — Animal Detective
   A quiet garden. Warm paper. Gold in the leaves. */

:root {
  --ivory: #f7f3e8;
  --beige: #feefc7;
  --cream: #efe8d6;
  --parchment: #e4d9c4;
  --mist: #feefc7;
  --sage: #8aaa7a;
  --leaf: #5d7a52;
  --moss: #3f5c45;
  --forest: #2c4a3a;
  --teal: #163833;
  --ink: #1c2b26;
  --ink-soft: #3d4f47;
  --gold: #c4a04a;
  --gold-deep: #9a7a2e;
  --lemon: #e6c64a;
  --wood: #7a5334;
  --petal: #f3e6cf;
  --bloom: #d4894a;
  --white: #fffdf8;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;

  --space: clamp(1.25rem, 3vw, 2.5rem);
  --wide: 1120px;
  --narrow: 720px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--beige);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--forest);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--teal);
  color: var(--ivory);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Texture & canvas */

.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.14  0 0 0 0 0.1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.garden-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.garden-egg {
  position: fixed;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  z-index: 61;
  opacity: 0;
  transform: scale(0.7);
  background:
    radial-gradient(circle at 50% 68%, #5d7a52 0 38%, transparent 40%),
    radial-gradient(circle at 28% 32%, #5d7a52 0 16%, transparent 18%),
    radial-gradient(circle at 44% 22%, #5d7a52 0 16%, transparent 18%),
    radial-gradient(circle at 62% 22%, #5d7a52 0 16%, transparent 18%),
    radial-gradient(circle at 76% 32%, #5d7a52 0 16%, transparent 18%);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.garden-egg.is-seen {
  opacity: 0.55;
  transform: scale(1);
}

@media (pointer: fine) {
  body.garden-cursor {
    cursor: none;
  }

  body.garden-cursor a,
  body.garden-cursor button,
  body.garden-cursor input,
  body.garden-cursor textarea,
  body.garden-cursor select,
  body.garden-cursor label,
  body.garden-cursor .nav-toggle {
    cursor: pointer;
  }
}

@media (pointer: coarse) {
  .flora .sway {
    animation: ambient-sway 11s ease-in-out infinite;
  }

  .flora .sway--b,
  .flora .sway--d {
    animation-duration: 14s;
    animation-delay: -3s;
  }
}

@keyframes ambient-sway {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 3px -2px;
    rotate: 1.2deg;
  }
}

.scroll-vine {
  position: fixed;
  top: 0;
  left: 1.15rem;
  z-index: 40;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(93, 122, 82, 0.18), transparent);
}

.scroll-vine__grow {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--leaf));
  transform-origin: top;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Layout */

.wrap {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(calc(100% - 2.5rem), var(--narrow));
}

.wrap--manifesto {
  width: min(calc(100% - 2.5rem), 680px);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--beige) 72%, transparent);
  backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--beige) 86%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(28, 43, 38, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(calc(100% - 2.5rem), var(--wide));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: auto;
  height: 2.55rem;
  flex: none;
}

.brand__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.header-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding-bottom: 0.12rem;
}

.page-legal .header-cta {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  position: relative;
  z-index: 52;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.35rem;
  height: 1.6px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  margin: 0 auto;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  transform-origin: center;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* Hero stage — splash composition */

.hero {
  position: relative;
  isolation: isolate;
  background: #feefc7;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  container-type: size;
  container-name: hero;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background:
    radial-gradient(120% 80% at 50% 42%, #fff6dc 0%, #feefc7 46%, #f3e2b0 100%);
}

.hero-stage img {
  display: block;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-stage__mist,
.hero-stage__top,
.hero-stage__left,
.hero-stage__right,
.hero-stage__paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stage__mist { z-index: 1; }
.hero-stage__left,
.hero-stage__right { z-index: 3; }
.hero-stage__top { z-index: 4; }
.hero-stage__paws { z-index: 6; }

.prop {
  position: absolute;
  display: block;
  width: auto;
  will-change: transform;
}

.prop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prop--mist-left {
  left: -12%;
  bottom: -10%;
  height: 88%;
  aspect-ratio: 471 / 900;
}

.prop--mist-right {
  right: -8%;
  bottom: -12%;
  height: 92%;
  aspect-ratio: 618 / 900;
}

.prop--top-a {
  top: -12%;
  left: -6%;
  height: 42%;
  aspect-ratio: 631 / 800;
}

.prop--top-b {
  top: -16%;
  left: 18%;
  height: 34%;
  aspect-ratio: 443 / 799;
}

.prop--top-c {
  top: -14%;
  right: 16%;
  height: 32%;
  aspect-ratio: 451 / 799;
}

.prop--top-d {
  top: -10%;
  right: -8%;
  height: 38%;
  aspect-ratio: 600 / 800;
}

.prop--stem-a {
  left: -3%;
  bottom: -12%;
  height: 72%;
  aspect-ratio: 281 / 800;
}

.prop--stem-c {
  left: 7%;
  bottom: -6%;
  height: 54%;
  aspect-ratio: 362 / 800;
}

.prop--stem-f {
  left: 1%;
  bottom: 4%;
  height: 40%;
  aspect-ratio: 356 / 800;
}

.prop--stem-d {
  right: 3%;
  bottom: -10%;
  height: 78%;
  aspect-ratio: 232 / 800;
}

.prop--stem-b {
  right: 12%;
  bottom: -4%;
  height: 62%;
  aspect-ratio: 340 / 799;
}

.prop--stem-e {
  right: 6%;
  bottom: 2%;
  height: 50%;
  aspect-ratio: 426 / 799;
}

.prop--flower-b {
  right: 9%;
  bottom: 8%;
  width: 15%;
  aspect-ratio: 677 / 800;
}

.prop--flower-a {
  left: 3%;
  bottom: 7%;
  width: 15%;
  aspect-ratio: 513 / 799;
}

.prop--flower-c {
  left: 11%;
  bottom: 20%;
  width: 11%;
  aspect-ratio: 536 / 800;
}

.prop--paw {
  width: clamp(1.1rem, 2.4vw, 1.85rem);
  opacity: 0.34;
}

.prop--paw-1 {
  left: 22%;
  top: 58%;
  rotate: -18deg;
}

.prop--paw-2 {
  left: 26%;
  top: 64%;
  width: clamp(0.95rem, 2vw, 1.55rem);
  rotate: 8deg;
  opacity: 0.28;
}

.prop--paw-3 {
  right: 24%;
  top: 54%;
  rotate: 22deg;
}

.prop--paw-4 {
  right: 20%;
  top: 61%;
  width: clamp(0.85rem, 1.8vw, 1.35rem);
  rotate: -12deg;
  opacity: 0.24;
}

.prop--paw-5 {
  left: 30%;
  top: 70%;
  width: clamp(0.8rem, 1.7vw, 1.25rem);
  rotate: 14deg;
  opacity: 0.22;
}

.hero-stage__core {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 3.5vh)
    11%
    1.5vh;
}

.hero-focus {
  position: relative;
  width: clamp(12rem, 34vw, 30rem);
  flex: none;
}

.hero-glass {
  position: relative;
  width: 100%;
  margin: 0;
  filter: drop-shadow(0 18px 22px rgba(22, 56, 51, 0.22));
}

.hero-glass__float {
  animation: glass-bob 6.8s var(--ease) infinite;
  will-change: transform;
}

.hero-glass img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-stage__sparkles {
  position: absolute;
  inset: -8% -12% -4%;
  z-index: 2;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 9%;
  display: block;
}

.sparkle img {
  width: 100%;
  height: auto;
}

.sparkle--1 {
  left: 2%;
  top: 18%;
  width: 11%;
  animation: twinkle 3.8s ease-in-out infinite;
}

.sparkle--2 {
  right: 4%;
  top: 8%;
  width: 8%;
  animation: twinkle 4.6s ease-in-out 0.8s infinite;
}

.sparkle--3 {
  left: 10%;
  bottom: 22%;
  width: 7%;
}

.sparkle--4 {
  right: 8%;
  bottom: 28%;
  width: 10%;
  animation: twinkle 5.2s ease-in-out 1.6s infinite;
}

.hero-title {
  position: relative;
  z-index: 8;
  width: min(52vw, 30rem, 70vh);
  margin-top: clamp(0.15rem, 1.2vh, 0.8rem);
}

.hero-title img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(22, 56, 51, 0.12));
}

.hero-brand {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0.7rem 0.85rem;
  justify-self: center;
  flex-shrink: 0;
  margin: 0 1.25rem max(1.15rem, env(safe-area-inset-bottom, 0px) + 2.6vh);
  padding: 0.62rem 0.85rem 0.62rem 1.15rem;
  max-width: min(92%, 22.5rem);
  background: color-mix(in srgb, #fffaf0 86%, #feefc7);
  border: 1.5px dashed color-mix(in srgb, var(--teal) 26%, transparent);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(28, 43, 38, 0.08);
}

.hero-brand__by {
  font-size: clamp(0.68rem, 1.15vw, 0.78rem);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.hero-brand__name {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  letter-spacing: -0.02em;
  color: var(--teal);
  line-height: 1.15;
}

.hero-brand__mark {
  width: auto;
  height: clamp(2rem, 4.2vh, 2.55rem);
  flex: none;
}

@keyframes glass-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes sway-top {
  0%,
  100% {
    transform: rotate(-1.1deg);
  }
  50% {
    transform: rotate(1.35deg);
  }
}

@keyframes sway-side {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(1.05deg) translateY(-4px);
  }
}

@keyframes sway-bloom {
  0%,
  100% {
    transform: rotate(-0.8deg);
  }
  50% {
    transform: rotate(1.2deg);
  }
}

@keyframes paw-glint {
  0%,
  84%,
  100% {
    opacity: 0.22;
  }
  90% {
    opacity: 0.62;
  }
}

.sway--top {
  transform-origin: 50% 0%;
  animation: sway-top 10s ease-in-out infinite;
}

.sway--a { animation-duration: 9.5s; }
.sway--b { animation-duration: 12s; animation-delay: -3s; }
.sway--c { animation-duration: 11s; animation-delay: -6s; }
.sway--d { animation-duration: 13.5s; animation-delay: -2s; }

.sway--side {
  transform-origin: 50% 100%;
  animation: sway-side 12s ease-in-out infinite;
}

.sway--bloom {
  animation: sway-bloom 9s ease-in-out infinite;
  transform-origin: 40% 100%;
}

.prop--paw-2 { animation: paw-glint 12s ease-in-out infinite; }
.prop--paw-4 { animation: paw-glint 15s ease-in-out 5s infinite; }

/* Art direction — viewpoint changes, composition stays */

@media (max-width: 1100px) {
  .hero-focus {
    width: clamp(12rem, 32vw, 26rem);
  }

  .hero-title {
    width: min(50vw, 24rem);
  }

  .prop--top-a { height: 36%; left: -8%; }
  .prop--top-d { height: 34%; right: -10%; }
  .prop--stem-a,
  .prop--stem-d { height: 66%; }
  .prop--flower-a,
  .prop--flower-b { width: 13%; }
}

@media (max-width: 900px) and (orientation: portrait) {
  .hero-stage__core {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2.2vh);
    padding-inline: 8%;
  }

  .hero-focus {
    width: clamp(11rem, 40vw, 22rem);
  }

  .hero-title {
    width: min(58vw, 22rem);
  }

  .prop--tablet-hide {
    display: none;
  }

  .prop--mist-left { left: -18%; height: 80%; }
  .prop--mist-right { right: -20%; height: 84%; }
  .prop--top-a { height: 30%; top: -10%; }
  .prop--top-b { height: 26%; left: 14%; }
  .prop--top-d { height: 28%; }
  .prop--stem-a { height: 58%; left: -8%; }
  .prop--stem-d { height: 60%; right: -8%; }
  .prop--stem-c { height: 44%; }
  .prop--stem-b { height: 46%; }
  .prop--flower-a { width: 16%; left: 1%; }
  .prop--flower-b { width: 15%; right: 2%; }
}

@media (max-width: 700px) {
  .prop--mobile-hide,
  .prop--tablet-hide {
    display: none;
  }

  .hero-stage__core {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.2vh);
    padding-inline: 6%;
  }

  .hero-focus {
    width: clamp(10.5rem, 54vw, 18rem);
  }

  .hero-title {
    width: min(76vw, 20rem);
    margin-top: 0.1rem;
  }

  .hero-brand {
    transform: scale(0.94);
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.6vh);
    padding: 0.5rem 0.7rem 0.5rem 1rem;
  }

  .prop--mist-left { left: -28%; bottom: -8%; height: 72%; }
  .prop--mist-right { right: -30%; height: 76%; }
  .prop--top-a { top: -8%; left: -18%; height: 28%; }
  .prop--top-b { left: 8%; height: 22%; top: -12%; }
  .prop--top-d { right: -20%; height: 26%; }
  .prop--stem-a { left: -14%; height: 52%; }
  .prop--stem-d { right: -16%; height: 54%; }
  .prop--stem-c { left: 2%; height: 38%; }
  .prop--stem-b { right: 2%; height: 40%; }
  .prop--flower-a { width: 22%; left: -2%; bottom: 10%; }
  .prop--flower-b { width: 20%; right: -2%; bottom: 11%; }
  .prop--paw-1 { left: 16%; top: 56%; }
}

@media (orientation: landscape) and (max-height: 820px) {
  .hero-stage__core {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1vh);
    justify-content: center;
  }

  .hero-focus {
    width: clamp(11rem, 28vw, 22rem);
  }

  .hero-title {
    width: min(34vw, 22rem);
  }

  .hero-brand {
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2vh);
  }

  .prop--top-a,
  .prop--top-b,
  .prop--top-c,
  .prop--top-d {
    height: 28%;
  }

  .prop--stem-a,
  .prop--stem-d {
    height: 78%;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero-focus {
    width: clamp(9.5rem, 24vw, 16rem);
  }

  .hero-title {
    width: min(30vw, 16rem);
  }

  .hero-brand {
    transform: scale(0.86);
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.6vh);
  }

  .prop--mobile-hide,
  .prop--tablet-hide {
    display: none;
  }

  .prop--top-a,
  .prop--top-d {
    height: 42%;
  }
}

@media (min-width: 1600px) {
  .hero-focus {
    width: clamp(16rem, 26vw, 30rem);
  }

  .hero-title {
    width: min(38vw, 28rem);
  }

  .prop--mist-left { left: -6%; }
  .prop--mist-right { right: -8%; }
  .prop--stem-a { left: 2%; }
  .prop--stem-d { right: 3%; }
}

@media (max-height: 640px) and (orientation: portrait) {
  .hero-stage__core {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.4vh);
  }

  .hero-focus {
    width: clamp(10rem, 46vw, 16rem);
  }

  .hero-title {
    width: min(68vw, 18rem);
  }

  .hero-brand {
    transform: scale(0.86);
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 1vh);
  }
}

.hero__flora,
.section__flora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.flora {
  position: absolute;
  display: block;
  width: auto;
  color: var(--leaf);
  will-change: transform;
}

.flora img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.flora--hang-tl {
  top: 3.4rem;
  left: -5%;
  height: min(38vw, 320px);
  aspect-ratio: 631 / 800;
}

.flora--hang-tl-alt {
  top: 3.6rem;
  left: -4%;
  height: min(34vw, 280px);
  aspect-ratio: 451 / 799;
}

.flora--hang-tr {
  top: 3.4rem;
  right: -7%;
  height: min(36vw, 300px);
  aspect-ratio: 600 / 800;
}

.flora--stem-br {
  bottom: -10%;
  right: -3%;
  height: min(48vw, 380px);
  aspect-ratio: 232 / 800;
}

.flora--stem-bl {
  bottom: -10%;
  left: -4%;
  height: min(44vw, 340px);
  aspect-ratio: 281 / 800;
}

.flora--stem-r {
  top: 10%;
  right: -5%;
  height: min(42vw, 320px);
  aspect-ratio: 356 / 800;
}

.flora--flower-br {
  bottom: 5%;
  right: 4%;
  width: min(16vw, 150px);
  aspect-ratio: 677 / 800;
}

.flora--flower-bl {
  bottom: 6%;
  left: 2%;
  width: min(15vw, 140px);
  aspect-ratio: 513 / 799;
}

.flora--flower-tr {
  top: 14%;
  right: 1%;
  width: min(13vw, 120px);
  aspect-ratio: 536 / 800;
}

.flora--mist-bl {
  bottom: -16%;
  left: -10%;
  height: min(58vw, 440px);
  aspect-ratio: 471 / 900;
  opacity: 0.72;
}

.flora--mist-br {
  bottom: -18%;
  right: -12%;
  height: min(62vw, 460px);
  aspect-ratio: 618 / 900;
  opacity: 0.68;
}

.flora--soon-bloom-l {
  bottom: 3%;
  left: 6%;
  width: min(14vw, 130px);
}

.flora--soon-stem-r {
  right: 1%;
  height: min(42vw, 320px);
  aspect-ratio: 426 / 799;
}

.flora--soon-bloom-r {
  bottom: 4%;
  right: 8%;
}

@media (max-width: 700px) {
  .flora--hang-tl,
  .flora--hang-tl-alt {
    height: min(48vw, 210px);
    left: -10%;
  }

  .flora--hang-tr {
    height: min(44vw, 190px);
    right: -14%;
  }

  .flora--stem-r,
  .flora--flower-tr,
  .flora--soon-stem-r,
  .flora--mist-br {
    display: none;
  }

  .flora--stem-br,
  .flora--stem-bl {
    height: min(52vw, 240px);
  }

  .flora--flower-br,
  .flora--flower-bl,
  .flora--soon-bloom-l,
  .flora--soon-bloom-r {
    width: min(28vw, 120px);
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.15rem;
}

.eyebrow--light {
  color: color-mix(in srgb, var(--lemon) 70%, var(--ivory));
}

h2 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--spring), background 0.3s var(--ease), color 0.3s var(--ease);
}

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

.btn--primary {
  background: var(--teal);
  color: var(--ivory);
  box-shadow: 0 10px 28px rgba(22, 56, 51, 0.16);
}

.btn--primary:hover {
  color: var(--ivory);
  background: #102c28;
}

.btn--ghost {
  padding-left: 0;
  padding-right: 0;
  color: var(--ink-soft);
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--ink);
}

/* Sections */

.section {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
}

.section__intro {
  max-width: 38rem;
}

.section__intro h2,
.soon__copy h2,
.studio__name {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.lede {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--forest);
}

.prose {
  margin-top: 1.2rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.08rem;
}

.prose--light {
  color: color-mix(in srgb, var(--ivory) 78%, var(--sage));
}

/* Game steps */

.section--game {
  background: var(--beige);
}

.steps {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 4.5rem;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage), var(--gold), transparent);
  opacity: 0.45;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: baseline;
  padding-left: 0.15rem;
}

.step:nth-child(2) {
  margin-left: min(12vw, 8rem);
}

.step:nth-child(3) {
  margin-left: min(22vw, 15rem);
}

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-deep);
  min-width: 2.4rem;
}

.step__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.step__body p {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Curious minds */

.section--curious {
  background: var(--mist);
}

.qualities {
  display: grid;
  gap: 0.85rem;
  margin-top: 3rem;
  max-width: 22rem;
}

.quality {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--forest);
}

.quality__mark {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  transform: rotate(-20deg);
}

/* Languages */

.langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.lang {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.2rem 1rem 1.8rem;
  text-align: center;
}

.lang::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.4rem;
  background: var(--sage);
  opacity: 0.45;
  transform: translateX(-50%);
}

.lang::after {
  content: "";
  position: absolute;
  inset: 1.2rem 8% 0;
  border: 1px dashed color-mix(in srgb, var(--sage) 40%, transparent);
  border-radius: 40% 40% 8px 8px / 18% 18% 8px 8px;
  pointer-events: none;
}

.lang__flag {
  font-size: 1.15rem;
  line-height: 1;
  filter: saturate(0.75);
}

.lang__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  color: var(--teal);
}

.lang__native {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Studio */

.section--studio {
  background:
    radial-gradient(800px 420px at 70% 20%, rgba(232, 198, 74, 0.1), transparent 50%),
    var(--teal);
  color: var(--ivory);
  overflow: hidden;
}

.studio-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 40%, rgba(232, 198, 74, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 28%, rgba(232, 198, 74, 0.35) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 60% 70%, rgba(247, 243, 232, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 78%, rgba(232, 198, 74, 0.3) 0 1px, transparent 2px);
  animation: firefly-twinkle 6s ease-in-out infinite;
}

@keyframes firefly-twinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.studio__mark {
  display: block;
  width: min(7.5rem, 28vw);
  height: auto;
  margin: 0 0 1.35rem;
  filter: drop-shadow(0 10px 22px rgba(8, 20, 16, 0.28));
}

.section--studio h2,
.studio__name {
  color: var(--ivory);
}

.studio__name {
  font-style: italic;
  font-weight: 400;
}

.studio__line {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-style: italic;
  color: color-mix(in srgb, var(--lemon) 80%, var(--ivory));
}

.studio__tag {
  margin-top: 2.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ivory) 70%, var(--gold));
}

/* Coming soon */

.soon {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.soon__poster {
  justify-self: center;
  width: min(100%, 240px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 50px rgba(22, 56, 51, 0.16),
    0 0 0 1px rgba(28, 43, 38, 0.06);
  transform: rotate(-2.5deg);
}

.soon__poster img {
  width: 100%;
  height: auto;
}

.soon__copy .btn {
  margin-top: 2rem;
}

.soon__stores {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
}

.footer {
  display: grid;
  gap: 1.5rem;
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}

.footer__wordmark {
  width: min(9.5rem, 46vw);
  height: auto;
}

.footer__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.footer__game {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.footer__nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer__nav a:hover {
  color: var(--ink);
}

.footer__copy {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--ink-soft) 80%, var(--ivory));
}

/* Legal pages */

.page {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
}

.page h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  color: var(--teal);
}

.page .prose + .prose {
  margin-top: 1rem;
}

.page a {
  color: var(--forest);
}

.page-legal::before,
.page-legal::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
}

.page-legal::before {
  top: 4.2rem;
  left: 0;
  width: min(26vw, 210px);
  height: min(34vw, 280px);
  background-image: url("/assets/hero/leaf-top-a.png");
  background-position: left top;
}

.page-legal::after {
  right: 0;
  bottom: 0;
  width: min(22vw, 190px);
  height: min(30vw, 250px);
  background-image: url("/assets/hero/flower-b.png");
  background-position: right bottom;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.reveal.is-in {
  animation: rise 0.95s var(--spring) forwards;
  animation-delay: var(--delay, 0s);
}

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

/* Responsive */

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .page-legal .header-cta {
    display: inline-block;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header:has(.nav-toggle[aria-expanded="true"]) {
    background: var(--beige);
    backdrop-filter: none;
    box-shadow: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 48;
    background: var(--beige);
    padding: calc(var(--header-h) + 1.75rem) 1.5rem 3rem;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--teal);
  }

  .step:nth-child(2),
  .step:nth-child(3) {
    margin-left: 0;
  }

  .steps::before {
    display: none;
  }

  .langs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .lang {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 0.5rem;
  }

  .lang::before,
  .lang::after {
    display: none;
  }

  .lang__name {
    font-size: 1.3rem;
  }

  .soon {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .soon__poster {
    width: min(42vw, 168px);
  }

  .soon__copy .btn {
    margin-inline: auto;
  }

  .scroll-vine {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap,
  .wrap--narrow,
  .wrap--manifesto,
  .site-header__inner {
    width: calc(100% - 1.6rem);
  }

  .brand__name {
    font-size: 1.02rem;
  }

  .brand__mark {
    height: 2.2rem;
  }

  .qualities {
    max-width: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-glass__float,
  .sparkle,
  .sway,
  .prop--paw-2,
  .prop--paw-4,
  .studio-fireflies,
  .flora.react-leaf {
    animation: none !important;
  }

  .grain {
    display: none;
  }
}
