/* ================= TOKENS ================= */
@property --sky-top  { syntax: '<color>'; inherits: true; initial-value: #F4D6B5; }
@property --sky-bot  { syntax: '<color>'; inherits: true; initial-value: #DCE7E2; }
@property --sun      { syntax: '<color>'; inherits: true; initial-value: #FFE2A6; }
@property --hill-far { syntax: '<color>'; inherits: true; initial-value: #BFD0BC; }
@property --hill-mid { syntax: '<color>'; inherits: true; initial-value: #93AE8F; }
@property --hill-near{ syntax: '<color>'; inherits: true; initial-value: #6A8B67; }
@property --trees    { syntax: '<color>'; inherits: true; initial-value: #47624A; }
@property --grass    { syntax: '<color>'; inherits: true; initial-value: #34503A; }
@property --cloud    { syntax: '<color>'; inherits: true; initial-value: #FFF8EE; }
@property --sky-ink  { syntax: '<color>'; inherits: true; initial-value: #1F2A24; }

:root {
  --paper: #F6F1E6;
  --paper-2: #EDE5D2;
  --paper-edge: #DDD2B8;
  --ink: #1F2A24;
  --ink-soft: #55635A;
  --ink-faint: #8C958B;
  --moss: #3E5641;
  --moss-deep: #2E4231;
  --fern: #6B8A5E;
  --sage: #A9BDA3;
  --ochre: #C98B3C;
  --robin: #86B3C1;
  --clay: #B8674A;
  --bark: #6B4F33;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --shadow: 0 1px 2px rgba(31,42,36,.08), 0 18px 40px -18px rgba(31,42,36,.35);
  --shadow-lg: 0 2px 4px rgba(31,42,36,.08), 0 30px 70px -24px rgba(31,42,36,.45);
  --cw: min(76vw, 390px);

  transition: --sky-top 1.6s ease, --sky-bot 1.6s ease, --sun 1.6s ease,
              --hill-far 1.6s ease, --hill-mid 1.6s ease, --hill-near 1.6s ease,
              --trees 1.6s ease, --grass 1.6s ease, --cloud 1.6s ease, --sky-ink 1.2s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kicker { font-family: var(--font-hand); font-size: 24px; margin: 0; opacity: .85; }
.hand { font-family: var(--font-hand); }

/* ================= WORLD ================= */
#world {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 72%);
}
#world svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#world stop { stop-color: var(--sun); }
.layer { transition: transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.sun { fill: var(--sun); }
.hill-far { fill: var(--hill-far); }
.hill-mid { fill: var(--hill-mid); }
.hill-near { fill: var(--hill-near); }
.trees { fill: var(--trees); }
#grass { fill: var(--grass); }
.cloud { fill: var(--cloud); opacity: .75; animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-420px); } to { transform: translateX(1860px); } }
.blades { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate; }
.blades.b2 { animation-duration: 6.5s; animation-delay: -2s; }
.blades.b3 { animation-duration: 4.2s; animation-delay: -1s; }
@keyframes sway { from { transform: skewX(-4deg); } to { transform: skewX(5deg); } }

#fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
main { position: relative; z-index: 2; }

/* ================= SCREENS ================= */
.screen { display: none; min-height: 100svh; }
.screen.active { display: flex; animation: enter .8s cubic-bezier(.2,.7,.2,1) both; }
.screen.leaving { display: flex; animation: leave .45s ease both; pointer-events: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px;
  background: var(--moss); color: #F6F1E6; font-weight: 500; font-size: 15px;
  box-shadow: 0 8px 20px -10px rgba(46,66,49,.7);
  transition: transform .2s, background .2s;
}
.pill:hover { background: var(--moss-deep); transform: translateY(-1px); }
.pill.ghost { background: rgba(246,241,230,.14); color: var(--sky-ink); box-shadow: inset 0 0 0 1px currentColor; }
.link { background: none; border: 0; padding: 6px 0; color: inherit; opacity: .75; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { opacity: 1; }

.sound-btn {
  position: fixed; top: calc(14px + env(safe-area-inset-top,0px)); right: 14px; z-index: 40;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; border: 0;
  background: rgba(246,241,230,.82); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 12.5px; box-shadow: var(--shadow);
}
.sound-btn .waves { opacity: .25; }
.sound-btn[aria-pressed="true"] .waves { opacity: 1; }

/* ================= 1. GATE ================= */
#s-gate { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--sky-ink); }
.gate-inner { max-width: 760px; margin-top: -8vh; }
#s-gate h1 {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 10px 0 12px;
}
.gate-sub { margin: 0; font-size: 15px; opacity: .72; }
.gate-row { display: flex; gap: 34px; align-items: center; justify-content: center; margin-top: 44px; min-height: 110px; }
.yes-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 38px; border-radius: 999px; border: 0;
  background: var(--moss); color: #F6F1E6; font-size: 19px; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(46,66,49,.8);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s;
}
.yes-btn:hover { transform: scale(1.06) rotate(-1deg); background: var(--moss-deep); }
.yes-btn.grow { transform: scale(1.14); }
.no-slot { display: inline-block; width: 110px; height: 96px; }
.toast { font-family: var(--font-hand); font-size: 26px; min-height: 44px; margin: 22px 0 0; }
.toast:not(:empty) { display: inline-block; background: rgba(246,241,230,.88); color: var(--ink); padding: 4px 18px 6px; border-radius: 999px; box-shadow: var(--shadow); animation: popIn .35s cubic-bezier(.2,1.4,.4,1); }
.gate-foot { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom,0px)); left: 0; right: 0; font-size: 12.5px; color: #F6F1E6; opacity: .8; margin: 0; }

/* the NO bird */
.nobird {
  position: fixed; z-index: 30; width: 110px; height: 96px; padding: 0; border: 0; background: none;
  transition: left .8s cubic-bezier(.35,.6,.2,1), top .8s cubic-bezier(.35,.6,.2,1);
  -webkit-tap-highlight-color: transparent;
}
.nobird .flipper { width: 100%; height: 100%; transition: transform .25s; }
.nobird.left .flipper { transform: scaleX(-1); }
.nobird .bubble {
  position: absolute; top: -26px; right: -6px; z-index: 2;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-hand); font-size: 24px; line-height: 1;
  padding: 6px 14px 8px; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow);
  transition: opacity .2s;
}
.nobird.flying .bubble { opacity: 0; }
.nobird:not(.flying) .cbird { animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.nobird.flying .cbird { animation: bob .28s ease-in-out infinite alternate; }
.nobird.flying .cb-wing { animation: flap .1s ease-in-out infinite alternate; }
.nobird.flying .cb-legs { opacity: 0; }
.nobird:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; border-radius: 12px; }
@keyframes idle { 0%,100% { transform: rotate(0); } 40% { transform: rotate(-4deg); } 55% { transform: translateY(-4px) rotate(2deg); } 62% { transform: translateY(0); } }
@keyframes bob { from { transform: translateY(-3px) rotate(-6deg); } to { transform: translateY(3px) rotate(-2deg); } }

.cbird { width: 100%; height: 100%; overflow: visible; display: block; }
.cb-wing { transform-box: fill-box; transform-origin: 18% 22%; }
@keyframes flap { from { transform: rotate(18deg); } to { transform: rotate(-62deg) scaleY(.75); } }
.cb-eye { transition: transform .12s; }
.cb-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }

.feather { position: fixed; z-index: 29; width: 26px; pointer-events: none; animation: featherFall 2.6s ease-in forwards; }
@keyframes featherFall {
  0% { transform: translate(0,0) rotate(0); opacity: 1; }
  30% { transform: translate(18px, 50px) rotate(40deg); }
  60% { transform: translate(-14px, 110px) rotate(-20deg); opacity: .9; }
  100% { transform: translate(10px, 190px) rotate(30deg); opacity: 0; }
}

/* ================= 2. LETTER ================= */
#s-letter { align-items: center; justify-content: center; padding: 90px 18px 40px; }
.letter {
  position: relative; width: min(94vw, 470px);
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(31,42,36,.06) 35px 36px),
    var(--paper);
  border-radius: 8px; padding: 64px 34px 30px; text-align: center;
  box-shadow: var(--shadow-lg);
  transform: rotate(-.6deg);
}
.letter::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(31,42,36,.08); border-radius: 4px; pointer-events: none; }
.letter h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 8px 0 26px; letter-spacing: -.01em; }
.letter input, .envelope input {
  width: 100%; border: 0; border-bottom: 1.5px dashed var(--ink-faint);
  background: transparent; text-align: center; padding: 8px 4px;
  font-family: var(--font-hand); font-size: 32px; color: var(--ink);
}
.letter input:focus, .envelope input:focus { outline: none; border-bottom-color: var(--moss); }
.letter .pill, .envelope .pill { width: 100%; margin-top: 22px; }
.msg { font-family: var(--font-hand); font-size: 22px; color: var(--clay); min-height: 26px; margin: 12px 0 0; }
.hint { font-size: 12px; color: var(--ink-faint); margin: 6px 0 0; }
.hint b { font-weight: 600; color: var(--ink-soft); }
.perch-bird { position: absolute; top: -70px; left: 26px; width: 96px; height: 84px; transition: transform .3s; }
.perch-bird.tilt { transform: rotate(-14deg); }
.perch-bird.hop { animation: hop .5s ease; }
.perch-bird.gone { transition: transform 1.2s ease-in, opacity 1.2s; transform: translate(420px,-420px) rotate(-20deg); opacity: 0; }
.perch-bird.gone .cb-wing { animation: flap .1s infinite alternate; }
@keyframes hop { 30% { transform: translateY(-12px); } 60% { transform: translateY(0); } }
.stamp {
  position: absolute; top: 18px; right: 18px; width: 66px; height: 80px; padding: 5px;
  background: #fff; transform: rotate(4deg);
  -webkit-mask: radial-gradient(circle 3.2px at 3.2px 3.2px, transparent 98%, #000) -3.2px -3.2px / 9px 9px;
          mask: radial-gradient(circle 3.2px at 3.2px 3.2px, transparent 98%, #000) -3.2px -3.2px / 9px 9px;
}
.stamp img { width: 100%; height: 54px; object-fit: cover; display: block; }
.stamp span { display: block; font-family: var(--font-hand); font-size: 14px; line-height: 1; margin-top: 3px; color: var(--moss); }
.postmark {
  position: absolute; top: 30px; right: 62px; width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid rgba(184,103,74,.55); color: rgba(184,103,74,.7);
  font-size: 9px; letter-spacing: .12em; font-weight: 600; line-height: 1.5;
  display: grid; place-items: center; text-align: center; transform: rotate(-14deg);
}
@media (max-width: 520px) { .letter { padding-top: 104px; } }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-10px) rotate(-1deg); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.letter.fold { transition: transform .8s cubic-bezier(.6,0,.4,1), opacity .8s; transform: rotateX(70deg) translateY(120px) scale(.6); opacity: 0; }

/* ================= 3. HUB ================= */
#s-hub { flex-direction: column; justify-content: center; padding: 64px 0 18px; }
.hub-head { text-align: center; padding: 0 20px; color: var(--sky-ink); }
.hub-head h1 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.02em; margin: 2px 0 6px; line-height: 1.05; }
.hub-head .sub { margin: 0; font-size: 15px; opacity: .78; }
.feathers { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.feathers svg { width: 20px; height: 34px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.feathers svg path.vane { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.feathers svg.on path.vane { fill: var(--ochre); stroke: var(--ochre); opacity: 1; }
.feathers svg.on { transform: rotate(-8deg) scale(1.1); }

.carousel { position: relative; }
.track {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 26px calc(50vw - var(--cw) / 2) 22px;
}
.track::-webkit-scrollbar { display: none; }
.season {
  flex: 0 0 var(--cw); scroll-snap-align: center; position: relative;
  background: var(--paper); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); cursor: pointer; text-align: left; padding: 0; border: 0;
  transform: scale(.88); filter: saturate(.55) brightness(.93);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s, filter .6s;
}
.season.active { transform: scale(1); filter: none; }
.season .art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.season .art img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6s ease; }
.season.active .art img { transform: scale(1.14) translateX(-2%); }
.season .num { position: absolute; top: 14px; left: 18px; font-family: var(--font-display); font-style: italic; font-size: 44px; font-weight: 300; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.18); line-height: 1; }
.season .badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(246,241,230,.9); color: var(--moss); padding: 6px 10px; border-radius: 999px; }
.season .body { position: relative; padding: 20px 24px 22px; }
.season .years { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.season h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 4px 0 4px; letter-spacing: -.01em; color: var(--ink); }
.season .teaser { margin: 0; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); }
.season .cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--moss); }
.season .wax-mini { position: absolute; right: 20px; top: -30px; width: 58px; height: 58px; }
.season.open .wax-mini { display: none; }

.arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(246,241,230,.9); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform .2s;
}
.arrow:hover { transform: translateY(-50%) scale(1.08); }
.arrow.prev { left: max(16px, calc(50vw - var(--cw) / 2 - 90px)); }
.arrow.next { right: max(16px, calc(50vw - var(--cw) / 2 - 90px)); }
.arrow:disabled { opacity: .35; pointer-events: none; }

.branch { position: relative; width: min(92vw, 780px); height: 96px; margin: 0 auto; color: var(--sky-ink); }
.branch-svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); position: absolute; left: 0; right: 0; top: 18px; width: 100%; height: 70px; }
.perches { position: absolute; inset: 0; }
.perch {
  position: absolute; top: 58px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; z-index: 2;
  font-size: 11.5px; letter-spacing: .06em; color: var(--sky-ink); white-space: nowrap;
}
.perch span { background: rgba(31,42,36,.62); color: #F6F1E6; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.perch.cur span { background: var(--paper); color: var(--ink); }
.perch i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--bark); display: block; }
.perch.open i { background: var(--ochre); border-color: var(--ochre); }
.perch.cur span { font-weight: 700; }
.slider-bird { position: absolute; top: 0; left: 8%; width: 58px; height: 52px; transform: translateX(-50%); pointer-events: none; z-index: 3; transition: left .15s linear; }
.slider-bird .flipper { width: 100%; height: 100%; transition: transform .25s; }
.slider-bird.left .flipper { transform: scaleX(-1); }
.slider-bird.moving .cb-wing { animation: flap .12s infinite alternate; }
#seasonRange { position: absolute; inset: 0; width: 100%; height: 60px; opacity: 0; cursor: grab; z-index: 4; margin: 0; }
#seasonRange:active { cursor: grabbing; }
.hub-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 12.5px; color: #F6F1E6; padding: 0 20px; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.45); }

@media (max-width: 720px) {
  .arrow { display: none; }
  #s-hub { padding-top: 58px; }
  .perch span { font-size: 10px; }
}

/* ================= ENVELOPE MODAL ================= */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(18,26,22,.5); backdrop-filter: blur(5px); animation: fadeIn .3s both; }
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.envelope {
  position: relative; width: min(94vw, 450px);
  background: var(--paper-2); border-radius: 12px; box-shadow: var(--shadow-lg);
  perspective: 1000px; text-align: center; animation: popIn .5s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes popIn { from { transform: translateY(30px) scale(.94); opacity: 0; } }
.flap {
  position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 2;
  background: linear-gradient(180deg, #E4DAC2, var(--paper-edge));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; transition: transform .8s cubic-bezier(.5,0,.3,1) .35s, z-index 0s .75s;
  border-radius: 12px 12px 0 0;
}
.envelope.open .flap { transform: rotateX(180deg); z-index: 0; }
.wax { position: absolute; left: 50%; top: 96px; width: 72px; height: 72px; margin-left: -36px; z-index: 3; }
.wax .half { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5E7D5A, var(--moss) 55%, #2A3D2C); box-shadow: 0 3px 8px rgba(0,0,0,.3), inset 0 0 0 5px rgba(0,0,0,.08); transition: transform .6s cubic-bezier(.4,0,.6,1), opacity .6s; }
.wax .half.l { clip-path: polygon(0 0, 54% 0, 44% 38%, 56% 62%, 46% 100%, 0 100%); }
.wax .half.r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%, 56% 62%, 44% 38%); }
.wax-mark { position: absolute; inset: 6px; transition: opacity .3s; }
.envelope.open .wax .half.l { transform: translate(-40px, 90px) rotate(-40deg); opacity: 0; }
.envelope.open .wax .half.r { transform: translate(40px, 90px) rotate(40deg); opacity: 0; }
.envelope.open .wax-mark { opacity: 0; }
.env-body { position: relative; z-index: 1; padding: 180px 30px 28px; }
.env-body .years { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.env-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 4px 0 14px; }
.env-body .q { font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.5; }
.env-close { position: absolute; top: 10px; right: 12px; z-index: 5; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-soft); padding: 4px 8px; }

/* ================= 4. CHAPTER ================= */
#s-chapter { flex-direction: column; }
.ch-bar {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top,0px)) 150px 12px 20px; color: var(--sky-ink);
}
.ch-bar .back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; opacity: .95; background: rgba(246,241,230,.82); color: var(--ink); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.ch-dots { display: flex; gap: 8px; }
.ch-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; padding: 0; opacity: .8; }
.ch-dots button.open { background: currentColor; }
.ch-dots button.cur { transform: scale(1.4); opacity: 1; }
.ch-hero { min-height: min(42vh, 360px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 max(22px, calc(50vw - 460px)) 34px; color: var(--sky-ink); }
.ch-hero .years { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0; opacity: .85; }
.ch-hero h2 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(44px, 8vw, 92px); line-height: 1; letter-spacing: -.025em; margin: 6px 0 0; }
.ch-paper {
  position: relative; background: var(--paper); border-radius: 30px 30px 0 0;
  padding: 48px max(22px, calc(50vw - 460px)) 90px; box-shadow: 0 -20px 50px -30px rgba(0,0,0,.35);
  min-height: 60vh;
}
.story { max-width: 640px; }
.story p { font-family: var(--font-display); font-weight: 350; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.7; margin: 0 0 18px; color: var(--ink); }
.story p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; font-style: italic; color: var(--moss); }
.sample-tag { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); border: 1px dashed currentColor; border-radius: 999px; padding: 4px 10px; margin-bottom: 18px; }
.section-note { font-family: var(--font-hand); font-size: 24px; color: var(--ink-soft); margin: 44px 0 14px; }
.ph-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: 3px 7px; border-radius: 999px; pointer-events: none; }

.ch-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(31,42,36,.12); flex-wrap: wrap; }
.ch-nav button { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.ch-nav button.next { text-align: right; margin-left: auto; }
.ch-nav small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.ch-nav span { font-family: var(--font-display); font-size: 24px; font-style: italic; }

/* ---- layout 1: polaroids on a table ---- */
.table { position: relative; height: 560px; margin-top: 10px; border-radius: 20px; background: radial-gradient(ellipse at 50% 40%, #EFE6D2, #E4D8BE); box-shadow: inset 0 2px 20px rgba(0,0,0,.06); overflow: hidden; touch-action: pan-y; }
.polaroid {
  position: absolute; width: 190px; background: #FFFDF8; padding: 10px 10px 42px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 30px -12px rgba(0,0,0,.35);
  cursor: grab; touch-action: none; user-select: none; transition: box-shadow .2s, transform .2s;
}
.polaroid:active { cursor: grabbing; }
.polaroid.dragging { box-shadow: 0 4px 8px rgba(0,0,0,.1), 0 30px 50px -16px rgba(0,0,0,.45); transition: box-shadow .2s; }
.polaroid .img { position: relative; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.polaroid p { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; font-family: var(--font-hand); font-size: 20px; text-align: center; color: var(--ink); line-height: 1.1; }
.tape { position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; margin-left: -40px; background: rgba(201,139,60,.35); transform: rotate(-4deg); backdrop-filter: blur(1px); }
@media (max-width: 640px) { .table { height: 640px; } .polaroid { width: 150px; padding-bottom: 36px; } .polaroid p { font-size: 17px; } }

/* ---- layout 2: distance ---- */
.apart { margin-top: 20px; }
.apart-stage { position: relative; height: 480px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #CFE1E6, #F1EEDB); }
.apart-frame {
  position: absolute; top: 28px; width: min(32%, 240px); background: #FFFDF8; padding: 8px 8px 34px;
  box-shadow: var(--shadow); transition: transform .2s linear;
}
.apart-frame .img { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.apart-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apart-frame p { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; text-align: center; font-family: var(--font-hand); font-size: 19px; }
.apart-frame.a { left: 4%; }
.apart-frame.b { right: 4%; }
.apart-wire { position: absolute; left: 0; right: 0; bottom: 64px; height: 2px; background: var(--bark); opacity: .7; }
.apart-bird { position: absolute; bottom: 62px; width: 62px; height: 54px; transform: translateX(-50%); transition: left .15s linear; }
.apart-bird.b .flipper { transform: scaleX(-1); }
.apart-bird .flipper { width: 100%; height: 100%; }
.apart-heart { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%) scale(0); font-size: 30px; transition: transform .5s cubic-bezier(.3,1.8,.5,1); color: var(--clay); }
.apart.together .apart-heart { transform: translateX(-50%) scale(1); }
.apart-dist { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); }
.closer { width: 100%; margin-top: 20px; accent-color: var(--moss); height: 30px; }
.apart-label { text-align: center; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); margin: 4px 0 0; }
@media (max-width: 640px) { .apart-stage { height: 380px; } .apart-frame { width: 42%; top: 20px; } }

/* ---- layout 3: scrapbook ---- */
.scrap { display: grid; gap: 26px; margin-top: 18px; align-items: start; }
.scrap-col { display: flex; flex-direction: column; gap: 30px; }
.scrap-photo { position: relative; background: #FFFDF8; padding: 10px 10px 40px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.scrap-photo:hover { transform: rotate(0deg) translateY(-4px) scale(1.02) !important; }
.scrap-photo .img { position: relative; overflow: hidden; }
.scrap-photo img { width: 100%; display: block; }
.scrap-photo p { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; font-family: var(--font-hand); font-size: 20px; text-align: center; }
.washi { position: absolute; top: -10px; width: 90px; height: 22px; opacity: .8; }
.washi.l { left: -14px; transform: rotate(-28deg); }
.washi.r { right: -14px; transform: rotate(24deg); }
.scrap-note { background: #FFF6D8; padding: 22px 20px; font-family: var(--font-hand); font-size: 24px; line-height: 1.25; color: var(--ink); box-shadow: 0 10px 20px -12px rgba(0,0,0,.3); transform: rotate(1.6deg); }
.scrap-note.b { background: #E6EFE0; transform: rotate(-2deg); }
.ticket { display: flex; background: var(--clay); color: #FBEFE4; border-radius: 10px; overflow: hidden; transform: rotate(-3deg); box-shadow: var(--shadow); }
.ticket .t-main { flex: 1; padding: 16px 18px; border-right: 2px dashed rgba(255,255,255,.5); }
.ticket .t-main small { display: block; font-size: 10px; letter-spacing: .2em; opacity: .85; }
.ticket .t-main b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 28px; margin: 2px 0; }
.ticket .t-stub { width: 58px; display: grid; place-items: center; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .2em; }
.pressed { display: grid; place-items: center; padding: 6px; }
.pressed svg { width: 120px; height: 150px; transform: rotate(-12deg); }

/* ---- layout 4: winter letter ---- */
.winter { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.window { position: relative; border: 14px solid #D9CDB3; border-radius: 12px 12px 4px 4px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(0,0,0,.05); overflow: hidden; background: #333; cursor: zoom-in; }
.window::before, .window::after { content: ''; position: absolute; background: #D9CDB3; z-index: 3; }
.window::before { left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; }
.window::after { top: 50%; left: 0; right: 0; height: 10px; margin-top: -5px; }
.window .img { aspect-ratio: 3/4; }
.window img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.55) brightness(.85); transition: filter 2.5s ease; }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; transition: opacity 2s; }
.window .glow { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at 70% 25%, rgba(255,214,150,.65), transparent 60%); opacity: 0; transition: opacity 2.5s; pointer-events: none; }
.winter.thaw .window img { filter: none; }
.winter.thaw .window canvas { opacity: 0; }
.winter.thaw .window .glow { opacity: 1; }
.w-letter { background: #FFFDF8; padding: 30px 28px; box-shadow: var(--shadow); border-radius: 4px; position: relative; }
.w-letter .line { font-family: var(--font-hand); font-size: 25px; line-height: 1.35; margin: 0 0 14px; display: none; }
.w-letter .line.shown { display: block; animation: lineIn 1s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }
.w-letter .pill { margin-top: 8px; }
.w-after { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ochre); opacity: 0; transition: opacity 1.5s .6s; margin: 12px 0 0; }
.winter.thaw .w-after { opacity: 1; }
@media (max-width: 760px) { .winter { grid-template-columns: 1fr; } }

/* ---- layout 5: film reel ---- */
.reel { position: relative; margin-top: 18px; background: #1A1A18; padding: 26px 0; border-radius: 10px; box-shadow: var(--shadow-lg); }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 10px, #F6F1E6 10px 22px, transparent 22px 34px); opacity: .7; }
.reel::before { top: 7px; } .reel::after { bottom: 7px; }
.frames { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; cursor: zoom-in; }
.frame.on { opacity: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.on img { animation: kenburns 7s ease-out both; }
.frame:nth-child(even).on img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.16) translate(-3%, -2%); } }
@keyframes kenburns2 { from { transform: scale(1.16) translate(3%, 1%); } to { transform: scale(1.03) translate(0,0); } }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 16px; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); color: #FFF8EC; font-family: var(--font-hand); font-size: clamp(22px, 3vw, 32px); }
.frame figcaption small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.reel-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.reel-ctrl .dots { display: flex; gap: 8px; }
.reel-ctrl .dots button { width: 26px; height: 4px; border-radius: 4px; border: 0; background: rgba(31,42,36,.2); padding: 0; overflow: hidden; position: relative; }
.reel-ctrl .dots button.on::after { content: ''; position: absolute; inset: 0; background: var(--moss); animation: prog 5s linear both; transform-origin: left; }
.reel.paused + .reel-ctrl .dots button.on::after { animation-play-state: paused; }
@keyframes prog { from { transform: scaleX(0); } }
.reel-ctrl .rb { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(31,42,36,.2); background: none; display: grid; place-items: center; }
.unwritten { margin-top: 60px; text-align: center; padding: 50px 24px; border: 1.5px dashed rgba(31,42,36,.2); border-radius: 20px; }
.unwritten h4 { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 34px; margin: 0 0 6px; }
.unwritten p { color: var(--ink-soft); margin: 0 0 22px; }

/* ================= 5. FINALE ================= */
#s-finale { align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--sky-ink); }
.finale-inner { max-width: 640px; margin-top: 34vh; }
#s-finale h2 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(40px, 7vw, 76px); margin: 6px 0 10px; letter-spacing: -.02em; }
.fin-text { font-size: 18px; line-height: 1.6; opacity: .9; margin: 0; }
.fin-sign { font-family: var(--font-hand); font-size: 28px; margin: 12px 0 26px; }
.fin-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(14,18,16,.9); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .3s both; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 88vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 76vh; display: block; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #F6F1E6; font-family: var(--font-hand); font-size: 30px; margin-top: 14px; }
.lightbox figcaption small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.lb-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lb-arrow.prev { left: 16px; } .lb-arrow.next { right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .cloud, .blades, .season.active .art img, .frame.on img { animation: none !important; transition: none !important; }
}

/* real photos */
.polaroid img, .apart-frame img, .window img { object-position: 50% 28%; }
.frame.real img.bg { position: absolute; inset: 0; object-fit: cover; filter: blur(22px) brightness(.7) saturate(1.1); transform: scale(1.15); animation: none !important; }
.frame.real img.fg { position: relative; object-fit: contain; }
.frame.real.on img.fg { animation-name: kenburnsSoft; }
@keyframes kenburnsSoft { from { transform: scale(1); } to { transform: scale(1.06); } }
/* captions sit below photos and can wrap */
.polaroid { padding-bottom: 10px; }
.polaroid p, .scrap-photo p, .apart-frame p { position: static; margin: 8px 0 0; line-height: 1.1; }
.scrap-photo, .apart-frame { padding-bottom: 10px; }
.table { height: 470px; }
@media (max-width: 640px) { .table { height: 640px; } }
.apart-heart { bottom: auto; top: 2px; z-index: 5; }

/* ================= v4: song, landing polish, hints, videos, proposal ================= */
/* song button */
.sound-btn { gap: 10px; padding: 8px 16px 8px 12px; text-align: left; }
.sound-btn .song-label { display: flex; flex-direction: column; line-height: 1.15; }
.sound-btn .song-label b { font-weight: 600; font-size: 12.5px; }
.sound-btn .song-label small { font-size: 10.5px; opacity: .65; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.eq i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--moss); transition: height .3s; }
.sound-btn.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.sound-btn.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.sound-btn.playing .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.sound-btn:not(.playing) { animation: songNudge 3.5s ease-in-out 2s infinite; }
@keyframes songNudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-2px) rotate(-1deg); } 96% { transform: translateY(0) rotate(1deg); } }
@media (max-width: 480px) { .sound-btn .song-label small { display: none; } }

/* landing page 1 */
#s-gate::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255,248,236,.55), transparent 70%); }
.gate-inner { position: relative; }
#s-gate h1 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#s-gate h1 .l1 { font-style: normal; font-weight: 350; font-size: clamp(20px, 3vw, 30px); letter-spacing: .01em; opacity: .85; }
#s-gate h1 .l2 { font-size: clamp(50px, 9vw, 104px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(255,244,225,.8); }
.flourish { width: 200px; height: 20px; color: var(--clay); opacity: .7; margin: 4px auto 8px; display: block; }
.yes-btn { position: relative; }
.yes-btn::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 1.5px solid var(--moss); opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.gate-branch { position: absolute; top: 0; left: 0; width: min(46vw, 440px); height: 230px; cursor: pointer; z-index: 1; }
.gb-branch { position: absolute; inset: 0; width: 100%; height: 100%; }
.gb-bird { position: absolute; width: 21%; aspect-ratio: 120/100; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.gb-bird .cbird { animation: idle 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.gb-bird.a { left: 40%; top: 24%; }
.gb-bird.b { left: 55%; top: 31%; }
.gb-bird.b .flipper { transform: scaleX(-1); width: 100%; height: 100%; }
.gb-bird.b .cbird { animation-delay: -1.5s; }
.gate-branch.nuzzle .gb-bird.a { transform: translateX(10%) rotate(8deg); }
.gate-branch.nuzzle .gb-bird.b { transform: translateX(-10%) rotate(-8deg); }
.float-heart { position: fixed; z-index: 3; color: var(--clay); font-size: 18px; pointer-events: none; animation: heartUp 2.6s ease-out forwards; }
@keyframes heartUp { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -12px) scale(1); } 100% { transform: translate(-30%, -110px) scale(.8) rotate(12deg); opacity: 0; } }
@media (max-width: 640px) { .gate-branch { width: 78vw; height: 150px; } }

/* landing page 2 */
.letter-intro { font-size: 22px; line-height: 1.25; max-width: 34ch; margin: 0 auto; }
.letter h2 { font-size: 25px; }
.hint-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  background: #FCE8E3; color: #A4523A; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(184,103,74,.25); transition: transform .2s;
}
.hint-btn small { font-size: 11px; opacity: .75; font-weight: 400; }
.hint-btn:hover { transform: translateY(-1px) rotate(-1deg); }

/* seasons page */
.hub-top { font-family: var(--font-hand); font-size: clamp(26px, 3.4vw, 34px); margin: 0; }

/* videos inside frames */
.polaroid video, .scrap-photo video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.scrap-photo video { height: auto; }
.play-badge { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; pointer-events: none; }
.lightbox video { max-width: 100%; max-height: 76vh; display: block; margin: 0 auto; border-radius: 4px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox [hidden] { display: none !important; }

/* chapter 1 table holds 7 */
.table { height: 600px; }
@media (max-width: 640px) { .table { height: 900px; } }

/* chapter 4 window slideshow */
.window .img { position: relative; }
.window .wimg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease, filter 2.5s ease; }
.window .wimg.on { opacity: 1; }
.w-cap { font-family: var(--font-hand); font-size: 24px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; min-height: 30px; }
.w-steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.w-steps i { width: 22px; height: 4px; border-radius: 4px; background: rgba(31,42,36,.15); transition: background .4s; }
.w-steps i.on { background: var(--moss); }

/* chapter 5 proposal moment */
.proposal { margin-top: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pr-photo { position: relative; padding: 12px; background: #FFFDF8; box-shadow: var(--shadow-lg); border-radius: 6px; transform: rotate(-1.5deg); cursor: zoom-in; outline: 1px solid rgba(201,139,60,.35); outline-offset: -6px; }
.pr-photo img { width: 100%; display: block; border-radius: 2px; }
.pr-spark { position: absolute; color: var(--ochre); font-size: 20px; animation: spark 2.4s ease-in-out infinite; }
.pr-spark.s1 { top: -12px; left: 18%; } .pr-spark.s2 { top: 30%; right: -12px; animation-delay: -.8s; } .pr-spark.s3 { bottom: -10px; left: 60%; animation-delay: -1.6s; }
@keyframes spark { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.2) rotate(20deg); opacity: 1; } }
.pr-ring { width: 54px; height: 54px; }
.pr-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin: 8px 0 0; font-weight: 600; }
.proposal h4 { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(34px, 4.4vw, 48px); margin: 4px 0 10px; line-height: 1.05; }
.pr-text p:last-child { font-family: var(--font-display); font-size: 19px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .proposal { grid-template-columns: 1fr; gap: 24px; } }
.letter { padding-top: 112px; }
.letter .stamp { top: 16px; }
.letter .postmark { top: 26px; }
@media (max-width: 520px) { .letter { padding-top: 116px; } }

/* grievance cell thumbnail on page 1 */
.grievance-thumb {
  position: absolute; right: 22px; bottom: calc(60px + env(safe-area-inset-bottom,0px)); z-index: 5;
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--paper); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); transition: transform .3s cubic-bezier(.3,1.6,.5,1); border-left: 4px solid var(--clay);
}
.grievance-thumb:hover { transform: rotate(0) translateY(-3px) scale(1.03); }
.gt-ico { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-size: 24px; animation: gtWiggle 5s ease-in-out 3s infinite; }
@keyframes gtWiggle { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }
.gt-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--clay); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.gt-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.gt-txt small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.gt-txt b { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.gt-txt em { font-family: var(--font-hand); font-style: normal; font-size: 17px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .grievance-thumb { right: 50%; transform: translateX(50%) rotate(-1.5deg); bottom: calc(46px + env(safe-area-inset-bottom,0px)); padding: 9px 14px 9px 9px; }
  .grievance-thumb:hover { transform: translateX(50%) scale(1.03); }
  .gt-ico { width: 36px; height: 36px; font-size: 20px; }
  .gt-txt b { font-size: 16px; }
}
.gt-dot[hidden] { display: none; }
.gt-txt b, .gt-txt em, .gt-txt small { white-space: nowrap; }
@media (max-width: 640px) { .gate-foot { display: none; } .grievance-thumb { bottom: calc(22px + env(safe-area-inset-bottom,0px)); } }

/* ---- Article Aviary entry (landing page) ---- */
.aviary-thumb {
  position: absolute; left: 22px; bottom: calc(60px + env(safe-area-inset-bottom,0px)); z-index: 5;
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--paper); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg);
  transform: rotate(2deg); transition: transform .3s cubic-bezier(.3,1.6,.5,1); border-left: 4px solid var(--fern);
  animation: avIn .9s cubic-bezier(.3,1.5,.5,1) .6s both;
}
.aviary-thumb:hover { transform: rotate(0) translateY(-3px) scale(1.03); }
.aviary-thumb .gt-txt small { color: var(--fern); }
.av-ico { background: #E7EFDF; animation: avNest 4s ease-in-out 2s infinite; }
.av-dot { background: var(--ochre); }
@keyframes avNest { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-4px) rotate(-6deg); } 95% { transform: translateY(0) rotate(5deg); } }
@keyframes avIn { from { opacity: 0; translate: 0 16px; } }
@media (max-width: 640px) {
  .aviary-thumb { left: 50%; transform: translateX(-50%) rotate(1.5deg); bottom: calc(100px + env(safe-area-inset-bottom,0px)); padding: 9px 14px 9px 9px; }
  .aviary-thumb:hover { transform: translateX(-50%) scale(1.03); }
  .aviary-thumb .gt-ico { width: 36px; height: 36px; font-size: 20px; }
  .aviary-thumb .gt-txt b { font-size: 16px; }
}
