@font-face { font-family: Gloock; src: url('./assets/fonts/gloock-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('./assets/fonts/noto-sans-sc-subset.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Serif SC'; src: url('./assets/fonts/noto-serif-sc-subset.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  --color-bg: oklch(0.979 0 0);
  --color-surface: oklch(1 0 0);
  --color-ink: oklch(0.29 0.004 45);
  --color-muted: oklch(0.50 0.004 45);
  --color-line: oklch(0.88 0 0);
  --color-accent: oklch(0.602 0.140 32.3);
  --color-action: oklch(0.535 0.136 31.6);
  --color-accent-tint: oklch(0.955 0.009 32.3);
  --font-serif: Gloock, 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 64px;
  --content-width: 1200px;
  --header-height: 88px;
  --z-floating: 5;
}
*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font: 400 1rem/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: not-allowed; }
svg { display: inline-block; flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
::selection { background: var(--color-accent-tint); color: var(--color-action); }
:focus-visible { outline: 2px solid var(--color-action); outline-offset: 5px; }
[tabindex='-1']:focus:not(:focus-visible) { outline: none; }
.container { width: 100%; max-width: calc(var(--content-width) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: 16px; padding: 12px 20px; background: white; color: var(--color-action); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.module-status { color: var(--color-muted); font-size: .875rem; }
.module-status:empty { display: none; }
.site-header { position: relative; z-index: 2; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 40px; }
.brand { display: inline-block; font: 400 1.625rem/1.1 var(--font-serif); text-decoration: none; }
.brand-j { color: var(--color-accent); }
.brand .brand-j { color: var(--color-action); }
.brand.brand-monogram { display: inline-flex; align-items: center; justify-content: flex-start; width: 44px; height: 44px; font-size: 2rem; color: var(--color-action); }
.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.site-nav a, .workspace-btn { min-height: 44px; font-size: .875rem; display: inline-flex; align-items: center; text-decoration: none; transition: color 180ms ease; }
.site-nav a { position: relative; min-width: 44px; justify-content: center; }
.site-nav a::after { content: ''; position: absolute; inset: auto 0 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.workspace-btn { min-width: 44px; border: 0; background: none; gap: 9px; padding: 0; color: var(--color-muted); }
.workspace-btn:hover, .site-nav a:hover { color: var(--color-action); }
.workspace-btn svg { color: var(--color-action); }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.quiet-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mask-image: linear-gradient(#000 65%, transparent); }
.hero-inner { min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(32px, 7svh, 84px); padding-bottom: 32px; }
.hero-copy { width: fit-content; max-width: 100%; }
.hero-kicker { color: var(--color-muted); font-size: .875rem; margin-bottom: 22px; }
h1 { font-size: 6rem; line-height: 1.04; color: var(--color-ink); }
.hero-sub { font-size: 1.125rem; line-height: 1.9; margin-top: 26px; max-width: 36ch; }
.text-action { width: fit-content; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 0; border: 0; background: none; font-size: .875rem; font-weight: 500; line-height: 1.5; color: var(--color-action); text-decoration: none; }
.text-action svg { transition: transform 320ms var(--ease); }
.text-action:hover svg, .text-action:focus-visible svg { transform: translateX(4px); }
.text-action:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-action { margin-top: 24px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.hero-footnote { font-size: .8125rem; color: var(--color-muted); }
.season-group { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; width: 224px; --season-index: 0; }
.season-btn { font-size: .8125rem; line-height: 1.4; min-height: 44px; padding: 10px 8px; border: 0; background: transparent; color: var(--color-muted); transition: color 180ms ease; }
.season-btn[aria-pressed='true'], .season-btn:hover:not(:disabled) { color: var(--color-action); }
.season-indicator { position: absolute; left: 0; bottom: 1px; width: 25%; height: 1px; background: var(--color-accent); transform: translateX(calc(var(--season-index) * 100%)) scaleX(.55); transition: transform 500ms var(--ease); pointer-events: none; }
.season-note { text-align: right; }
.section { scroll-margin-top: 32px; }
.works { padding: 48px 0 88px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; min-height: 56px; }
h2 { font-size: 2.25rem; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; }
.section-title > p { font: 400 1rem/1.5 var(--font-serif); color: var(--color-muted); }
.section-heading h2 span { color: var(--color-accent); }
.section-heading > p { color: var(--color-muted); font-size: .875rem; }
.works-list, .works-fallback { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project, .works-fallback > li { position: relative; min-width: 0; padding: 44px 48px; background: oklch(0.949 0.007 157); border-radius: 6px; }
.project[data-category='tool'], .works-fallback > li:nth-child(2) { background: oklch(0.948 0.009 37); }
.project { display: flex; flex-direction: column; align-items: flex-start; min-height: 368px; transition: transform 650ms var(--ease); }
.project-category { color: var(--color-muted); font-size: .8125rem; line-height: 1.5; margin-bottom: 20px; }
.project-title, .works-fallback h3 { font-size: 2.25rem; }
.project-original { color: var(--color-muted); font: 400 1.125rem/1.6 var(--font-serif); margin-top: 12px; }
.project-summary { max-width: 42ch; margin-top: 20px; font-size: 1rem; }
.project-action { margin-top: auto; padding-top: 24px; }
.project-action .icon-arrow { width: 16px; height: 16px; }
.carousel-viewport { overflow: hidden; touch-action: pan-y pinch-zoom; padding-block: 10px; }
.carousel-track { display: flex; list-style: none; align-items: stretch; }
.collection-slide { flex: 0 0 min(760px, 64%); min-width: 0; padding-right: 28px; }
.collection-slide .project { height: 100%; transform: scale(.955); }
.collection-slide.is-selected .project { transform: scale(1); }
.collection-slide:not(.is-selected) { cursor: pointer; }
.carousel-controls { display: flex; align-items: center; gap: 14px; flex: none; }
.carousel-controls[hidden] { display: none; }
.carousel-counter { min-width: 54px; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--color-muted); }
.carousel-counter strong { color: var(--color-ink); font-weight: 500; }
.carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-line); border-radius: 50%; background: transparent; transition: color 180ms ease, border-color 180ms ease; }
.carousel-arrow:hover { color: var(--color-action); border-color: var(--color-action); }
.carousel-arrow.previous svg { transform: rotate(180deg); }
.works-list { max-width: 1328px; padding-inline: var(--gutter); margin-inline: auto; }
.collection-single { display: block; width: min(732px, calc(64% - 28px)); padding: 10px 0; max-width: none; transform: translateX(-14px); }
.project[data-category='game'] { background: oklch(0.946 0.009 242); }
.project-figure { margin-bottom: 24px; }
.cover-box { overflow: hidden; background: var(--color-accent-tint); position: relative; aspect-ratio: 16 / 10; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.project:hover .cover-box img { transform: scale(1.02); }
.cover-fallback { padding: 24px; color: var(--color-muted); font-size: .875rem; }
.cover-chip { display: block; color: var(--color-muted); font-size: .75rem; margin-top: 8px; }
.empty-state { padding: 28px 0; color: var(--color-muted); }
.games { padding: 0 0 88px; }
.play-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.play-heading h2 { font-size: 2.25rem; line-height: 1.25; }
.play-heading h2 span { color: var(--color-action); }
.play-heading > p { margin-top: 24px; color: var(--color-muted); font-size: .875rem; }
.game-strip { display: flex; align-items: flex-start; gap: 24px; }
.game-strip + .game-strip { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--color-line); }
.game-cover { width: 140px; flex: 0 0 140px; aspect-ratio: 1; }
.game-info { min-width: 0; flex: 1; }
.game-info .project-category { margin-bottom: 14px; }
.game-summary { margin-top: 16px; }
.game-link { margin-top: 20px; }
.game-note, .entry-unavailable { font-size: .8125rem; color: var(--color-muted); margin-top: 8px; max-width: 45ch; }
.site-footer { padding: 42px 0 28px; }
.footer-directory { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.directory-group h2 { font: 500 .875rem/1.5 var(--font-sans); margin-bottom: 8px; }
.directory-group { min-width: 0; }
.directory-group > div { display: flex; flex-direction: column; align-items: flex-start; }
.directory-group a, .directory-group button { display: inline-flex; align-items: center; min-width: 44px; max-width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-muted); font: 400 .875rem/1.5 var(--font-sans); text-align: left; overflow-wrap: anywhere; text-decoration: none; }
.directory-group a:hover, .directory-group button:hover { color: var(--color-action); text-decoration: underline; text-underline-offset: 5px; }
.directory-group a .icon-arrow { display: none; }
.footer-inner { padding-top: 26px; border-top: 1px solid var(--color-line); }
.footer-inner { display: flex; align-items: center; gap: 32px; }
.footer-brand { font-size: 1.375rem; }
.footer-inner > p { color: var(--color-muted); font-size: .8125rem; }
.footer-legal { margin-top: 12px; color: var(--color-muted); font-size: .8125rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; text-decoration: none; }
.footer-legal a:hover { color: var(--color-action); text-decoration: underline; text-underline-offset: 4px; }
.back-top { margin-left: auto; color: var(--color-muted); font-size: .8125rem; }
.back-top:hover svg, .back-top:focus-visible svg { transform: translateY(-3px); }
.back-top.is-floating { position: fixed; z-index: var(--z-floating); right: max(24px, env(safe-area-inset-right)); bottom: max(32px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--color-line); border-radius: 50%; background: var(--color-bg); color: var(--color-ink); visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 240ms ease, transform 320ms var(--ease), visibility 240ms, border-color 180ms ease; }
.back-top.is-floating .back-top-label { display: none; }
.back-top.is-floating.is-visible { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.back-top.is-floating:hover { color: var(--color-action); border-color: var(--color-action); }
.dialog { width: min(640px, calc(100% - 48px)); max-height: min(820px, calc(100dvh - 64px)); padding: 0; border: 0; border-radius: 6px; color: var(--color-ink); background: var(--color-surface); overflow: hidden; }
.dialog[open] { display: flex; flex-direction: column; animation: dialog-in 300ms var(--ease); }
.dialog::backdrop { background: rgb(30 28 27 / .24); }
.dialog[open]::backdrop { animation: backdrop-in 240ms ease-out; }
.dialog.is-closing { animation: dialog-out 180ms ease-in forwards; }
.dialog.is-closing::backdrop { animation: backdrop-out 180ms ease-in forwards; }
.dialog-header { display: flex; align-items: flex-start; gap: 24px; padding: 32px 32px 24px; }
.dialog-title { font-size: 2rem; flex: 1; min-width: 0; padding-top: 4px; }
.dialog-close { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; transition: background 150ms ease, color 150ms ease; }
.dialog-close:hover { background: var(--color-accent-tint); color: var(--color-action); }
.dialog-body { padding: 0 32px 36px; overflow: auto; overscroll-behavior: contain; }
.dialog-category { color: var(--color-muted); font-size: .8125rem; margin-bottom: 20px; }
.dialog-desc { margin-top: 12px; }
.dialog-cover { margin: 24px 0 8px; max-height: 260px; }
.dialog-facts-title { margin-top: 32px; font: 500 .875rem/1.5 var(--font-sans); }
.dialog-facts { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.6fr); column-gap: 24px; margin-top: 12px; font-size: .875rem; }
.dialog-facts dt, .dialog-facts dd { padding: 12px 0; border-bottom: 1px solid var(--color-line); overflow-wrap: anywhere; }
.dialog-facts dt { color: var(--color-muted); }
.dialog-note { color: var(--color-muted); font-size: .875rem; margin-top: 24px; }
.dialog-external { margin-top: 12px; }
.workspace-lead { font: 400 1.5rem/1.4 var(--font-serif); margin-bottom: 16px; }
.dialog-actions { margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 20px; border-radius: 3px; line-height: 1.5; font-size: .875rem; text-decoration: none; }
.btn-secondary { color: var(--color-action); background: transparent; border: 1px solid var(--color-line); }
.btn-secondary:hover { background: var(--color-accent-tint); border-color: var(--color-action); }
.btn-primary { background: var(--color-action); color: white; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: copy-in 700ms var(--ease) both; }
  h1 { animation: title-in 1000ms var(--ease) both; }
  .hero-sub { animation: copy-in 900ms 70ms var(--ease) both; }
  .hero-action { animation: copy-in 900ms 140ms var(--ease) both; }
}
@keyframes title-in { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes copy-in { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes backdrop-in { from { background: transparent; } }
@keyframes backdrop-out { to { background: transparent; } }
@media (min-width: 1700px) { :root { --content-width: 1320px; } .collection-slide { flex-basis: 58%; } .collection-single { width: calc(58% - 28px); } }
@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  .hero-inner { padding-top: clamp(32px, 7svh, 64px); }
  .works-list, .works-fallback, .play-layout { gap: 40px; }
  h1 { font-size: 5.5rem; }
  h2 { font-size: 2.25rem; }
  .play-heading h2 { font-size: 2.25rem; }
  .footer-directory { grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; --header-height: 82px; }
  .header-inner { gap: 20px; flex-wrap: wrap; }
  .brand { font-size: 1.375rem; gap: 6px; }
  .site-nav { gap: 22px; }
  .site-nav a, .workspace-btn { font-size: .875rem; }
  .workspace-btn { gap: 6px; }
  .workspace-btn svg { width: 12px; }
  .hero-inner { padding-top: 38px; padding-bottom: 24px; }
  h1 { font-size: 4.75rem; }
  .hero-kicker { font-size: .8125rem; margin-bottom: 22px; }
  .hero-sub { font-size: 1rem; margin-top: 22px; }
  .hero-action { margin-top: 20px; }
  .hero-bottom { margin-top: 28px; justify-content: flex-end; }
  .hero-footnote { display: none; }
  .season-group { width: 208px; }
  .season-btn { font-size: .875rem; padding-inline: 4px; }
  .works { padding: 32px 0 48px; }
  .section-heading { margin-bottom: 22px; gap: 12px; }
  .section-title { gap: 6px; flex-direction: column; }
  .section-title > p { font-size: .875rem; }
  h2 { font-size: 2rem; }
  .section-heading > p { margin-top: 10px; font-size: .8125rem; }
  .works-list, .works-fallback { grid-template-columns: 1fr; gap: 28px; }
  .project, .works-fallback > li { padding: 30px 24px; }
  .project { min-height: 340px; }
  .collection-slide { flex-basis: 83%; padding-right: 14px; }
  .collection-slide .project { transform: scale(.97); }
  .collection-single { width: calc(83% - 14px); transform: translateX(-7px); }
  .carousel-controls { gap: 8px; }
  .carousel-counter { min-width: 44px; }
  .project-category { margin-bottom: 14px; }
  .project-title, .works-fallback h3 { font-size: 1.875rem; }
  .project-summary { margin-top: 16px; }
  .project-action { margin-top: auto; padding-top: 22px; }
  .games { padding: 0 0 48px; }
  .play-layout { grid-template-columns: 1fr; gap: 36px; }
  .play-heading h2 { font-size: 2rem; }
  .play-heading > p { margin-top: 16px; }
  .game-cover { width: 100px; flex-basis: 100px; }
  .footer-inner { flex-wrap: wrap; column-gap: 24px; row-gap: 12px; }
  .footer-inner > p { order: 3; width: 100%; }
  .site-footer { padding: 28px 0; }
  .footer-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
  .back-top.is-floating { right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
  .dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-header { padding: 24px 20px 20px; gap: 16px; }
  .dialog-title { font-size: 1.75rem; }
  .dialog-body { padding: 0 24px 28px; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 14px; }
  .site-nav { gap: 14px; }
  .brand { font-size: 1.25rem; }
  .workspace-btn svg { display: none; }
  h1 { font-size: 4.125rem; }
  .season-group { width: 192px; }
  .project, .works-fallback > li { padding-inline: 20px; }
  .project-title { font-size: 1.625rem; }
  .carousel-controls { gap: 4px; }
}
@media (max-height: 650px) and (min-width: 641px) {
  .hero-inner { padding-top: 16px; padding-bottom: 12px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-sub { margin-top: 16px; line-height: 1.65; }
  .hero-action { margin-top: 12px; }
  .hero-bottom { margin-top: 12px; }
}
@media (max-height: 540px) and (min-width: 641px) {
  :root { --header-height: 64px; }
  .hero-inner { padding-top: 8px; padding-bottom: 8px; }
  .hero-kicker { margin-bottom: 6px; }
  h1 { font-size: 4rem; }
  .hero-sub { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .hero-action { margin-top: 0; }
  .hero-bottom { margin-top: 8px; }
}
@media (max-height: 420px) and (min-width: 641px) {
  :root { --header-height: 56px; }
  .hero-inner { padding-block: 4px; }
  h1 { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collection-slide .project { transform: none; }
  .project:hover .cover-box img { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
