@font-face {
  font-family: GenSen;
  src: url('assets/fonts/gensen-heavy.woff2') format('woff2');
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: GenSen;
  src: url('assets/fonts/gensen-bold.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}
:root {
  --paper: #f6f3e9;
  --surface: #eeede2;
  --ink: #25382d;
  --muted: #626f61;
  --line: #d4dacb;
  --copper: #6b8460;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --display: GenSen, 'Hiragino Maru Gothic ProN', 'PingFang HK', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Noto Sans HK', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.background-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--paper); }
#ascii-world { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.ascii-ready #ascii-world { opacity: 1; }
.background-veil { position: absolute; inset: 0; background: var(--paper); opacity: var(--backdrop-veil, 0); }
.site-header, main, .site-footer { position: relative; z-index: 1; }
::selection { background: #b7cca6; color: #25382d; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 7px; }
.shell { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; font: 700 20px/1 var(--mono); letter-spacing: -1px; }
.brand-cat { font: 400 18px/1 var(--mono); letter-spacing: -2px; margin-right: 13px; transform: translateY(-2px); color: var(--copper); }
.wordmark-domain { color: #7d8a72; }
.site-header nav { display: flex; gap: 35px; align-items: center; font-size: 14px; color: #596a57; }
.site-header nav a { padding: 12px 0; transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
.hero { min-height: max(690px, calc(100svh - 112px)); position: relative; }
.hero-copy { position: relative; z-index: 2; width: 36%; padding-top: clamp(75px, 10vh, 115px); }
.hero-endnote { position: absolute; bottom: 34px; left: 0; color: #7b8b70; font: 11px/1.5 var(--mono); letter-spacing: .02em; }
.foreground-surface { position: relative; background: rgba(246, 243, 233, .5); }
.eyebrow { font-size: 13px; line-height: 1.5; letter-spacing: .16em; color: var(--muted); margin: 0 0 26px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(48px, 4.2vw, 60px); font-weight: 900; line-height: 1.25; letter-spacing: -.025em; white-space: nowrap; }
.headline-highlight { color: var(--copper); }
.hero-description { font-size: 17px; line-height: 1.95; color: var(--muted); margin: 34px 0 25px; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 29px; align-items: center; margin-top: 30px; }
.hero-link { font-size: 15px; display: inline-flex; align-items: center; gap: 25px; min-height: 45px; border-bottom: 1px solid #7e9672; padding: 5px 0; color: var(--ink); }
.hero-link > span { font-size: 23px; color: var(--copper); font-weight: 400; transition: transform .2s; }
.hero-link:hover > span { transform: translate(3px, 3px); }
.quiet-link { font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: center; min-height: 44px; }
.quiet-link:hover { color: var(--ink); }
.quiet-link > span { font-size: 20px; }
.pause-button { position: fixed; right: 26px; bottom: 24px; z-index: 4; background: #f6f3e9bb; border: 1px solid #94a986; border-radius: 50%; padding: 0; display: grid; place-items: center; width: 40px; height: 40px; color: #526d47; }
.pause-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.pause-button .play-symbol, .pause-button[aria-pressed=true] .pause-symbol { display: none; }
.pause-button[aria-pressed=true] .play-symbol { display: block; }
.works-section { padding-top: 89px; padding-bottom: 137px; border-top: 1px solid var(--line); scroll-margin-top: 35px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 66px; }
.section-heading h2 { font-family: var(--display); font-size: 40px; line-height: 1.4; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.section-heading > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 5px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(80px, 10vw, 180px); padding: 0 6% 0 1%; }
.project { display: block; min-width: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.project-fly { margin-top: 72px; }
.project-info { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; row-gap: 29px; }
.project-icon { width: 92px; height: 92px; border-radius: 21px; grid-column: 1 / -1; transition: transform .25s; }
.project:hover .project-icon { transform: translateY(-4px) rotate(-2deg); }
.project-name { min-width: 0; grid-column: 1; }
.project-name h3 { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 13px; }
.project-name h3 > span { display: inline-block; vertical-align: 3px; font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, 'PingFang HK', sans-serif; letter-spacing: 0; color: var(--muted); margin-left: 15px; }
.project-fly h3 > span { font-family: var(--mono); }
.project-name p { font-size: 16px; line-height: 1.9; margin: 0; color: var(--muted); max-width: 360px; }
.project-arrow { grid-column: 2; align-self: start; font: 34px/1.3 var(--mono); color: var(--copper); padding-top: 3px; transition: transform .2s; }
.project:hover .project-arrow { transform: translate(3px, -3px); }
.monster-section { padding: 85px 0 100px; background: #eeeee2; border-top: 1px solid #d7ddcd; border-bottom: 1px solid #d7ddcd; scroll-margin-top: 0; }
.monster-section .section-heading { margin-bottom: 58px; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 55px 28px; align-items: start; }
.gallery figure { min-width: 0; margin: 0; }
.gallery figure:nth-child(1) { grid-column: 1 / 6; }
.gallery figure:nth-child(2) { grid-column: 8 / 12; margin-top: 96px; }
.gallery figure:nth-child(3) { grid-column: 2 / 9; margin-top: 5px; }
.gallery figure:nth-child(4) { grid-column: 10 / 13; margin-top: 92px; }
.gallery figcaption { font-size: 14px; line-height: 1.7; color: #66735d; padding-top: 16px; display: flex; justify-content: space-between; gap: 10px; }
.gallery figcaption > :last-child { font: 11px/1.8 var(--mono); color: #8b937e; }
.photo-button { display: block; border: 0; padding: 0; width: 100%; background: #e0e3d5; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.gallery figure:nth-child(2) .photo-button { aspect-ratio: 957 / 1700; }
.gallery figure:nth-child(3) .photo-button { aspect-ratio: 1.6; }
.gallery figure:nth-child(4) .photo-button { aspect-ratio: 3 / 4; }
.photo-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-button:hover img { transform: scale(1.025); }
.site-footer { display: flex; align-items: center; gap: 30px; justify-content: space-between; min-height: 136px; }
.site-footer .wordmark { font-size: 18px; }
.site-footer p { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #74816a; }
.site-footer p > span { font: 16px/1 var(--mono); color: #8b9e7b; }
.copyright { font: 11px/1 var(--mono); color: #8b967f; }
dialog { border: 1px solid #493d39; padding: 24px; background: #211e21; border-radius: 4px; max-width: min(94vw, 1100px); max-height: 94dvh; overflow: auto; box-shadow: 0 15px 90px #08060990; }
dialog::backdrop { background: #100e11f2; }
#large-photo { display: block; max-width: 100%; max-height: 72dvh; width: auto; margin: auto; object-fit: contain; }
#photo-caption { text-align: center; font-size: 15px; color: #c6b8ac; margin: 17px 0; }
.close-dialog { position: fixed; top: 20px; right: 25px; z-index: 1; background: #332b2b; border: 1px solid #655043; border-radius: 50%; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.photo-navigation { display: flex; justify-content: center; align-items: center; gap: 24px; }
.photo-navigation button { border: 1px solid #655043; background: none; width: 44px; height: 40px; font-size: 20px; }
.photo-navigation span { font: 12px var(--mono); color: var(--muted); }
@media (min-width: 1550px) { .hero h1 { font-size: 60px; } }
@media (max-width: 1180px) {
  .shell { width: calc(100% - 72px); }
  .hero-copy { padding-top: 95px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 16px; }
  .section-heading h2 { font-size: 36px; }
  .project-name h3 { font-size: 31px; }
  .project-name h3 > span { display: block; margin: 0; line-height: 1.8; }
  .project-grid { gap: 90px; padding-right: 3%; }
  .project-name p { font-size: 16px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .site-header { height: 88px; }
  .hero { min-height: max(730px, calc(100svh - 88px)); padding-top: 38px; }
  .hero-copy { padding: 0 0 0 3px; width: 100%; }
  .hero-endnote { display: none; }
  .eyebrow { font-size: 12px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(44px, 7.4vw, 68px); line-height: 1.22; }
  .hero-description { font-size: 16px; margin: 27px 0 22px; line-height: 1.85; }
  .hero-actions { gap: 26px; }
  .hero-link { font-size: 15px; gap: 24px; }
  .works-section { padding-top: 59px; padding-bottom: 76px; }
  .section-heading { gap: 16px; margin-bottom: 35px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > p { font-size: 12px; }
  .project-grid { gap: 42px; padding: 0; }
  .project { padding-top: 25px; }
  .project-info { column-gap: 12px; row-gap: 23px; }
  .project-icon { width: 76px; height: 76px; border-radius: 17px; }
  .project-fly { margin-top: 60px; }
  .project-name h3 { font-size: 28px; }
  .project-name p { font-size: 15px; }
  .project-arrow { font-size: 28px; }
  .monster-section { padding: 58px 0 65px; }
  .monster-section .section-heading { margin-bottom: 34px; }
  .gallery { gap: 34px 17px; }
  .gallery figure:nth-child(2) { margin-top: 65px; }
  .gallery figure:nth-child(4) { margin-top: 55px; }
  .gallery figcaption { font-size: 13px; padding-top: 13px; }
  .site-footer { min-height: 122px; gap: 10px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 27px; }
  .site-footer .wordmark { font-size: 17px; }
  .site-footer p { font-size: 12px; gap: 10px; order: 3; width: 100%; margin: 2px 0 0; }
  .copyright { font-size: 10px; }
  dialog { padding: 14px; }
  .close-dialog { top: 13px; right: 13px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 44px); }
  .wordmark { font-size: 18px; }
  .brand-cat { font-size: 14px; margin-right: 10px; }
  .site-header nav { font-size: 13px; gap: 20px; }
  .hero { padding-top: 35px; }
  .hero h1 { font-size: clamp(39px, 9.6vw, 52px); }
  .hero-description { font-size: 16px; }
  .hero .eyebrow { font-size: 12px; }
  .hero-actions { gap: 23px; }
  .hero-link { font-size: 14px; gap: 17px; }
  .quiet-link { font-size: 13px; gap: 7px; }
  .pause-button { right: 15px; bottom: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p { margin: 0; font-size: 13px; }
  .project-grid { display: block; }
  .project { padding-top: 27px; }
  .project-fly { margin-top: 48px; }
  .project-info { grid-template-columns: 72px 1fr auto; align-items: start; column-gap: 19px; row-gap: 0; }
  .project-icon { width: 67px; height: 67px; border-radius: 15px; grid-column: 1; }
  .project-name { grid-column: 2; }
  .project-name h3 { font-size: 26px; margin-bottom: 9px; }
  .project-name h3 > span { font-size: 12px; line-height: 1.8; }
  .project-name p { font-size: 15px; line-height: 1.85; }
  .project-arrow { grid-column: 3; font-size: 25px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 35px 16px; }
  .gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: 1 / -1; margin: 0; }
  .gallery figure:nth-child(3) { grid-column: 1; margin: 0; }
  .gallery figure:nth-child(4) { grid-column: 2; margin: 45px 0 0; }
  .gallery figure:nth-child(2) .photo-button { aspect-ratio: 3 / 4; }
  .gallery figure:nth-child(3) .photo-button, .gallery figure:nth-child(4) .photo-button { aspect-ratio: 3 / 4; }
  .gallery figcaption { font-size: 12px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 36px); }
  .brand-cat { font-size: 14px; margin-right: 10px; }
  .wordmark { font-size: 18px; }
  .site-header { gap: 12px; }
  .site-header nav { gap: 13px; font-size: 12px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 38px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 20px; }
  .hero-link { font-size: 13px; gap: 13px; }
  .quiet-link { font-size: 12px; }
  .project-info { grid-template-columns: 61px 1fr auto; column-gap: 13px; }
  .project-icon { width: 58px; height: 58px; border-radius: 13px; }
  .project-name h3 { font-size: 23px; }
  .project-name p { font-size: 14px; }
  .project-arrow { font-size: 23px; }
  .gallery { gap: 30px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pause-button { display: none; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
