/* =============================================================
   MIAOU — a wonderland for cat people
   hand-written CSS, no frameworks
   ============================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

img,
svg { display: block; }

img { max-width: 100%; }

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

/* ---------- tokens ---------- */
:root {
  --bg: #09090f;
  --bg-2: #0e0e18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #13131f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f2ef;
  --muted: #a7a2b6;
  --muted-2: #7d7890;
  --accent: #ff7a59;
  --accent-2: #8b7bff;
  --accent-3: #5eead4;
  --gold: #ffd166;
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 18px 50px -22px rgba(0, 0, 0, 0.6);
  --radius: 26px;
  --radius-sm: 16px;
  --ring: 0 0 0 3px rgba(255, 122, 89, 0.35);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #fbf6ef;
  --bg-2: #f4ece2;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.85);
  --surface-solid: #fffaf4;
  --line: rgba(43, 30, 20, 0.12);
  --line-strong: rgba(43, 30, 20, 0.22);
  --text: #241a16;
  --muted: #6c6058;
  --muted-2: #8b8078;
  --accent: #f2643f;
  --accent-2: #6d5be8;
  --accent-3: #0f9e8c;
  --gold: #d99a17;
  --shadow: 0 26px 70px -30px rgba(74, 46, 27, 0.4);
  --shadow-soft: 0 18px 44px -24px rgba(74, 46, 27, 0.35);
  --ring: 0 0 0 3px rgba(242, 100, 63, 0.28);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.container {
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #140a06;
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 14px rgba(255, 122, 89, 0.7);
}

/* ---------- ambient background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(139, 123, 255, 0.16), transparent 55%),
    radial-gradient(90% 70% at 100% 10%, rgba(94, 234, 212, 0.1), transparent 55%),
    radial-gradient(90% 70% at 0% 30%, rgba(255, 122, 89, 0.12), transparent 55%);
}
html[data-theme="light"] .aurora {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(109, 91, 232, 0.16), transparent 55%),
    radial-gradient(90% 70% at 100% 10%, rgba(15, 158, 140, 0.12), transparent 55%),
    radial-gradient(90% 70% at 0% 30%, rgba(242, 100, 63, 0.16), transparent 55%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob--1 {
  width: 46vw; height: 46vw;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.55), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob--2 {
  width: 42vw; height: 42vw;
  top: 18vh; right: -16vw;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.5), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob--3 {
  width: 38vw; height: 38vw;
  bottom: -16vw; left: 32vw;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.38), transparent 65%);
  animation: drift3 30s ease-in-out infinite alternate;
}
html[data-theme="light"] .blob { opacity: 0.35; }
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, 8vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(5vw, -7vh) scale(1.14); } }

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.13), rgba(139, 123, 255, 0.07) 42%, transparent 68%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* ---------- shared type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.section__sub {
  color: var(--muted);
  max-width: 42ch;
  font-size: 1rem;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.6rem;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff9d6c 55%, var(--gold));
  color: #1b0d07;
  box-shadow: 0 12px 30px -12px rgba(255, 122, 89, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(255, 122, 89, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .btn--primary { color: #fff; }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.85rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* sound icon state */
.ico-sound-off { display: none; }
body.is-muted .ico-sound-on { display: none; }
body.is-muted .ico-sound-off { display: block; }
.ico-sun { display: none; }
html[data-theme="light"] .ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: block; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: 0.9rem;
  transition: padding 0.35s var(--ease), background 0.35s;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-stuck .nav__inner {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 13px;
  color: #1b0d07;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 8px 22px -10px rgba(255, 122, 89, 0.8);
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(6deg) scale(1.05); }
html[data-theme="light"] .brand__mark { color: #fff; }
.brand__dot { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
}
.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.nav__cta { margin-left: 0.35rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav__burger span {
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: min(100% - 3rem, var(--maxw));
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: menuIn 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--muted);
}
.mobile-menu a:not(.btn):hover { background: var(--surface); color: var(--text); }
.mobile-menu .btn { margin-top: 0.4rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.eyebrow__spark {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  color: #1b0d07;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}
html[data-theme="light"] .eyebrow__spark { color: #fff; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.3rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-bottom: 1.5rem;
}
.hero__title em {
  position: relative;
  font-style: normal;
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--accent) 10%, var(--gold) 45%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 2%; right: 0;
  bottom: -0.06em;
  height: 0.09em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.55;
  transform: rotate(-1.5deg);
}

.hero__lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__meta p { font-size: 0.86rem; color: var(--muted); }
.hero__meta strong { color: var(--text); }

.avatars { display: flex; align-items: center; }
.avatars img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: var(--surface-solid);
}
.avatars img:first-child { margin-left: 0; }
.avatars__more {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
}

/* hero visual */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__frame {
  position: relative;
  width: min(100%, 500px);
  padding: 0.7rem;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.32), rgba(139, 123, 255, 0.18) 45%, transparent 70%);
  filter: blur(40px);
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 27px;
  background: var(--surface-solid);
}
.hero__tag {
  position: absolute;
  right: 0.85rem; bottom: 0.8rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(9, 9, 15, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  font-size: 0.74rem;
  line-height: 1.3;
  animation: floaty 5s ease-in-out infinite;
}
.hero__card strong { display: block; font-size: 0.8rem; }
.hero__card span { color: var(--muted); }
.hero__card--purr { left: -1.6rem; bottom: 18%; }
.hero__card--stat {
  right: -1.2rem; top: 14%;
  flex-direction: column;
  gap: 0;
  text-align: center;
  padding: 0.85rem 1.15rem;
  animation-delay: -2.2s;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem !important;
  color: var(--accent) !important;
  line-height: 1;
}
.pulse-dot {
  position: relative;
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
@keyframes floaty {
  50% { transform: translateY(-10px); }
}

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  animation: floaty 6s ease-in-out infinite;
}
.orbit--1 { top: 4%; left: 3%; animation-delay: -1s; }
.orbit--2 { top: 30%; right: -2%; color: var(--gold); animation-delay: -2.4s; }
.orbit--3 { bottom: 3%; right: 40%; animation-delay: -3.6s; }
.orbit--4 { top: 44%; left: -4%; animation-delay: -4.8s; }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 30%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-transform: lowercase;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.8rem 1.6rem;
  background: var(--bg);
  transition: background 0.3s;
}
.stat:hover { background: var(--surface); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip span {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.66rem;
  background: var(--surface-2);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.chip.is-active {
  color: #1b0d07;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-color: transparent;
  font-weight: 700;
}
.chip.is-active span { background: rgba(0, 0, 0, 0.16); color: inherit; }
html[data-theme="light"] .chip.is-active { color: #fff; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease), opacity 0.3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.cat-card.is-hidden { display: none; }

.cat-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  overflow: hidden;
  padding: 0;
}
.cat-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45));
  opacity: 0.7;
  transition: opacity 0.4s;
}
.cat-card__badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  background: rgba(9, 9, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.cat-card__zoom {
  position: absolute;
  right: 0.85rem; bottom: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 9, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.cat-card:hover .cat-card__zoom { opacity: 1; transform: none; }

.cat-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
}
.cat-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cat-card__body p {
  font-size: 0.78rem;
  color: var(--muted);
}
.like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.like:hover { color: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.like svg { transition: fill 0.25s, transform 0.25s var(--ease); }
.like[aria-pressed="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.like[aria-pressed="true"] svg { fill: currentColor; }
.like.is-pop svg { animation: likePop 0.4s var(--ease); }
@keyframes likePop {
  40% { transform: scale(1.5) rotate(-8deg); }
}

.gallery__empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- playground ---------- */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.panel::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.panel--purr::before { background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%); }
.panel--boop::before { background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 24%, transparent), transparent 70%); }
.panel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.panel__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.panel__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  min-height: 7.2em;
  transition: opacity 0.25s, transform 0.25s;
}
.fact.is-swapping { opacity: 0; transform: translateY(8px); }
.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hint {
  font-size: 0.72rem;
  color: var(--muted-2);
}
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.68rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line-strong);
}

.purr {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.purr__cat {
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  flex: none;
  font-size: 2.2rem;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transform-origin: center;
}
.purr__cat.is-purring { animation: purrShake 0.18s linear infinite; }
@keyframes purrShake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1.5px, -1px) rotate(1deg); }
  75% { transform: translate(-1.5px, 1px) rotate(-1deg); }
}
.purr__readout { display: flex; flex-direction: column; }
.purr__readout strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.purr__readout span { font-size: 0.8rem; color: var(--muted); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent);
  transition: transform 0.2s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--accent-2);
}
.range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.panel--purr .btn { align-self: flex-start; margin-top: auto; }

.boop {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  flex: 1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent-3) 16%, transparent), transparent 65%),
    var(--surface-2);
  border: 1px dashed var(--line-strong);
  transition: transform 0.2s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.boop:hover { border-color: var(--accent-3); }
.boop:active { transform: scale(0.97); }
.boop__face {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: transform 0.2s var(--ease);
  white-space: nowrap;
}
.boop.is-booping .boop__face { animation: boopSquish 0.35s var(--ease); }
@keyframes boopSquish {
  40% { transform: scale(1.18, 0.86); }
}
.boop__ring {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-3);
  opacity: 0;
  pointer-events: none;
}
.boop.is-booping .boop__ring { animation: ringOut 0.6s var(--ease); }
@keyframes ringOut {
  from { opacity: 0.8; transform: scale(0.4); }
  to { opacity: 0; transform: scale(2.4); }
}
.boop__count {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.boop__count strong {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.1rem;
}
.panel--boop .hint { text-align: center; margin-top: auto; }

/* ---------- crew ---------- */
.crew {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.crew-card {
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s;
}
.crew-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.crew-card__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  margin-bottom: 1.1rem;
}
.crew-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.crew-card:hover .crew-card__photo img { transform: scale(1.05); }
.crew-card__status {
  position: absolute;
  bottom: 0.7rem; left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  background: rgba(9, 9, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.crew-card__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.crew-card__status--awake i { background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
.crew-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  padding-inline: 0.55rem;
}
.crew-card__role {
  padding-inline: 0.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.crew-card__bio {
  padding-inline: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crew-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-inline: 0.55rem;
}
.crew-card__tags span {
  padding: 0.22rem 0.55rem;
  font-size: 0.66rem;
  color: var(--muted);
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__copy .section__title { max-width: 20ch; margin-bottom: 1.3rem; }
.about__copy > p {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1rem;
}
.about__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.about__points > div {
  padding: 1.1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.about__points span { color: var(--accent); }
.about__points p { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.about__points strong { color: var(--text); font-size: 0.84rem; }

.quote-card {
  position: sticky;
  top: 6.5rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.quote-card__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.6;
}
.quote-card__text {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  margin: 0.4rem 0 1.4rem;
}
.quote-card__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.quote-card__by img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote-card__by strong { display: block; font-size: 0.85rem; }
.quote-card__by span { font-size: 0.72rem; color: var(--muted); }
.quote-card .btn { width: 100%; }

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%),
    linear-gradient(300deg, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
}
.newsletter h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
}
.newsletter p { font-size: 0.84rem; color: var(--muted); }
.newsletter__form {
  display: flex;
  gap: 0.5rem;
  flex: 0 1 430px;
}
.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line-strong);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.newsletter__form input::placeholder { color: var(--muted-2); }
.newsletter__form input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.newsletter__form input.is-invalid { border-color: #ff5d5d; }

/* ---------- footer ---------- */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
}
.footer__brand p {
  max-width: 34ch;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 0.4rem 1.4rem;
}
.footer__links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* ---------- dock ---------- */
.dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: dockIn 0.8s var(--ease) 1s both;
}
@keyframes dockIn { from { opacity: 0; transform: translateY(20px); } }
.dock__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.dock__btn:hover { color: var(--text); background: var(--surface-2); transform: scale(1.06); }
.dock__btn::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  padding: 0.32rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.dock__btn:hover::after { opacity: 1; transform: translateY(-50%); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 4.5rem 2rem 2rem;
  background: rgba(6, 6, 12, 0.82);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 88vh;
  min-width: 0;
}
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
  animation: zoomIn 0.4s var(--ease);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } }
.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
  color: #f6f2ef;
  font-size: 0.9rem;
}
.lightbox__figure figcaption strong { font-size: 1.1rem; }
.lightbox__figure figcaption span { color: #b8b2c8; }
.lightbox__counter { margin-left: 0.4rem; font-size: 0.74rem !important; opacity: 0.7; }
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; }

/* ---------- command palette ---------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: start center;
  padding: 14vh 1.5rem 2rem;
  background: rgba(6, 6, 12, 0.6);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.palette[hidden] { display: none; }
.palette__box {
  width: min(100%, 560px);
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: paletteIn 0.3s var(--ease);
}
@keyframes paletteIn { from { opacity: 0; transform: translateY(-12px) scale(0.98); } }
.palette__search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.palette__search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 0.98rem;
}
.palette__search kbd { font-size: 0.62rem; }
.palette__list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}
.palette__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.palette__item .pi-icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 0.85rem;
}
.palette__item strong { display: block; color: var(--text); font-size: 0.87rem; font-weight: 600; }
.palette__item span { font-size: 0.72rem; }
.palette__item.is-active,
.palette__item:hover { background: var(--surface-2); color: var(--text); }
.palette__item.is-active { box-shadow: inset 2px 0 0 var(--accent); }
.palette__empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.palette__hint {
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted-2);
}

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 170;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: toastIn 0.4s var(--ease);
}
.toast.is-out { animation: toastOut 0.35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* ---------- paw confetti ---------- */
.paw {
  position: fixed;
  z-index: 180;
  pointer-events: none;
  font-size: 1.1rem;
  will-change: transform, opacity;
  animation: pawFly 0.95s var(--ease) forwards;
}
@keyframes pawFly {
  from { opacity: 1; transform: translate(0, 0) scale(0.7) rotate(0); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot)); }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .dock { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero__title { font-size: clamp(2.8rem, 6.4vw, 4.6rem); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .play-grid { grid-template-columns: repeat(2, 1fr); }
  .panel--boop { grid-column: span 2; }
  .panel--boop .boop { min-height: 120px; }
  .about { grid-template-columns: 1fr; }
  .quote-card { position: static; }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8rem;
    text-align: center;
  }
  .hero__copy .eyebrow { margin-inline: auto; }
  .hero__title { font-size: clamp(3rem, 10vw, 5rem); }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
  .hero__visual { margin-top: 1rem; }
  .hero__frame { width: min(100%, 420px); }
  .hero__card--purr { left: -0.5rem; }
  .hero__card--stat { right: -0.5rem; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .crew { grid-template-columns: 1fr; }
  .crew-card__photo { aspect-ratio: 16 / 9; }
  .about__points { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; align-items: stretch; }
  .newsletter__form { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 2rem); }
  .nav__inner { padding-left: 0.7rem; gap: 0.6rem; }
  .brand__text { font-size: 1rem; }
  .nav__cta { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { padding-top: 7rem; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__card--purr { left: -0.2rem; bottom: 12%; }
  .hero__card--stat { right: -0.2rem; }
  .orbit { width: 38px; height: 38px; font-size: 0.95rem; }
  .stats { border-radius: 18px; }
  .stat { padding: 1.3rem 1.1rem; }
  .gallery { grid-template-columns: 1fr; gap: 1rem; }
  .play-grid { grid-template-columns: 1fr; }
  .panel--boop { grid-column: auto; }
  .filters { gap: 0.4rem; }
  .chip { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .lightbox { padding: 4.5rem 1rem 1rem; gap: 0.2rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__figure figcaption { flex-wrap: wrap; text-align: center; }
  .dock { right: 0.7rem; bottom: 0.7rem; flex-direction: row; }
  .dock__btn::after { display: none; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .section__title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero__card { font-size: 0.68rem; padding: 0.55rem 0.75rem; }
  .hero__stat-num { font-size: 1.2rem !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .cursor-glow { display: none; }
}

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
