/* Home landing page "Studio story" (Brian 2026-10-19, designbook_shell/02-portfolio.md): hero, Watch (latest
   @BoredKiwiNZ uploads), Play in your browser, About. Layered over boredkiwi-level-select.css + boredkiwi-shelves.css;
   only rendered on the default home view of sub/product_list.php. Light-only, like the rest of the paper-cut site. */
/* ===== 1. HERO ======================================================================= */
html body #ProductListWrap .l1-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px 64px; align-items: center; padding: 56px 0 104px;
}
html body #ProductListWrap .l1-hero .bk-catalogue-title { margin: 0; }
html body #ProductListWrap .l1-hero-sub {
	max-width: 40ch; margin: 24px 0 32px;
	font-size: 18px; font-weight: 500; line-height: 1.6; color: rgba(22, 32, 25, .82);
}
html body #ProductListWrap .l1-ctas { display: flex; flex-wrap: wrap; gap: 14px 16px; }
html body #ProductListWrap .l1-ctas .mb-btn { margin: 0; min-height: 54px; padding: 0 24px; font-size: 16px; white-space: nowrap; }

/* Collage: 8 project-icon stickers + the Bored Kiwi mascot on one paper panel.
   4 x 3 grid, mascot takes the 2 x 2 bottom-right block, so there are no empty cells. */
html body #ProductListWrap .l1-collage {
	justify-self: end; box-sizing: border-box; width: min(100%, 600px); margin: 0 12px 0 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-areas: "a b c d" "e f m m" "g h m m";
	gap: 22px; padding: 30px; list-style: none;
	border-radius: 24px; background: var(--ls-paper); box-shadow: var(--ls-tile-shadow);
	transform: rotate(-1.2deg);
}
html body #ProductListWrap .l1-sticker {
	display: block; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--ls-panel);
	box-shadow: 0 0 0 4px var(--ls-cream), 0 0 0 5.5px var(--ls-line), 4px 6px 0 5.5px var(--ls-shadow);
	transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
}
html body #ProductListWrap .l1-sticker img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(1) .l1-sticker { --r: -6deg; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(2) .l1-sticker { --r: 4deg; --y: 8px; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(3) .l1-sticker { --r: -3deg; --y: -4px; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(4) .l1-sticker { --r: 7deg; --y: 6px; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(5) .l1-sticker { --r: 5deg; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(6) .l1-sticker { --r: -5deg; --y: 6px; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(7) .l1-sticker { --r: 3deg; --y: -2px; }
html body #ProductListWrap .l1-collage .l1-cell:nth-child(8) .l1-sticker { --r: -7deg; --y: 4px; }
html body #ProductListWrap .l1-collage .l1-mascot-cell { grid-area: m; position: relative; }
html body #ProductListWrap .l1-mascot {
	position: absolute; right: -34px; bottom: -40px; width: 130%; height: auto; max-width: none;
	transform: rotate(-4deg);
	filter:
		drop-shadow(3px 0 0 var(--ls-cream)) drop-shadow(-3px 0 0 var(--ls-cream))
		drop-shadow(0 3px 0 var(--ls-cream)) drop-shadow(0 -3px 0 var(--ls-cream))
		drop-shadow(6px 8px 0 var(--ls-shadow));
}

/* Hero entrance: stickers land one by one, then the kiwi hops in (storytelling: "this is
   everything we made"). Runs once on load; off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html body #ProductListWrap .l1-hero-copy { animation: l1-rise .6s cubic-bezier(.16, 1, .3, 1) both; }
	html body #ProductListWrap .l1-sticker { animation: l1-pop .55s var(--ls-spring) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
	html body #ProductListWrap .l1-mascot { animation: l1-hop .6s var(--ls-spring) .85s both; }
}
@keyframes l1-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes l1-pop { from { opacity: 0; transform: rotate(0deg) scale(.4); } }
@keyframes l1-hop { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }

/* ===== Shared: right-hand link in a section heading ====================================== */
html body #ProductListWrap .bk-section-heading .l1-more { margin: 0; }

/* ===== 3. WATCH: vertical video cards ===================================================== */
html body #ProductListWrap .l1-vid-row {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px;
	margin: 0; padding: 12px 0 0; list-style: none;
}
html body #ProductListWrap .l1-vid {
	position: relative; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--ls-ink);
	box-shadow: var(--ls-tile-shadow); transform: rotate(var(--t, 0deg));
	transition: transform .2s var(--ls-spring), box-shadow .2s ease;
}
html body #ProductListWrap .l1-vid:nth-child(1) { --t: -.8deg; }
html body #ProductListWrap .l1-vid:nth-child(2) { --t: .6deg; }
html body #ProductListWrap .l1-vid:nth-child(3) { --t: -.4deg; }
html body #ProductListWrap .l1-vid:nth-child(4) { --t: .9deg; }
html body #ProductListWrap .l1-vid:nth-child(5) { --t: -.6deg; }
html body #ProductListWrap .l1-vid-link {
	position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit;
	color: var(--ls-cream); text-decoration: none;
}
/* Thumbnails are YouTube hqdefault 4:3 frames with the vertical video in the middle; a centred
   9:16 cover crop shows just the video. */
html body #ProductListWrap .l1-vid-link img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
html body #ProductListWrap .l1-play {
	position: absolute; top: 40%; left: 50%; display: grid; place-items: center;
	width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--ls-rust);
	box-shadow: 0 0 0 4px var(--ls-cream), 0 5px 0 4px rgba(22, 32, 25, .35);
	transition: transform .2s var(--ls-spring);
}
html body #ProductListWrap .l1-play svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--ls-cream); }
html body #ProductListWrap .l1-vid-cap {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 5px;
	padding: 56px 14px 16px;
	background: linear-gradient(to top, rgba(22, 32, 25, .94) 0%, rgba(22, 32, 25, .78) 50%, rgba(22, 32, 25, 0) 100%);
}
html body #ProductListWrap .l1-vid-tag {
	font-family: var(--ls-ui); font-size: 12px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--ls-rust-tint);
}
html body #ProductListWrap .l1-vid-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-family: var(--ls-ui); font-size: 15px; font-weight: 600; line-height: 1.3;
}
@media (hover: hover) {
	html body #ProductListWrap .l1-vid:not(.is-playing):hover { transform: translateY(-4px); box-shadow: var(--ls-tile-shadow-up); }
	html body #ProductListWrap .l1-vid:not(.is-playing):hover .l1-play { transform: scale(1.1); }
}
html body #ProductListWrap .l1-vid:not(.is-playing):active { transform: translateY(3px); box-shadow: var(--ls-tile-shadow-down); }
html body #ProductListWrap .l1-vid-link:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 10px; }
html body #ProductListWrap .l1-vid.is-playing { transform: none; }
html body #ProductListWrap .l1-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }

/* ===== 4. PLAY IN YOUR BROWSER: 5-cell bento (Constellody tall + 4 web games) ============== */
html body #ProductListWrap .l1-play-grid {
	display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
	gap: 36px 32px; padding-top: 12px;
}
html body #ProductListWrap .l1-sky {
	grid-row: 1 / 3; position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: 34px 32px 32px; border-radius: 20px; color: var(--ls-cream);
	background:
		radial-gradient(circle at 18% 22%, rgba(255, 253, 248, .9) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 72% 14%, rgba(255, 253, 248, .8) 0 1.2px, transparent 2px),
		radial-gradient(circle at 86% 38%, rgba(242, 184, 51, .9) 0 2px, transparent 3px),
		radial-gradient(circle at 58% 30%, rgba(255, 253, 248, .6) 0 1px, transparent 2px),
		radial-gradient(circle at 34% 46%, rgba(255, 253, 248, .7) 0 1.2px, transparent 2px),
		radial-gradient(circle at 90% 62%, rgba(255, 253, 248, .6) 0 1px, transparent 2px),
		linear-gradient(165deg, #24344d 0%, var(--ls-ink) 78%);
	box-shadow: var(--ls-tile-shadow); transform: rotate(-.5deg);
}
html body #ProductListWrap .l1-sky-icon {
	width: 128px; height: 128px; margin: 0 0 auto; border-radius: 24%;
	box-shadow: 0 0 0 4px var(--ls-cream), 0 0 0 5.5px var(--ls-line), 5px 7px 0 5.5px rgba(0, 0, 0, .28);
}
html body #ProductListWrap .l1-sky .mb-kicker { margin-top: 40px; }
html body #ProductListWrap .l1-sky-title {
	margin: 0; font-family: var(--ls-display); font-size: clamp(32px, 3vw, 44px); font-weight: 400; line-height: 1.05;
}
html body #ProductListWrap .l1-sky-copy { max-width: 34ch; margin: 2px 0 6px; font-size: 16px; font-weight: 500; line-height: 1.55; color: rgba(255, 253, 248, .86); }
html body #ProductListWrap .l1-sky .mb-btn { align-self: flex-start; }
/* The tall desktop tile: a faint dotted constellation fills the sky between the icon and the copy. */
html body #ProductListWrap .l1-sky::before {
	content: ""; position: absolute; inset: 22% 8% 42%; pointer-events: none;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'><g fill='none' stroke='%23fffdf8' stroke-opacity='.38' stroke-width='1.4' stroke-dasharray='3 5'><polyline points='22,170 78,128 132,150 176,92 236,108 278,46'/><polyline points='176,92 160,40'/></g><g fill='%23fffdf8'><circle cx='22' cy='170' r='3.2'/><circle cx='78' cy='128' r='4'/><circle cx='132' cy='150' r='3'/><circle cx='236' cy='108' r='3.4'/><circle cx='160' cy='40' r='2.6'/></g><g fill='%23f2b833'><circle cx='176' cy='92' r='5.2'/><circle cx='278' cy='46' r='4.6'/></g></svg>") center / contain no-repeat;
}
html body #ProductListWrap .l1-sky > * { position: relative; }

html body #ProductListWrap .l1-game {
	position: relative; display: flex; flex-direction: column; padding: 12px 12px 18px;
	border-radius: 18px; background: var(--ls-paper); color: var(--ls-ink); text-decoration: none;
	box-shadow: var(--ls-tile-shadow); transform: rotate(var(--t, 0deg));
	transition: transform .2s var(--ls-spring), box-shadow .2s ease;
}
html body #ProductListWrap .l1-game:nth-of-type(1) { --t: .6deg; }
html body #ProductListWrap .l1-game:nth-of-type(2) { --t: -.7deg; }
html body #ProductListWrap .l1-game:nth-of-type(3) { --t: -.4deg; }
html body #ProductListWrap .l1-game:nth-of-type(4) { --t: .8deg; }
html body #ProductListWrap .l1-game-art { display: block; aspect-ratio: 5 / 3; margin: 0 0 14px; overflow: hidden; border-radius: 10px; background: var(--ls-ink); }
html body #ProductListWrap .l1-game-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body #ProductListWrap .l1-game-name { padding: 0 6px; font-family: var(--ls-display); font-size: 25px; line-height: 1.1; }
html body #ProductListWrap .l1-game-line { padding: 5px 6px 16px; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: rgba(22, 32, 25, .8); }
html body #ProductListWrap .l1-game-go {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: auto 6px 0;
	padding: 0 20px 0 16px; box-sizing: border-box; border: 2.5px solid var(--ls-ink); border-radius: 999px;
	background: var(--ls-rust); color: var(--ls-cream); font-family: var(--ls-ui); font-size: 15px; font-weight: 600;
	box-shadow: 0 4px 0 var(--ls-ink); transition: transform .12s ease, box-shadow .12s ease;
}
html body #ProductListWrap .l1-game-go svg { width: 16px; height: 16px; fill: currentColor; }
@media (hover: hover) {
	html body #ProductListWrap .l1-game:hover { transform: translateY(-4px); box-shadow: var(--ls-tile-shadow-up); }
}
html body #ProductListWrap .l1-game:active { transform: translateY(2px); box-shadow: var(--ls-tile-shadow-down); }
html body #ProductListWrap .l1-game:active .l1-game-go { transform: translateY(4px); box-shadow: 0 0 0 var(--ls-ink); }
html body #ProductListWrap .l1-game:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 12px; }

/* ===== 6. ABOUT ========================================================================= */
html body #ProductListWrap .l1-about {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden;
	margin: 8px 0 128px; border-radius: 24px; background: var(--ls-paper); box-shadow: var(--ls-tile-shadow);
	scroll-margin-top: 40px;
}
html body #ProductListWrap .l1-about-art { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 90% 50%; }
html body #ProductListWrap .l1-about-copy { padding: 52px 56px; }
html body #ProductListWrap .l1-about h2 {
	margin: 0 0 20px; font-family: var(--ls-display); font-size: clamp(32px, 3.2vw, 46px); font-weight: 400;
	line-height: 1.05; color: var(--ls-ink); text-shadow: 3px 4px 0 var(--ls-rust-soft);
}
html body #ProductListWrap .l1-about p { max-width: 52ch; margin: 0 0 14px; font-size: 17px; font-weight: 500; line-height: 1.65; color: rgba(22, 32, 25, .84); }
html body #ProductListWrap .l1-about .mb-btn { margin-top: 18px; }

/* ===== Korean: break lines between words, not inside them (overflow-wrap is the safety net for a word wider
   than its box at 320px). ================================================================== */
html[lang="ko"] body #ProductListWrap :is(.l1-hero, #watch .bk-section-heading, #play .bk-section-heading, .l1-vid-cap, .l1-play-grid, .l1-about) {
	word-break: keep-all; overflow-wrap: anywhere;
}
/* The rest of the home page (Spotlight heading, shelf pitches) too; break-word keeps the cards' min-content sizing. */
html[lang="ko"] body #ProductListWrap { word-break: keep-all; overflow-wrap: break-word; }

/* ===== Responsive ======================================================================= */
@media (max-width: 1100px) {
	/* Watch row becomes a swipeable strip (cards keep 9:16; the next one peeks in). */
	html body #ProductListWrap .l1-vid-row {
		display: flex; gap: 22px; margin: 0 -16px; padding: 16px 16px 28px;
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain;
	}
	html body #ProductListWrap .l1-vid { flex: 0 0 min(30%, 240px); scroll-snap-align: start; }
	html body #ProductListWrap .l1-vid:nth-child(n) { --t: 0deg; }
}
@media (max-width: 970px) {
	html body #ProductListWrap .l1-hero { grid-template-columns: 1fr; padding: 40px 0 88px; }
	html body #ProductListWrap .l1-collage { justify-self: center; margin: 0 18px 0 0; }
	html body #ProductListWrap .l1-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body #ProductListWrap .l1-sky::before { content: none; }
	html body #ProductListWrap .l1-sky { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: start; }
	html body #ProductListWrap .l1-sky-icon { grid-row: 1 / 6; margin: 0; }
	html body #ProductListWrap .l1-sky .mb-kicker { margin-top: 0; justify-self: start; }
	html body #ProductListWrap .l1-sky .mb-btn { justify-self: start; }
	html body #ProductListWrap .l1-about { grid-template-columns: 1fr; }
	html body #ProductListWrap .l1-about-art { min-height: 0; height: 200px; }
}
@media (max-width: 640px) {
	html body #ProductListWrap .l1-hero { padding: 28px 0 72px; gap: 44px; }
	html body #ProductListWrap .l1-hero-sub { font-size: 16.5px; margin: 18px 0 26px; }
	html body #ProductListWrap .l1-ctas { flex-direction: column; }
	html body #ProductListWrap .l1-ctas .mb-btn { width: 100%; }
	html body #ProductListWrap .l1-collage { gap: 14px; padding: 18px; width: calc(100% - 24px); }
	html body #ProductListWrap .l1-mascot { right: -18px; bottom: -26px; }
	html body #ProductListWrap .l1-vid { flex-basis: 60%; }
	html body #ProductListWrap .l1-play-grid { gap: 30px 20px; }
	html body #ProductListWrap .l1-sky { display: flex; padding: 24px 20px; transform: none; }
	html body #ProductListWrap .l1-sky-icon { width: 84px; height: 84px; }
	html body #ProductListWrap .l1-sky .mb-kicker { margin-top: 18px; }
	html body #ProductListWrap .l1-sky .mb-btn { align-self: stretch; }
	html body #ProductListWrap .l1-game { padding: 8px 8px 12px; }
	html body #ProductListWrap .l1-game:nth-of-type(n) { --t: 0deg; }
	html body #ProductListWrap .l1-game-art { margin-bottom: 10px; }
	html body #ProductListWrap .l1-game-name { font-size: 19px; padding: 0 4px; }
	html body #ProductListWrap .l1-game-line { font-size: 13px; padding: 4px 4px 12px; }
	html body #ProductListWrap .l1-game-go { align-self: stretch; justify-content: center; margin: auto 0 0; padding: 0 12px; }
	html body #ProductListWrap .l1-about-copy { padding: 28px 22px 30px; }
	html body #ProductListWrap .l1-about p { font-size: 16px; }
	html body #ProductListWrap .l1-about .mb-btn { width: 100%; }
	/* Count chip / More link always sits under the banner on phones (it wrapped under long banners only). */
	html body #ProductListWrap .bk-section-heading { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html body #ProductListWrap :is(.l1-vid, .l1-game, .l1-play, .l1-game-go) { transition: none; }
}

/* "← All projects" on category / Webgames pages: a full 44px tap target (it was a 20px text line). */
html body #ProductListWrap .bk-bundle-intro > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Hero collage stickers are links to each project's detail popup (lift on hover, press on tap, focus ring). */
html body #ProductListWrap a.l1-cell { display: block; border-radius: 22%; transition: transform .18s var(--ls-spring, ease); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { html body #ProductListWrap a.l1-cell:hover { transform: translateY(-5px) scale(1.04); } }
html body #ProductListWrap a.l1-cell:active { transform: translateY(2px) scale(.97); }
html body #ProductListWrap a.l1-cell:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 8px; }
@media (prefers-reduced-motion: reduce) { html body #ProductListWrap a.l1-cell { transition: none; } }

/* About: the contact address as plain, selectable text under "Say hello" (mailto may do nothing on a laptop). */
html body #ProductListWrap .l1-about .l1-about-mail { margin: 14px 0 0; font-size: 15px; color: rgba(22, 32, 25, .72); }
html body #ProductListWrap .l1-about .l1-about-mail span { font-weight: 700; color: var(--ls-ink); user-select: all; overflow-wrap: anywhere; }
