:root {
  --bg: #f6f3ec;
  --ink: #17150f;
  --ink-2: #4a463c;
  --muted: #8a8473;
  --hair: rgba(110, 88, 30, 0.14);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --gold: #b08a2e;
  --gold-deep: #8a6a1c;
  --gold-light: #e8cf8f;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(232, 207, 143, 0.55), transparent 65%),
    radial-gradient(700px 520px at -8% 38%, rgba(214, 186, 120, 0.30), transparent 70%),
    radial-gradient(800px 600px at 60% 115%, rgba(240, 222, 178, 0.45), transparent 70%);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-light); color: var(--ink); }

.page { position: relative; overflow-x: clip; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .shell { padding: 0 32px; } }

/* Ground: Nazca-style linework, lily pads and ripples behind everything */
.ground { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: #9c7419; }
.ground svg { filter: drop-shadow(0 0 5px rgba(232, 200, 120, 0.55)); }
.ground svg { position: absolute; overflow: visible; }
.ground .rays { inset: 0; width: 100%; height: 100%; opacity: .34; filter: none; }
.ground .g-frog { width: 560px; height: 560px; right: -110px; top: 70px; opacity: .62; transform: rotate(-12deg); }
.ground .g-fly { width: 400px; height: 400px; left: -150px; top: 34%; opacity: .62; transform: rotate(18deg); }
.ground .g-pond { width: 520px; height: 300px; right: -80px; bottom: 60px; opacity: .75; }
@media (max-width: 760px) {
  .ground .g-frog { width: 380px; height: 380px; right: -150px; }
  .ground .g-fly { top: 40%; }
}

/* Navigation */
.nav { position: sticky; top: 14px; z-index: 20; margin: 14px auto 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 10px 0 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 1px var(--hair), 0 10px 30px -18px rgba(70, 50, 0, 0.25);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 999px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.logo-text span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.nav-links a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.nav-links a.cta { background: var(--ink); color: #f6f3ec; margin-left: 6px; }
.nav-links a.cta:hover { background: #2b271d; }
@media (max-width: 560px) {
  .logo-text { display: none; }
  .nav-links a { padding: 8px 10px; }
  .nav-links a.cta { display: none; }
}

.masthead { padding: 64px 0 28px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(132px, auto);
  gap: 14px;
  padding-bottom: 14px;
}
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; }
.c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.r2 { grid-row: span 2; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c2, .c3 { grid-column: span 1; }
  .c4, .c6 { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .c2, .c3, .c4, .c6 { grid-column: span 1; }
  .r2 { grid-row: auto; }
}

.tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--hair), 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -28px rgba(70, 50, 0, 0.28);
  backdrop-filter: blur(7px) saturate(1.25);
  -webkit-backdrop-filter: blur(7px) saturate(1.25);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile > * { position: relative; z-index: 1; }
.tile > .deco { position: absolute; z-index: 0; pointer-events: none; color: var(--gold); }
a.tile:hover, .tile.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(176, 138, 46, 0.35), 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 26px 50px -30px rgba(70, 50, 0, 0.4);
}
.tile.dark {
  background: radial-gradient(120% 80% at 50% 0%, #2a2516 0%, #17150f 70%);
  color: #efe9da;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 24px 50px -30px rgba(30, 20, 0, 0.6);
}
.tile.dark .label { color: var(--gold-light); }
.tile.dark p { color: #b9b19c; }

.label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 12px;
}
.label .idx { color: var(--gold); letter-spacing: 0.04em; }

h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.045em; }
h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.tile p { margin: 10px 0 0; color: var(--ink-2); }
.tile .grow { flex: 1; }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn:hover { box-shadow: 0 0 0 1px var(--gold); }
.btn.solid { background: var(--ink); color: #f6f3ec; box-shadow: none; }
.btn.solid:hover { background: #2b271d; }
.arrow { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover .arrow, a.tile:hover .arrow, .more:hover .arrow { transform: translateX(3px); }
.more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--gold-deep); }

/* Tile decorations */
.deco.ripples { right: -70px; bottom: -70px; width: 300px; height: 300px; opacity: .85; }
.deco.glyph-hero { right: -30px; top: -20px; width: 330px; height: 330px; opacity: .26; transform: rotate(-10deg); }
.deco.glyph-corner { right: -40px; bottom: -50px; width: 220px; height: 220px; opacity: .3; transform: rotate(14deg); }
.deco.pads { left: -30px; bottom: -40px; width: 280px; height: 160px; opacity: .45; }
@media (max-width: 620px) {
  .deco.glyph-hero { opacity: .16; }
  .tile > .deco.ripples { width: 200px; height: 200px; right: -80px; bottom: -80px; opacity: .35 !important; }
}

/* Featured study split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 8px; } }

/* Status badge */
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 1px rgba(176, 138, 46, .35);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 46, .18); }

/* Stat figures */
.figure { font-size: clamp(40px, 4.6vw, 60px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.figure small { font-size: 0.42em; letter-spacing: -0.02em; color: var(--muted); margin-left: 4px; }
.caption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* Comparison bars */
.bars { display: grid; gap: 14px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.bar-track { height: 8px; border-radius: 99px; background: rgba(110, 88, 30, 0.1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-light), var(--gold)); width: 0; transition: width 1.4s var(--ease); }
.bar-row b { font-weight: 500; text-align: right; color: var(--ink); }
.in .bar-fill { width: var(--w); }
@media (max-width: 460px) { .bar-row { grid-template-columns: 1fr 44px; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* Lists */
.list { list-style: none; margin: 6px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.list li:first-child { border-top: 0; }
.list li span:last-child { color: var(--muted); text-align: right; }
.tile.dark .list li { border-color: rgba(255, 255, 255, 0.08); }

/* Pond: areas of inquiry as bubbles, with tadpoles */
.pond {
  position: relative; width: 100%; aspect-ratio: 330 / 340;
  container-type: inline-size;
  margin: 4px 0 6px;
}
.bubble {
  position: absolute; z-index: 2;
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  padding: 7%;
  font-size: clamp(9.5px, 3.5cqw, 13px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em;
  color: #f4ead0;
  background: radial-gradient(circle at 32% 28%, rgba(255, 232, 170, 0.26), rgba(232, 190, 90, 0.07) 46%, rgba(176, 138, 46, 0.03) 72%);
  border: 1px solid rgba(232, 207, 143, 0.42);
  box-shadow: inset 0 0 22px rgba(232, 207, 143, 0.12), inset -6px -8px 18px rgba(0, 0, 0, 0.25), 0 0 26px rgba(176, 138, 46, 0.08);
  animation: float var(--t, 6s) ease-in-out infinite alternate;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.bubble::before {
  content: ""; position: absolute; top: 11%; left: 17%; width: 28%; height: 16%;
  border-top: 2px solid rgba(255, 246, 220, 0.55); border-radius: 50%; transform: rotate(-32deg);
}
a.bubble { cursor: pointer; }
a.bubble:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.bubble em { display: block; font-style: normal; font-size: .78em; letter-spacing: .14em; color: var(--gold-light); margin-bottom: 5px; font-weight: 400; }
.bubble:hover { border-color: rgba(240, 214, 150, 0.85); background: radial-gradient(circle at 32% 28%, rgba(255, 232, 170, 0.38), rgba(232, 190, 90, 0.12) 46%, rgba(176, 138, 46, 0.05) 72%); }
.b1 { width: 39.4%; left: 4.5%;  top: 4.4%;  --t: 6.5s; }
.b2 { width: 32.7%; left: 57.9%; top: 2.4%;  --t: 5.2s; animation-delay: -2s; }
.b3 { width: 37.6%; left: 50.9%; top: 37.6%; --t: 7s;   animation-delay: -4s; }
.b4 { width: 33.9%; left: 7.9%;  top: 48.8%; --t: 5.8s; animation-delay: -1s; }
.b5 { width: 27.3%; left: 34.8%; top: 72.6%; --t: 6.2s; animation-delay: -3s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

.tadpole {
  position: absolute; left: 0; top: 0; z-index: 1; width: 34px; height: 14px; color: #d9b45e; opacity: .75;
  offset-rotate: auto;
  animation: swim var(--t) linear infinite;
}
.tadpole .tail { transform-origin: 24px 7px; animation: wiggle .38s ease-in-out infinite alternate; }
.tp1 { offset-path: path("M -40 320 C 60 250 110 330 180 250 S 290 120 380 160"); --t: 17s; }
.tp2 { offset-path: path("M 380 30 C 280 90 240 10 160 80 S 40 170 -40 120"); --t: 21s; animation-delay: -9s; width: 26px; height: 11px; }
.tp3 { offset-path: path("M 100 380 C 120 300 40 250 90 180 S 220 60 200 -40"); --t: 24s; animation-delay: -15s; width: 22px; height: 9px; opacity: .5; }
@keyframes swim { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes wiggle { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }

.fizz {
  position: absolute; bottom: -8px; left: var(--x); z-index: 1;
  width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  border: 1px solid rgba(232, 207, 143, 0.6);
  opacity: 0;
  animation: rise var(--d, 9s) linear infinite; animation-delay: var(--o, 0s);
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .8; }
  50% { transform: translate(6px, -170px); }
  100% { transform: translate(-4px, -360px); opacity: 0; }
}

/* ---------- Dark page: Areas of Inquiry ---------- */
.dark-page { background: #0e0d09; color: #efe9da; }
.dark-page::before {
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(176, 138, 46, 0.22), transparent 65%),
    radial-gradient(700px 520px at -8% 40%, rgba(176, 138, 46, 0.12), transparent 70%),
    radial-gradient(800px 600px at 60% 115%, rgba(176, 138, 46, 0.16), transparent 70%);
}
.dark-page ::selection { background: #e0bf6a; color: #0e0d09; }
.dark-page .ground { color: #d9b45e; }
.dark-page .ground svg { filter: drop-shadow(0 0 6px rgba(224, 191, 106, 0.35)); }
.dark-page .ground .rays { opacity: .22; filter: none; }
.dark-page .ground .g-frog, .dark-page .ground .g-fly { opacity: .4; }
.dark-page .ground .g-pond { opacity: .45; }
.dark-page .nav-inner {
  background: rgba(22, 20, 14, 0.72); border-color: rgba(232, 207, 143, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.dark-page .logo-text span { color: #a39a82; }
.dark-page .nav-links a { color: #cfc6ae; }
.dark-page .nav-links a:hover { color: #f4ead0; background: rgba(232, 207, 143, .08); }
.dark-page .nav-links a[aria-current="page"] { color: #f4ead0; background: rgba(232, 207, 143, .12); box-shadow: 0 0 0 1px rgba(232, 207, 143, .25); }
.dark-page .nav-links a.cta { background: #e0bf6a; color: #14120c; }
.dark-page .nav-links a.cta:hover { background: #ecd086; }
.dark-page .kicker { color: #e0bf6a; }
.dark-page .kicker::before { background: #e0bf6a; }
.dark-page .tile {
  background: rgba(255, 248, 225, 0.035);
  border-color: rgba(232, 207, 143, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 240, 200, .05) inset, 0 24px 50px -30px rgba(0, 0, 0, .8);
  color: #efe9da;
}
.dark-page .tile .label { color: #a39a82; }
.dark-page .tile .label .idx { color: #e0bf6a; }
.dark-page .tile p { color: #b9b19c; }
.dark-page .tile > .deco { color: #e0bf6a; }
.dark-page .lead { color: #c9c0a8; }
.dark-page .btn { background: rgba(255, 248, 225, .06); color: #f4ead0; box-shadow: 0 0 0 1px rgba(232, 207, 143, .25); }
.dark-page .btn.solid { background: #e0bf6a; color: #14120c; box-shadow: none; }
.dark-page .foot { color: #8c846f; }
.dark-page .foot-inner { border-color: rgba(232, 207, 143, .14); }
.dark-page .foot a:hover { color: #f4ead0; }

.area { scroll-margin-top: 100px; margin-top: 56px; }
.area-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 18px; }
.area-num { font-size: 13px; letter-spacing: .2em; color: #e0bf6a; font-weight: 500; }
.area-head h2 { color: #f4ead0; }
.area-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(232, 207, 143, .35), transparent); align-self: center; }
.area .orb {
  width: 92px; height: 92px; border-radius: 50%; margin-bottom: 22px;
  display: grid; place-items: center; font-size: 22px; font-weight: 400; color: #f4ead0; letter-spacing: -.02em;
  background: radial-gradient(circle at 32% 28%, rgba(255, 232, 170, .3), rgba(232, 190, 90, .08) 46%, rgba(176, 138, 46, .03) 72%);
  border: 1px solid rgba(232, 207, 143, .45);
  box-shadow: inset 0 0 22px rgba(232, 207, 143, .12), inset -6px -8px 18px rgba(0, 0, 0, .3), 0 0 30px rgba(176, 138, 46, .12);
  position: relative;
}
.area .orb::before { content: ""; position: absolute; top: 12%; left: 18%; width: 28%; height: 16%; border-top: 2px solid rgba(255, 246, 220, .55); border-radius: 50%; transform: rotate(-32deg); }
.area .tile h3 { color: #f4ead0; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid rgba(232, 207, 143, .1); font-size: 14px; color: #cfc6ae; line-height: 1.5; }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #e0bf6a; }
.ticks.next li::before { background: rgba(224, 191, 106, .25); }
.area:target .tile, .area.hit .tile { box-shadow: 0 0 0 1px rgba(224, 191, 106, .55), 0 0 40px -10px rgba(224, 191, 106, .35); }

/* Portrait placeholder */
.portrait {
  flex: 1; min-height: 240px; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(160deg, #efe3c3, #d9c08a);
  display: grid; place-items: center;
  color: rgba(90, 68, 15, 0.55); font-size: 56px; font-weight: 300; letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px var(--hair) inset;
}

/* Footer */
.foot { padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--hair); padding-top: 22px; }
.foot a:hover { color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
#intro { display: none; }
.play-intro #intro {
  display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer;
  --u: min(2px, .45vw);
  --sp: clamp(140px, 17vw, 220px);
}
.play-intro .page { opacity: 0; }
.page { transition: opacity .9s var(--ease); }
.intro-out .page { opacity: 1; }

#intro .veil {
  position: absolute; inset: 0; background: var(--bg);
  transition: opacity .9s .1s var(--ease);
}
#intro .veil::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 380px at 50% 56%, rgba(232, 207, 143, 0.5), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(214, 186, 120, 0.12));
}
.intro-out #intro .veil { opacity: 0; }

.stage {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--u) * 120); height: calc(var(--u) * 120);
  margin: calc(var(--u) * -60) 0 0 calc(var(--u) * -60);
  transition: transform 1.05s cubic-bezier(.6, 0, .2, 1), opacity .3s .95s;
}
.intro-out .stage { transform: translate(var(--zx, 0), var(--zy, -40vh)) scale(var(--zs, .15)); opacity: 0; }

.stage .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .ring circle {
  fill: rgba(255, 255, 255, .7); fill-opacity: 0; stroke: var(--gold); stroke-width: 3.5;
  stroke-dasharray: 352; stroke-dashoffset: 352;
  animation: draw 1.2s .2s var(--ease) forwards, fillin .8s 2.3s forwards;
}
.wave {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0;
  animation: wave 1.9s var(--d) cubic-bezier(.2, .6, .3, 1) forwards;
}

.lp { position: absolute; left: 50%; top: calc(var(--u) * 88); width: 0; height: 0; }
.lp .padimg {
  position: absolute; width: calc(var(--u) * 96); height: calc(var(--u) * 22.4);
  left: calc(var(--u) * -48); top: calc(var(--u) * -11.2);
  animation: bob .55s var(--d) ease-out;
}
.lp .rip {
  position: absolute; width: calc(var(--u) * 96); height: calc(var(--u) * 24);
  left: calc(var(--u) * -48); top: calc(var(--u) * -12);
  border: 1px solid var(--gold); border-radius: 50%; opacity: 0;
  animation: rip 1.2s var(--d) ease-out forwards;
}
.lp .rip.r2 { animation-delay: calc(var(--d) + .18s); }
.lp.p2 { transform: translateX(calc(var(--sp) * -2)) scale(.62); }
.lp.p1 { transform: translateX(calc(var(--sp) * -1)) scale(.8); }
.lp.side { transition: opacity .35s; }
.intro-out .lp.side, .intro-out .word { opacity: 0; transition: opacity .3s; }

.hopper {
  position: absolute; left: calc(var(--u) * 3); top: calc(var(--u) * 14.3);
  width: calc(var(--u) * 104); height: calc(var(--u) * 86.7);
  transform-origin: 50% 85%;
  filter: drop-shadow(0 6px 8px rgba(120, 70, 10, 0.25));
  animation: hop 2.6s .3s both;
}
.word {
  position: absolute; left: 50%; top: calc(100% + 30px); transform: translateX(-50%);
  white-space: nowrap; text-align: center;
  font-size: 15px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink);
  opacity: 0; animation: fadeUp .8s 2.7s var(--ease) forwards;
}
.word span { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.4em; color: var(--muted); font-weight: 400; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wave { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.6); opacity: 0; } }
@keyframes rip { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 0% { transform: translateY(0); } 35% { transform: translateY(calc(var(--u) * 2.5)); } 100% { transform: translateY(0); } }
@keyframes hop {
  0%   { transform: translate(calc(var(--sp) * -3 - 40px), 0) rotate(0deg) scale(.5); animation-timing-function: cubic-bezier(.25, .6, .5, 1); }
  10%  { transform: translate(calc(var(--sp) * -2.5 - 20px), calc(var(--u) * -45)) rotate(-14deg) scale(.56); animation-timing-function: cubic-bezier(.5, 0, .75, .4); }
  20%  { transform: translate(calc(var(--sp) * -2), 0) rotate(3deg) scale(.68, .54); }
  24%  { transform: translate(calc(var(--sp) * -2), 0) rotate(0deg) scale(.62); animation-timing-function: cubic-bezier(.25, .6, .5, 1); }
  34%  { transform: translate(calc(var(--sp) * -1.5), calc(var(--u) * -50)) rotate(-14deg) scale(.7); animation-timing-function: cubic-bezier(.5, 0, .75, .4); }
  44%  { transform: translate(calc(var(--sp) * -1), 0) rotate(3deg) scale(.87, .7); }
  48%  { transform: translate(calc(var(--sp) * -1), 0) rotate(0deg) scale(.8); animation-timing-function: cubic-bezier(.25, .6, .5, 1); }
  62%  { transform: translate(calc(var(--sp) * -.5), calc(var(--u) * -72)) rotate(-12deg) scale(.9); animation-timing-function: cubic-bezier(.5, 0, .75, .4); }
  76%  { transform: translate(0, 0) rotate(2deg) scale(1.07, .88); }
  83%  { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill { transition: none; }
  .bubble, .tadpole, .tadpole .tail, .fizz { animation: none; }
  .fizz, .tadpole { display: none; }
}

/* ---------- More geoglyphs ---------- */
.ground .g-spiral  { width: 170px; height: 170px; left: 3%;  top: 14%; opacity: .55; }
.ground .g-lily    { width: 190px; height: 190px; left: 38%; top: 1%;  opacity: .5; }
.ground .g-dragon  { width: 260px; height: 260px; right: 1%; top: 38%; opacity: .55; transform: rotate(24deg); }
.ground .g-tad1    { width: 180px; height: 180px; left: 40%; top: 50%; opacity: .55; transform: rotate(-30deg); }
.ground .g-tad2    { width: 130px; height: 130px; right: 24%; top: 82%; opacity: .5;  transform: rotate(140deg); }
.ground .g-seaweed { width: 300px; height: 300px; left: -60px; bottom: 1%; opacity: .6; }
.ground .g-seaweed2{ width: 240px; height: 240px; right: 34%; bottom: -30px; opacity: .5; }
.ground .g-fish    { width: 280px; height: 280px; right: -70px; top: 66%; opacity: .5; transform: rotate(-14deg); }
.dark-page .ground svg:not(.rays) { opacity: .36; }
.deco.glyph-mini { right: -26px; bottom: -26px; width: 140px; height: 140px; opacity: .3; transform: rotate(-12deg); }

/* ---------- Intro: sitting and leaping poses ---------- */
.hopper svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hopper .leap { animation: poseLeap 2.6s .3s both; }
.hopper .sit  { animation: poseSit 2.6s .3s both; }
@keyframes poseLeap {
  0%, 19.4% { opacity: 1; } 19.5%, 24.4% { opacity: 0; } 24.5%, 43.4% { opacity: 1; }
  43.5%, 48.4% { opacity: 0; } 48.5%, 75.4% { opacity: 1; } 75.5%, 100% { opacity: 0; }
}
@keyframes poseSit {
  0%, 19.4% { opacity: 0; } 19.5%, 24.4% { opacity: 1; } 24.5%, 43.4% { opacity: 0; }
  43.5%, 48.4% { opacity: 1; } 48.5%, 75.4% { opacity: 0; } 75.5%, 100% { opacity: 1; }
}

/* ---------- Portrait coin ---------- */
.coin {
  display: block; width: min(230px, 78%); aspect-ratio: 1; margin: 6px auto 0;
  padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.coin:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 50%; }
.coin-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--spin, 0deg));
  transition: transform 1.4s cubic-bezier(.2, .7, .15, 1);
}
.coin-face {
  position: absolute; inset: 0; display: block; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 4px #d8b45a, 0 0 0 5px rgba(138, 106, 28, .55), 0 20px 40px -18px rgba(90, 60, 0, .55);
}
.coin-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin-back {
  transform: rotateY(180deg);
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fdf0c4, #e6c062 42%, #b58a22 78%, #8e6914 100%);
}
.coin-back::before {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  border: 1.5px solid rgba(110, 80, 10, .45);
  box-shadow: inset 0 0 0 7px rgba(255, 240, 200, .22), inset 0 0 0 8.5px rgba(110, 80, 10, .3);
}
.coin-back span {
  position: relative; font-size: clamp(56px, 7vw, 86px); font-weight: 300; letter-spacing: -.04em; color: #6a4b0b;
  text-shadow: 0 1px 0 rgba(255, 245, 210, .75), 0 -1px 0 rgba(80, 55, 0, .35);
}

/* ---------- Intro: the toad croaks after landing ---------- */
#intro .sit .tilt { transform-box: view-box; transform-origin: 45px 84px; animation: croakTilt 1.3s 2.95s both; }
#intro .sit .inflate { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 1.3s 2.95s both; }
#intro .sit .sac2 { transform-box: view-box; transform-origin: 99px 54px; animation: sacPuff 1.3s 2.95s both; }
#intro .sit .lid { transform-box: fill-box; transform-origin: 50% 0%; transform: scaleY(0); animation: blink .32s 2.55s both; }
.hopper .croak .arc { opacity: 0; animation: arc 1.3s 2.95s both; }
.hopper .croak .arc.a2 { animation-delay: 3.03s; }
@keyframes croakTilt {
  0% { transform: rotate(0); } 12% { transform: rotate(-5deg); } 85% { transform: rotate(-5deg); } 100% { transform: rotate(0); }
}
@keyframes sacPuff {
  0% { transform: scale(.1); opacity: 0; }
  10% { transform: scale(.3); opacity: 1; }
  28% { transform: scale(1.4); }
  40% { transform: scale(.45); }
  58% { transform: scale(1.45); }
  72% { transform: scale(.3); }
  86% { transform: scale(.1); opacity: 1; }
  100% { transform: scale(.1); opacity: 0; }
}
@keyframes breathe {
  0%, 40%, 72%, 100% { transform: none; }
  28%, 58% { transform: scale(.985, .965); }
}
@keyframes blink { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes arc { 0%, 12% { opacity: 0; } 28% { opacity: 1; } 40% { opacity: 0; } 58% { opacity: 1; } 72%, 100% { opacity: 0; } }
