/* Evolution Unleashed: the resource kit.
   The live evolutionunleashed.com look: flat ink, white and the logo's yellow,
   Bricolage Grotesque over Figtree with Space Mono labels, hard offset shadows.
   Every resource is a collectible card: a two-ink screenprint picture in a black
   frame, with a foil that catches the light as you move over it. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/bricolage-grotesque-400-800.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/figtree-400-800.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-mono-700.woff2") format("woff2"); }

:root {
  --ink: #0E0E0E;
  --ink-2: #161616;
  --ink-3: #1F1F1F;
  --line: #2C2C2C;
  --paper: #FFFFFF;
  --bone: #F0F0EC;
  --yellow: #FAD02C;
  --pea: #8DB33A;
  --muted: #565656;
  --muted-d: #A6A6A6;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --hard: 6px 6px 0 var(--ink);
  --head: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 90px); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.kicker::before { content: ""; width: 12px; height: 12px; background: var(--yellow); flex: none; }
.h-hero { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 9.4vw, 8.4rem); line-height: .86; letter-spacing: -.05em; }
.h-hero span, .h1 span { display: block; }
.h-hero span:last-child, .h1 span:last-child { color: var(--yellow); }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .9; letter-spacing: -.045em; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted-d); margin-top: 22px; max-width: 34ch; }
.lede strong { color: var(--paper); font-weight: 700; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; border: 2px solid var(--paper); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; white-space: nowrap; }
.btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 5px 5px 0 var(--paper); }
.btn--yellow:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper); }
.btn--ghost { color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--yellow); border-color: var(--ink); box-shadow: 5px 5px 0 rgba(14,14,14,.25); }
.btn--ink:hover { transform: translate(-2px, -2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ header */
.head { position: sticky; top: 0; z-index: 60; height: var(--head); background: rgba(14,14,14,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.head__logo img { height: 34px; width: auto; }
.head__nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .95rem; }
.head__nav a:not(.btn) { color: #E2E2E2; transition: color .15s; }
.head__nav a:not(.btn):hover { color: var(--yellow); }
.head__nav .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.head__nav .btn:hover { box-shadow: 4px 4px 0 var(--paper); }
@media (max-width: 860px) { .head__nav a:not(.btn) { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.hero__facts b { color: var(--yellow); font-weight: 700; }

/* the fanned hand of cards */
.fan { position: relative; height: clamp(420px, 44vw, 560px); perspective: 1400px; }
.fan__card { position: absolute; left: 50%; top: 50%; width: clamp(200px, 19vw, 262px); margin-left: calc(clamp(200px, 19vw, 262px) / -2); margin-top: calc(clamp(200px, 19vw, 262px) * -0.7); transform-origin: 50% 120%; transition: transform .6s var(--ease); }
.fan__card .card { cursor: pointer; }
.fan__card:nth-child(1) { transform: rotate(-24deg) translate(-30px, 34px); }
.fan__card:nth-child(2) { transform: rotate(-12deg) translate(-12px, 8px); }
.fan__card:nth-child(3) { transform: rotate(0deg) translate(0, 0); z-index: 3; }
.fan__card:nth-child(4) { transform: rotate(12deg) translate(12px, 8px); }
.fan__card:nth-child(5) { transform: rotate(24deg) translate(30px, 34px); }
.fan:hover .fan__card:nth-child(1) { transform: rotate(-30deg) translate(-70px, 30px); }
.fan:hover .fan__card:nth-child(2) { transform: rotate(-15deg) translate(-34px, 0); }
.fan:hover .fan__card:nth-child(3) { transform: rotate(0deg) translate(0, -16px); }
.fan:hover .fan__card:nth-child(4) { transform: rotate(15deg) translate(34px, 0); }
.fan:hover .fan__card:nth-child(5) { transform: rotate(30deg) translate(70px, 30px); }
.fan__card:hover { z-index: 5; }
.fan__float { animation: float 6s ease-in-out infinite; }
.fan__card:nth-child(2) .fan__float { animation-delay: -1.2s; }
.fan__card:nth-child(3) .fan__float { animation-delay: -2.4s; }
.fan__card:nth-child(4) .fan__float { animation-delay: -3.6s; }
.fan__card:nth-child(5) .fan__float { animation-delay: -4.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.sticker { position: absolute; z-index: 8; font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 9px 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--paper); white-space: nowrap; }
.sticker--a { top: 4%; right: 2%; transform: rotate(7deg); }
.sticker--b { bottom: 6%; left: 0; transform: rotate(-6deg); background: var(--paper); }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; }
  .fan { height: 400px; margin-top: 8px; }
  .fan__card { width: 186px; margin-left: -93px; margin-top: -150px; }
  .fan__card:nth-child(1), .fan__card:nth-child(5) { display: none; }
  .sticker--a { right: 0; top: 0; }
  .sticker--b { left: 0; bottom: 2%; }
}

/* ------------------------------------------------------------------ ticker */
.ticker { background: var(--yellow); color: var(--ink); border-block: 2px solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 0; padding: 14px 0; animation: tick 70s linear infinite; font-family: var(--mono); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.ticker__track span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; }
.ticker__track span::after { content: "\2726"; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ------------------------------------------------------------------ kit */
.kit { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.kit__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 34px; }
.kit__head .lede { max-width: 46ch; margin-top: 18px; }

.tools { position: sticky; top: var(--head); z-index: 40; margin: 0 calc(var(--gutter) * -1) 40px; padding: 14px var(--gutter); background: rgba(14,14,14,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted-d); pointer-events: none; }
.search input { width: 100%; height: 50px; padding: 0 44px 0 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--ink-2); color: var(--paper); font-size: 1rem; outline: none; transition: border-color .15s; }
.search input::placeholder { color: #7C7C7C; }
.search input:focus { border-color: var(--yellow); }
.search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted-d); }
.search__clear:hover { color: var(--paper); background: var(--ink-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 15px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .9rem; color: #D6D6D6; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s, color .15s; }
.chip small { font-family: var(--mono); font-size: .72rem; color: var(--muted-d); }
.chip:hover { border-color: #5A5A5A; color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip[aria-pressed="true"] small { color: var(--ink); }
.surprise { margin-left: auto; height: 50px; padding: 0 20px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--paper); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.surprise:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }
.surprise svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .tools { gap: 10px; padding-top: 10px; padding-bottom: 10px; margin-bottom: 24px; }
  .search { flex: 1 1 0; min-width: 0; max-width: none; order: 1; }
  .search input { height: 46px; }
  .surprise { order: 2; margin-left: 0; width: 46px; height: 46px; padding: 0; justify-content: center; flex: none; font-size: 0; gap: 0; }
  .surprise:hover { transform: none; box-shadow: none; }
  .chips { order: 3; flex: 1 1 100%; }
  .chip { height: 36px; padding: 0 13px; }
}


.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: clamp(22px, 2.6vw, 34px); perspective: 1600px; }
.grid__item { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.grid__item.is-out { display: none; }
.grid__item.is-in { animation: dealIn .5s var(--ease) both; }
@keyframes dealIn { from { opacity: 0; transform: translateY(26px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
.empty { padding: 60px 0; text-align: center; color: var(--muted-d); font-size: 1.1rem; }
.empty b { color: var(--paper); }
.empty button { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ the card */
.card { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0; position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; border-radius: 18px; color: var(--paper); text-align: left;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; will-change: transform;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -18px rgba(0,0,0,.9); }
.card.is-live { transition: transform .08s linear, box-shadow .3s; }
.card:hover, .card.is-live { box-shadow: 0 30px 60px -20px rgba(0,0,0,.95), 0 0 0 2px var(--yellow); }
.card__face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #151515; border: 1px solid #333; padding: 10px; display: flex; flex-direction: column; }
.card__face::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(250,208,44,.45); border-radius: 13px; pointer-events: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 9px; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.card__type { background: var(--yellow); color: var(--ink); padding: 3px 7px; border-radius: 4px; }
.card__art { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; flex: none; box-shadow: 0 0 0 2px var(--ink); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transform: translateZ(0) scale(1.02); transition: transform .6s var(--ease); }
.card:hover .card__art img { transform: scale(1.07); }
.card__tag { position: absolute; top: 9px; right: 9px; z-index: 2; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .12em; padding: 5px 8px; transform: rotate(4deg); box-shadow: 2px 2px 0 var(--yellow); }
.card__body { padding: 13px 7px 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 1.28rem; line-height: 1.02; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__what { margin-top: 8px; font-size: .88rem; line-height: 1.42; color: var(--muted-d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px 3px; border-top: 1px dashed #343434; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.card__foot b { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.card__foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #262626; color: var(--paper); transition: background .2s, color .2s, transform .2s; flex: none; }
.card:hover .card__go { background: var(--yellow); color: var(--ink); transform: rotate(45deg); }
.card__go svg { width: 13px; height: 13px; }

/* the foil: a prismatic sheen and a glare that follow the pointer */
.card__foil, .card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; opacity: var(--o); transition: opacity .4s; }
.card__foil { mix-blend-mode: color-dodge; filter: brightness(.55) contrast(1.6) saturate(1.3);
  background-image: repeating-linear-gradient(115deg, #ff3d8b 0%, #ffd23f 7%, #3dffb5 14%, #3dc8ff 21%, #b13dff 28%, #ff3d8b 35%);
  background-size: 260% 260%; background-position: var(--mx) var(--my); }
.card__glare { mix-blend-mode: overlay; background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.75) 0%, rgba(255,255,255,.12) 30%, rgba(0,0,0,.35) 90%); }
.card:hover, .card.is-live { --o: 1; }
.card:hover .card__foil, .card.is-live .card__foil { opacity: .5; }

/* Pea's card: gold border, foil always on a little */
.card--pea .card__face { background: #13170C; border-color: #4B5E1E; }
.card--pea .card__face::before { border-color: rgba(141,179,58,.7); }
.card--pea .card__type { background: var(--pea); }
.card--pea .card__art { background: var(--yellow); overflow: visible; }
.card--pea .card__art::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background-image: radial-gradient(rgba(14,14,14,.22) 1.4px, transparent 1.6px); background-size: 9px 9px; }
.card--pea .card__art img { position: absolute; left: 50%; bottom: 0; width: auto; height: 118%; object-fit: contain; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); }
.card--pea:hover .card__art img { transform: translateX(-50%) scale(1.06) translateY(-4px); }
.card--pea .card__foil { --o: .55; opacity: .32; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.card--pea .card__title { color: #CFE59A; }

/* the back of a card, used by Surprise me */
.back { position: absolute; inset: 0; border-radius: 18px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; backface-visibility: hidden; }
.back::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--ink); border-radius: 12px; }
.back::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,14,14,.16) 1.5px, transparent 1.7px); background-size: 10px 10px; }
.back img { position: relative; z-index: 1; width: 72%; }
.back span { position: absolute; z-index: 1; bottom: 22px; font-family: var(--mono); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }

/* ------------------------------------------------------------------ Pea band */
.pea { position: relative; background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.pea::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14,14,14,.13) 1.6px, transparent 1.8px); background-size: 12px 12px; }
.pea .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; padding-block: clamp(56px, 7vw, 96px); }
.pea .kicker::before { background: var(--ink); }
.pea .h1 span:last-child { color: var(--ink); background: var(--paper); width: fit-content; padding: 0 .1em; margin-top: .05em; box-shadow: 6px 6px 0 var(--ink); }
.pea__lines { margin-top: 26px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; font-weight: 600; max-width: 30ch; }
.pea__price { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 8px 12px; }
.pea__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pea__stage { position: relative; height: clamp(340px, 38vw, 500px); }
.pea__stage img { position: absolute; bottom: 0; filter: drop-shadow(0 22px 22px rgba(0,0,0,.28)); }
.pea__hero { left: 50%; height: 96%; width: auto; transform: translateX(-50%); animation: bob 4.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); } 50% { transform: translateX(-50%) translateY(-14px) rotate(1.5deg); } }
.pea__bubble { position: absolute; top: 8%; left: 2%; z-index: 2; background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 16px; padding: 12px 16px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; transform: rotate(-4deg); }
.pea__bubble::after { content: ""; position: absolute; right: 26px; bottom: -14px; width: 22px; height: 22px; background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }
@media (max-width: 860px) { .pea .wrap { grid-template-columns: 1fr; } .pea__stage { height: 320px; order: -1; } }

/* ------------------------------------------------------------------ doors */
.doors { padding: clamp(64px, 8vw, 112px) 0; }
.doors__head { text-align: center; margin-bottom: 46px; }
.doors__head .kicker { justify-content: center; }
.doors__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.door { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 26px 24px 24px; border-radius: 18px; background: var(--ink-2); border: 2px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.door:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--yellow); border-color: var(--yellow); }
.door--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.door--yellow:hover { box-shadow: 8px 8px 0 var(--paper); border-color: var(--paper); }
.door__label { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.door--yellow .door__label { color: var(--ink); }
.door__title { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.3vw, 2.1rem); line-height: .95; letter-spacing: -.04em; }
.door__title span { display: block; color: var(--yellow); }
.door--yellow .door__title span { color: var(--ink); }
.door p { margin-top: 14px; color: var(--muted-d); font-size: .98rem; line-height: 1.5; }
.door--yellow p { color: #2E2E2E; }
.door__big { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; color: var(--paper); }
.door__big small { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); margin-top: 6px; }
.door__go { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.door__go svg { width: 18px; height: 18px; transition: transform .2s; }
.door:hover .door__go svg { transform: translateX(4px); }
.door__pea { position: absolute; right: 10px; bottom: 54px; height: 120px; width: auto; transform: rotate(8deg); transition: transform .3s var(--ease); }
.door:hover .door__pea { transform: rotate(-4deg) translateY(-8px); }
@media (max-width: 1060px) { .doors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .doors__grid { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .door:has(.door__pea) { padding-right: 118px; }
  .door__pea { right: 8px; top: 50%; bottom: auto; height: 112px; transform: translateY(-50%) rotate(8deg); }
  .door:hover .door__pea { transform: translateY(-50%) rotate(-4deg); }
}

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted-d); font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot img { height: 30px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a:hover { color: var(--yellow); }
.march { position: relative; height: 170px; background: var(--yellow); border-block: 2px solid var(--ink); overflow: hidden; }
.march__walk { position: absolute; inset: 12px 0 0; background: url("img/march.png") repeat-x left bottom / auto 158px; animation: march 60s linear infinite; }
@keyframes march { to { background-position: 485px bottom; } }
.march__here { top: 16px; left: 50%; transform: rotate(-5deg); background: var(--ink); color: var(--yellow); box-shadow: 4px 4px 0 var(--paper); }

/* ------------------------------------------------------------------ inspect */
.inspect { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.inspect__veil { position: absolute; inset: 0; background: rgba(8,8,8,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.inspect.is-open .inspect__veil { opacity: 1; }
.inspect__box { position: relative; z-index: 1; width: min(1020px, 100%); display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.inspect__stage { position: relative; perspective: 1400px; }
.inspect__flip { position: relative; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.inspect__flip.is-down { transform: rotateY(180deg); }
.inspect__flip .back { transform: rotateY(180deg); }
.inspect__flip .card { backface-visibility: hidden; }
.inspect__info { opacity: 0; transform: translateY(14px); transition: opacity .4s .15s, transform .5s .15s var(--ease); }
.inspect.is-open .inspect__info { opacity: 1; transform: none; }
.inspect__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.inspect__meta span { font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border: 1.5px solid var(--line); border-radius: 6px; color: #D2D2D2; }
.inspect__meta span.is-free { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.inspect__title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; letter-spacing: -.045em; }
.inspect__long { margin-top: 18px; font-size: 1.08rem; line-height: 1.6; color: #CFCFCF; max-width: 46ch; }
.inspect__where { margin-top: 18px; font-family: var(--mono); font-size: .8rem; color: var(--muted-d); word-break: break-all; }
.inspect__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.inspect__ctas .btn { min-height: 50px; }
.inspect__nav { display: flex; gap: 10px; margin-top: 30px; }
.iconbtn { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; color: var(--paper); transition: border-color .15s, background .15s; background: rgba(14,14,14,.6); }
.iconbtn:hover { border-color: var(--yellow); }
.iconbtn svg { width: 20px; height: 20px; }
.inspect__close { position: absolute; top: -8px; right: 0; z-index: 3; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%) translateY(20px); background: var(--yellow); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 10px; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }
@media (max-width: 820px) {
  .inspect { place-items: start center; overflow-y: auto; padding: 64px 18px 32px; }
  .inspect__box { grid-template-columns: 1fr; gap: 26px; }
  .inspect__stage { width: min(300px, 78vw); margin: 0 auto; }
  .inspect__close { position: fixed; top: 14px; right: 14px; }
}
body.is-locked { overflow: hidden; }

/* phones: two cards a row, like a binder page */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .grid .card { aspect-ratio: 5 / 7.7; border-radius: 12px; }
  .grid .card__face { padding: 6px; }
  .grid .card__face::before { inset: 3px; border-radius: 9px; }
  .grid .card__top { font-size: .54rem; letter-spacing: .05em; padding: 2px 3px 6px; }
  .grid .card__type { padding: 2px 5px; }
  .grid .card__art { border-radius: 7px; }
  .grid .card--pea .card__art::before { border-radius: 7px; background-size: 7px 7px; }
  .grid .card__tag { font-size: .5rem; letter-spacing: .06em; padding: 3px 5px; top: 5px; right: 5px; }
  .grid .card__body { padding: 8px 3px 0; }
  .grid .card__title { font-size: .98rem; }
  .grid .card__what { margin-top: 5px; font-size: .7rem; line-height: 1.3; }
  .grid .card__foot { font-size: .5rem; letter-spacing: .04em; gap: 4px; padding: 7px 2px 1px; }
  .grid .card__foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grid .card__go { width: 20px; height: 20px; }
  .grid .card__go svg { width: 10px; height: 10px; }
}

/* the hero fan cards are smaller: one line of description */
.fan .card__what { -webkit-line-clamp: 1; }

/* a tall Pea pose can poke above the art window; the number and type stay on top */
.card__top { position: relative; z-index: 3; }
@media (max-width: 600px) { .fan .card__what { display: none; } }
