@font-face { font-family: Lexend; src: url(assets/Lexend-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lexend; src: url(assets/Lexend-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --ink: #050505;
  --white: #f4f1ec;
  --pink: #e80ade;
  --blue: #0c9ce5;
  --muted: rgba(244, 241, 236, .6);
  --gutter: 6vw;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--white);
  font-family: Lexend, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
.ready #gl { opacity: 1; }

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .045;
  background-size: 180px 180px;
}

.scrim {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse 56% 66% at 0% 82%, rgba(3,4,6,.86), rgba(3,4,6,.55) 45%, rgba(3,4,6,0) 80%);
  opacity: var(--scrim, 1);
}
.loader {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  z-index: 20;
  transition: opacity .6s ease;
}
.loader i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pulse 1s ease-in-out infinite alternate; }
.ready .loader { opacity: 0; pointer-events: none; }
@keyframes pulse { from { transform: scale(.5); opacity: .4; } to { transform: scale(1.2); opacity: 1; } }

.scroll-space { position: relative; width: 1px; pointer-events: none; }

/* header */
header.top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  z-index: 10;
  pointer-events: none;
}
header.top > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .1em;
}
.brand img { width: 150px; height: auto; display: block; }
.top-mid { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.top-mid b, .kicker b { color: var(--pink); font-weight: 600; }

.talk, .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff;
  text-decoration: none; font-weight: 600;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s;
}
.talk { font-size: 14px; padding: 12px 20px; }
.cta { font-size: 17px; padding: 16px 28px; margin-top: 30px; }
.talk:hover, .cta:hover { transform: translateY(-2px); background: #ff2bf0; }

/* chapter copy */
.ch {
  position: fixed;
  left: var(--gutter); bottom: 17vh;
  max-width: min(640px, 88vw);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--ty, 24px));
  text-shadow: 0 2px 40px rgba(0, 0, 0, .8);
  will-change: transform, opacity;
}
.ch.on { pointer-events: auto; }
.ch-center {
  left: 50%; top: 50%; bottom: auto;
  width: min(900px, 88vw); max-width: none;
  text-align: center;
  transform: translate(-50%, calc(-50% + var(--ty, 24px)));
}
.kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
h1, h2 { font-weight: 600; letter-spacing: -.045em; line-height: .9; }
h1 { font-size: clamp(64px, 9vw, 140px); }
h2 { font-size: clamp(44px, 6.2vw, 100px); }
.lede { margin-top: 26px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: var(--muted); max-width: 30em; }
.ch-center .lede { margin-inline: auto; }

.stats { display: flex; gap: 44px; margin-top: 30px; }
.stats dt { font-size: 34px; font-weight: 600; color: var(--pink); letter-spacing: -.03em; }
.stats dd { margin: 4px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 15em; line-height: 1.45; }

.try {
  margin-top: 24px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pink);
}
.try::before {
  content: '';
  display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; margin-right: 10px;
  border-radius: 50%; background: var(--pink);
  animation: pulse 1s ease-in-out infinite alternate;
}
.readout {
  display: flex; gap: 30px; margin-top: 22px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.readout b { display: inline-block; min-width: 2.1em; margin-right: 6px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--white); }
.grab, .grab body { cursor: grab; }
.grabbing, .grabbing body { cursor: grabbing; }

blockquote {
  margin-top: 38px; padding-left: 16px;
  border-left: 2px solid var(--pink);
  font-size: 15px; line-height: 1.5; max-width: 28em;
}
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* triangle corner labels, styled like the capabilities deck */
.tri-label {
  position: fixed; left: 0; top: 0;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; color: #000;
  padding: 6px 14px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  cursor: default;
  will-change: transform, opacity;
  transition: background .3s, color .3s, padding .3s;
}
.tri-label.live { pointer-events: auto; }
.tri-label b { font-weight: 600; font-size: 15px; }
.tri-label small {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}
.tri-label.focus { background: var(--pink); color: #fff; padding: 8px 16px; }
.tri-label.focus small { max-height: 20px; opacity: 1; margin-top: 3px; }

/* footer */
footer.bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 24px;
  z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.hint { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; }
.nav { display: flex; gap: 2px; }
.nav button {
  display: flex; gap: 8px; align-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px;
  transition: color .3s;
}
.nav button span { color: rgba(244, 241, 236, .35); transition: color .3s; }
.nav button em { font-style: normal; }
.nav button:hover, .nav button.active { color: var(--white); }
.nav button.active span { color: var(--pink); }
.pct { justify-self: end; font-size: 11px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { position: fixed; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); z-index: 11; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.fps { position: fixed; right: 12px; top: 80px; z-index: 30; font: 12px/1 ui-monospace, monospace; color: #0f0; background: rgba(0,0,0,.6); padding: 6px 8px; }

.fallback { display: none; position: fixed; inset: 0; place-content: center; text-align: center; padding: 20px; z-index: 20; }
.no-webgl .fallback { display: grid; }

@media (pointer: coarse) { .try { display: none; } }
@media (max-width: 900px) {
  .top-mid { display: none; }
  .nav em { display: none; }
}
@media (max-width: 760px) {
  .scrim { background: linear-gradient(to top, rgba(5,5,5,.88), rgba(5,5,5,.5) 38%, rgba(5,5,5,0) 62%); }
  :root { --gutter: 20px; }
  header.top { padding: 18px var(--gutter); }
  .talk { padding: 10px 16px; font-size: 13px; }
  .ch { bottom: 96px; right: var(--gutter); }
  .ch-center { right: auto; }
  .kicker { margin-bottom: 14px; font-size: 11px; }
  .lede { margin-top: 16px; }
  .stats { gap: 28px; margin-top: 20px; }
  .stats dt { font-size: 26px; }
  blockquote { margin-top: 22px; font-size: 14px; }
  footer.bar { grid-template-columns: 1fr; justify-items: center; padding-bottom: 14px; }
  .hint, .pct { display: none; }
}

/* ---------- into the woods ---------- */
html, body { cursor: none; }
a, button, .tri-label { cursor: pointer; }
.grab, .grab body { cursor: none; }
.grabbing, .grabbing body { cursor: none; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 244, 226, .55);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, width .25s, height .25s, margin .25s, border-color .25s;
}
.cursor::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff4e2; }
.cursor.on { opacity: 1; }
.cursor.hide { opacity: 0; }
.cursor.grab { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--pink); }
.cursor.portal { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }

.crew { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.crew b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--white); min-width: 1.2em; text-align: right; transition: color .3s; }
.crew.bump b { color: var(--pink); }
.crew-done { margin-left: 14px; font-style: normal; color: var(--pink); opacity: 0; transition: opacity .6s; }
.crew.done .crew-done { opacity: 1; }
.tri-label { transition: background .3s, color .3s, padding .3s, box-shadow .3s; }
.tri-label.focus { box-shadow: 0 0 40px rgba(232, 10, 222, .6); }
@media (pointer: coarse) { html, body { cursor: auto; } .cursor { display: none; } }
@media (max-width: 1180px) {
  .hint, .pct { display: none; }
  footer.bar { grid-template-columns: 1fr; justify-items: center; }
}

/* ---------- the show: results, project links, the lightbox ---------- */
.results { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; max-width: 34em; }
.results:empty { display: none; }
.results span { font-size: 11px; line-height: 1.35; letter-spacing: .04em; color: var(--muted); max-width: 11em; }
.results b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--pink); }
.more { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--white); text-decoration: none; border-bottom: 1px solid var(--pink); padding-bottom: 2px; }
.more:hover { color: var(--pink); }
#box { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,4,6,.82); backdrop-filter: blur(4px); animation: box-in .3s ease; }
#box[hidden] { display: none; }
.box-inner { width: min(1100px, 100%); animation: box-rise .45s cubic-bezier(.3,1.4,.5,1); }
/* one frame for every picture: 16:9, the picture filling it, a hand-drawn pink frame; no halftone on client work */
.box-inner { width: min(1100px, calc((100vh - 170px) * 16 / 9), 100%); }
.box-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; }
#box-img, #box-vid { display: block; width: 100%; height: 100%; object-fit: cover; }
#box-img[hidden], #box-vid[hidden] { display: none; }
.box-ink { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; overflow: visible; }
.box-ink path { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.box-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.box-bar .kicker { margin-bottom: 6px; }
#box-title { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.box-btns { display: flex; gap: 8px; align-items: center; }
.box-btns button, .box-btns a { font: inherit; font-size: 14px; color: var(--white); background: transparent; border: 1px solid rgba(244,241,236,.35); border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
.box-btns a { background: var(--pink); border-color: var(--pink); color: #000; font-weight: 600; }
.box-btns button:hover { border-color: var(--white); }
@keyframes box-in { from { opacity: 0; } }
@keyframes box-rise { from { transform: translateY(26px) scale(.94); opacity: 0; } }
.now { margin-top: 16px; font-size: 13px; color: var(--white); min-height: 1.4em; } .now b { color: var(--pink); font-weight: 600; } .crew i { font-style: normal; }
.links { display: flex; gap: 18px; align-items: baseline; margin-top: 4px; }
button.more { font: inherit; font-size: 13px; background: none; border: 0; border-bottom: 1px solid var(--pink); color: var(--white); cursor: pointer; padding: 0 0 2px; }
button.more:hover { color: var(--pink); }

.credit { margin-top: 18px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.credit a { color: inherit; }


/* hero: second, smaller paragraph with how to play */
.lede-how { margin-top: 16px; font-size: clamp(14px, 1.05vw, 16px); }

/* the last frame: the portal steps left, the copy sits on the right, right-aligned to the Let's talk button */
.ch-right {
  left: auto; right: var(--gutter); top: 50%; bottom: auto;
  width: min(560px, 88vw); max-width: none;
  text-align: right;
  transform: translateY(calc(-50% + var(--ty, 24px)));
}
.ch-right .lede { margin-left: auto; }
.ch-right blockquote {
  margin-left: auto; padding-left: 0; padding-right: 18px;
  border-left: 0; border-right: 2px solid var(--pink);
  font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; max-width: 26em;
}
.rabbits {
  margin-top: 26px; margin-left: auto; max-width: 30em;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font-size: 13px; line-height: 1.5; color: var(--white);
}
/* the count: a pink rabbit and how many you found, x/3 */
.rabbit-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border: 1.5px solid rgba(232, 10, 222, .75); border-radius: 99px; margin: 0;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.rabbit-badge svg { width: 22px; height: 22px; fill: var(--pink); }
.rabbit-badge b { font-size: 20px; font-weight: 600; }
.rabbit-badge i { font-style: normal; color: var(--muted); font-size: 14px; }
.rabbits.all .rabbit-badge { background: var(--pink); border-color: var(--pink); }
.rabbits.all .rabbit-badge svg { fill: #fff; }
.rabbits.all .rabbit-badge i, .rabbits.all .rabbit-badge b { color: #fff; }
.rabbit-line { text-align: right; }
.rabbits b { color: var(--pink); font-weight: 600; }
.ch-credit { left: var(--gutter); bottom: 64px; margin: 0; }
@media (max-width: 760px) {
  .ch-right { top: auto; bottom: 96px; left: var(--gutter); transform: translateY(var(--ty, 24px)); }
  .ch-right h2 { font-size: 40px; }
  .ch-right .lede { margin-top: 10px; font-size: 14px; }
  .ch-right .cta { margin-top: 14px; padding: 12px 22px; font-size: 15px; }
  .ch-right blockquote { margin-top: 18px; font-size: 14px; }
  .rabbits { margin-top: 14px; font-size: 12px; }
  .ch-credit { bottom: 56px; }
}
.ch-right h2 { font-size: clamp(40px, 5vw, 84px); }
.ch-right .kicker { margin-bottom: 14px; }
.ch-right .lede { margin-top: 18px; }
.ch-right .cta { margin-top: 22px; }
.ch-right blockquote { margin-top: 28px; }

.nowrap { white-space: nowrap; }

/* the rabbit counter, top right under Let's talk, all ride long */
.rabbit-hud { position: fixed; top: 86px; right: var(--gutter); z-index: 20; background: rgba(8, 8, 12, .55); backdrop-filter: blur(6px); pointer-events: none; }
.rabbit-hud.all { background: var(--pink); border-color: var(--pink); }
.rabbit-hud.all svg { fill: #fff; }
.rabbit-hud.all b, .rabbit-hud.all i { color: #fff; }
.rabbit-hud b { color: var(--white); }
.rabbit-hud.bump { animation: rabbit-bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rabbit-bump { 30% { transform: scale(1.18); } }
@media (max-width: 760px) { .rabbit-hud { top: 70px; padding: 4px 10px 4px 6px; } .rabbit-hud b { font-size: 16px; } }

/* the rabbits' surprise: a code for our AI tool, in the lightbox's look */
#reward { position: fixed; inset: 0; z-index: 32; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,4,6,.82); backdrop-filter: blur(4px); animation: box-in .3s ease; }
#reward[hidden] { display: none; }
.reward-card { position: relative; width: min(560px, 100%); background: #0b0b0d; padding: 34px 34px 26px; animation: box-rise .45s cubic-bezier(.3,1.4,.5,1); }
.reward-card .kicker { margin-bottom: 10px; }
.reward-card h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.reward-card h3 span { color: var(--pink); }
.reward-how { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.reward-code { display: flex; align-items: center; gap: 10px; border: 1px dashed rgba(244,241,236,.35); padding: 10px 10px 10px 16px; }
.reward-code code { flex: 1; font: 600 clamp(20px, 2.6vw, 26px)/1 Lexend, system-ui, sans-serif; letter-spacing: .12em; color: var(--white); user-select: all; }
.reward-copy, .reward-inline button { font: inherit; font-size: 13px; font-weight: 600; color: #000; background: var(--white); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.reward-copy:hover { background: #fff; }
.reward-card .cta { margin-top: 20px; }
.reward-fine { color: var(--muted); font-size: 11px; letter-spacing: .08em; margin: 14px 0 0; }
.reward-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; font-size: 18px; color: var(--white); background: transparent;
  border: 1px solid rgba(244,241,236,.35); border-radius: 50%; cursor: pointer; }
.reward-x:hover { border-color: var(--white); }
.reward-inline code { font-weight: 600; letter-spacing: .08em; color: var(--white); user-select: all; }
.reward-inline button { font-size: 11px; padding: 3px 10px; margin-left: 4px; }
.rabbit-line a, .rabbit-line button { pointer-events: auto; }
.rabbit-line a { color: var(--pink); text-decoration: none; }
@media (max-width: 560px) { .reward-card { padding: 28px 20px 22px; } .reward-code { flex-wrap: wrap; } }
