/* Whispering Wings. The look follows the game's "Soft and Round" UI: creamy pills and cards,
   Fredoka lettering, honey, leaf and berry accents. Day is warm gold; night is deep blue. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --page: #fff9ef;
  --page-2: #fbf1df;
  --card: #fff4de;
  --card-hi: #fffbf2;
  --edge: rgba(150, 110, 60, 0.14);
  --ink: #43393a;
  --ink-soft: #6c5a54;
  --honey: #fdd474;
  --honey-deep: #eeb143;
  --leaf: #7cb955;
  --leaf-deep: #386e27;
  --berry: #c2553f;
  --spirit: #9b6bf2;
  --night: #1e1f45;
  --night-2: #2b2c66;
  --night-ink: #f3efff;
  --night-soft: #cbc6ec;
  --glow: #ffd27a;
  --maeve: #7b3f8a;
  --dawnwing: #1f6f94;

  --spring: #6cae47;
  --summer: #eea92f;
  --autumn: #de6c3c;
  --winter: #5b96d4;

  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 18px 40px -22px rgba(110, 70, 30, 0.38), 0 2px 6px rgba(110, 70, 30, 0.07);
  --shadow-lg: 0 34px 70px -30px rgba(90, 55, 25, 0.5), 0 4px 12px rgba(90, 55, 25, 0.08);
  --gutter: 20px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* Base ---------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
main, .site-footer { overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

:focus-visible { outline: 3px solid var(--spirit); outline-offset: 3px; border-radius: 10px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (max-width: 480px) { :root { --gutter: 16px; } }

.visually-hidden {
  position: absolute !important; 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: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Shared pieces ------------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 0;
  background: var(--card-hi);
  color: var(--ink);
  font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(150, 110, 60, 0.14), var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}
.btn img { width: 26px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(150, 110, 60, 0.14), var(--shadow); }
.btn--honey { background: var(--honey); box-shadow: inset 0 -4px 0 var(--honey-deep), var(--shadow); }
.btn--honey:active { box-shadow: inset 0 -2px 0 var(--honey-deep), var(--shadow); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
}
.chip img { width: 24px; }
.chip--soft { background: rgba(255, 251, 242, 0.75); box-shadow: 0 1px 0 var(--edge); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--leaf-deep);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker img { width: 30px; }
.kicker--glow { color: var(--glow); }

.note {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--berry);
}

.section { position: relative; padding-block: clamp(76px, 10vw, 136px); }

.section h2 { font-size: clamp(2.1rem, 1.25rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.15rem; }

.wave { position: absolute; left: 0; width: 100%; height: clamp(28px, 4vw, 60px); display: block; }
.wave--top { top: 1px; transform: translateY(-100%); }

/* Header -------------------------------------------------------------------------------------- */

.site-header {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  width: min(var(--max) + 24px, 100% - 24px);
  transform: translateX(-50%);
  border-radius: 999px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-stuck {
  background: rgba(255, 246, 228, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -16px rgba(90, 55, 25, 0.45), 0 0 0 1px var(--edge);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 18px; }
.nav__brand img { width: 104px; transition: transform 0.3s var(--ease); }
.nav__brand:hover img { transform: rotate(-3deg) scale(1.04); }
.site-header:not(.is-stuck) .nav__brand { opacity: 0; pointer-events: none; }
.nav__brand { transition: opacity 0.3s; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; text-decoration: none;
  transition: background 0.2s;
}
.nav__links a:hover { background: rgba(253, 212, 116, 0.45); }
.nav__links a.is-active { background: var(--honey); }

.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--card-hi); box-shadow: var(--shadow); cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink);
  margin: auto; position: relative; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.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 { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .site-header .nav__brand { opacity: 1; pointer-events: auto; }
  .site-header:not(.is-stuck) .nav__brand { opacity: 0; }
  .nav { padding: 6px 6px 6px 16px; }
  .nav__brand img { width: 92px; }
  .nav__toggle { display: grid; place-items: center; margin-left: auto; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); right: 0;
    flex-direction: column; gap: 2px; min-width: 220px; padding: 10px;
    background: var(--card-hi); border-radius: 24px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .nav__links a { padding: 12px 16px; font-size: 1.08rem; }
}

/* Hero ---------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 13vw, 150px) 0 clamp(120px, 12vw, 180px);
  background: linear-gradient(180deg, #fcd7a6 0%, #fee6c0 32%, #fff2dc 64%, #fff7e9 100%);
  isolation: isolate;
}

.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sun {
  position: absolute; top: -18%; right: 4%;
  width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 220, 0.95) 0%, rgba(255, 230, 160, 0.7) 22%, rgba(255, 214, 140, 0) 66%);
}

.cloud {
  position: absolute; height: 46px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 -8px 0 rgba(255, 228, 196, 0.6);
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 54%; aspect-ratio: 1; left: 14%; bottom: 40%; }
.cloud::after { width: 38%; aspect-ratio: 1; right: 14%; bottom: 30%; }
.cloud--1 { width: 170px; top: 16%; left: -4%; }
.cloud--2 { width: 120px; top: 9%; left: 46%; opacity: 0.8; transform: scale(0.8); }
.cloud--3 { width: 210px; top: 26%; right: -6%; opacity: 0.7; }

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}

.hero__copy .chip { margin-bottom: 18px; }
.hero__logo { margin: 0 0 18px -8px; }
.hero__logo img { width: clamp(260px, 32vw, 470px); filter: drop-shadow(0 10px 16px rgba(160, 100, 40, 0.18)); }
.hero__lede { font-size: clamp(1.45rem, 1rem + 1.4vw, 2.05rem); font-weight: 600; line-height: 1.18; margin-bottom: 14px; max-width: 20ch; }
.hero__text { color: var(--ink-soft); max-width: 38ch; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }

.hero__promises { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: 0.98rem; font-weight: 500; }
.hero__promises li { display: inline-flex; align-items: center; gap: 8px; }
.hero__promises img { width: 24px; }

.hero__shot { position: relative; margin: 0; }
.frame {
  position: relative; padding: 10px;
  background: var(--card-hi);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--edge);
}
.frame > img:first-child { border-radius: 19px; width: 100%; }
.frame--tilt { transform: rotate(1.6deg); }

.hero__perch { position: absolute; width: clamp(64px, 7vw, 94px); top: clamp(-58px, -5.6vw, -44px); right: 34px; transform-origin: 50% 100%; }
.hero__spirit {
  position: absolute; width: clamp(44px, 5vw, 70px); left: -26px; top: 22%;
  filter: drop-shadow(0 0 12px rgba(155, 107, 242, 0.9)) drop-shadow(0 0 30px rgba(155, 107, 242, 0.6));
}
.note--hero { margin: 18px 0 0 14px; color: #a24c3a; transform: rotate(-2deg); }

.hero__feather {
  position: absolute; z-index: 1; width: 44px; left: 4%; top: 22%;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 6px 10px rgba(150, 100, 50, 0.2));
  pointer-events: none;
}

.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(90px, 12vw, 190px); z-index: 0; }
.hills__far { fill: #cfe3a0; }
.hills__mid { fill: #a6cf77; }
.hills__near { fill: var(--page); }

@media (max-width: 979px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__logo { margin-left: 0; }
  .hero__actions, .hero__promises { justify-content: center; }
  .hero__shot { max-width: 680px; margin: 34px auto 0; width: 100%; }
  .hero__spirit { left: -8px; }
  .hero__feather { top: 8%; left: 8%; }
}
@media (max-width: 600px) { .hero__feather { display: none; } }

/* Story --------------------------------------------------------------------------------------- */

.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.story__copy p:not(.kicker) { color: var(--ink-soft); font-size: 1.15rem; }
.story__copy h2 { max-width: 14ch; }

.story__card { position: relative; margin: 0; padding: clamp(32px, 4vw, 52px); transform: rotate(-1deg); }
.story__card blockquote { margin: 0 0 18px; }
.story__card blockquote p { font-size: clamp(1.18rem, 1rem + 0.6vw, 1.42rem); font-weight: 500; line-height: 1.5; color: var(--ink); }
.story__card blockquote p::before { content: "“"; display: block; font-size: 4rem; line-height: 0.6; margin: 10px 0 6px; color: var(--honey-deep); font-weight: 700; }
.story__card .note { text-align: right; }
.sprig { position: absolute; width: clamp(64px, 8vw, 104px); pointer-events: none; }
.sprig--tl { top: -34px; left: -26px; transform: rotate(-12deg); }
.sprig--br { bottom: -22px; right: -24px; transform: rotate(8deg); }

.promises { margin-top: clamp(72px, 9vw, 120px); }
.promises__title { text-align: center; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; margin-bottom: 28px; }
.promises__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.promise { padding: 26px 22px 24px; text-align: center; transition: transform 0.35s var(--ease); }
.promise:hover { transform: translateY(-6px) rotate(-1deg); }
.promise img { width: 62px; margin: 0 auto 14px; }
.promise h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.promise p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 1080px) { .promises__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__card { max-width: 620px; margin-inline: auto; }
  .sprig--br { right: -6px; }
  .sprig--tl { left: -6px; }
}
@media (max-width: 640px) {
  .promises__list { grid-template-columns: 1fr; gap: 12px; }
  .promise { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 18px 20px; }
  .promise img { grid-row: span 2; width: 52px; margin: 0; }
  .promise h4 { margin-bottom: 2px; }
}

/* By day -------------------------------------------------------------------------------------- */

.day { background: #eef4dc; }
.day .wave path { fill: #eef4dc; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--card-hi); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--edge);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile--wide { grid-column: span 4; }
.tile__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile--wide .tile__img { aspect-ratio: 16 / 8.4; }
.tile__img--spirit { object-position: 62% 40%; }
.tile__body { padding: 22px 26px 26px; }
.tile h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.tile h3 img { width: 30px; }
.tile p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }

.tile--garden { background: linear-gradient(170deg, #ffe9ae 0%, #fdd474 100%); }
.tile--garden p { color: #5d4a3c; }
.tile__icons {
  flex: 1; min-height: 190px;
  display: grid; grid-template-columns: repeat(3, 1fr); place-items: center;
  padding: 26px 22px 0; gap: 4px;
}
.tile__icons img { width: clamp(58px, 6vw, 84px); filter: drop-shadow(0 8px 10px rgba(150, 90, 20, 0.22)); transition: transform 0.4s var(--ease); }
.tile__icons img:nth-child(1) { transform: rotate(-8deg); }
.tile__icons img:nth-child(2) { transform: translateY(14px) rotate(6deg); }
.tile__icons img:nth-child(3) { transform: rotate(14deg); }
.tile__icons img:nth-child(4) { transform: translateY(-4px) rotate(-6deg); grid-column: 1 / span 2; justify-self: end; margin-right: 18%; }
.tile__icons img:nth-child(5) { transform: rotate(-10deg); }
.tile--garden:hover .tile__icons img { transform: translateY(-6px) rotate(0); }

@media (max-width: 979px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
  .tile:last-child { grid-column: span 2; }
  .tile:last-child .tile__img { aspect-ratio: 16 / 8; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide, .tile:last-child { grid-column: span 1; }
  .tile--wide .tile__img, .tile:last-child .tile__img { aspect-ratio: 16 / 10; }
}

/* A day at the lake --------------------------------------------------------------------------- */

.rhythm { overflow: hidden; isolation: isolate; transition: color 0.8s; }
.rhythm__skies span { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1s ease; }
.rhythm__skies [data-sky="morning"] { background: linear-gradient(180deg, #ffd9c0 0%, #ffecd6 55%, #fff6e8 100%); }
.rhythm__skies [data-sky="day"] { background: linear-gradient(180deg, #cfe9f4 0%, #e6f3e6 55%, #f7f3df 100%); }
.rhythm__skies [data-sky="dusk"] { background: linear-gradient(180deg, #f8be92 0%, #eba2a8 50%, #b693c9 100%); }
.rhythm__skies [data-sky="night"] { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 78% 12%, #fff 50%, transparent), radial-gradient(1px 1px at 40% 30%, #fff 50%, transparent), radial-gradient(1px 1px at 90% 40%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 25% 60%, #fff 50%, transparent), linear-gradient(180deg, #1e1f45 0%, #34366f 100%); }
.rhythm__skies [data-sky="dawn"] { background: linear-gradient(180deg, #c3b1e6 0%, #f3b3a6 52%, #ffe3b9 100%); }
.rhythm[data-phase="morning"] [data-sky="morning"],
.rhythm[data-phase="day"] [data-sky="day"],
.rhythm[data-phase="dusk"] [data-sky="dusk"],
.rhythm[data-phase="night"] [data-sky="night"],
.rhythm[data-phase="dawn"] [data-sky="dawn"] { opacity: 1; }
.rhythm[data-phase="night"] { color: var(--night-ink); }
.rhythm[data-phase="night"] .section-head p:not(.kicker) { color: var(--night-soft); }
.rhythm .kicker { color: var(--ink); transition: color 0.8s; }
.rhythm[data-phase="night"] .kicker { color: var(--glow); }
.rhythm .section-head p:not(.kicker) { transition: color 0.8s; }

.rhythm__body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 84px); align-items: center; }

.dial { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto; }
.dial::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--card-hi);
  box-shadow: var(--shadow-lg), inset 0 -8px 0 rgba(150, 110, 60, 0.12);
}
.dial__disc {
  --rot: 0deg;
  position: absolute; inset: 7%; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 0deg, #ffe7a3 0deg, #ffd38e 50deg, #f6a079 88deg, #a56ab0 120deg, #48427c 150deg, #2c2d5c 180deg, #2c2d5c 210deg, #4d4588 240deg, #e79aa7 272deg, #ffc5a0 308deg, #ffe2a2 336deg, #ffe7a3 360deg);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35), inset 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: rotate(var(--rot));
  transition: transform 1.3s var(--ease);
}
.dial__disc::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 40% 74%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 62% 82%, #fff 50%, transparent),
    radial-gradient(2px 2px at 30% 86%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 70% 68%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 52% 92%, #fff 50%, transparent);
}
.dial__sun, .dial__moon {
  position: absolute; left: 50%; width: 24%; aspect-ratio: 1;
  transform: translateX(-50%) rotate(calc(-1 * var(--rot)));
  transition: transform 1.3s var(--ease);
}
.dial__sun {
  top: 9%; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff8d2 0%, #ffd75e 55%, #f6b23a 100%);
  box-shadow: 0 0 0 7px rgba(255, 216, 100, 0.35), 0 0 34px 8px rgba(255, 205, 90, 0.75);
}
.dial__moon { bottom: 9%; z-index: 1; filter: drop-shadow(0 0 14px rgba(255, 233, 160, 0.7)); }
.dial__pin {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 22px solid var(--berry);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.2));
}
.dial__hub {
  position: absolute; top: 50%; left: 50%; width: 14%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-hi); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 -3px 0 rgba(150, 110, 60, 0.15);
}

.rhythm__panel { min-width: 0; background: var(--card-hi); color: var(--ink); border-radius: var(--radius); padding: 14px 14px 26px; box-shadow: var(--shadow-lg); }
.rhythm__tabs {
  display: flex; gap: 4px; padding: 5px; margin-bottom: 16px;
  background: #f4e7cd; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.rhythm__tabs::-webkit-scrollbar { display: none; }
.rhythm__tabs button {
  flex: 1; min-width: max-content;
  padding: 10px 16px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.25s, box-shadow 0.25s;
}
.rhythm__tabs button:hover { background: rgba(255, 255, 255, 0.6); }
.rhythm__tabs button[aria-selected="true"] { background: var(--honey); box-shadow: inset 0 -3px 0 var(--honey-deep); }

.phase > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 18px; }
.phase > p { padding-inline: 12px; color: var(--ink-soft); font-size: 1.1rem; }
.phase__who { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.who { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; }
.who--maeve { background: #f3e3f6; color: var(--maeve); }
.who--dawnwing { background: #dff1f9; color: var(--dawnwing); }
.who__arrow { color: var(--ink-soft); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .phase:not([hidden]) { animation: phase-in 0.6s var(--ease); }
}
@keyframes phase-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .rhythm__body { grid-template-columns: minmax(0, 1fr); }
  .dial { width: min(64vw, 280px); }
}

/* By night ------------------------------------------------------------------------------------ */

.night {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, #2f2b68 100%);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.night p:not(.kicker):not(.note) { color: var(--night-soft); font-size: 1.12rem; }

.night__stars, .night__fireflies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #fff; opacity: 0.7; }
.firefly {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff3b8; box-shadow: 0 0 10px 3px rgba(255, 214, 110, 0.75), 0 0 26px 8px rgba(255, 200, 90, 0.3);
}

.night__intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.note--night { color: #ffd9a0; font-size: 1.75rem; margin-top: 22px; }

.night__bird { position: relative; display: grid; place-items: center; min-height: 320px; }
.night__glow {
  position: absolute; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 130, 0.55) 0%, rgba(255, 190, 100, 0.22) 35%, rgba(130, 120, 255, 0) 68%);
}
.night__bird img { position: relative; width: min(78%, 330px); filter: drop-shadow(0 0 22px rgba(120, 210, 255, 0.55)) drop-shadow(0 20px 26px rgba(0, 0, 0, 0.35)); }

.strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: clamp(64px, 8vw, 104px); margin-bottom: 22px; }
.strip__title { font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; }
.strip__head .note { margin: 0; font-size: 1.4rem; }
.strip {
  --edge-pad: max(var(--gutter), (100% - var(--max)) / 2);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 360px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 6px var(--edge-pad) 22px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge-pad);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.strip:focus-visible { outline-offset: -3px; }
.strip__item {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px; padding: 8px 8px 14px;
}
.strip__item img { width: 100%; aspect-ratio: 619 / 428; object-fit: cover; border-radius: 16px; }
.strip__item p { display: flex; align-items: center; gap: 10px; margin: 12px 6px 0; color: var(--night-ink) !important; font-size: 1rem !important; font-weight: 500; line-height: 1.3; }
.strip__item p span {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--glow); color: var(--night); font-weight: 700; font-size: 0.9rem;
}

.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.gifts h3 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.gifts__pics { position: relative; padding-bottom: 18%; }
.gifts__pic { border: 8px solid var(--card-hi); border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.gifts__pic--a { width: 88%; transform: rotate(-3deg); }
.gifts__pic--b { position: absolute; width: 56%; right: 0; bottom: 0; transform: rotate(4deg); }

@media (max-width: 860px) {
  .night__intro, .gifts { grid-template-columns: 1fr; }
  .night__bird { min-height: 0; order: -1; }
  .night__glow { width: min(100%, 300px); }
  .night__bird img { width: min(56%, 210px); }
  .gifts__pics { max-width: 560px; }
}

/* Sunrise ------------------------------------------------------------------------------------- */

.sunrise {
  position: relative; overflow: hidden;
  height: clamp(170px, 22vw, 290px);
  background: linear-gradient(180deg, #2f2b68 0%, #7a63ae 28%, #e79ca2 60%, #ffd9a9 84%, var(--page) 100%);
}
.sunrise__sun {
  position: absolute; left: 50%; bottom: -24%;
  width: clamp(150px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, #fff7d6 0%, #ffd889 60%, #ffc46e 100%);
  box-shadow: 0 0 60px 30px rgba(255, 214, 140, 0.55), 0 0 140px 60px rgba(255, 190, 140, 0.35);
}
.sunrise__bird { position: absolute; width: 46px; filter: drop-shadow(0 4px 6px rgba(80, 40, 60, 0.25)); }
.sunrise__bird--1 { top: 34%; left: 12%; }
.sunrise__bird--2 { top: 22%; left: 66%; width: 38px; }
.sunrise__bird--3 { top: 52%; left: 80%; width: 34px; }

/* Twelve birds -------------------------------------------------------------------------------- */

.book {
  position: relative;
  background: var(--card); border-radius: 36px;
  padding: clamp(18px, 3vw, 36px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--edge);
}
.book__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 24px; }
.counter {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 20px 8px 12px; border-radius: 999px;
  background: var(--card-hi); box-shadow: var(--shadow);
  font-size: 1.3rem; font-weight: 600;
}
.counter img { width: 30px; }
.counter b { font-weight: 700; display: inline-block; min-width: 1.2ch; text-align: right; }
.counter.is-bump b { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); color: var(--leaf-deep); } }

.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season h3 {
  display: inline-block; margin-bottom: 12px; padding: 5px 16px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--season-chip, var(--season));
}
.season--spring { --season: var(--spring); --season-chip: #45822c; --season-wash: #e6f3d9; }
.season--summer { --season: var(--summer); --season-wash: #fdeec9; }
.season--autumn { --season: var(--autumn); --season-chip: #b84e26; --season-wash: #fbe0d3; }
.season--winter { --season: var(--winter); --season-chip: #3570b0; --season-wash: #dfeaf8; }
.season--summer h3 { color: #4a3510; }
.season ul { display: grid; gap: 10px; }

.page {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 62px 1fr; grid-template-areas: "art feather" "art name";
  align-items: center; column-gap: 14px;
  padding: 12px 16px 12px 12px; text-align: left;
  background: var(--card-hi); border: 2px dashed rgba(120, 90, 60, 0.2); border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.3s;
}
.page:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.page__art {
  grid-area: art; width: 62px; height: 44px;
  background: rgba(67, 57, 58, 0.2);
  -webkit-mask: url("/img/icons/birdwhite.webp") center / contain no-repeat;
  mask: url("/img/icons/birdwhite.webp") center / contain no-repeat;
  transition: background 0.5s, transform 0.5s var(--ease);
}
.page__feather { grid-area: feather; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; }
.page__name { grid-area: name; font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.page[aria-pressed="false"] .page__name { color: transparent; position: relative; }
.page[aria-pressed="false"] .page__name::after { content: "???"; position: absolute; left: 0; top: 0; color: rgba(67, 57, 58, 0.45); letter-spacing: 0.1em; }

.page[aria-pressed="true"] { background: var(--season-wash); border-style: solid; border-color: var(--season); }
.page[aria-pressed="true"] .page__art { background: var(--season); transform: scale(1.08) rotate(-4deg); }

.page--legend .page__art {
  height: 52px;
  -webkit-mask-image: url("/img/icons/dawnwing.webp");
  mask-image: url("/img/icons/dawnwing.webp");
}
.page--legend[aria-pressed="true"] { border-color: transparent; background: linear-gradient(120deg, #ffe7a3, #f6b3c9, #b9a6f5, #9fe0f2, #ffe7a3); background-size: 300% 100%; }
.page--legend[aria-pressed="true"] .page__art {
  -webkit-mask: none; mask: none;
  background: url("/img/icons/dawnwing.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}
@media (prefers-reduced-motion: no-preference) {
  .page--legend[aria-pressed="true"] { animation: iris 6s linear infinite; }
}
@keyframes iris { to { background-position: 300% 0; } }

.page::after {
  content: ""; position: absolute; left: 42px; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  box-shadow:
    0 -34px 0 -1px var(--season, var(--honey)), 24px -24px 0 -2px var(--honey), 34px 0 0 -1px var(--season, var(--honey)),
    24px 24px 0 -2px var(--spirit), 0 34px 0 -1px var(--season, var(--honey)), -24px 24px 0 -2px var(--honey),
    -34px 0 0 -1px var(--spirit), -24px -24px 0 -2px var(--season, var(--honey));
  transform: translate(-50%, -50%) scale(0.3);
}
.page.is-burst::after { animation: burst 0.7s var(--ease); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); } }

.book__done {
  margin: 24px auto 0; padding: 14px 24px; border-radius: 999px; width: fit-content; max-width: 100%;
  background: linear-gradient(120deg, #fff2c4, #f9d4e3, #dcd2fb); text-align: center; font-weight: 600; font-size: 1.1rem;
}

@media (max-width: 1040px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .seasons { grid-template-columns: 1fr; gap: 14px; }
  .season ul { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .page { grid-template-columns: 1fr; grid-template-areas: "art" "feather" "name"; justify-items: center; text-align: center; row-gap: 4px; padding: 12px 6px; height: 100%; align-content: start; }
  .page__feather { font-size: 0.74rem; }
  .page__name { font-size: 0.95rem; }
  .page[aria-pressed="false"] .page__name::after { left: 50%; transform: translateX(-50%); }
  .page::after { left: 50%; top: 34px; }
  .book__top .note { font-size: 1.3rem; }
}

/* Friends ------------------------------------------------------------------------------------- */

.friends { background: var(--page-2); }

.friend {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px); align-items: center;
}
.friend h3, .flock h3, .folk h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.friend__copy > p { color: var(--ink-soft); }

.names { border: 0; padding: 0; margin: 22px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.names legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.names label { position: relative; cursor: pointer; }
.names input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.names span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--card-hi); border: 2px solid transparent; box-shadow: 0 2px 0 var(--edge);
  font-weight: 600; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.names img { width: 30px; height: 30px; object-fit: contain; }
.names label:hover span { transform: translateY(-2px); }
.names input:checked + span { background: #fff0c4; border-color: var(--honey-deep); }
.names input:focus-visible + span { outline: 3px solid var(--spirit); outline-offset: 2px; }

.friend__named { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.15rem; font-weight: 500; }
.friend__named img { width: 54px; }
.friend__named b { font-weight: 700; font-size: 1.5rem; color: var(--berry); }
.friend__named.is-pop img { animation: hop 0.6s var(--ease); }

.friend__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.friend__pics figure { margin: 0; position: relative; }
.friend__pics figure:first-child { grid-column: span 2; }
.friend__pics img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.friend__pics figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 251, 242, 0.92); font-size: 0.88rem; font-weight: 500;
}

.friends__more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.flock, .folk { padding: clamp(24px, 3.5vw, 40px); }
.flock > p, .folk > p { color: var(--ink-soft); }

.flock__birds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 8px; margin-top: 26px; }
.flock__birds li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 0.86rem; font-weight: 500; line-height: 1.2; color: var(--ink-soft); }
.flock__birds img { width: 78px; height: 62px; object-fit: contain; transition: transform 0.35s var(--ease); }
.flock__birds li:hover img { transform: translateY(-6px) rotate(-6deg); }

.folk__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; margin-top: 22px; }
.folk__list li { display: grid; justify-items: center; text-align: center; gap: 2px; line-height: 1.25; }
.folk__list img { width: 66px; height: 70px; object-fit: contain; margin-bottom: 6px; transition: transform 0.35s var(--ease); }
.folk__list li:hover img { transform: translateY(-5px); }
.folk__list b { font-weight: 600; }
.folk__list span { font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 920px) {
  .friend, .friends__more { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .friend__pics figcaption { font-size: 0.78rem; left: 6px; bottom: 6px; padding: 2px 10px; }
}
@media (max-width: 420px) {
  .flock__birds { grid-template-columns: repeat(2, 1fr); }
  .folk__list { grid-template-columns: repeat(2, 1fr); }
}

/* Screenshots --------------------------------------------------------------------------------- */

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 220px); grid-auto-flow: dense; gap: 14px;
}
.gallery__item { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #e9dcc4; }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item button:focus-visible { outline-offset: -4px; border-radius: 22px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 30px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(30, 22, 18, 0.72));
  color: #fff; font-size: 0.95rem; font-weight: 500; line-height: 1.3; pointer-events: none;
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 30vw, 200px); }
}

/* Closing and footer -------------------------------------------------------------------------- */

.closing { background: linear-gradient(180deg, var(--page) 0%, #ffe9be 100%); text-align: center; }
.closing__inner { max-width: 680px; }
.closing__bird { width: 120px; margin: 0 auto 18px; }
.closing p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 30px; }

.site-footer { background: #f7e2bb; padding: 48px 0 40px; }
.site-footer__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.site-footer__logo { width: 150px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.site-footer nav a { text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__small { font-size: 0.9rem; color: var(--ink-soft); }

/* Lightbox ------------------------------------------------------------------------------------ */

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(22, 20, 44, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { font-size: 1.1rem; font-weight: 500; text-align: center; padding-inline: 60px; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--card-hi); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox figcaption { padding-inline: 0; }
}

/* Motion -------------------------------------------------------------------------------------- */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .promises__list .reveal:nth-child(2), .bento .reveal:nth-child(2) { transition-delay: 0.08s; }
  .promises__list .reveal:nth-child(3), .bento .reveal:nth-child(3) { transition-delay: 0.16s; }
  .promises__list .reveal:nth-child(4), .bento .reveal:nth-child(4) { transition-delay: 0.24s; }
  .promises__list .reveal:nth-child(5), .bento .reveal:nth-child(5) { transition-delay: 0.32s; }
}

@media (prefers-reduced-motion: no-preference) {
  .cloud--1 { animation: drift 70s linear infinite; }
  .cloud--2 { animation: drift 95s linear infinite -30s; }
  .cloud--3 { animation: drift-back 85s linear infinite; }
  .hero__spirit { animation: bob 4s ease-in-out infinite, pulse 2.6s ease-in-out infinite; }
  .hero__perch { animation: perch 7s ease-in-out infinite; }
  .hero__feather { animation: feather 16s ease-in-out infinite; }
  .night__bird img { animation: soar 6s ease-in-out infinite; }
  .night__glow { animation: pulse 4s ease-in-out infinite; }
  .star { animation: twinkle var(--t, 4s) ease-in-out infinite var(--d, 0s); }
  .firefly { animation: firefly var(--t, 9s) ease-in-out infinite var(--d, 0s); }
  .sunrise__bird--1 { animation: fly 14s linear infinite; }
  .sunrise__bird--2 { animation: fly 18s linear infinite -6s; }
  .sunrise__bird--3 { animation: fly 22s linear infinite -14s; }
  .closing__bird { animation: bob 3.4s ease-in-out infinite; }
}

@keyframes drift { from { translate: -20vw 0; } to { translate: 120vw 0; } }
@keyframes drift-back { from { translate: 20vw 0; } to { translate: -120vw 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 0%, 100% { opacity: 0.85; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-6deg); } 65% { transform: translateY(0) rotate(3deg); } }
@keyframes perch {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(-9deg); } 70% { transform: rotate(4deg); }
  74%, 86% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-10px); }
}
@keyframes feather {
  0% { transform: translate(0, 0) rotate(-18deg); }
  25% { transform: translate(6vw, -18px) rotate(12deg); }
  50% { transform: translate(12vw, 14px) rotate(-10deg); }
  75% { transform: translate(5vw, 30px) rotate(16deg); }
  100% { transform: translate(0, 0) rotate(-18deg); }
}
@keyframes soar { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
@keyframes firefly {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  25% { opacity: 1; }
  50% { transform: translate(var(--x, 30px), var(--y, -40px)); opacity: 0.6; }
  75% { opacity: 1; }
}
@keyframes fly { from { translate: 30vw 0; } to { translate: -110vw 0; } }

/* 404 ----------------------------------------------------------------------------------------- */

.lost {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 30%, #3b3a7a 0%, var(--night) 70%);
  color: var(--night-ink); text-align: center;
}
.lost__inner { max-width: 460px; display: grid; justify-items: center; }
.lost__spirit { width: 110px; margin-bottom: 18px; filter: drop-shadow(0 0 16px rgba(155, 107, 242, 0.9)) drop-shadow(0 0 40px rgba(155, 107, 242, 0.6)); }
.lost .kicker { color: var(--glow); }
.lost h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.lost p:not(.kicker) { color: var(--night-soft); margin-bottom: 28px; }
@media (prefers-reduced-motion: no-preference) { .lost__spirit { animation: bob 4s ease-in-out infinite, pulse 2.6s ease-in-out infinite; } }
