@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/assets/archivo-latin-e3a28eade2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg0: #0b1f24; --bg1: #2d6a6f; --accent: #8fe3d8;
  --fg: #f6f2ee; --muted: rgba(246, 242, 238, 0.76);
  --shade: 0 1px 2px rgba(7, 9, 11, 0.45), 0 0 14px rgba(7, 9, 11, 0.32);
  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07090b; color: var(--fg); overflow: hidden; }
body { font-family: Archivo, system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.bg, .bg-layer, .grain, #logo3d, .pl-bg { position: fixed; inset: 0; }
.bg-layer { background:
  radial-gradient(120% 70% at 50% 62%, color-mix(in srgb, var(--l1) 85%, #fff 15%) 0%, var(--l1) 28%, transparent 70%),
  linear-gradient(180deg, var(--l0) 0%, color-mix(in srgb, var(--l0) 55%, var(--l1)) 55%, var(--l0) 100%);
  opacity: 0; transition: opacity 0.9s var(--ease); }
.bg-layer.on { opacity: 1; }
.grain { z-index: 3; pointer-events: none; background-size: 192px 192px; }

#logo3d { width: 100%; height: 100%; z-index: 2; pointer-events: none; display: block; }
.logo-hit { position: fixed; z-index: 4; touch-action: pan-y; cursor: grab; }
.logo-hit:active { cursor: grabbing; }


.pl-bg { z-index: 3; background: #07090b; display: none; }
.pl-active .pl-bg { display: block; }
.pl-status { position: fixed; }
.pl-active #logo3d { z-index: 5; }

.app { position: fixed; inset: 0; z-index: 3; pointer-events: none; text-shadow: var(--shade); }
.app > *, .stage > * { pointer-events: auto; }
.stage { position: absolute; inset: 0; pointer-events: none; }
.pl-active .app { visibility: hidden; }

.top { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.link { font-weight: 600; position: relative; }
.link::after, .info-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.link:hover::after, .info-link:hover::after { transform: scaleX(1); transform-origin: left; }

.title { position: absolute; z-index: 2; color: transparent; border-radius: 8px; }
.title-inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hint { position: absolute; left: var(--pad); bottom: var(--pad); margin: 0; max-width: 16em; font-size: 13px; color: var(--muted); }
.who { display: grid; justify-items: start; gap: 4px; }
.cats { position: relative; width: 190px; height: 70px; margin-top: 2px; perspective: 420px; touch-action: none; cursor: ns-resize; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%); }
.cats-mark { position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--accent); }
.cats-drum { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cats-drum > * { position: absolute; left: 24px; top: 50%; text-decoration: none; white-space: nowrap; color: var(--muted); pointer-events: auto;
  font-variation-settings: "wdth" 112; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; backface-visibility: hidden; transform-origin: 0 50%; transition: color 0.3s; }
.cats-drum .on { color: var(--fg); }
.pager { display: flex; align-items: center; margin-left: -8px; }
.pager button { font-size: 16px; padding: 4px 8px; color: var(--muted); transition: color 0.3s, transform 0.4s var(--ease); }
.pager button:hover { color: var(--fg); }
.pager button:first-child:hover { transform: translateX(-3px); }
.pager button:last-child:hover { transform: translateX(3px); }
.count { margin: 0; min-width: 52px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.info { position: absolute; left: var(--pad); bottom: var(--pad); width: clamp(200px, calc((100vw - min(62vw, 99.2vh)) / 2 - var(--pad) - 20px), 280px); font-size: 14px; isolation: isolate; }
.info::before { content: ""; position: absolute; z-index: -1; inset: -64px -44px calc(-1 * var(--pad)) calc(-1 * var(--pad)); pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 9, 11, 0.42) calc(100% - 40px), rgba(7, 9, 11, 0));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 56px); mask-image: linear-gradient(180deg, transparent, #000 56px); transition: opacity 0.6s var(--ease); }
@starting-style { .info::before { opacity: 0; } }
.info p { margin: 0 0 14px; }
.info-meta { color: var(--muted); font-size: 13px; }
.info-link { position: relative; text-decoration: none; font-weight: 600; }
.info .info-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0 0 14px; padding: 0; }
.tags[hidden] { display: none; }
.tags li, .guide-keys li { font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tile, var(--accent)) 42%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

.reel { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.reel-frame { position: absolute; left: 50%; top: 50%; background: var(--board, #f3f3f0); pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; container-type: inline-size; }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-play { --s: clamp(34px, 6.2cqw, 60px); position: absolute; left: 7.8%; top: 84%; width: var(--s); height: var(--s); margin-top: calc(var(--s) / -2);
  border-radius: 27% 60% 27% 27%; background: var(--tile, #0e0e0e); box-shadow: 0 8px 24px rgba(14, 14, 14, 0.22);
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.reel-play::after { content: ""; position: absolute; left: 40%; top: 50%; transform: translateY(-50%); border-style: solid; border-width: calc(var(--s) * 0.18) 0 calc(var(--s) * 0.18) calc(var(--s) * 0.3); border-color: transparent transparent transparent #f3f3f0; }
.reel.is-paused .reel-play { opacity: 1; transform: none; }

.top-links { display: flex; gap: 22px; }
.about, .contact-page { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(460px, 44vw); max-height: calc(100svh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.contact-page h2 { font-size: clamp(28px, 3.2vw, 44px); font-variation-settings: "wdth" 118; font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 14px; }
.contact-page p { margin: 0 0 20px; color: var(--muted); }
.contact-page .form { margin-bottom: 20px; }
.about h2 { font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.about h2 strong { font-weight: 800; margin-right: 6px; }
.about p { margin: 0 0 22px; color: var(--muted); }
.skills { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.skills li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.skills button { font-weight: 700; text-align: left; }
.skills button[aria-pressed="true"] { color: var(--accent); }
.skills span { color: var(--muted); font-size: 13px; }
.contact { display: flex; gap: 10px; }
.contact a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--fg); background: rgba(7, 9, 11, 0.2); box-shadow: inset 0 0 0 1px rgba(246, 242, 238, 0.3);
  transition: color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.contact a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.contact svg { width: 18px; height: 18px; fill: currentColor; }
.form { display: grid; gap: 8px; }
.form input, .form textarea { text-shadow: none; font: inherit; font-size: 14px; color: var(--fg); background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(246, 242, 238, 0.45); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--accent); }
.form-row { display: flex; align-items: center; gap: 12px; }
.form button[type="submit"] { text-shadow: none; background: var(--fg); color: #111; font-weight: 700; padding: 9px 18px; border-radius: 999px; }
.form button[disabled] { opacity: 0.5; cursor: progress; }
.form-status { margin: 0; font-size: 13px; color: var(--muted); }
.ts:empty { display: none; }
.about .about-guide { margin: -8px 0 0; font-size: 13px; }

.sound { position: absolute; right: var(--pad); bottom: calc(var(--pad) - 6px); width: 30px; height: 30px; color: var(--fg); }
.sound svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] .off { display: none; }

.lab { position: absolute; top: calc(var(--pad) - 6px); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); font-size: 12px; z-index: 6; }
.lab[hidden] { display: none; }
.lab span { padding: 0 6px; color: var(--muted); }
.lab button { padding: 6px 10px; border-radius: 999px; }
.lab button[aria-pressed="true"] { background: var(--fg); color: #000; }
.lab label { padding: 0 8px; color: var(--muted); display: flex; gap: 4px; align-items: center; }

.is-contact .stage, .is-contact .cats, .is-contact .pager, .is-about .stage, .is-about .cats, .is-about .pager, .is-open .cats, .is-open .pager, .is-open .hint { opacity: 0; pointer-events: none; }
.is-open.is-reel .cats, .is-open.is-reel .pager { opacity: 1; pointer-events: auto; }
.stage, .pager, .cats { transition: opacity 0.5s var(--ease); }
.stage > * { transition: opacity 0.5s var(--ease); }

@media (max-width: 899px) {
  .hint { display: none; }
  .cats { width: 180px; height: 62px; }
  .about, .contact-page { top: 172px; bottom: calc(var(--pad) + 40px); transform: none; width: auto; right: var(--pad); max-height: none; padding-right: 2px; }
  .contact-page h2 { font-size: 30px; }
  .contact-page p { margin-bottom: 14px; font-size: 14px; }
  .info { bottom: auto; top: calc(var(--pad) + 44px); width: auto; right: var(--pad); }
  .cats-drum > * { font-size: 15px; }
  .count { font-size: 13px; }
  .tags li { font-size: 12px; padding: 5px 8px; }
  .info::before { inset: -240px calc(-1 * var(--pad)) -56px; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(180deg, rgba(7, 9, 11, 0.4), rgba(7, 9, 11, 0.34) calc(100% - 90px), rgba(7, 9, 11, 0)); }
}
@media (max-width: 899px) and (min-height: 760px) {
  .info { font-size: 15px; }
}
@media (pointer: coarse) {
  .contact a { width: 44px; height: 44px; }
}
@media (max-width: 899px) and (max-height: 759px) {
  .is-reel .cats { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.pl-windows { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; display: none; }
.pl-active .pl-windows { display: block; }
.pl-outline { position: absolute; opacity: 0; }
.win { position: absolute; visibility: hidden; border: 1px solid rgba(232, 217, 198, 0.42); border-radius: 8px; overflow: hidden; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6); }
.win-bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; background: #151515; font-size: 11px; color: rgba(246, 242, 238, 0.72); white-space: nowrap; overflow: hidden; }
.win-bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 242, 238, 0.28); }
.win-bar span { margin-left: 6px; }
.win-bar em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; opacity: 0.5; }
.win-body { position: absolute; inset: 22px 0 0; }
.win-flash { position: absolute; inset: 0; background: #efe4d6; }

/* guide */
.guide { position: fixed; inset: 0; z-index: 6; touch-action: none; }
.guide-win .win-bar em { opacity: 0.85; color: var(--accent); }
.guide.is-free { pointer-events: none; }
.guide.is-free .guide-win { pointer-events: auto; }
.guide-win:focus { outline: none; }
.guide-spot { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide-win { visibility: visible; will-change: transform, opacity; background: rgba(10, 12, 14, 0.38); }
.guide-body { position: absolute; inset: 22px 0 0; overflow: hidden; border-top: 1px solid rgba(232, 217, 198, 0.14);
  background: linear-gradient(160deg, rgba(246, 242, 238, 0.09), rgba(246, 242, 238, 0) 38%), repeating-linear-gradient(0deg, rgba(246, 242, 238, 0.035) 0 1px, transparent 1px 12px), linear-gradient(180deg, rgba(10, 12, 14, 0.8), rgba(10, 12, 14, 0.92)); }
.guide-title, .guide-text { text-shadow: 0 1px 12px rgba(7, 9, 11, 0.6); }
.guide-in { position: absolute; left: 0; top: 0; padding: 14px 16px 12px; }
.guide-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.02em; line-height: 1.05; }
.guide-text { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.guide-keys { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.guide-keys[hidden] { display: none; }
.guide-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-row .link { font-size: 13px; color: var(--muted); transition: color 0.3s; }
.guide-row .link:hover { color: var(--fg); }
.guide-row .link[hidden] { display: none; }
@media (pointer: coarse) { .guide-row .link { min-height: 44px; padding: 0 4px; } }
