/* Ninjinu. One reference: a studio shot in a black room, a single indigo rim light, smoke on the floor.
   Everything on the page is either the dark, the light, or the dog. */
:root {
  --void: #050507;
  --ink: #0d0c14;
  --rim: #5a48ff;
  --hood: #6b4a9e;
  --smoke: #a7a3bf;
  --bone: #f1eef8;
  --line: rgba(241, 238, 248, 0.14);
  --serif: 'Sentient', Georgia, 'Times New Roman', serif;
  --sans: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(20px, 6vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rim); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bone); color: var(--void); padding: 8px 12px; }
.skip:focus { top: 12px; }

/* buttons: square, thin, a blade rather than a pill */
.btn {
  display: inline-block; font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--rim); color: #fff; border: 1px solid var(--rim); border-radius: 2px; padding: 14px 22px;
  transition: background .2s, box-shadow .2s, color .2s;
}
.btn:hover { box-shadow: 0 0 0 1px var(--rim), 0 0 28px rgba(90, 72, 255, .55); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(241, 238, 248, .35); }
.btn-ghost:hover { border-color: var(--rim); box-shadow: 0 0 22px rgba(90, 72, 255, .35); }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); background: linear-gradient(rgba(5, 5, 7, .75), rgba(5, 5, 7, 0));
}
.mark { font: 500 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.bar { transition: background .3s, backdrop-filter .3s; }
.bar.solid { background: rgba(5, 5, 7, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.bar nav a:not(.btn) { color: var(--smoke); text-decoration: none; }
.bar nav a:not(.btn):hover { color: var(--bone); }
.bar .btn { padding: 10px 16px; font-size: 14px; }

/* hero: the dog in the dark */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.stage { position: absolute; inset: 0; transform-origin: 70% 40%; will-change: transform, filter; }
.still, .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.loop { opacity: 0; transition: opacity 1.2s ease; }
.loop.on { opacity: 1; }
.eyes { position: absolute; inset: 0; background: var(--void); pointer-events: none; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, .82) 0%, rgba(5, 5, 7, .35) 38%, rgba(5, 5, 7, 0) 58%),
    linear-gradient(0deg, var(--void) 0%, rgba(5, 5, 7, 0) 30%);
}
.hero-copy {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(40px, 11vh, 120px); max-width: 46rem;
  opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease;
}
.hero-copy.in { opacity: 1; transform: none; }
.name {
  margin: 0; font: 300 clamp(76px, 12vw, 210px)/.84 var(--serif); letter-spacing: -.04em;
  text-shadow: 0 0 60px rgba(5, 5, 7, .6);
}
.lede { margin: 18px 0 28px; max-width: 30rem; font: italic 300 clamp(19px, 1.9vw, 25px)/1.35 var(--serif); color: var(--bone); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the receipt */
.paid::before { content: ''; position: absolute; left: 0; top: 10%; width: min(1100px, 100%); height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(90, 72, 255, .16), rgba(90, 72, 255, 0)); }
.paid { position: relative; padding: clamp(80px, 14vh, 150px) var(--gut) clamp(60px, 10vh, 110px); }
.label { margin: 0 0 18px; font: 500 15px/1.3 var(--sans); color: var(--smoke); letter-spacing: .02em; }
.count { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: .12em 0; }
.odo { display: inline-flex; font: 300 clamp(68px, 15.5vw, 250px)/.9 var(--serif); letter-spacing: 0; font-variant-numeric: lining-nums; }
.odo .cell { display: inline-block; width: .6em; text-align: center; }
.odo .cell.narrow { width: .27em; }
.odo .cell.tick { animation: tick .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes tick { from { transform: translateY(-.28em); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
.unit { margin-left: .35em; font: 600 clamp(18px, 2.4vw, 34px)/1 var(--sans); letter-spacing: .12em; color: var(--rim); text-shadow: 0 0 24px rgba(90, 72, 255, .6); }
.slash {
  position: absolute; left: -4%; right: -4%; top: 60%; height: 6px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(90, 72, 255, 0), var(--rim) 20%, #fff 50%, var(--rim) 80%, rgba(90, 72, 255, 0));
  box-shadow: 0 0 34px 6px rgba(90, 72, 255, .95), 0 0 8px 2px rgba(255, 255, 255, .8); transform: rotate(-4deg) scaleX(0); transform-origin: 0 50%; opacity: 0;
}
.count.hit .slash { animation: slash .55s cubic-bezier(.7, 0, .2, 1) forwards; }
.count.hit .odo { animation: cut .55s ease-out; }
@keyframes slash { 0% { transform: rotate(-4deg) scaleX(0); opacity: 1; } 40% { transform: rotate(-4deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-4deg) scaleX(1); opacity: 0; } }
@keyframes cut { 0%, 40% { transform: none; filter: none; } 48% { transform: translateX(-.03em) skewX(-4deg); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.just { position: absolute; right: 0; top: -1.6em; font: 500 15px/1 var(--sans); color: var(--bone); opacity: 0; transition: opacity .5s; }
.just.on { opacity: 1; }
.just b { color: var(--rim); font-weight: 600; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr)); gap: 0;
  margin: clamp(36px, 6vh, 64px) 0 0; border-top: 1px solid var(--line);
}
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--smoke); }
.facts dd { margin: 4px 0 0; font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); font-variant-numeric: lining-nums; }
.feed { margin: 22px 0 0; font-size: 14px; color: var(--smoke); }
.feed.bad { color: var(--bone); }
.feed.bad::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--rim); vertical-align: 1px; }
.sound { margin-top: 14px; background: none; border: 1px solid var(--line); color: var(--smoke); font: 500 13px/1 var(--sans); padding: 8px 12px; border-radius: 2px; cursor: pointer; }
.sound[aria-pressed="true"] { color: var(--bone); border-color: var(--rim); }

/* the way he pays: one sentence that lights up as you read it */
.way { padding: clamp(70px, 14vh, 160px) var(--gut); background: linear-gradient(var(--void), var(--ink) 30%, var(--ink) 70%, var(--void)); }
.scroll-line { margin: 0; max-width: 19em; font: 300 clamp(30px, 4.5vw, 66px)/1.13 var(--serif); letter-spacing: -.02em; }
.scroll-line .w { color: rgba(241, 238, 248, .22); transition: color .35s ease; }
.scroll-line .w.lit { color: var(--bone); }
.terms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 40px;
  margin-top: clamp(48px, 8vh, 88px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 72rem;
}
.terms p { margin: 0; color: var(--smoke); font-size: 16px; }

/* sightings: the gallery */
.sights { padding: clamp(70px, 12vh, 130px) var(--gut) clamp(40px, 8vh, 80px); }
.sights-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 5vh, 48px); }
.sights-head h2 { margin: 0; font: 300 clamp(48px, 7vw, 110px)/.9 var(--serif); letter-spacing: -.035em; }
.sights-head p { margin: 0; max-width: 26rem; color: var(--smoke); }
.grid { columns: 3 300px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; position: relative; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; border-radius: 2px; overflow: hidden; }
.shot img, .shot video { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.shot button:hover img, .shot button:hover video { transform: scale(1.025); }
.shot button:focus-visible { outline-offset: 2px; }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px 4px; font: italic 300 16px/1.35 var(--serif); color: var(--smoke); }
.shot figcaption a { flex: none; font: 500 13px/1 var(--sans); font-style: normal; color: var(--smoke); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.shot figcaption a:hover { color: var(--bone); border-color: var(--rim); }
.shot .tag { position: absolute; left: 10px; top: 10px; z-index: 1; font: 600 11px/1 var(--sans); letter-spacing: .08em; color: var(--bone); background: rgba(5, 5, 7, .65); padding: 5px 7px; border-radius: 2px; pointer-events: none; }
.box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 7, .96); color: var(--bone); }
.box[open] { display: grid; grid-template: 1fr auto / 56px 1fr 56px; }
.box:focus { outline: none; }
.box::backdrop { background: rgba(5, 5, 7, .9); }
.box-media { grid-area: 1 / 2; display: grid; place-items: center; min-height: 0; padding: 56px 0 12px; }
.box-media img, .box-media video { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.box-bar { grid-area: 2 / 1 / 3 / 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 14px 20px 24px; }
.box-bar p { margin: 0; font: italic 300 20px/1.3 var(--serif); }
.box-x { position: absolute; right: 12px; top: 10px; z-index: 2; width: 44px; height: 44px; font: 300 34px/1 var(--sans); color: var(--bone); background: none; border: 0; cursor: pointer; }
.box-nav { align-self: center; height: 64px; font: 300 44px/1 var(--serif); color: var(--smoke); background: none; border: 0; cursor: pointer; }
.box-nav:hover, .box-x:hover { color: var(--bone); }
.box-nav.prev { grid-area: 1 / 1; } .box-nav.next { grid-area: 1 / 3; }

/* where to find him */
.where { padding: clamp(70px, 12vh, 130px) var(--gut) clamp(40px, 8vh, 80px); }
.where h2, .origin h2 { margin: 0 0 24px; font: 400 clamp(34px, 4.2vw, 58px)/1.05 var(--serif); letter-spacing: -.02em; }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ca code { font: 500 clamp(14px, 1.7vw, 21px)/1.3 var(--sans); letter-spacing: .01em; word-break: break-all; color: var(--bone); flex: 1 1 18rem; }
.links { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; }
.links a {
  display: block; padding: 22px 20px 22px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--rim), var(--rim)) 0 100% / 0 2px no-repeat; transition: background-size .35s ease;
}
.links a:hover { background-size: 100% 2px; }
.links span { display: block; font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); }
.links small { display: block; margin-top: 6px; font-size: 14px; color: var(--smoke); }

.origin { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 40rem); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(50px, 10vh, 110px) var(--gut); }
.print { margin: 0; }
.print img { display: block; width: 100%; height: auto; border: 10px solid var(--bone); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(90, 72, 255, .28); transform: rotate(-2deg); }
.print figcaption { margin-top: 18px; font: italic 300 16px/1.4 var(--serif); color: var(--smoke); }
.origin p { color: var(--smoke); margin: 0 0 16px; }

.foot { padding: 40px var(--gut) 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--smoke); }
.foot p { margin: 0 0 10px; max-width: 44rem; }
.foot-ca { word-break: break-all; opacity: .7; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--void); font: 600 14px/1 var(--sans); padding: 12px 16px; border-radius: 2px; transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .bar nav a:not(.btn) { display: none; }
  .still, .loop { object-position: 69% 30%; }
  .shade { background: linear-gradient(0deg, var(--void) 0%, rgba(5, 5, 7, .78) 34%, rgba(5, 5, 7, 0) 62%); }
  .hero-copy { bottom: 28px; }
  .actions .btn { display: block; width: 100%; text-align: center; padding: 15px 18px; }
  .ca .btn { width: 100%; text-align: center; }
  .grid { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .shot figcaption { font-size: 14px; flex-direction: column; gap: 6px; }
  .box[open] { grid-template: 1fr auto / 0 1fr 0; }
  .box-nav { display: none; }
  .origin { grid-template-columns: 1fr; }
  .print { max-width: 300px; }
  .just { position: static; display: block; order: -1; width: 100%; margin-bottom: 10px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .name { font-size: 60px; }
  .lede { font-size: 17px; margin: 10px 0 18px; }
  .hero-copy .copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy { opacity: 1; transform: none; }
  .scroll-line .w { color: var(--bone); }
}
