:root {
  --ink: #000;
  --bg: #fff;
  --dim: #a0a0a0;
  --link: #0000ee;
  --visited: #551a8b;
  --red: #ff0000;
  --pad: clamp(14px, 3.5vw, 28px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a { color: var(--link); }
a:visited { color: var(--visited); }

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

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 0;
}

.top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 34px;
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.digits { display: inline-flex; }

.digits .cell {
  display: inline-block;
  width: 1.05em;
  height: 1.4em;
  overflow: hidden;
  border: 1px solid var(--ink);
  margin-left: -1px;
  background: var(--bg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.4em;
}

.digits .reel {
  display: block;
  white-space: pre;
  will-change: transform;
}

.digits .comma {
  display: inline-block;
  align-self: flex-end;
  padding: 0 1px;
  font-weight: 700;
  line-height: 1.4em;
}

.btn {
  display: inline-block;
  min-width: 96px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a.btn:visited { color: var(--ink); }

.btn:active, .btn.pressed { background: var(--ink); color: var(--bg); }

.btn[aria-disabled="true"] {
  border-color: var(--dim);
  color: var(--dim);
  cursor: default;
}

.btn[aria-disabled="true"]:active { background: var(--bg); color: var(--dim); }

.btn.nope { animation: nope 0.32s; }

@keyframes nope {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

header.hero {
  text-align: center;
  padding: 18px 0 8px;
}

.pfp-slot {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 14px;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--bg);
}

.pfp {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.5, -0.4, .6, 1.4);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.pfp img { -webkit-user-drag: none; }

.pfp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp .blush {
  position: absolute;
  width: 30%;
  height: 20%;
  top: 43%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #ff3b6b, rgba(255, 59, 107, 0));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.pfp .blush.l { left: 15%; }
.pfp .blush.r { right: 15%; }

.pfp.squish img { animation: squish 0.28s ease-out; }

@keyframes squish {
  0% { transform: scale(1, 1); }
  35% { transform: scale(1.12, 0.84); }
  70% { transform: scale(0.95, 1.06); }
  100% { transform: scale(1, 1); }
}

.pfp.hiding { transform: translateY(105%); }
.pfp.peek { transform: translateY(62%); }

.pfp-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pfp-note.show { opacity: 1; }

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.tagline { margin: 6px 0 0; font-size: 18px; }

.intro {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: left;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

section.work { margin-top: 44px; }

.box {
  border: 1px solid var(--ink);
  margin: 0 0 26px;
  background: var(--bg);
}

.box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}

.box-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}


.box-head img.icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
}

.box-body { padding: 14px; }

.box-body p { margin: 0 0 12px; }
.box-body p:last-child { margin-bottom: 0; }

figure { margin: 0 0 16px; }
figure:last-child { margin-bottom: 0; }

figure video, figure img.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  background: #000;
}

figcaption { margin-top: 6px; font-size: 15px; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.morph {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ink);
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.morph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.12s steps(2);
}

.morph .evil { opacity: 0; }
.morph.on .evil { opacity: 1; }
.morph.on { animation: shake 0.25s; }

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

@media (hover: hover) {
  .morph:hover .evil { opacity: 1; }
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.shelf li {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shelf img { width: 54px; height: 54px; }

.private-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cast {
  font-size: 15px;
  color: #444;
}

section.hire {
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--ink);
}

section.hire h2 { margin: 0 0 8px; font-size: 26px; }

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.copied { font-size: 15px; align-self: center; }

footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  padding: 36px 0 18px;
  font-size: 16px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .btn { min-height: 44px; padding: 10px 14px; }
  .contact .btn { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.grid2 figure video {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
