@font-face {
  font-family: "DotGothic16";
  src: url("./assets/fonts/PlayroomDot-Regular-b95f30bc65da.woff") format("woff"),
    url("./assets/fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f5eddc;
  --paper-deep: #e8dcc3;
  --ink: #171713;
  --red: #ef4f3b;
  --red-dark: #b92c21;
  --yellow: #f4c542;
  --blue: #1f6fdb;
  --blue-dark: #144a9a;
  --green: #4f9e62;
  --cream: #fff9e9;
  --wood: #b56b3f;
  --wood-dark: #6f3926;
  --line: 3px solid var(--ink);
  --line-ui: 2px solid var(--ink);
  --shadow: 7px 8px 0 var(--ink);
  --shadow-card: 4px 5px 0 var(--ink);
  --shadow-control: 2px 3px 0 var(--ink);
  --section-space: clamp(96px, 10vw, 132px);
  --font-display: "DotGothic16", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(239, 79, 59, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 20%, rgba(31, 111, 219, 0.08) 0 2px, transparent 3px),
    var(--paper);
  background-size: 31px 31px, 43px 43px, auto;
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  transform: translateY(-160%);
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  padding: 8px 10px 8px 12px;
  transform: translateX(-50%);
  border: var(--line-ui);
  background: rgba(255, 249, 233, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-block {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  color: white;
  font: 26px/1 var(--font-display);
  transform: rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font: 17px/1 var(--font-display);
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  font: 800 9px/1 var(--font-body);
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.motion-toggle__dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.2s steps(2, end) infinite;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__dot {
  background: var(--red);
  animation: none;
}

.motion-toggle:disabled {
  cursor: default;
  background: var(--paper-deep);
  opacity: 0.82;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  min-height: clamp(780px, 92svh, 860px);
  padding: 132px max(34px, calc((100vw - 1180px) / 2)) 92px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: 68px;
  right: -140px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.22);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  opacity: 0.34;
  background-size: 24px 24px;
}

.hero-grid--red {
  top: 118px;
  left: -55px;
  width: 250px;
  height: 250px;
  transform: rotate(9deg);
  background-image: linear-gradient(var(--red) 2px, transparent 2px), linear-gradient(90deg, var(--red) 2px, transparent 2px);
}

.hero-grid--blue {
  right: 22%;
  bottom: 45px;
  width: 210px;
  height: 140px;
  transform: rotate(-8deg);
  background-image: linear-gradient(var(--blue) 2px, transparent 2px), linear-gradient(90deg, var(--blue) 2px, transparent 2px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.eyebrow span {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 9px 4px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero h1 {
  margin: 0;
  font: clamp(54px, 6.7vw, 94px)/0.96 var(--font-display);
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
}

.hero-title-accent {
  position: relative;
  width: max-content;
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -15px;
  width: 78%;
  height: 16px;
  z-index: -1;
  transform: rotate(-2deg);
  background: var(--yellow);
}

.hero-lede {
  max-width: 34em;
  margin: 30px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.82;
}

.hero-lede strong {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 7px;
  text-underline-offset: -3px;
  text-decoration-skip-ink: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 210px;
  padding: 14px 18px;
  border: var(--line);
  box-shadow: 5px 6px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 3px 0 var(--ink);
}

.button--primary {
  background: var(--red-dark);
  color: white;
}

.button--dark {
  background: var(--ink);
  color: white;
  box-shadow: 5px 6px 0 var(--blue);
}

.text-link {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-toy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  min-height: 500px;
  perspective: 1000px;
}

.toybox {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: min(470px, 40vw);
  height: 430px;
  margin-top: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.toybox:focus-visible {
  outline: none;
}

.toybox:focus-visible .toybox__front {
  box-shadow: 10px 11px 0 var(--ink), 0 0 0 5px var(--blue);
}

.toybox__hint {
  position: absolute;
  top: -22px;
  right: 3px;
  z-index: 8;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(4deg);
}

.toybox__lid {
  position: absolute;
  top: 78px;
  left: 5%;
  z-index: 6;
  width: 90%;
  height: 118px;
  border: 4px solid var(--ink);
  background: var(--wood);
  box-shadow: 8px 9px 0 rgba(23, 23, 19, 0.95);
  transform-origin: bottom center;
  transform: rotate(-2deg);
  transition: transform 680ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.toybox__stripe {
  position: absolute;
  inset: 20px -4px auto;
  height: 25px;
  border-block: 3px solid var(--ink);
  background: var(--red);
}

.toybox__inside {
  position: absolute;
  top: 172px;
  left: 8%;
  width: 84%;
  height: 72px;
  border: 4px solid var(--ink);
  background: #422319;
}

.toybox__front {
  position: absolute;
  top: 196px;
  left: 7%;
  z-index: 7;
  width: 86%;
  height: 190px;
  border: 4px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 48%, rgba(59, 27, 17, 0.22) 49% 51%, transparent 52%),
    var(--wood);
  box-shadow: 10px 11px 0 var(--ink);
  transform: rotate(1deg);
}

.toybox__front::before,
.toybox__front::after {
  content: "";
  position: absolute;
  top: 0;
  width: 23px;
  height: 100%;
  background: rgba(96, 45, 28, 0.32);
}

.toybox__front::before { left: 48px; }
.toybox__front::after { right: 48px; }

.toybox__label {
  position: absolute;
  top: 48px;
  left: 50%;
  padding: 9px 18px;
  transform: translateX(-50%) rotate(-2deg);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.1 var(--font-display);
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 rgba(23, 23, 19, 0.55);
}

.toybox__handle {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 34px;
  height: 19px;
  border: 3px solid var(--ink);
  border-top-width: 8px;
  background: var(--yellow);
}

.toy {
  position: absolute;
  z-index: 5;
  opacity: 0;
  transition: transform 720ms cubic-bezier(0.16, 0.95, 0.28, 1), opacity 200ms ease;
}

.toy--letter {
  top: 195px;
  left: 95px;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--blue);
  font: 48px/1 var(--font-display);
  transform: translateY(80px) rotate(-12deg);
}

.toy--bomb {
  top: 200px;
  right: 86px;
  width: 72px;
  height: 72px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 5px 6px 0 var(--ink);
  transform: translateY(80px) rotate(10deg);
}

.toy--bomb::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 42px;
  width: 27px;
  height: 31px;
  border-top: 5px solid var(--ink);
  border-radius: 60% 0 0;
  transform: rotate(-24deg);
}

.toy--bomb::after {
  content: "✦";
  position: absolute;
  top: -50px;
  right: -12px;
  color: var(--yellow);
  font: 30px/1 var(--font-display);
  -webkit-text-stroke: 2px var(--ink);
}

.toy--star {
  top: 190px;
  left: 48%;
  color: var(--yellow);
  font: 76px/1 var(--font-display);
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(5px 5px 0 var(--ink));
  transform: translate(-50%, 80px) rotate(12deg);
}

.toy--robot {
  top: 194px;
  left: 43%;
  width: 76px;
  height: 62px;
  border: 4px solid var(--ink);
  background: var(--blue);
  box-shadow: 5px 6px 0 var(--ink);
  transform: translate(-50%, 80px) rotate(-4deg);
}

.toy--robot::before,
.toy--robot::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.toy--robot::before { left: 15px; }
.toy--robot::after { right: 15px; }

.toy--robot i:nth-child(1) {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 4px;
  height: 23px;
  background: var(--ink);
}

.toy--robot i:nth-child(2),
.toy--robot i:nth-child(3) {
  position: absolute;
  bottom: -24px;
  width: 16px;
  height: 25px;
  border: 3px solid var(--ink);
  background: var(--red);
}

.toy--robot i:nth-child(2) { left: 9px; }
.toy--robot i:nth-child(3) { right: 9px; }

.box-open .toybox__lid {
  transform: translateY(-58px) rotateX(-58deg) rotateZ(-4deg);
}

.box-open .toy {
  opacity: 1;
}

.box-open .toy--letter { transform: translate(-95px, -175px) rotate(-15deg); }
.box-open .toy--bomb { transform: translate(95px, -142px) rotate(12deg); }
.box-open .toy--star { transform: translate(-10px, -235px) rotate(18deg); }
.box-open .toy--robot { transform: translate(-46px, -118px) rotate(-4deg); }

.toybox-surprise {
  margin: -38px 0 0;
  padding: 8px 14px;
  border-bottom: 4px solid var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-note {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  z-index: 4;
  width: min(390px, 35vw);
  padding: 24px 26px 18px;
  transform: rotate(2deg);
  border: 2px solid var(--ink);
  background: #fff4b9;
  box-shadow: var(--shadow-card);
}

.hero-note .pin {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 2px 3px 0 var(--ink);
}

.hero-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.hero-note time {
  display: block;
  margin-top: 10px;
  font: 11px/1.2 var(--font-display);
  letter-spacing: 0.1em;
}

.ticker {
  width: calc(100% + 40px);
  margin-left: -20px;
  overflow: hidden;
  transform: rotate(-1.3deg);
  border-block: 3px solid var(--ink);
  background: var(--blue);
  color: white;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 32px;
  padding: 13px 0;
  font: 18px/1 var(--font-display);
  letter-spacing: 0.08em;
  animation: ticker 25s linear infinite;
}

.ticker__track i {
  color: var(--yellow);
  font-style: normal;
  -webkit-text-stroke: 1px var(--ink);
}

.works,
.side-shelf,
.process {
  padding-block: var(--section-space);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin: 0;
  font: clamp(42px, 5.4vw, 72px)/1.08 var(--font-display);
  letter-spacing: -0.055em;
}

.section-kicker {
  color: var(--red-dark);
}

.section-intro {
  margin: 0;
  padding-left: 24px;
  border-left: 5px solid var(--yellow);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  padding-block: 14px;
  border-block: 2px solid var(--ink);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 44px;
  padding: 7px 18px;
  border: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.filter-result {
  margin: 0;
  font: 12px/1.3 var(--font-body);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 42px 28px;
  align-items: start;
}

.project-card {
  grid-column: span 6;
  overflow: visible;
  border: var(--line-ui);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}

.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; margin-top: 46px; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; margin-top: -16px; }
.project-card:nth-child(5) { grid-column: 3 / span 8; }

.project-grid.is-filtered .project-card:not([hidden]) {
  grid-column: span 6;
  margin-top: 0;
}

.project-grid.is-filtered[data-visible-count="1"] .project-card:not([hidden]) {
  grid-column: 3 / span 8;
}

.project-card[hidden] {
  display: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--line-ui);
  background: var(--blue);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 600ms cubic-bezier(0.18, 0.85, 0.26, 1), filter 250ms ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.project-card__media--alpha img { object-position: 50% 47%; }
.project-card__media--kuruna img { object-position: center; }
.project-card__media--magic img { object-position: 50% 48%; }
.project-card__media--meteo img { object-position: 50% 42%; }
.project-card__media--worquest {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, transparent 50%),
    linear-gradient(90deg, rgba(66, 124, 172, 0.2), rgba(20, 25, 34, 0.4)),
    #10151d;
  background-size: 100% 8px, auto, auto;
}

.project-card__media--worquest img {
  object-fit: contain;
  padding: 9%;
  image-rendering: pixelated;
  object-position: center;
}

.project-card__media.is-missing::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--paper) 16px 32px);
  font: clamp(30px, 6vw, 64px)/1 var(--font-display);
  text-align: center;
}

.media-index {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  color: white;
  font: 44px/1 var(--font-display);
  text-shadow: 3px 3px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}

.status-sticker {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 7px 11px 6px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 12px/1.2 var(--font-display);
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.status-sticker--green { background: var(--green); color: var(--ink); }
.status-sticker--yellow { background: var(--yellow); }
.status-sticker--red { background: var(--red); color: var(--ink); }
.status-sticker--blue { background: var(--blue); color: white; }
.status-sticker--cream { background: var(--cream); }

.tape {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 4;
  width: 96px;
  height: 28px;
  transform: translateX(-50%) rotate(2deg);
  opacity: 0.82;
  clip-path: polygon(4% 0, 97% 6%, 100% 88%, 3% 100%, 0 16%);
}

.tape--yellow { background: #ffe677; }
.tape--blue { background: #77bdf2; transform: translateX(-50%) rotate(-4deg); }
.tape--cream { background: #e8d2af; }
.tape--red { background: #f28a76; transform: translateX(-50%) rotate(5deg); }
.tape--green { background: #8ac89a; }

.project-card__body {
  padding: clamp(24px, 3.6vw, 42px);
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-type {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.project-card h3,
.mini-card h3 {
  margin: 0;
  font: clamp(28px, 4vw, 46px)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.project-hook {
  margin: 28px 0 10px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.55;
}

.project-summary {
  max-width: 62ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.82;
}

.shape-mark {
  flex: 0 0 auto;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.shape-mark--a {
  background: var(--yellow);
  color: var(--blue);
  font: 30px/1 var(--font-display);
  transform: rotate(6deg);
}

.shape-mark--bomb {
  border-radius: 50%;
  background: var(--red);
  transform: rotate(-6deg);
}

.shape-mark--bomb::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 18px;
  margin: -49px 0 0 35px;
  border-top: 4px solid var(--ink);
  border-radius: 50%;
}

.shape-mark--spark {
  background: var(--blue);
  color: var(--yellow);
  font: 32px/1 var(--font-display);
  transform: rotate(45deg);
}

.shape-mark--spark::first-letter { transform: rotate(-45deg); }

.shape-mark--robot {
  position: relative;
  background: var(--blue);
}

.shape-mark--robot i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.shape-mark--robot i:first-child { position: absolute; left: 10px; top: 18px; }
.shape-mark--robot i:last-child { position: absolute; right: 10px; top: 18px; }

.shape-mark--sword {
  border: 0;
  box-shadow: none;
  background: transparent;
  transform: rotate(44deg);
}

.shape-mark--sword::before {
  content: "";
  width: 12px;
  height: 47px;
  border: 3px solid var(--ink);
  background: linear-gradient(to bottom, var(--cream) 0 68%, var(--red) 68%);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.tech-list li,
.mini-card__state,
.ticket-project {
  padding: 4px 9px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.progress-drawer {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
}

.progress-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 14px 0 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.progress-drawer summary::-webkit-details-marker { display: none; }
.progress-drawer summary span:last-child { font: 24px/1 var(--font-display); }

.progress-content {
  padding: 14px 0 2px;
}

.verified-note {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 5px solid var(--green);
  background: #e4f1df;
  font-size: 12px;
  line-height: 1.7;
}

.verified-note span {
  margin-right: 7px;
  font-weight: 900;
}

.milestone-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.milestone-track::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 10%;
  left: 10%;
  height: 4px;
  background: var(--ink);
}

.milestone-track li {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.milestone-track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-deep);
}

.milestone-track li.is-done::before { background: var(--green); }
.milestone-track li.is-current::before {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(244, 197, 66, 0.35);
}

.next-step {
  margin: 23px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.next-step strong {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 6px;
  background: var(--ink);
  color: white;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.now-board {
  position: relative;
  padding-block: var(--section-space) calc(var(--section-space) + 12px);
  overflow: hidden;
  border-block: 4px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.now-board::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.22) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.22) 2px, transparent 2px);
  background-size: 36px 36px;
}

.now-board .section-shell {
  position: relative;
  z-index: 1;
}

.section-heading--light .section-kicker { color: var(--yellow); }
.section-heading--light .section-intro { border-color: var(--red); }

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.now-ticket {
  position: relative;
  min-height: 390px;
  padding: 38px 32px 30px;
  border: var(--line);
  box-shadow: 5px 6px 0 var(--cream);
  color: var(--ink);
  transition: transform 220ms ease;
}

.now-ticket:nth-child(1) { transform: rotate(-2deg); }
.now-ticket:nth-child(2) { transform: translateY(22px) rotate(1.4deg); }
.now-ticket:nth-child(3) { transform: rotate(-1deg); }
.now-ticket:hover { transform: translateY(-7px) rotate(0deg); }

.now-ticket--red { background: var(--red); }
.now-ticket--yellow { background: var(--yellow); }
.now-ticket--blue { background: var(--blue); color: white; }

.now-ticket__number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font: 32px/1 var(--font-display);
}

.now-ticket__label {
  margin: 34px 0 10px;
  font: 12px/1.2 var(--font-display);
  letter-spacing: 0.1em;
}

.now-ticket h3 {
  margin: 0;
  font: clamp(25px, 3vw, 37px)/1.25 var(--font-display);
  letter-spacing: -0.04em;
}

.now-ticket > p:not(.now-ticket__label) {
  margin: 22px 0 30px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.ticket-project {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--ink);
  transform: rotate(-2deg);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mini-card {
  position: relative;
  min-height: 340px;
  padding: 34px 30px;
  overflow: hidden;
  border: var(--line-ui);
  box-shadow: var(--shadow-card);
}

.mini-card--music { background: #f7b6c5; }
.mini-card--motion { background: #acd5f5; }
.mini-card--story { background: #b7d8a9; }

.mini-card__icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 4px 5px 0 var(--ink);
  font: 42px/1 var(--font-display);
  transform: rotate(-5deg);
}

.mini-card__icon--motion::before,
.mini-card__icon--motion::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 9px;
  background: var(--red);
}

.mini-card__icon--motion::before { transform: translate(-8px, -8px) rotate(-25deg); }
.mini-card__icon--motion::after { transform: translate(8px, 10px) rotate(-25deg); background: var(--blue); }

.mini-card h3 { font-size: 38px; }

.mini-card > p:not(.project-type) {
  margin: 18px 0 34px;
  font-size: 13px;
  font-weight: 700;
}

.mini-card__state {
  position: absolute;
  left: 30px;
  bottom: 26px;
  background: var(--cream);
}

.process {
  padding-top: 10px;
}

.process-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  padding: clamp(38px, 6vw, 78px);
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: 10px 11px 0 var(--ink);
}

.process-copy h2 {
  margin: 0;
  font: clamp(40px, 5.2vw, 67px)/1.06 var(--font-display);
  letter-spacing: -0.05em;
}

.process-copy > p:last-child {
  max-width: 340px;
  margin-top: 28px;
  font-weight: 800;
}

.process-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 3px solid var(--ink);
}

.process-steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 24px;
  padding: 25px 10px;
  border-bottom: 2px solid var(--ink);
}

.process-steps li:last-child { border-bottom: 0; }

.process-peg {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  color: white;
  font: 24px/1 var(--font-display);
}

.process-peg--red { background: var(--red); }
.process-peg--yellow { background: var(--cream); color: var(--ink); }
.process-peg--blue { background: var(--blue); }

.process-steps strong {
  font: 19px/1 var(--font-display);
  letter-spacing: 0.1em;
}

.process-steps p {
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.closing {
  position: relative;
  display: grid;
  min-height: 540px;
  padding: 120px 24px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  border-top: 4px solid var(--ink);
  background: var(--red);
  color: white;
  text-align: center;
}

.closing .section-kicker {
  color: var(--ink);
}

.closing h1,
.closing h2 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 0 44px;
  font: clamp(40px, 6vw, 76px)/1.15 var(--font-display);
  letter-spacing: -0.055em;
  text-shadow: 4px 4px 0 var(--ink);
}

.closing-shape {
  position: absolute;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}

.closing-shape--one {
  top: 95px;
  left: 6%;
  width: 120px;
  height: 120px;
  transform: rotate(18deg);
}

.closing-shape--two {
  right: 5%;
  bottom: 80px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--blue);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  border-top: 3px solid var(--ink);
  background: var(--cream);
}

.site-footer strong {
  font: 20px/1 var(--font-display);
}

.site-footer p {
  margin: 7px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.18, 0.85, 0.26, 1);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  scroll-behavior: auto !important;
  animation-play-state: paused !important;
  transition-duration: 0.001ms !important;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes blink {
  50% { transform: scale(0.65); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 1040px;
    padding-top: 132px;
  }

  .hero-copy { max-width: 780px; }
  .hero-toy { min-height: 490px; }
  .toybox { width: min(470px, 75vw); }
  .hero-note { right: 8%; bottom: 48px; width: min(390px, 64vw); }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .project-card:nth-child(5) { grid-column: 2 / span 10; }

  .now-grid,
  .mini-grid { grid-template-columns: 1fr; }
  .now-ticket { min-height: 320px; }
  .now-ticket:nth-child(n) { transform: none; }

  .mini-card { min-height: 300px; }

  .process-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 116px; }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand motion"
      "nav nav";
    row-gap: 5px;
    min-height: 0;
    padding: 7px 9px 5px;
  }

  .brand { grid-area: brand; }
  .brand-block { width: 36px; height: 36px; font-size: 22px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }

  .main-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding-top: 3px;
    border-top: 1px solid rgba(23, 23, 19, 0.24);
  }

  .main-nav a {
    display: grid;
    min-height: 38px;
    place-items: center;
    font-size: 11px;
  }

  .motion-toggle {
    grid-area: motion;
    min-height: 44px;
    padding-inline: 9px;
  }

  .section-shell { width: min(100% - 28px, 1180px); }

  .ticker {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .hero {
    min-height: auto;
    padding: 130px 20px 58px;
    row-gap: 8px;
  }

  .hero::before {
    top: 500px;
    right: -190px;
    width: 360px;
    height: 360px;
  }

  .hero h1 { font-size: clamp(46px, 15.6vw, 68px); }
  .hero-title-accent { text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke-width: 1.5px; }
  .hero-lede br { display: none; }

  .hero-actions {
    align-items: center;
    gap: 14px;
  }

  .hero-actions .button {
    min-width: 205px;
    padding: 12px 14px;
  }

  .hero-actions .text-link {
    font-size: 13px;
  }

  .hero-toy { min-height: 350px; }
  .toybox { width: min(360px, 92vw); height: 350px; margin-top: 16px; }
  .toybox__lid { top: 62px; height: 94px; }
  .toybox__inside { top: 136px; }
  .toybox__front { top: 158px; height: 154px; }
  .toybox__label { top: 34px; font-size: 14px; }

  .toy--letter { top: 160px; left: 76px; width: 64px; height: 64px; font-size: 38px; }
  .toy--bomb { top: 164px; right: 70px; width: 58px; height: 58px; }
  .toy--star { top: 160px; font-size: 60px; }
  .toy--robot { top: 163px; width: 62px; height: 52px; }

  .box-open .toy--letter { transform: translate(-55px, -138px) rotate(-15deg); }
  .box-open .toy--bomb { transform: translate(55px, -112px) rotate(12deg); }
  .box-open .toy--star { transform: translate(-10px, -180px) rotate(18deg); }
  .box-open .toy--robot { transform: translate(-40px, -93px) rotate(-4deg); }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -26px;
    padding: 18px 20px 14px;
    transform: rotate(1deg);
  }

  .hero-note p { font-size: 12px; }

  .works,
  .side-shelf,
  .process { padding-block: 84px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 48px;
  }

  .section-heading h2 { font-size: clamp(39px, 12vw, 56px); }
  .section-intro { padding-left: 16px; }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter { padding-inline: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: 1;
  }

  .project-grid.is-filtered .project-card:not([hidden]),
  .project-grid.is-filtered[data-visible-count="1"] .project-card:not([hidden]) {
    grid-column: 1;
  }

  .project-card__body { padding: 24px 20px; }
  .project-card__media { aspect-ratio: 16 / 10; }
  .project-title-row { gap: 12px; }
  .shape-mark { width: 46px; height: 46px; }
  .project-card h3 { font-size: clamp(27px, 9vw, 38px); }
  .project-hook { margin-top: 22px; }
  .milestone-track li { font-size: 10px; }

  .now-board { padding-block: 100px 115px; }
  .now-ticket { padding: 30px 24px; }

  .mini-card { min-height: auto; padding: 28px 24px; }
  .mini-card__state {
    position: static;
    display: inline-block;
    margin-top: 4px;
  }

  .process { padding-top: 0; }
  .process-card { padding: 34px 22px; box-shadow: 7px 8px 0 var(--ink); }
  .process-steps li { grid-template-columns: 58px 1fr; gap: 14px; }
  .process-peg { width: 48px; height: 48px; }

  .closing { min-height: 560px; }
  .closing-shape--one { left: -50px; }
  .closing-shape--two { right: -70px; }
  .closing h2 br { display: none; }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .brand-copy small { display: none; }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Depth study: retain the wooden/paper visual language; no rendering loop. */
.toybox__lid {
  background: linear-gradient(160deg, #d8935d, var(--wood) 65%);
  box-shadow: 0 6px 0 #8b492d, 0 9px 0 var(--ink), 8px 15px 16px rgba(47, 26, 15, .22);
  transform-style: preserve-3d;
}
.toybox__lid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(62,28,16,.2);
}
.toybox__inside {
  background: linear-gradient(#20150f, #633b26);
  box-shadow: inset 0 10px 16px rgba(0,0,0,.5);
}
.toybox__front {
  background: linear-gradient(105deg, rgba(255,224,166,.14), transparent 50%),
    linear-gradient(90deg, transparent 48%, rgba(59,27,17,.22) 49% 51%, transparent 52%), var(--wood);
  box-shadow: 3px 2px 0 #925031, 6px 4px 0 #925031, 9px 6px 0 #925031,
    11px 8px 0 var(--ink), 16px 20px 22px rgba(52,31,16,.19), inset 0 3px 0 rgba(255,225,170,.25);
}
.toybox__label { translate: 0 0 3px; }
.box-open .toybox__lid {
  transform: translateY(-58px) translateZ(-10px) rotateX(-64deg) rotateZ(-4deg);
}
.project-card {
  box-shadow: 0 2px 0 #e5d7bd, 0 4px 0 #fff9e9, 0 6px 0 #b5a58c,
    2px 8px 0 rgba(23,23,19,.72), 5px 15px 24px rgba(58,42,22,.12);
}
.project-card__media { transition: transform 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  body:not(.motion-off):not(.page-inactive) .project-card:hover .project-card__media {
    transform: perspective(1000px) rotateX(2deg) translateY(-4px);
    transform-origin: center bottom;
  }
}
body:not(.motion-off):not(.page-inactive) .button:active,
body:not(.motion-off):not(.page-inactive) .filter:active {
  transform: translate(2px, 3px);
  box-shadow: 0 1px 0 var(--ink);
}
.motion-off .toybox, .page-inactive .toybox { transform: none; }
.motion-off .project-card:hover .project-card__media img,
.page-inactive .project-card:hover .project-card__media img { transform: none; }
.motion-off .button:hover, .page-inactive .button:hover { transform: none; }
.motion-off .now-ticket:hover, .page-inactive .now-ticket:hover { transform: none; }
.page-inactive *, .page-inactive *::before, .page-inactive *::after {
  animation-play-state: paused !important;
  transition-duration: .001ms !important;
}
.animation-offscreen, .animation-offscreen * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .toybox, .project-card:hover .project-card__media,
  .project-card:hover .project-card__media img, .button:hover, .now-ticket:hover {
    transform: none !important;
  }
}

/* Discover an existing work; all essential content remains in the normal shelf. */
.toybox-surprise { max-width: 100%; text-align: center; }
.discovery-button, .shelf-discover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(23,23,19,.65);
  transition: translate 140ms ease, box-shadow 140ms ease;
}
.discovery-button { display: flex; margin: 10px auto 0; background: var(--yellow); }
.shelf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.shelf-tools .filter-result { margin: 0; }
.discovery-result {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: #eaf1fa;
  font-size: 13px;
}
.discovery-result[hidden] { display: none; }
.project-card { scroll-margin-top: 16px; }
.project-card.is-discovered { outline: 3px solid var(--blue); outline-offset: 6px; }
.project-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
body:not(.motion-off) .discovery-button:active,
body:not(.motion-off) .shelf-discover:active { translate: 1px 2px; box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 640px) {
  .shelf-tools { width: 100%; justify-content: space-between; }
  .discovery-button, .shelf-discover { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-button:active, .shelf-discover:active { translate: none !important; }
}

html.motion-off { scroll-behavior: auto !important; }

/* The open-box control needs its own clearance above the pinned note. */
.hero-toy { padding-bottom: 104px; }
.discovery-result:empty { margin: 0; padding: 0; border: 0; }
@media (max-width: 720px) {
  .hero-toy { padding-bottom: 0; }
  .hero-note { margin-top: 12px; }
}

/* One short paper-opening response, only when motion is explicitly available. */
@media (prefers-reduced-motion: no-preference) {
  .progress-drawer[open].is-opening .progress-content {
    transform-origin: center top;
    animation: paper-unfold 220ms ease-out;
  }
}
@keyframes paper-unfold {
  from { opacity: 0.55; transform: perspective(800px) rotateX(-4deg) translateY(-3px); }
  to { opacity: 1; transform: none; }
}
.motion-off .progress-content {
  animation: none !important;
}

/* Keyboard focus must never wait for the scroll-reveal animation. */
.reveal-ready [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Real 3D is optional. The original semantic button and CSS model stay intact. */
.toybox__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.toybox--webgl { transform: none; }
.toybox--webgl > span[aria-hidden="true"] { visibility: hidden; }
.toybox--webgl:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 12px; }
