:root {
  --bg: #0a0a0a;
  --panel: #111110;
  --panel2: #191918;
  --ink: #f4f3ef;
  --dim: #8c8b86;
  --dim2: #5c5b57;
  --line: #262624;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  --frame: 48;
  scrollbar-gutter: stable;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.intro-locked { overflow: hidden; height: 100vh; }

.page { max-width: 760px; margin: 0 auto; padding: 0 24px 130px; }

a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

mark {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .84em;
  padding: 1px 6px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- */
/* hero / scroll-lock intro                                          */
/* ---------------------------------------------------------------- */

#intro {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#intro-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-size: 15px; letter-spacing: -.01em; font-weight: 600; }
.brand span { font-family: var(--mono); font-size: 12px; color: var(--dim); }

.tabs { display: flex; gap: 4px; font-family: var(--mono); font-size: 12.5px; }
.tabs a { display: block; padding: 6px 11px; color: var(--dim); text-decoration: none; }
.tabs a:hover { color: var(--ink); }

#ground {
  position: absolute;
  left: 0; right: 0; bottom: 14vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

#cat-stage {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translate(calc(-50% + var(--catX, 0px)), 0) scaleX(var(--facing, 1));
  width: calc(var(--frame) * 1px * 4);
  height: calc(var(--frame) * 1px * 4);
  image-rendering: pixelated;
  background-repeat: no-repeat;
  cursor: pointer;
}

#hero-copy {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
#hero-copy h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(52px, 11vw, 108px);
  line-height: .94;
  letter-spacing: -.03em;
}
#hero-copy p {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 18px;
  color: var(--dim);
}

#hint {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--dim2);
  opacity: 1;
  transition: opacity .4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}
#hint.hidden { opacity: 0; }
#hint .arrow { font-size: 15px; animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

#cat-bubble {
  position: absolute;
  bottom: calc(14vh + var(--frame) * 1px * 4 + 14px);
  left: 50%;
  transform: translate(calc(-50% + var(--catX, 0px)), 8px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 9px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
#cat-bubble.shown { opacity: 1; transform: translate(calc(-50% + var(--catX, 0px)), 0); }

/* ---------------------------------------------------------------- */
/* section chrome + prose                                            */
/* ---------------------------------------------------------------- */

h2.section-head {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: normal;
  letter-spacing: .04em;
  color: var(--dim);
  margin: 96px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

p { margin: 14px 0 0; max-width: 62ch; }

.strap-lede { margin: 44px 0 0; max-width: 58ch; font-size: 18px; color: var(--ink); }

.aside {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  border-left: 2px solid var(--dim2);
  padding: 3px 0 3px 12px;
  margin: 18px 0 0;
  max-width: 55ch;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { border: 1px solid var(--line); color: var(--dim); padding: 1px 7px; font-size: 10.5px; font-family: var(--mono); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  padding: 8px 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- */
/* work -- show, don't tell                                          */
/* ---------------------------------------------------------------- */

.feature { margin-top: 56px; }
.feature:first-of-type { margin-top: 30px; }
.feature video {
  display: block;
  width: 100%;
  background: #060606;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.feature-meta { margin-top: 16px; }
.feature-meta h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.feature-meta p { margin-top: 6px; color: var(--dim); max-width: 56ch; }

.more { margin-top: 64px; display: flex; flex-direction: column; gap: 28px; }
.more-item { display: flex; gap: 18px; align-items: flex-start; }
.more-item img {
  width: 128px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex: none;
  background: #060606;
}
.more-item .stat {
  width: 128px;
  aspect-ratio: 4 / 3;
  flex: none;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.more-item .stat span { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.more-item .stat small { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .04em; }
.more-meta h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.more-meta p { margin-top: 5px; color: var(--dim); font-size: 15px; max-width: 50ch; }
.more-item.text-only .more-meta { max-width: 56ch; }
.more-item .actions { margin-top: 10px; }

/* ---------------------------------------------------------------- */
/* contact list                                                      */
/* ---------------------------------------------------------------- */

.kv { font-family: var(--mono); font-size: 13px; margin-top: 18px; }
.kv .row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.kv .row:last-child { border-bottom: 0; }
.kv .row i { font-style: normal; width: 84px; flex: none; color: var(--dim); }
.kv .row a { color: var(--ink); }
.kv .row a:hover, .kv .row button.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kv .row em { font-style: normal; margin-left: auto; color: var(--dim); font-size: 11px; }
.kv .row button.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

/* ---------------------------------------------------------------- */
/* footer -- the cat sleeps here                                     */
/* ---------------------------------------------------------------- */

footer {
  margin-top: 100px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer .foot-text { font-family: var(--mono); font-size: 11.5px; color: var(--dim); max-width: 46ch; }
#footer-cat {
  width: calc(var(--frame) * 1px * 2.2);
  height: calc(var(--frame) * 1px * 2.2);
  flex: none;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  transform: scaleX(-1);
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .page { padding: 0 16px 100px; }
  h2.section-head { margin-top: 72px; }
  .more-item { flex-direction: column; }
  .more-item img, .more-item .stat { width: 100%; aspect-ratio: 16 / 9; }
  footer { flex-direction: column-reverse; align-items: flex-start; }
}
