@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600&display=swap");

:root {
  --paper: #fff1e8;
  --sand: #ffccaa;
  --ink: #1d2b53;
  --mute: #5f574f;
  --pink: #ff77a8;
  --red: #ff004d;
  --yellow: #ffec27;
  --orange: #ffa300;
  --green: #00e436;
  --blue: #29adff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--paper); color: var(--ink);
  overflow-x: clip; max-width: 100%;
}
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  min-height: 100svh;
}
img, svg, video { max-width: 100%; height: auto; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(29,43,83,.05) 7px, rgba(29,43,83,.05) 8px),
    repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(29,43,83,.05) 7px, rgba(29,43,83,.05) 8px);
  image-rendering: pixelated;
}
canvas#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.shell {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top, 0px))
    max(24px, env(safe-area-inset-right, 0px))
    max(64px, env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left, 0px));
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 5;
  background: var(--ink); color: var(--paper); padding: 8px 12px; font-weight: 600;
}
.skip:focus { top: 12px; }
a { color: var(--red); text-decoration: none; cursor: pointer; }
a:hover { color: #ab5236; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; z-index: 4;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand img {
  width: 44px; height: auto;
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: transparent; border: 0;
  animation: bob 2.6s ease-in-out infinite;
}
.menu { margin-left: auto; position: relative; }
.menu summary { display: none; }
nav { display: flex; gap: 8px; }
.menu nav { display: flex !important; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--mute); font-weight: 500; font-size: 15px;
}
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .menu summary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; padding: 0 12px;
    list-style: none; cursor: pointer;
    background: #fff; color: var(--ink);
    border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    font-family: var(--display); font-weight: 800; font-size: 15px;
  }
  .menu summary::-webkit-details-marker,
  .menu summary::marker { display: none; content: ""; }
  .menu[open] summary { background: var(--red); color: var(--paper); }
  .menu:not([open]) nav { display: none !important; }
  .menu[open] nav {
    display: flex !important; flex-direction: column; gap: 0;
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: min(198px, calc(100vw - 48px));
    background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  }
  .menu nav a {
    color: var(--ink); min-height: 48px; padding: 0 16px;
    border-bottom: 3px solid var(--ink);
  }
  .menu nav a:last-child { border-bottom: 0; }
}

.cv-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 0 12px;
  animation: rise .8s .08s cubic-bezier(.2,.8,.2,1) both;
}
.cv-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 8vw, 64px); line-height: .95; letter-spacing: -.04em;
}
.role {
  margin: 8px 0 0; color: var(--mute); font-weight: 600; font-size: 18px;
}
.cv-mascot { width: 120px; margin-top: 0; }

.section-label {
  margin: 40px 0 12px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.jobs { display: flex; flex-direction: column; gap: 16px; }
.job {
  background: #fff; padding: 20px 22px;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.job h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em;
}
.job .meta { margin: 4px 0 0; color: var(--mute); font-weight: 600; font-size: 15px; }
.job p { margin: 10px 0 0; color: var(--mute); max-width: 42rem; }
.job > p:first-child { margin-top: 0; }
.job p:last-child { margin-bottom: 0; }
.clusters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.doors {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 28px;
  padding: 12px 0 28px;
}
.door {
  display: block; width: min(100%, 220px); max-width: 100%; color: inherit; text-align: center;
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.door:nth-child(2) { animation-delay: .06s; }
.door:nth-child(3) { animation-delay: .12s; }
.door:nth-child(4) { animation-delay: .18s; }
.door:nth-child(6) { animation-delay: .30s; }
.door:nth-child(7) { animation-delay: .36s; }
.door .picture {
  width: 100%; margin: 0;
  animation-delay: inherit;
}
.door:nth-child(2) .picture { animation-delay: -.9s; }
.door:nth-child(3) .picture { animation-delay: -1.8s; }
.door:nth-child(4) .picture { animation-delay: -2.7s; }
.door:nth-child(5) .picture { animation-delay: -3.6s; }
.door:nth-child(6) .picture { animation-delay: -4.5s; }
.door:nth-child(7) .picture { animation-delay: -5.4s; }
.shelf-art {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  background: var(--paper);
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.door figcaption {
  margin: 12px 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em; color: var(--ink);
}
.door:hover { color: inherit; }
.door:hover .picture {
  animation: none;
  transform: translateY(-6px) rotate(-1.2deg);
}
.door:hover figcaption { color: var(--red); }
.crumb {
  margin: 0 0 8px; font-weight: 600; font-size: 15px; color: var(--mute);
}
.crumb a { color: var(--mute); }
.crumb a:hover { color: var(--red); }
.app-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.app-card {
  display: flex; align-items: flex-start; gap: 16px;
  position: relative; overflow: hidden; min-width: 0;
  background: #fff; padding: 20px 22px;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  color: inherit; animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.app-card.soon { padding-right: 52px; cursor: default; }
.app-card.soon::after {
  content: "Soon";
  position: absolute; top: 12px; right: -32px;
  width: 112px; padding: 4px 0;
  background: var(--red); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 0 var(--ink);
}
.app-icon {
  width: 64px; height: 64px; flex: none;
  border-radius: 14px; border: 3px solid var(--ink);
  background: var(--paper);
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
}
a.app-card {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  a.app-card:hover {
    animation: none;
    color: inherit; z-index: 1;
    transform: translate(-3px, -5px) rotate(-0.6deg);
    box-shadow: 10px 11px 0 var(--ink);
  }
  a.app-card:hover h3 { color: var(--red); }
  a.app-card:hover .app-icon { transform: rotate(-6deg) scale(1.08); }
}
a.app-card:focus-visible {
  animation: none;
  color: inherit; z-index: 1;
  transform: translate(-3px, -5px) rotate(-0.6deg);
  box-shadow: 10px 11px 0 var(--ink);
}
a.app-card:focus-visible h3 { color: var(--red); }
a.app-card:focus-visible .app-icon { transform: rotate(-6deg) scale(1.08); }
a.app-card:active {
  transform: translate(2px, 2px) rotate(0);
  box-shadow: 3px 3px 0 var(--ink);
}
.app-card h3, .app-card p { overflow-wrap: anywhere; }
.app-card h3 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em; color: var(--ink);
  transition: color .18s ease;
}
.app-card p { margin: 6px 0 0; color: var(--mute); }
.app-card .meta { margin-top: 12px; font-weight: 600; font-size: 15px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 52svh; padding: 36px 0 32px;
}
.hero-copy { min-width: 0; animation: rise .8s .08s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(72px, 14vw, 140px); line-height: .86; letter-spacing: -.06em;
}
.hero h1 span { color: var(--red); }
.mascot {
  display: block;
  width: min(180px, 42vw);
  height: auto;
  margin-top: 20px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: bob 2.8s ease-in-out infinite;
}
.pix { display: flex; gap: 6px; margin-top: 18px; }
.pix i {
  width: 12px; height: 12px; display: block;
  animation: blink 1.2s steps(2) infinite;
}
.pix i:nth-child(1) { background: var(--pink); }
.pix i:nth-child(2) { background: var(--yellow); animation-delay: .15s; }
.pix i:nth-child(3) { background: var(--green); animation-delay: .3s; }
.pix i:nth-child(4) { background: var(--blue); animation-delay: .45s; }

.courier {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.art { justify-self: end; min-width: 0; max-width: 100%; animation: rise .9s .16s cubic-bezier(.2,.8,.2,1) both; }
.picture {
  margin: 0;
  width: min(100%, 400px);
  max-width: 100%;
  transform-origin: 50% 0;
  animation: hang 5.5s ease-in-out infinite;
}
.picture-nail {
  display: block;
  width: 10px; height: 10px;
  margin: 0 auto 6px;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--ink), -8px 8px 0 var(--ink);
}
.frame {
  padding: 14px;
  background: #ab5236;
  border: 6px solid var(--ink);
  box-shadow:
    inset 4px 4px 0 #ffccaa,
    inset -4px -4px 0 #7e2553,
    10px 10px 0 var(--ink);
}
.mat {
  padding: 8px;
  background: #fff1e8;
  border: 4px solid var(--ink);
}
.scene {
  display: block; width: 100%; height: auto;
  aspect-ratio: 192 / 128;
  image-rendering: pixelated; image-rendering: crisp-edges;
}

.story {
  max-width: 38rem;
  margin: 8px 0 0;
  animation: rise .8s .22s cubic-bezier(.2,.8,.2,1) both;
}
.story p {
  margin: 0 0 1.1rem;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
}
.story p:last-child { margin: 0; color: var(--mute); }

.panel {
  margin-top: 36px; background: #fff; padding: 28px 24px;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.panel h1 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 6vw, 48px); letter-spacing: -.04em;
}
.panel h2 {
  margin: 28px 0 10px; font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.02em;
}
.panel h2:first-of-type { margin-top: 18px; }
.panel h3 {
  margin: 20px 0 6px; font-size: 17px; font-weight: 700;
}
.panel p { margin: 0 0 1rem; color: var(--mute); max-width: 42rem; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--mute); max-width: 42rem; }
.panel li { margin: 0.35rem 0; }
.panel table {
  width: 100%; max-width: 42rem; border-collapse: collapse;
  margin: 0 0 1rem; font-size: 15px;
}
.panel th, .panel td {
  text-align: left; vertical-align: top;
  padding: 8px 10px; border: 3px solid var(--ink);
}
.panel th { background: var(--paper); }
.panel .note { font-size: 15px; }

footer {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  margin-top: 48px; padding-top: 20px;
  border-top: 4px solid var(--ink); color: var(--mute); font-size: 15px;
}
footer a { color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes hang {
  0%, 100% { transform: rotate(-0.8deg); }
  50% { transform: rotate(0.8deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
@keyframes blink {
  50% { opacity: 0.35; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 24px 0; gap: 20px; }
  .art { justify-self: start; }
  .picture { width: min(100%, 360px); }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(64px, 22vw, 96px); max-width: 100%; }
  .clusters { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .cv-hero { padding: 24px 0 8px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
