/* Toybox: chunky plastic blocks, thick ink outlines, hard offset shadows, primary colours. Light only. */
:root {
	--bg: #eaf0ff;
	--ink: #16192b;
	--ink-soft: #3c4160;
	--red: #ef3b36;
	--yellow: #ffc533;
	--blue: #2f6fec;
	--green: #1f9a5a;
	--white: #ffffff;
	--pink-tint: #ffe3e1;
	--blue-tint: #dfe9ff;
	--yellow-tint: #fff4d1;
	--display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
	--body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 14px;
	--shadow: 6px 6px 0 var(--ink);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p a, dd a { color: var(--blue); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, 4vw); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; border: 3px solid var(--ink); border-radius: 10px; }

.block { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); overflow: hidden; }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.25rem; text-decoration: none; display: inline-flex; align-items: center; }
.studs { display: inline-flex; gap: 4px; margin-right: 10px; }
.studs i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.studs i:nth-child(1) { background: var(--red); }
.studs i:nth-child(2) { background: var(--yellow); }
.studs i:nth-child(3) { background: var(--blue); }
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar nav a { font-family: var(--display); font-weight: 700; text-decoration: none; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.topbar nav a:hover { background: var(--yellow); }

/* Buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-family: var(--display); font-weight: 800; text-decoration: none; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); background: var(--red); color: var(--white); transition: transform .1s, box-shadow .1s; display: inline-block; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(32px, 5vw, 64px); }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); margin: 0 0 12px; }
.hero h1 { font-weight: 900; font-size: clamp(2.8rem, 7.5vw, 5.8rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 20px; }
.pop { display: inline-block; background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; padding: 0 .16em; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); }
.lede { font-size: 1.15rem; max-width: 42ch; margin: 0 0 24px; }
.hero-clip { position: relative; margin: 0; transform: rotate(1.2deg); }
.hero-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.sticker { position: absolute; top: -14px; right: 18px; background: var(--green); color: var(--white); font-family: var(--display); font-weight: 800; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 999px; transform: rotate(4deg); font-size: .85rem; }
.me { position: absolute; left: -14px; bottom: -24px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; box-shadow: 4px 4px 0 var(--ink); background: var(--white); }

/* Sections */
.section { padding-block: 48px; }
.section-title { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 22px; }

/* Featured */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--ink); }
.card-body { padding: 20px 22px 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card-1 { background: var(--pink-tint); }
.card-2 { background: var(--blue-tint); }
.card h3 { font-weight: 900; font-size: 2rem; }
.card p { margin: 0; }
.meta { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.go { font-family: var(--display); font-weight: 800; color: var(--red); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pills li { font-family: var(--display); font-weight: 700; font-size: .8rem; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; }

/* Tags */
.tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; border-radius: 6px; border: 2px solid var(--ink); }
.tag-studio { background: var(--blue); color: var(--white); }
.tag-client { background: var(--red); color: var(--white); }
.tag-jam { background: var(--green); color: var(--white); }
.tag-student { background: var(--yellow); color: var(--ink); }
.legend { list-style: none; padding: 0; margin: -6px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--ink-soft); }

/* Other work shelf */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.toy { text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.toy:hover { transform: translateY(-3px); }
.toy img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--ink); }
.toy-media { position: relative; }
.hover-loop { position: absolute; inset: 0; width: 100%; height: calc(100% - 3px); object-fit: cover; opacity: 0; transition: opacity .2s; background: var(--ink); }
.hover-loop.on { opacity: 1; }
.play-chip { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.toy-body { padding: 12px 14px 14px; display: grid; gap: 4px; justify-items: start; }
.toy h3 { font-weight: 800; font-size: 1.15rem; }
.toy p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }

/* About + awards */
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.panel { padding: 24px 26px; }
.panel p { margin: 0 0 12px; }
.panel-yellow { background: var(--yellow-tint); }
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.awards li { display: flex; gap: 14px; align-items: center; }
.medal { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.15rem; line-height: 1; }
.medal svg { display: block; }
.awards b { display: block; font-family: var(--display); font-weight: 700; line-height: 1.25; }
.awards span { font-size: .88rem; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--blue); color: var(--white); padding: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.contact .section-title { margin-bottom: 6px; }
.mail { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0; user-select: all; word-break: break-all; }

.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 28px 40px; font-family: var(--display); font-weight: 700; font-size: .9rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Project pages */
.back { display: inline-block; font-family: var(--display); font-weight: 700; text-decoration: none; margin: 4px 0 18px; }
.back:hover { color: var(--red); }
.project-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 24px; }
.project-head h1 { font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -.02em; }
.project-head .lede { margin: 0; }
.project-hero img, .project-hero video { display: block; width: 100%; max-height: 520px; object-fit: cover; background: var(--ink); }
.project-hero.has-phone { position: relative; padding-bottom: 36px; }
.project-hero.has-phone > .block:first-child { margin-right: 120px; }
.phone-loop { position: absolute; right: 0; bottom: 0; width: clamp(120px, 20vw, 230px); border-radius: 22px; overflow: hidden; transform: rotate(3deg); background: var(--ink); border-width: 5px; }
.phone-loop video { max-height: none; aspect-ratio: 9 / 16; object-fit: cover; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 40px; align-items: start; }
.project-page section { margin-bottom: 40px; }
.project-page h2 { font-weight: 900; font-size: 1.7rem; margin-bottom: 14px; }
.project-main p { max-width: 66ch; margin: 0 0 12px; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.roles li { padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 4px; }
.roles b { font-family: var(--display); font-size: 1.05rem; }
.roles span { font-size: .95rem; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-style: italic; }
.breakdowns { display: grid; gap: 16px; }
.breakdown { padding: 18px 20px; }
.breakdown.is-draft { border-style: dashed; box-shadow: none; background: transparent; }
.breakdown h3 { font-size: 1.3rem; margin-bottom: 8px; }
.breakdown dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.breakdown dt { font-family: var(--display); font-weight: 700; }
.breakdown dd { margin: 0; color: var(--ink-soft); }
.breakdown pre { margin: 12px 0 0; padding: 14px; background: var(--ink); color: #e8ebf5; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
.facts { padding: 20px 22px; display: grid; gap: 16px; position: sticky; top: 16px; background: var(--yellow-tint); margin-bottom: 40px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.facts dt { font-family: var(--display); font-weight: 700; }
.facts dd { margin: 0; }
.synopsis { margin: 0; font-size: .95rem; }
.video-frame { aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.doc { text-decoration: none; display: grid; }
.doc img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.doc span { padding: 8px 12px; font-family: var(--display); font-weight: 700; font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { box-shadow: 4px 4px 0 var(--ink); display: block; }
.shot img, .shot video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
a.shot { transition: transform .15s; }
a.shot:hover { transform: translateY(-2px); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; text-decoration: none; background: var(--yellow); margin-bottom: 24px; }
.next span { font-family: var(--display); font-weight: 700; }
.next b { font-family: var(--display); font-size: 1.4rem; }

/* Lightbox */
.lightbox { border: 3px solid var(--ink); border-radius: var(--radius); padding: 0; max-width: min(1200px, 94vw); background: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(22, 25, 43, .8); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); font: 800 1.5rem/1 var(--display); cursor: pointer; color: var(--ink); }
.lb-close { top: -16px; right: -16px; }
.lb-prev { left: -16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 980px) {
	.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-grid { grid-template-columns: 1fr; }
	.facts { position: static; order: -1; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.project-hero.has-phone { padding-bottom: 0; }
	.project-hero.has-phone > .block:first-child { margin-right: 0; }
	.phone-loop { position: relative; width: 150px; margin: -28px 14px 0 auto; }
	.hero, .featured, .two { grid-template-columns: 1fr; }
	.hero-clip { margin-top: 12px; }
	.roles { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
	body { font-size: 16px; }
	.shelf { gap: 14px; }
	.toy-body { padding: 10px; }
	.block { box-shadow: 4px 4px 0 var(--ink); }
	.lb-prev, .lb-next { display: none; }
	.lb-close { top: 8px; right: 8px; }
}
