:root { --cream:#fff8e7; --ink:#2a1f14; --soft:#75654f; --hot:#ff7a1a; --banana:#ffd23f; --white:#fff; --edge:#2a1f14; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 700 17px/1.5 Nunito, system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3, .logo, .btn, dd { font-family: Fredoka, Nunito, system-ui, sans-serif; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
main > section { max-width: 1160px; margin: 0 auto; padding: 24px 24px 0; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: var(--banana); border-bottom: 4px solid var(--edge); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; text-decoration: none; transform: rotate(-2deg); }
.logo img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 3px solid var(--edge); border-radius: 14px; }
nav { display: flex; align-items: center; gap: 16px; }
nav a { text-decoration: none; font-weight: 800; }
nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.pill-nav { padding: 6px 14px; background: #fff; border: 3px solid var(--edge); border-radius: 999px; }

main > .hero { max-width: none; padding: 32px max(24px, calc((100vw - 1112px) / 2)); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--banana); border-bottom: 4px solid var(--edge); }
.eyebrow { margin: 0 0 6px; color: #a84200; font: 700 24px Fredoka, sans-serif; }
h1 { margin: 0; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.02; font-weight: 700; }
.sub { max-width: 500px; margin: 10px 0 16px; font-size: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-block; padding: 12px 24px; background: #fff; border: 4px solid var(--edge); border-radius: 999px; box-shadow: 0 5px 0 var(--edge); font-size: 19px; font-weight: 600; text-decoration: none; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--edge); }
.btn:active { transform: translateY(5px); box-shadow: none; }
.btn.hot { background: var(--hot); color: var(--ink); }

.showcase { position: relative; aspect-ratio: 1.6; border: 5px solid var(--edge); border-radius: 32px; background: var(--hot); box-shadow: 0 10px 0 var(--edge); }
.art-pile { position: absolute; inset: 0; overflow: hidden; border-radius: 26px; }
.art-pile img { position: absolute; width: 56%; aspect-ratio: 1; object-fit: cover; border: 5px solid #fff; border-radius: 24px; box-shadow: 0 8px 18px #0005; }
.art-pile img:nth-child(1) { left: -6%; top: -8%; transform: rotate(-9deg); }
.art-pile img:nth-child(2) { right: -6%; top: -12%; transform: rotate(7deg); }
.art-pile img:nth-child(3) { left: 2%; bottom: -16%; transform: rotate(6deg); }
.art-pile img:nth-child(4) { right: -3%; bottom: -14%; transform: rotate(-6deg); }
.mascot { position: absolute; top: -34px; left: 50%; width: 92px; height: 92px; margin-left: -46px; object-fit: contain; background: #fff; border: 4px solid var(--edge); border-radius: 50%; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }

h2 { margin: 0; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; font-weight: 700; }
.section-sub { margin: 4px 0 22px; color: var(--soft); font-size: 18px; }

.tabs { display: flex; justify-content: center; gap: 10px; max-width: 1160px; margin: 0 auto; padding: 22px 24px 0; }
.tabs a { padding: 8px 26px; background: #fff; border: 4px solid var(--edge); border-radius: 999px; font: 600 19px Fredoka, sans-serif; text-decoration: none; }
.tabs a:hover { background: var(--banana); }
.tabs a[aria-current] { background: var(--hot); box-shadow: 0 4px 0 var(--edge); }
main > .panel[hidden] { display: none; }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tiles > li { width: 172px; }
.tile { display: block; height: 100%; overflow: hidden; background: #fff; border: 4px solid var(--edge); border-radius: 24px; box-shadow: 0 6px 0 var(--edge); text-decoration: none; transition: transform .12s; }
a.tile:hover { transform: translateY(-4px) rotate(-1deg); }
.tile-art { display: grid; place-items: center; aspect-ratio: 1; background: var(--banana); font: 700 44px Fredoka, sans-serif; border-bottom: 4px solid var(--edge); }
.tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-name { display: block; padding: 10px 12px 0; font: 600 19px/1.15 Fredoka, sans-serif; overflow-wrap: anywhere; }
.tile-stat { display: block; min-height: 22px; padding: 2px 12px 12px; color: var(--soft); font-size: 14px; }
.notice button { margin-left: 8px; font: inherit; }

main > .numbers { max-width: none; padding: 18px max(24px, calc((100vw - 1112px) / 2)); background: var(--ink); color: #fff; }
main > .numbers[hidden] { display: none; }
.numbers .section-sub { color: #cdbfa8; }
.numbers dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 0; }
.numbers dl > div[hidden] { display: none; }
dd { margin: 0; color: var(--banana); font-size: clamp(34px, 4vw, 48px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
dt { font: 600 15px Fredoka, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.numbers small { display: block; color: #cdbfa8; font-size: 13px; }

.groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.groups > li { width: 360px; max-width: 100%; }
.group { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 4px solid var(--edge); border-radius: 20px; text-decoration: none; }
a.group:hover { background: var(--banana); }
.group-art { display: grid; place-items: center; width: 56px; height: 56px; flex: none; overflow: hidden; background: var(--banana); border-radius: 12px; font: 700 20px Fredoka, sans-serif; }
.group-art img { width: 100%; height: 100%; object-fit: cover; }
.group-name { flex: 1; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.group-count { color: #a84200; font: 700 20px Fredoka, sans-serif; text-align: right; }
#people-list .group-count { font-size: 16px; }
.creator .group-art { width: 64px; height: 64px; border: 3px solid var(--edge); border-radius: 50%; }
.creator .group-name { font: 600 20px/1.15 Fredoka, sans-serif; }
.creator .group-name small { display: block; color: var(--soft); font: 700 14px Nunito, sans-serif; }
#people-list .creator .group-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 16px; }
.creator .group-count svg { width: 15px; height: 15px; fill: currentColor; }
.retired-head { margin: 20px 0 10px; text-align: center; color: var(--soft); font-size: 22px; font-weight: 600; }
.group.retired { border-style: dashed; background: transparent; }
.retired .group-art img { filter: grayscale(1); transition: filter .15s; }
.retired:hover .group-art img { filter: none; }
.retired .group-count { color: var(--soft); font-size: 16px; }

.panel > :first-child, .panel > :first-child > .retired-head:first-child { margin-top: 0; }
.work-list { display: grid; gap: 14px; }
a.feature { display: block; text-decoration: none; }
.sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 22px 0 12px; }
.sub-head .retired-head { margin: 0; }
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.repo { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 4px solid var(--edge); border-radius: 22px; box-shadow: 0 6px 0 var(--edge); text-decoration: none; overflow-wrap: anywhere; transition: transform .12s; }
a.repo:hover { transform: translateY(-4px) rotate(-1deg); }
.repo-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--banana); border-bottom: 4px solid var(--edge); }
.repo-head svg { width: 24px; height: 24px; flex: none; fill: var(--ink); }
.repo-head b { font: 600 20px/1.1 Fredoka, sans-serif; }
.repo-desc { flex: 1; padding: 10px 14px; font-size: 15px; line-height: 1.35; }
.repo-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; padding: 0 14px 12px; }
.repo-meta i { padding: 2px 12px; background: var(--hot); border-radius: 999px; font: 600 14px Fredoka, sans-serif; }
.repo-meta em { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 12px; background: var(--ink); color: #fff; border-radius: 999px; font: 600 14px Fredoka, sans-serif; }
.repo-meta svg { width: 13px; height: 13px; fill: var(--banana); }
.feature { padding: 18px 22px; background: var(--hot); color: var(--ink); border: 4px solid var(--edge); border-radius: 28px; box-shadow: 0 6px 0 var(--edge); }
.tag { display: inline-block; margin: 0 0 8px; padding: 2px 12px; background: #fff; color: var(--ink); border-radius: 999px; font-size: 14px; }
.feature h3 { margin: 0 0 4px; font-size: clamp(28px, 3.5vw, 38px); line-height: 1; }
.feature p:last-child { margin: 0; font-size: 16px; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skills li { padding: 12px; background: #fff; border: 4px solid var(--edge); border-radius: 20px; font-size: 15px; line-height: 1.35; }
.skills b { display: block; font: 600 19px Fredoka, sans-serif; }
.jobs { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; align-items: center; gap: 8px 32px; margin-top: 16px; }
.jobs p { margin: 0; color: var(--soft); }
.jobs b { display: block; color: var(--ink); }

main > .contact { max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; padding: 24px max(24px, calc((100vw - 1112px) / 2)); background: var(--banana); border-top: 4px solid var(--edge); }
.contact h2 { font-size: clamp(26px, 3vw, 34px); }
.contact p { margin: 4px 0 0; max-width: 560px; }
.contact-actions { text-align: center; }
.btn.email { background: var(--hot); color: var(--ink); font-size: clamp(18px, 2.4vw, 24px); overflow-wrap: anywhere; }
.contact .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 12px auto 0; }
.foot { display: flex; justify-content: space-between; padding: 14px 24px; background: var(--ink); color: #fff; font-size: 14px; }
.foot a { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #0a58ca; outline-offset: 3px; }

@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.94); } 70% { transform: translateY(-3px) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { 50% { translate: 0 -8px; } }
@keyframes tab-bounce { 40% { transform: scale(1.1) rotate(-2deg); } }
@keyframes wiggle { 25% { transform: rotate(-6deg) scale(1.08); } 75% { transform: rotate(6deg) scale(1.08); } }
.hero-copy > * { animation: rise .5s ease-out both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.showcase { animation: pop-in .6s ease-out .1s both; }
.art-pile img { animation: drift 5s ease-in-out infinite; }
.art-pile img:nth-child(2) { animation-delay: -1.2s; }
.art-pile img:nth-child(3) { animation-delay: -2.4s; }
.art-pile img:nth-child(4) { animation-delay: -3.6s; }
.numbers dl > div { animation: rise .5s ease-out .2s both; transition: transform .15s; }
.numbers dl > div:hover { transform: scale(1.05); }
.tabs a { transition: transform .12s, background .12s; }
.tabs a:hover { transform: translateY(-2px); }
.tabs a[aria-current] { animation: tab-bounce .3s ease-out; }
.tiles > li, .repos > li, .skills > li, .feature, .panel .groups { animation: pop-in .45s ease-out both; }
.tiles > li:nth-child(2), .repos > li:nth-child(2), .skills > li:nth-child(2) { animation-delay: .06s; }
.tiles > li:nth-child(3), .repos > li:nth-child(3), .skills > li:nth-child(3) { animation-delay: .12s; }
.tiles > li:nth-child(4), .repos > li:nth-child(4), .skills > li:nth-child(4) { animation-delay: .18s; }
.tiles > li:nth-child(n+5), .repos > li:nth-child(n+5) { animation-delay: .24s; }
.tile-art img { transition: transform .2s; }
a.tile:hover .tile-art img { transform: scale(1.08); }
.group { transition: transform .12s, background .12s; }
a.group:hover { transform: translateY(-3px); }
a.group:hover .group-art { animation: wiggle .4s ease-in-out; }
a.repo:hover .repo-head svg { animation: wiggle .4s ease-in-out; }
.skills > li { transition: translate .12s; }
.skills > li:hover { translate: 0 -3px; }

@media (max-width: 900px) {
  main > .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .showcase { display: none; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tiles > li { width: auto; }
  .numbers dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .numbers small { display: none; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups > li { width: 100%; }
}
@media (max-width: 480px) {
  .top { padding: 8px 14px; }
  .tabs a { padding: 6px 16px; font-size: 17px; }
  dd { font-size: 26px; }
  dt { font-size: 12px; }
  .logo { font-size: 20px; }
  .logo img { width: 36px; height: 36px; }
  nav a:not(.pill-nav) { display: none; }
  .pill-nav { padding: 3px 9px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
    .tile-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }
