@font-face { font-family: "Code Next"; src: url("codenext-300.woff2?v=0493aa54") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Code Next"; src: url("codenext-400.woff2?v=c41ecde4") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Code Next"; src: url("codenext-600.woff2?v=204a6607") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Code Next"; src: url("codenext-800.woff2?v=a5679428") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Code Next"; src: url("codenext-850.woff2?v=78b700d6") format("woff2"); font-weight: 850; font-style: normal; font-display: swap; }
@font-face { font-family: "Code Next"; src: url("codenext-900.woff2?v=90c47963") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	color-scheme: light;
	--paper: #f4f4f4;
	--ink: #30313a;
	--muted: #6c6b74;
	--soft: #f4f4f6;
	--card: #ffffff;
	--orange: #ff6b1a;
	--shadow-rgb: 16 16 24;
	--shadow-k: 1.6;
	--shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / calc(.06 * var(--shadow-k))), 0 4px 14px rgb(var(--shadow-rgb) / calc(.06 * var(--shadow-k)));
	--shadow-md: 0 2px 4px rgb(var(--shadow-rgb) / calc(.06 * var(--shadow-k))), 0 14px 32px rgb(var(--shadow-rgb) / calc(.11 * var(--shadow-k)));
	--radius: 31px;
	--pad: 12px;
	--gap: 18px;
	--lift: 9px;
	--logo: 470px;
	--hero-top: 56px;
	--hero-bottom: 0px;
	--h-size: 31px;
	--h-weight: 650;
	--title-size: 16px;
	--title-weight: 650;
	--meta-size: 12px;
	--age-size: .92;
	--age-a: .8;
	--age-color: var(--muted);
	--divider-a: .1;
	--divider-w: .5;
	--thumb-shadow: 1;
	--dot: 42px;
	--dot-gap: 59px;
	--bar-a: .52;
	--font: "Code Next", "Segoe UI", system-ui, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--move: cubic-bezier(.6, 0, .2, 1);
	--gutter: clamp(16px, 4vw, 48px);
}
@supports (transition-timing-function: linear(0, 1)) {
	:root {
		--ease: linear(0, 0.0105, 0.0611, 0.4256, 0.7079, 0.8046, 0.8613, 0.899, 0.9253, 0.9444, 0.9584, 0.9688, 0.9767, 0.9826, 0.9871, 0.9905, 0.9931, 0.995, 0.9965, 0.9975, 0.9983, 0.9989, 0.9993, 0.9995, 0.9997, 0.9998, 0.9999, 1, 1, 1, 1, 1, 1);
		--move: linear(0, 0, 0.0003, 0.0012, 0.003, 0.0064, 0.0119, 0.0202, 0.032, 0.0482, 0.0695, 0.0966, 0.1304, 0.171, 0.219, 0.2742, 0.3366, 0.4059, 0.4817, 0.5633, 0.6427, 0.7124, 0.772, 0.8217, 0.8622, 0.8947, 0.9204, 0.9405, 0.956, 0.9679, 0.977, 0.9839, 0.989, 0.9927, 0.9954, 0.9973, 0.9985, 0.9993, 0.9997, 0.9999, 1);
	}
}
@media (prefers-reduced-motion: reduce) {
	:root { --lift: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; transition: opacity .7s var(--ease); }
a { color: inherit; }
p, ol, h2 { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.top, main, .foot { position: relative; z-index: 1; }

.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) calc(var(--bar-a) * 100%), transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 rgb(var(--shadow-rgb) / calc(.05 * var(--shadow-k))), 0 6px 20px rgb(var(--shadow-rgb) / calc(.03 * var(--shadow-k))); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 64px; }
.fish { justify-self: start; display: block; border-radius: 10px; transition: scale .6s var(--ease), rotate .6s var(--ease); }
.fish img { height: 34px; width: auto; filter: drop-shadow(0 2px 3px rgb(var(--shadow-rgb) / calc(.12 * var(--shadow-k)))); }
@media (hover: hover) { .fish:hover { scale: 1.08; rotate: -6deg; transition-duration: .35s; } }
.fish:active { scale: .92; transition-duration: .4s; }
.top-end { justify-self: end; display: flex; align-items: center; }

.dots { display: flex; align-items: center; gap: var(--dot-gap); }
.dot { position: relative; flex: none; display: block; width: var(--dot); height: var(--dot); border-radius: 999px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.dot-pill { --open: var(--dot); position: absolute; top: 0; left: 50%; display: flex; align-items: center; width: var(--dot); height: var(--dot); translate: -50% 0; overflow: hidden; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
	transition: width .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
.dot.open { z-index: 2; }
.dot.open .dot-pill { width: var(--open); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); transition-duration: .35s; }
.dot:active .dot-pill { scale: .93; transition-duration: .35s, .35s, .35s, .35s, .4s; }
.dot-ico { flex: none; display: grid; place-items: center; width: var(--dot); height: var(--dot); }
.dot-ico svg { width: calc(var(--dot) * .45); height: calc(var(--dot) * .45); fill: currentColor; }
.dot-name { flex: none; padding-right: calc(var(--dot) * .4); white-space: nowrap; font-weight: 800; font-size: .84rem; letter-spacing: .02em; opacity: 0; translate: -6px 0; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.dot.open .dot-name { opacity: 1; translate: 0 0; transition-duration: .35s; }

.hero { display: flex; flex-direction: column; align-items: center; padding: var(--hero-top) var(--gutter) var(--hero-bottom); }
.logo { position: relative; width: min(var(--logo), 88vw); aspect-ratio: 991 / 361; }
.letter { position: absolute; height: auto; filter: drop-shadow(0 8px 14px rgb(var(--shadow-rgb) / calc(.08 * var(--shadow-k)))); will-change: transform; }
.letter:nth-child(1) { left: 2.523%; top: 24.100%; width: 6.357%; }
.letter:nth-child(2) { left: 8.577%; top: 17.452%; width: 17.659%; }
.letter:nth-child(3) { left: 25.933%; top: 20.499%; width: 17.053%; }
.letter:nth-child(4) { left: 42.785%; top: 18.283%; width: 6.256%; }
.letter:nth-child(5) { left: 48.840%; top: 5.263%; width: 13.118%; }
.letter:nth-child(6) { left: 61.857%; top: 14.958%; width: 17.659%; }
.letter:nth-child(7) { left: 79.213%; top: 10.803%; width: 18.971%; }

.projects { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(22px, 3vw, 40px); }
.projects-h { font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 7px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); -webkit-tap-highlight-color: transparent;
	transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
.pill-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); transition: scale .6s var(--ease), rotate .6s var(--ease); }
.pill-ico img { width: auto; height: 25px; max-width: 30px; }
.pill-ico svg { width: 28px; height: 28px; overflow: visible; color: var(--ink); }
.pill-tag { margin-left: 2px; padding: 5px 9px 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pill.soon { cursor: default; }
.pill.soon .pill-text { color: var(--muted); }
@media (hover: hover) {
	.pill:hover { translate: 0 -3px; box-shadow: var(--shadow-md); transition-duration: .35s; }
	.pill:hover .pill-ico { scale: 1.06; transition-duration: .35s; }
	.pill.soon:hover { translate: 0 -1px; box-shadow: var(--shadow-sm); }
	.pill.soon:hover .pill-ico { rotate: -6deg; }
}
.pill:active { scale: .96; transition-duration: .35s, .35s, .4s; }

.sec { padding-block: clamp(26px, 3.6vw, 48px); }
.sec-h { font-weight: var(--h-weight); font-size: var(--h-size); line-height: 1.1; letter-spacing: -.01em; }
.sec-head { margin-bottom: clamp(14px, 1.6vw, 22px); }
.sec-sub { margin-top: 6px; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--muted); }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 1.6vw, 22px); }

.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.vids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); will-change: transform; }
.games > li, .vids > li { display: grid; }

.card { display: flex; flex-direction: column; padding: var(--pad); border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: var(--shadow-sm); transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
.thumb { position: relative; display: block; overflow: clip; aspect-ratio: 16 / 9; border-radius: max(0px, calc(var(--radius) - var(--pad) / 1.4)); background: var(--soft);
	box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / calc(.08 * var(--thumb-shadow))), 0 3px 10px rgb(var(--shadow-rgb) / calc(.12 * var(--thumb-shadow))); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease), opacity .7s var(--ease); }
.vid .thumb img { scale: 1.03; }
.thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / .55) 50%, transparent 75%); opacity: 0; translate: -100% 0; transition: opacity .6s var(--ease); pointer-events: none; }
.thumb.loading::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.thumb.loading::before { animation: shimmer 1.8s ease-in-out infinite; }
}
@keyframes shimmer { from { translate: -100% 0; } to { translate: 100% 0; } }
.card-title { margin: 10px 6px 8px; font-weight: var(--title-weight); font-size: var(--title-size); line-height: 1.25; text-align: center; }
:root[data-title="left"] .card-title { text-align: left; }
.game .card-title { text-wrap: balance; }
.vid .card-title { height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: clip; font-size: calc(var(--title-size) * .95); }
.card { position: relative; container-type: inline-size; }
.card-foot { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 1px; margin: auto 6px 0; padding: 7px 0 6px; min-width: 0; }
.card-foot::before { content: ""; position: absolute; top: 0; left: 50%; width: calc(var(--divider-w) * 100%); height: 1px; translate: -50% 0; background: color-mix(in srgb, var(--ink) calc(var(--divider-a) * 100%), transparent); }
.card-ago { display: block; flex: none; align-self: center; margin-top: 2px; font-size: calc(var(--meta-size) * var(--age-size)); line-height: 1.3; white-space: nowrap; color: var(--age-color); opacity: var(--age-a); }
:root:is([data-age="bottommid"], [data-age="topleft"]) .card-ago { position: absolute; z-index: 1; margin: 0; padding: 3px 9px; border-radius: 999px; font-weight: 600; color: var(--ink); opacity: 1;
	background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / calc(.12 * var(--shadow-k))); }
:root[data-age="bottommid"] .card-ago { top: calc(var(--pad) + (100cqw - 2 * var(--pad)) * 0.5625 - 8px); left: 50%; translate: -50% -100%; }
:root[data-age="topleft"] .card-ago { top: calc(var(--pad) + 8px); left: calc(var(--pad) + 8px); }
:root:is([data-age="right"], [data-age="below"], [data-age="inline"]) .card-ago { margin-top: 0; }
:root[data-age="right"] .card-foot .card-ago { align-self: flex-end; }
:root[data-age="below"] .card-foot .card-ago { align-self: flex-start; }
:root[data-age="inline"] .card-foot { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-meta { margin: 0; min-width: 0; font-size: var(--meta-size); line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta b, .card-ago b { font-weight: 600; color: var(--ink); }
.card-meta { text-align: center; }
:root:is([data-age="right"], [data-age="below"], [data-age="inline"]) .card-meta { text-align: left; }
@media (hover: hover) {
	.card:hover { translate: 0 calc(var(--lift) * -1); box-shadow: var(--shadow-md); transition-duration: .35s; }
	.card:hover .thumb img { scale: 1.04; transition-duration: .5s; }
	.vid.card:hover .thumb img { scale: 1.07; }
}
.card:active { scale: .97; transition-duration: .35s, .35s, .4s; }
.swap { transition: opacity .3s var(--ease); }
.swap.out { opacity: 0; }

.vid-window { position: relative; margin: -16px; padding: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.arrows { display: flex; gap: 8px; }

.arrow { display: grid; place-items: center; width: var(--dot); height: var(--dot); padding: 0; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); -webkit-tap-highlight-color: transparent;
	transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease), opacity .6s var(--ease); }
.arrow svg { width: 50%; height: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .arrow:hover { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); translate: 0 -2px; transition-duration: .35s; } }
.arrow:active { scale: .9; transition-duration: .35s, .35s, .35s, .35s, .4s, .35s; }
.arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }

.foot { padding-block: clamp(26px, 3.6vw, 48px) 36px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.foot-dots { justify-content: center; margin-bottom: 8px; padding-inline: calc(var(--dot) * 1.1); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; max-width: 760px; margin-bottom: 10px; }
.foot-links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent;
	transition: color .6s var(--ease), background-color .6s var(--ease), scale .6s var(--ease); }
@media (hover: hover) { .foot-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); transition-duration: .35s; } }
.foot-links a:active { scale: .95; transition-duration: .35s, .35s, .4s; }
.foot-fish { display: block; border-radius: 12px; -webkit-tap-highlight-color: transparent; transition: translate .6s var(--ease), scale .6s var(--ease); }
.foot-fish img { display: block; width: 44px; height: auto; opacity: .9; }
@media (hover: hover) { .foot-fish:hover { translate: 0 -3px; transition-duration: .35s; } }
.foot-fish:active { scale: .92; transition-duration: .35s, .4s; }
.fine { font-size: .8rem; font-weight: 600; color: var(--muted); }

.card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; --hp: var(--pad); }
.hold { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }
.hold-veil { position: absolute; inset: 0; border-radius: inherit; background: rgb(255 255 255 / .75); opacity: 0; }
.hold-mid { position: absolute; top: var(--hp); left: var(--hp); right: var(--hp); aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 4.6cqw, 11px); opacity: 0; }
.hold-ring { --hold-track: rgb(209 210 212); --hold-fill: rgb(22 163 74); --hold-icon: rgb(48 49 58); position: relative; flex: none; width: clamp(40px, 25cqw, 56px); aspect-ratio: 1; }
.hold-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 6px rgb(16 16 24 / .22)); }
.hold-back { fill: #fff; }
.hold-track { fill: none; stroke: var(--hold-track); stroke-width: 3.6; }
.hold-fill { fill: none; stroke: var(--hold-fill); stroke-width: 3.6; stroke-linecap: round; }
.hold-disc { fill: var(--hold-fill); opacity: 0; transform-origin: 24px 24px; }
.hold-ico { fill: var(--hold-icon); }
.hold-flick { fill: none; stroke: #16a34a; opacity: 0; }
.hold-text { --hold-size: var(--title-size); flex: none; max-width: calc(100% + 2 * var(--hp)); padding: .27em .72em .23em; border-radius: 999px; background: rgb(255 255 255 / .95); color: var(--ink); box-shadow: 0 1px 4px rgb(16 16 24 / .16);
	font-weight: var(--title-weight); font-size: min(var(--hold-size), calc((100cqw + 2 * var(--hp) - 8px) / var(--hold-fit, 13.7))); line-height: 1; white-space: nowrap; }
.vid .hold-text { --hold-size: calc(var(--title-size) * .95); --hold-fit: 14.6; }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.rise { opacity: 0; translate: 0 26px; animation: failsafe .8s var(--ease) 3.2s forwards; }
	.ready .rise { animation: none; --d: calc(var(--i, 0) * 70ms); }
	:where(.ready .rise) { transition: opacity .9s var(--ease) var(--d), translate 1.1s var(--move) var(--d); }
	.ready .rise.in { opacity: 1; translate: 0 0; }
	.fade-img { opacity: 0; }
}
@keyframes failsafe { to { opacity: 1; translate: 0 0; } }

@media (max-width: 1100px) {
	.vids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Games: 5 columns down to 900 px, then 2 (10 games, no lone card). Side projects (5): a row you swipe, the next card peeking */
@media (max-width: 899px) {
	.games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.games[data-side] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap)) / 2.25); overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x proximity; scrollbar-width: none; margin: -8px calc(var(--gutter) * -1) -20px; padding: 8px var(--gutter) 20px; scroll-padding-inline: var(--gutter); }
	.games[data-side]::-webkit-scrollbar { display: none; }
	.games[data-side] > li { scroll-snap-align: start; }
}
@media (max-width: 700px) {
	.vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.hero { padding-top: calc(var(--hero-top) * .4); }
	.top-in { --dot: 34px; --dot-gap: 38px; height: 58px; gap: 8px; }
	.fish img { height: 30px; }
	.pills { gap: 8px; }
	.pill { gap: 8px; height: 46px; padding: 0 14px 0 6px; font-size: 14px; }
	.pill-ico { width: 34px; height: 34px; }
	.pill-ico svg { width: 24px; height: 24px; }
	.pill-ico img { width: auto; height: 21px; max-width: 26px; }
	.pill-tag { padding: 4px 7px 3px; font-size: 9.5px; }
	.card { padding: min(var(--pad), 6px); --hp: min(var(--pad), 6px); }
	.card-title { margin: 8px 4px 6px; font-size: calc(var(--title-size) * .9); }
	.hold-text { --hold-size: calc(var(--title-size) * .9); }
	.vid .hold-text { --hold-size: calc(var(--title-size) * .86); }
	.vid .card-title { font-size: calc(var(--title-size) * .86); }
	.card-foot { margin: auto 4px 0; padding: 5px 0 4px; }
	.card-meta { font-size: calc(var(--meta-size) * .9); }
	.card-ago { font-size: calc(var(--meta-size) * var(--age-size) * .92); }
}
