/* Catgirl LLC · catgirl.ltd */

/* Fonts (self-hosted: Fraunces, Nunito, DM Mono, all SIL Open Font License) */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/DMMono-normal-400.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;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/DMMono-normal-500.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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Fraunces-italic-300-900.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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/Fraunces-normal-300-900.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;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/Nunito-italic-400-900.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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/Nunito-normal-400-900.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FCF4E6;
  --ink: #2B2623;
  --muted: #6E6058;
  --line: rgba(43, 38, 35, 0.14);
  --card: #FFFBF3;
  --shadow: rgba(92, 62, 38, 0.2);

  --orange: #EE8A2E;  --orange-ink: #A9500F;
  --pink: #F3A6B8;    --pink-ink: #A83F63;
  --green: #8DB57A;   --green-ink: #43703A;
  --gold: #F8C25C;    --gold-ink: #8A5F08;
  --lilac: #C8B6E6;   --lilac-ink: #6A519B;

  --ring-a: rgba(201, 100, 26, 0.42);
  --ring-b: rgba(201, 94, 124, 0.42);
  --ring-c: rgba(84, 130, 70, 0.42);
  --ring-code: rgba(201, 100, 26, 0.6);

  --wash-1: rgba(247, 172, 96, 0.42);
  --wash-2: rgba(243, 166, 184, 0.4);
  --wash-3: rgba(141, 181, 122, 0.36);
  --wash-4: rgba(200, 182, 230, 0.45);

  --paw: rgba(110, 96, 88, 0.22);
  --grain-opacity: 0.32;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-105 -128 210 232'%3E%3Cpath d='M -97.7,-21.3 L -76.6,-118.2 Q -75.2,-124.8 -69.3,-121.5 L -24.9,-96.9 Z M 97.7,-21.3 L 76.6,-118.2 Q 75.2,-124.8 69.3,-121.5 L 24.9,-96.9 Z'/%3E%3Ccircle r='100'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1622; --ink: #FBF1DC; --muted: #C7B7AA; --line: rgba(251, 241, 220, 0.14);
    --card: #272031; --shadow: rgba(0, 0, 0, 0.5);
    --orange-ink: #F7A65A; --pink-ink: #F6A9BD; --green-ink: #A8D493; --gold-ink: #FFD27A; --lilac-ink: #CDB9F2;
    --ring-a: rgba(247, 166, 90, 0.5); --ring-b: rgba(246, 169, 189, 0.5); --ring-c: rgba(168, 212, 147, 0.45);
    --ring-code: rgba(251, 241, 220, 0.8);
    --wash-1: rgba(247, 150, 70, 0.16); --wash-2: rgba(243, 140, 175, 0.15); --wash-3: rgba(130, 190, 120, 0.13); --wash-4: rgba(180, 150, 240, 0.17);
    --paw: rgba(251, 241, 220, 0.16); --grain-opacity: 0.14;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1622; --ink: #FBF1DC; --muted: #C7B7AA; --line: rgba(251, 241, 220, 0.14);
  --card: #272031; --shadow: rgba(0, 0, 0, 0.5);
  --orange-ink: #F7A65A; --pink-ink: #F6A9BD; --green-ink: #A8D493; --gold-ink: #FFD27A; --lilac-ink: #CDB9F2;
  --ring-a: rgba(247, 166, 90, 0.5); --ring-b: rgba(246, 169, 189, 0.5); --ring-c: rgba(168, 212, 147, 0.45);
  --ring-code: rgba(251, 241, 220, 0.8);
  --wash-1: rgba(247, 150, 70, 0.16); --wash-2: rgba(243, 140, 175, 0.15); --wash-3: rgba(130, 190, 120, 0.13); --wash-4: rgba(180, 150, 240, 0.17);
  --paw: rgba(251, 241, 220, 0.16); --grain-opacity: 0.14;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}
/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.nowrap { white-space: nowrap; }
.mew { color: var(--orange-ink); font-weight: 800; white-space: nowrap; }
kbd {
  font: 500 0.85em var(--mono);
  padding: 1px 7px;
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--card);
}
:focus-visible { outline: 3px dashed var(--orange-ink); outline-offset: 4px; border-radius: 6px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hue-ink, var(--orange-ink));
}
.kicker::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--hue, var(--orange));
  -webkit-mask: var(--cat) center / contain no-repeat;
  mask: var(--cat) center / contain no-repeat;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.55; }

/* ---------- Night sky ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
:root[data-theme="dark"] .sky { opacity: 1; }
.star {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #FBF1DC;
  opacity: 0.7;
  animation: twinkle var(--d) ease-in-out infinite;
  animation-delay: var(--dl);
}
@keyframes twinkle { 50% { opacity: 0.15; transform: scale(0.6); } }
.shoot {
  position: absolute;
  top: 14%;
  left: 78%;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FBF1DC, rgba(251, 241, 220, 0));
  transform: rotate(-22deg);
  opacity: 0;
  animation: shoot 11s linear infinite 3s;
}
@keyframes shoot {
  0%, 90% { opacity: 0; translate: 0 0; }
  91% { opacity: 1; }
  100% { opacity: 0; translate: -300px 120px; }
}

/* ---------- Buttons with ears ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font: 800 1.05rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--pink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.6s ease, color 0.6s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pink); }
.btn-small { padding: 9px 15px; border-radius: 11px; font-size: 0.92rem; box-shadow: 4px 4px 0 var(--pink); }
.eared::before, .eared::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 17px;
  height: 14px;
  background: inherit;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
}
.eared::before { left: 12px; transform: rotate(-10deg); }
.eared::after { right: 12px; transform: rotate(10deg); }
.eared:hover::before { animation: twitch-l 0.5s ease; }
.eared:hover::after { animation: twitch-r 0.5s ease 0.08s; }
@keyframes twitch-l { 30% { transform: rotate(-28deg); } 60% { transform: rotate(-4deg); } }
@keyframes twitch-r { 30% { transform: rotate(26deg); } 60% { transform: rotate(4deg); } }

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 10px;
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 680 1.32rem/1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand svg { width: 42px; height: 42px; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover svg { transform: rotate(-12deg) scale(1.08); }
.topnav { display: flex; align-items: center; gap: 22px; font-weight: 800; }
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline wavy var(--orange); text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  min-height: min(calc(100vh - 80px), 860px);
  padding-top: 24px;
  padding-bottom: 32px;
}
.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 6.6rem);
  font-weight: 650;
  line-height: 0.95;
  margin: 0 0 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--orange-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero .lede { max-width: 30em; }
.hint { color: var(--muted); max-width: 30em; }
.h-tap { display: none; }
@media (hover: none) { .h-click { display: none; } .h-tap { display: inline; } }

.planet-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pn::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--c);
  -webkit-mask: var(--cat) center / contain no-repeat;
  mask: var(--cat) center / contain no-repeat;
}
.pn:hover { transform: translateY(-2px) rotate(-1.5deg); border-color: var(--c); }
.pn-code { --c: var(--orange); }
.pn-key { --c: var(--pink); }
.pn-box { --c: var(--green); }
.pn-rock { --c: var(--lilac); }
.pn-rock::before { -webkit-mask: none; mask: none; border-radius: 45% 55% 50% 50%; }

.system-wrap { position: relative; }
.note {
  position: absolute;
  left: 2%;
  top: 4%;
  z-index: 7;
  margin: 0;
  font: italic 500 1.12rem/1 var(--serif);
  color: var(--muted);
  transform: rotate(-7deg);
  pointer-events: none;
}
.note svg { display: block; width: 76px; margin: 2px 0 0 52px; }
.system {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 1000 / 820;
}
@media (min-width: 1240px) {
  .system { width: 112%; margin: 0 -12% 0 0; }
}
.rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
}
.rings-back { z-index: 1; }
.rings-front { z-index: 4; }
.ring { fill: none; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 0 16; }
.ring-a { stroke: var(--ring-a); }
.ring-b { stroke: var(--ring-b); }
.ring-c { stroke: var(--ring-c); }

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sun svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sun:focus-visible { outline-offset: -14%; border-radius: 50%; }
.sun .corona, .sun .rays, .sun .ear, .sun .lids { transform-box: fill-box; transform-origin: center; }
.sun .corona { animation: pulse 5s ease-in-out infinite; }
.sun .rays { animation: spin 80s linear infinite; }
.sun .ear { transition: transform 0.25s ease; }
.sun .ear-l { transform-origin: 80% 100%; }
.sun .ear-r { transform-origin: 20% 100%; }
.sun:hover .ear-l { transform: rotate(-9deg); }
.sun:hover .ear-r { transform: rotate(9deg); }
.lids { transition: transform 0.07s ease; }
.blink .lids { transform: scaleY(0.12); }
.sun .eyes-happy, .sun .eyes-shut, .sun .zzz { display: none; }
.sun.happy .eyes-open { display: none; }
.sun.happy .eyes-happy { display: inline; }
:root[data-theme="dark"] .sun .eyes-open { display: none; }
:root[data-theme="dark"] .sun .eyes-shut, :root[data-theme="dark"] .sun .zzz { display: inline; }
:root[data-theme="dark"] .sun.happy .eyes-shut { display: none; }
:root[data-theme="dark"] .sun.happy .eyes-happy { display: inline; }
:root[data-theme="dark"] .sun .corona { opacity: 0.55; }
.zzz text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  fill: var(--muted);
  opacity: 0;
  animation: zz 3.6s ease-in-out infinite;
}
.zzz text:nth-child(2) { animation-delay: 0.6s; }
.zzz text:nth-child(3) { animation-delay: 1.2s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px); } }
@keyframes pulse { 50% { transform: scale(1.07); opacity: 0.8; } }
@keyframes spin { to { transform: rotate(360deg); } }

.bubble {
  position: absolute;
  left: 61%;
  top: 9%;
  z-index: 8;
  padding: 8px 13px;
  border-radius: 16px 16px 16px 4px;
  background: var(--card);
  box-shadow: 0 10px 24px -10px var(--shadow), 0 0 0 1.5px var(--line);
  font: italic 600 1.05rem/1.2 var(--serif);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transform-origin: 0 100%;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.bubble.show { opacity: 1; transform: none; }

.planet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 22%;
  aspect-ratio: 1;
  color: var(--ink);
  text-decoration: none;
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
html:not(.js) .planet { left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.planet svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.planet:hover svg, .planet:focus-visible svg { transform: scale(1.14) rotate(-5deg); }
.planet:focus-visible { outline: none; }
.planet:focus-visible .plabel { outline: 3px dashed var(--orange-ink); outline-offset: 3px; }
.plabel {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translateX(-50%);
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1.5px var(--line), 0 6px 14px -8px var(--shadow);
  font: 500 clamp(10px, 1.25vw, 13px)/1.1 var(--mono);
  white-space: nowrap;
  transition: transform 0.25s ease;
}
.planet:hover .plabel { transform: translateX(-50%) translateY(4px); }
.show-xs { display: none; }
.pring { fill: none; stroke: var(--ring-code); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 25; }
.rock-q { font: 700 64px var(--serif); fill: #5B468A; opacity: 0.8; }
.planet-rock { width: 13%; }
.planet-rock .plabel { top: 78%; }

.heart, .mini {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 8;
  pointer-events: none;
}
.heart { color: #F07A98; font-size: 20px; line-height: 1; animation: heart 1.15s ease-out forwards; }
@keyframes heart {
  from { transform: translate(-50%, 0) scale(0.5); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), -110px) scale(1.25); opacity: 0; }
}
.mini { top: 50%; width: 26px; height: 26px; animation: burst 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.mini svg { width: 100%; height: 100%; overflow: visible; }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Paw prints ---------- */
.pawtrail {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 36px);
  padding: 6px 0;
  color: var(--paw);
}
.pawtrail svg { width: 22px; height: 22px; fill: currentColor; transform: rotate(90deg); }
.pawtrail svg:nth-child(odd) { translate: 0 -11px; }
.pawtrail-r svg { transform: rotate(-90deg); }
html.js .pawtrail svg { opacity: 0; }
html.js .pawtrail.walk svg { animation: step 0.35s ease forwards; animation-delay: calc(var(--i) * 150ms); }
.pawtrail-r.walk svg { animation-delay: calc((7 - var(--i)) * 150ms) !important; }
@keyframes step { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }

/* ---------- Product worlds ---------- */
.s-code { --hue: var(--orange); --hue-ink: var(--orange-ink); --wa: var(--wash-1); --wb: var(--wash-2); --ring-w: var(--ring-code); }
.s-key { --hue: var(--pink); --hue-ink: var(--pink-ink); --wa: var(--wash-2); --wb: var(--wash-4); --ring-w: var(--ring-b); }
.s-box { --hue: var(--green); --hue-ink: var(--green-ink); --wa: var(--wash-3); --wb: var(--wash-1); --ring-w: var(--ring-c); }
.s-rock { --hue: var(--lilac); --hue-ink: var(--lilac-ink); }
.s-company { --hue: var(--gold); --hue-ink: var(--gold-ink); }

.world-section { padding: 56px 0 64px; scroll-margin-top: 12px; }
.world-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.flip .world-art { order: 2; }
.world-art { position: relative; display: grid; place-items: center; }
.world {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  height: auto;
  overflow: visible;
  animation: bob 8s ease-in-out infinite;
}
.world.boop { animation: boop 0.8s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes boop { 0% { transform: scale(1); } 35% { transform: scale(1.1) rotate(-4deg); } 70% { transform: scale(0.97) rotate(1deg); } 100% { transform: none; } }
.wring { fill: none; stroke: var(--ring-w); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 24; }

.wash { position: absolute; inset: -6% -4%; z-index: 0; pointer-events: none; }
.wash i {
  position: absolute;
  display: block;
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
  filter: blur(26px);
}
.wash i:nth-child(1) { left: 6%; top: 10%; width: 66%; height: 70%; background: var(--wa); }
.wash i:nth-child(2) { right: 2%; bottom: 4%; width: 52%; height: 50%; background: var(--wb); border-radius: 44% 56% 38% 62% / 55% 45% 55% 45%; }
.wash i:nth-child(3) { left: 30%; top: 0; width: 34%; height: 30%; background: var(--wa); opacity: 0.7; }

.world-text h2 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin-bottom: 14px; }
.status { margin: 0 0 18px; }
.sticker {
  display: inline-block;
  padding: 8px 13px 7px;
  border: 1.5px dashed var(--hue-ink);
  border-radius: 999px;
  background: var(--card);
  background: color-mix(in srgb, var(--hue) 18%, var(--card));
  color: var(--hue-ink);
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}
.motto {
  font: italic 560 1.5rem/1.2 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--hue-ink);
  margin: -4px 0 12px;
}
.feats { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; }
.feats li { position: relative; padding-left: 30px; color: var(--muted); }
.feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  background: var(--hue);
  -webkit-mask: var(--cat) center / contain no-repeat;
  mask: var(--cat) center / contain no-repeat;
}
.kao { color: var(--ink); white-space: nowrap; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips span {
  padding: 6px 11px 5px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: 500 12.5px/1.2 var(--mono);
}
.fine { font-size: 0.9rem; color: var(--muted); }

/* ---------- Space rocks ---------- */
.ideas { padding: 72px 0 48px; }
.ideas-head { max-width: 640px; }
.ideas-head h2, .company h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 16px; }
.rocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}
.rock {
  display: block;
  padding: 18px 18px 8px;
  border-radius: 28px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.rock svg { width: 150px; height: auto; overflow: visible; animation: drift 9s ease-in-out infinite; }
.rock:nth-child(2) svg { animation-duration: 11s; animation-delay: -4s; }
.rock:nth-child(3) svg { animation-duration: 10s; animation-delay: -7s; }
@keyframes drift { 33% { transform: translate(4px, -8px) rotate(5deg); } 66% { transform: translate(-5px, -3px) rotate(-4deg); } }
.rock h3 { font-size: 1.45rem; margin: 10px 0 8px; }
.rock p { color: var(--muted); margin: 0 auto 10px; max-width: 22em; }
.rock-empty svg path { fill: none; stroke: var(--lilac-ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 11; }
.rock-empty .rock-q { fill: var(--lilac-ink); }
.rock-empty:hover { background: var(--wash-4); }
.rock-empty h3 { text-decoration: underline wavy var(--lilac); text-underline-offset: 6px; }

/* ---------- Company ---------- */
.company { padding: 72px 0 88px; scroll-margin-top: 12px; }
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.company-text > p:not(.kicker) { max-width: 34em; }
.company-text > p:not(.kicker):not(.lede) { color: var(--muted); }
.hello { margin-top: 34px; scroll-margin-top: 24px; }
.hello h3 { font-size: 1.7rem; margin-bottom: 8px; }
.hello p { color: var(--muted); }
.hello .btn { margin-top: 12px; }

.idcard-wrap { padding: 24px 8px; }
.idcard {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 26px 18px;
  border-radius: 24px;
  background: var(--card);
  filter: drop-shadow(0 18px 26px var(--shadow)) drop-shadow(0 0 1px var(--line));
  transform: rotate(2.2deg);
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.idcard:hover { transform: rotate(-0.8deg) translateY(-4px); }
.idcard::before, .idcard::after {
  content: "";
  position: absolute;
  top: -30px;
  width: 50px;
  height: 40px;
  background: var(--card);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
}
.idcard::before { left: 26px; transform: rotate(-12deg); }
.idcard::after { right: 26px; transform: rotate(12deg); }
.idcard:hover::before { animation: twitch-l 0.55s ease; }
.idcard:hover::after { animation: twitch-r 0.55s ease 0.1s; }
.hole {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 46px;
  height: 9px;
  border-radius: 9px;
  background: var(--bg);
  transform: translateX(-50%);
  box-shadow: inset 0 1px 2px var(--shadow);
}
.id-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 16px;
  border-bottom: 2px dashed var(--line);
}
.id-mark { width: 58px; height: 58px; flex: none; }
.id-title { margin: 0; font: 700 1.55rem/1.1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; }
.id-sub { margin: 4px 0 0; font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stamp {
  position: absolute;
  right: -4px;
  top: 2px;
  padding: 7px 9px;
  border: 2.5px solid currentColor;
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3.5px currentColor;
  color: var(--pink-ink);
  font: 500 11.5px/1.15 var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-13deg);
  opacity: 0.78;
}
.idcard dl { display: grid; gap: 9px; margin: 16px 0 14px; }
.idcard dl div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.idcard dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.idcard dd { margin: 0; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.idcard dd a { text-decoration-color: var(--pink); text-underline-offset: 3px; }
.id-foot {
  margin: 0;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.22em;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.foot { padding: 28px 0 44px; border-top: 2px dashed var(--line); font-size: 0.95rem; }
.foot-inner { display: flex; align-items: center; gap: 16px; }
.foot svg { width: 40px; height: 40px; flex: none; }
.foot p { margin: 0; }
.foot .muted { color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; gap: 8px; }
  .hero { min-height: 0; }
  .hero-text { display: contents; }
  .hero .kicker { order: 1; justify-self: start; }
  .hero h1 { order: 2; margin-bottom: 18px; }
  .hero .lede { order: 3; }
  .system-wrap { order: 4; margin: -16px -16px 0; }
  .hint { order: 5; }
  .planet-nav { order: 6; }
  .system { width: 100%; max-width: 600px; margin: 0 auto; }
  .note { display: none; }
  .world-grid, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flip .world-art { order: 0; }
  .world { width: min(100%, 380px); }
  .rocks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rock svg { width: 120px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .topnav { gap: 12px; }
  .brand { font-size: 1.15rem; }
  .brand svg { width: 36px; height: 36px; }
  .hero { padding-top: 30px; }
  .sun { width: 38%; }
  .planet { width: 26%; }
  .planet-rock { width: 16%; }
  .plabel { font-size: 10px; padding: 4px 7px 3px; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .world-section { padding: 36px 0 44px; }
  .bubble { font-size: 0.95rem; left: 58%; top: 4%; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .pawtrail svg { opacity: 1; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* The cat in the box blinks every few seconds (it lives in <defs>, so this has to be a CSS animation) */
#b-box .lids { transform-box: fill-box; transform-origin: center; animation: blink-cycle 5.5s infinite; }
@keyframes blink-cycle { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
