:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #686660;
  background: #faf9f6;
  font-synthesis: none;
  --cat-size: clamp(250px, 25vw, 342px);
  --horizon: 58%;
  --cat-x: 0px;
  --cat-y: 0px;
  --cat-angle: 0deg;
  --crop-bottom: 0%;
  --shadow-opacity: .12;
}
* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.scroll-space { height: 100svh; }
html.has-motion .scroll-space { height: 230svh; }
.scene { position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; isolation: isolate; }
.paper { position: absolute; inset: var(--horizon) 0 0; background: #f6f5f1; }
.ledge { position: absolute; top: var(--horizon); width: 100%; height: 1px; background: #dad8d1; }
.shadow {
  position: absolute; top: calc(var(--horizon) + 5px); left: 50%;
  width: calc(var(--cat-size) * .71); height: 12px; transform: translateX(-43%);
  background: #55534e; border-radius: 50%; filter: blur(10px); opacity: var(--shadow-opacity);
}
.cat-frame {
  position: absolute; top: var(--horizon); left: 50%; width: var(--cat-size);
  aspect-ratio: 1228 / 1281; transform: translate(-53%, -74%); user-select: none;
}
.introduction {
  position: absolute; top: max(24px, calc(var(--horizon) - var(--cat-size) * .772 - 116px));
  left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 440px;
  text-align: center; pointer-events: none;
}
.introduction h1 {
  margin: 0; font: 400 clamp(30px, 3vw, 38px)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em; color: #383732;
}
.intro-copy { margin: 12px 0 0; font-size: .9375rem; line-height: 1.55; color: #74716a; }
.intro-copy span { display: block; }
.cat-window { position: absolute; inset: -20px -16px 0; clip-path: inset(0 0 var(--crop-bottom) 0); }
.cat {
  position: absolute; top: 20px; left: 16px; display: block; width: var(--cat-size); height: auto;
  transform-origin: 60% 74%;
  transform: translate3d(var(--cat-x), var(--cat-y), 0) rotate(var(--cat-angle));
}
.cat img { display: block; width: 100%; height: auto; pointer-events: none; transform-origin: 60% 74%; }
.scroll-cue {
  position: absolute; bottom: max(36px, calc(env(safe-area-inset-bottom) + 24px)); left: 50%;
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 13px;
  min-width: 170px; min-height: 68px; padding: 10px 16px; border: 0; background: transparent;
  color: #78756e; cursor: pointer; border-radius: 12px; transition: color 180ms;
}
.scroll-cue:hover { color: #2d2c28; }
.scroll-cue:focus-visible, summary:focus-visible { outline: 1px solid #686660; outline-offset: 5px; }
.cue-word { font-size: .875rem; letter-spacing: .025em; white-space: nowrap; }
.cue-track { width: 34px; height: 2px; background: #dedbd4; overflow: hidden; border-radius: 2px; }
.cue-track span { display: block; width: 100%; height: 100%; background: #78756e; transform: scaleX(0); transform-origin: left; }
.cue-arrow { transition: transform 400ms; }
.scroll-cue.at-end .cue-arrow { transform: rotate(180deg); }
.privacy { position: absolute; right: 24px; bottom: 22px; max-width: 350px; font-size: .75rem; }
.privacy summary { cursor: pointer; text-align: right; list-style: none; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy p {
  position: absolute; right: 0; bottom: 24px; width: min(350px, calc(100vw - 48px));
  background: #faf9f6; border: 1px solid #dad8d1; border-radius: 12px; padding: 20px;
  font-size: .875rem; line-height: 1.65;
}
@media (max-width: 600px) {
  :root { --cat-size: clamp(230px, 69vw, 300px); --horizon: 55%; }
  .scroll-cue { bottom: max(40px, calc(env(safe-area-inset-bottom) + 28px)); }
  .privacy { right: 16px; bottom: 16px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  :root { --cat-size: min(230px, 47vh); --horizon: 58%; }
  .scroll-cue { bottom: 12px; gap: 8px; min-height: 50px; }
  .introduction { left: 26%; top: 24%; width: 40%; }
  .cat-frame, .shadow { left: 66%; }
}
@media (max-height: 700px) and (max-width: 600px) {
  :root { --cat-size: min(60vw, 34svh); --horizon: 58%; }
  .scroll-cue { bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
}
@media (prefers-reduced-motion: reduce) {
  html.has-motion .scroll-space { height: 100svh; }
  .scroll-cue { display: none; }
  .cat { transform: none; }
  .cat-window { clip-path: none; }
  .shadow { opacity: .12; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
