:root{--ink:#171714;--paper:#efede6;--card:#e3dfd4;--accent:#c8ff3d;--gold:#a87e3c;--muted:#66635c;--line:rgba(23,23,20,.18)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}button,a{color:inherit;font:inherit}button{cursor:pointer}img{display:block;max-width:100%}h1,h2,h3,p{margin-top:0}[hidden]{display:none!important}
.site-header{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:84px;padding:0 42px;border-bottom:1px solid var(--line);background:rgba(239,237,230,.94);backdrop-filter:blur(18px)}
.brand{display:flex;flex-direction:column;width:max-content;padding:0;border:0;background:none;font-size:13px;font-weight:900;line-height:.88;letter-spacing:.08em;text-align:left}.site-header nav{display:flex;gap:4px}.site-header nav button{padding:11px 15px;border:0;border-radius:99px;background:transparent;color:#716e66;font-size:13px;transition:.2s}.site-header nav button:hover,.site-header nav button.active{background:var(--ink);color:var(--paper)}.availability{justify-self:end;display:flex;align-items:center;gap:9px;border:0;background:none;font-size:11px;letter-spacing:.05em}.availability i{width:7px;height:7px;border-radius:50%;background:#54a85c;box-shadow:0 0 0 4px rgba(84,168,92,.12)}
.page{min-height:calc(100vh - 84px);animation:enter .35s ease both}@keyframes enter{from{opacity:0;transform:translateY(7px)}}
.hero{min-height:680px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr);border-bottom:1px solid var(--ink)}.hero-copy{padding:62px 5.2vw 52px;display:flex;flex-direction:column}.eyebrow{display:flex;justify-content:space-between;border-top:1px solid var(--ink);padding-top:10px;font:10px/1.2 monospace;letter-spacing:.18em}.role-line{margin:58px 0 0;color:var(--muted);font-size:13px}.hero h1{margin:25px 0 34px;max-width:920px;font-size:clamp(54px,7.4vw,112px);line-height:.98;letter-spacing:-.065em}.hero-intro{max-width:680px;margin:auto 0 28px;font-size:17px;line-height:1.85;color:#55524b}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions button{display:flex;justify-content:space-between;gap:40px;min-width:190px;padding:16px 18px;border:1px solid var(--ink);background:transparent}.hero-actions button:first-child{background:var(--ink);color:var(--paper)}.hero-actions button:hover{background:var(--accent);color:var(--ink)}
.hero-feature{position:relative;overflow:hidden;min-height:680px;border:0;border-left:1px solid var(--ink);padding:0;text-align:left;background:#211d16;color:#fff}.hero-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 36%,rgba(0,0,0,.82))}.hero-feature img,.hero-feature video{width:100%;height:100%;object-fit:cover;transition:.5s}.hero-feature:hover img,.hero-feature:hover video{transform:scale(1.025)}.hero-feature>span,.hero-feature>strong,.hero-feature>small{position:absolute;z-index:2;left:30px;right:30px}.hero-feature>span{top:28px;font:10px monospace;letter-spacing:.15em}.hero-feature>strong{bottom:66px;font-size:35px;letter-spacing:-.04em}.hero-feature>small{bottom:34px;color:#d9d3c9;font:10px monospace;letter-spacing:.09em}
.proof-strip{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.proof-strip div{min-height:138px;padding:28px 3vw;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between}.proof-strip div:last-child{border-right:0}.proof-strip b{font-size:34px;letter-spacing:-.04em}.proof-strip span{color:var(--muted);font-size:12px}
.home-selected,.inner-page{padding:78px 5.2vw 110px}.section-heading{display:grid;grid-template-columns:.55fr 1.45fr;gap:50px;align-items:start;margin-bottom:42px}.section-heading>span,.section-index,.page-title>span{font:10px monospace;letter-spacing:.15em;color:var(--muted)}.section-heading h2{margin:0;max-width:820px;font-size:clamp(30px,4vw,58px);line-height:1.13;letter-spacing:-.05em}.selected-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.page-title{display:grid;grid-template-columns:.55fr 1.45fr .8fr;align-items:end;gap:42px;padding-bottom:52px;border-bottom:1px solid var(--ink)}.page-title h1{margin:0;font-size:clamp(58px,7vw,100px);line-height:.82;letter-spacing:-.075em}.page-title p{margin:0;color:var(--muted);line-height:1.75;font-size:14px}
.filters{display:flex;flex-wrap:wrap;gap:7px;margin:30px 0 42px}.filters button{padding:10px 16px;border:1px solid var(--line);border-radius:99px;background:transparent;font-size:12px}.filters button:hover,.filters button.active{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.selected-grid .project-card{min-width:0}.project-card{overflow:hidden;border:1px solid var(--line);background:var(--card)}.project-topline{display:flex;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line);font:9px monospace;letter-spacing:.11em}.project-topline span:last-child{color:#58554e}.project-media{position:relative;height:330px;overflow:hidden;background:#1a1a17}.project-image,.project-video{width:100%;height:100%;object-fit:cover}.project-video{background:#171714}.preview-open{position:absolute;z-index:3;right:16px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 13px;border:1px solid rgba(255,255,255,.55);background:rgba(23,23,20,.88);color:#fff;font-size:11px;text-decoration:none;backdrop-filter:blur(10px);transition:.2s}.preview-open:hover,.preview-open:focus-visible{border-color:var(--accent);background:var(--accent);color:var(--ink)}
.project-media.project-media-portrait{position:relative;height:clamp(460px,68vh,680px);background:radial-gradient(circle at 50% 42%,#342e25 0,#171714 72%)}.project-media-portrait .project-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.project-copy{padding:24px 22px 26px}.project-type{margin:0 0 9px;color:var(--muted);font:10px monospace;letter-spacing:.09em}.project-copy h2{margin:0 0 13px;font-size:clamp(25px,2.7vw,40px);line-height:1.08;letter-spacing:-.045em}.project-summary{min-height:72px;margin:0;line-height:1.75;color:#55524c;font-size:14px}.project-meta-list{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0}.project-meta-list span{padding:6px 9px;border:1px solid var(--line);border-radius:99px;color:var(--muted);font-size:10px}.project-card details{border-top:1px solid var(--line)}.project-card summary{display:flex;justify-content:space-between;padding:15px 0;cursor:pointer;list-style:none;font-size:12px}.project-card summary::-webkit-details-marker{display:none}.project-card details[open] summary span{transform:rotate(45deg)}.project-detail{padding:4px 0 0}.project-detail section{padding:15px 0;border-top:1px solid var(--line)}.project-detail h3{margin:0 0 8px;font:10px monospace;letter-spacing:.11em;color:var(--gold)}.project-detail p,.project-detail li{color:#5c5952;font-size:12px;line-height:1.7}.project-detail ul{margin:0;padding-left:18px}.project-detail li+li{margin-top:7px}.project-detail>a{display:flex;justify-content:space-between;margin-top:16px;padding:13px 14px;background:var(--ink);color:var(--paper);font-size:11px;text-decoration:none}.project-detail>a:hover{background:var(--accent);color:var(--ink)}
.speed-visual{height:100%;padding:34px;display:grid;grid-template-columns:auto repeat(9,auto);gap:9px;align-items:center;color:white;background:radial-gradient(circle at 70% 50%,#3a2918,#171714 60%)}.speed-visual>span{writing-mode:vertical-rl;transform:rotate(180deg);color:#8e8b82;font:9px monospace;letter-spacing:.2em}.speed-visual b{width:38px;height:38px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font:12px monospace}.speed-visual b:nth-of-type(1){color:#81c96b}.speed-visual b:nth-of-type(2){color:#61a7ff}.speed-visual b:nth-of-type(3){color:#bb79ff}.speed-visual b:nth-of-type(4){color:#f7c75c}.speed-visual b:nth-of-type(5){color:#ff6656}.speed-visual i{width:16px;height:1px;background:#706b62}.speed-visual em{margin-left:auto;font:11px monospace;color:#ff6656}.grid-visual{height:100%;padding:28px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:auto 1fr auto;gap:10px;background:#d5ff5d}.grid-visual>span{grid-column:1/-1;font:9px monospace;letter-spacing:.16em}.grid-visual b{display:grid;place-items:center;border:1px solid var(--ink);font-size:48px}.grid-visual small{grid-column:1/-1;font-size:11px}.data-visual{height:100%;padding:28px;display:flex;flex-direction:column;justify-content:space-between;color:white;background:#202a37}.data-visual>span{font:9px monospace;letter-spacing:.15em;color:#9eb0c1}.data-visual div{display:grid;grid-template-columns:54px 1fr;align-items:center;border-top:1px solid rgba(255,255,255,.18);padding-top:12px}.data-visual b{color:#7ebcf2;font:11px monospace}.data-visual p{margin:0;font-size:18px}.frame-visual{height:100%;padding:35px;display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:14px;color:#f3eee4;background:#3f211b}.frame-visual span{font:9px monospace;color:#bb9d91}.frame-visual b{font-size:24px;letter-spacing:-.03em}.frame-visual i{height:1px;background:#bd6d53}
.material-note{display:grid;grid-template-columns:.55fr 1.45fr;gap:50px;padding:32px 0;margin-top:65px;border-top:1px solid var(--ink)}.material-note span{font:10px monospace;letter-spacing:.12em}.material-note p{max-width:830px;margin:0;color:var(--muted);line-height:1.8}
.timeline article{display:grid;grid-template-columns:60px 190px 1fr;gap:28px;padding:42px 0;border-bottom:1px solid var(--line)}.timeline-no,.timeline time{font:10px monospace;color:var(--muted)}.timeline h2{margin:0;font-size:27px;letter-spacing:-.035em}.timeline h3{margin:8px 0 18px;color:var(--gold);font-size:13px;font-weight:500}.timeline p{max-width:820px;margin:0;color:#5d5a53;line-height:1.8}
.about-layout{display:grid;grid-template-columns:.55fr 1.45fr;gap:7vw;margin:70px 0 105px}.about-layout figure{margin:0}.about-layout figure img{width:100%;max-height:590px;object-fit:cover;object-position:top;background:#e3e3e3}.about-layout figcaption{border-top:1px solid var(--ink);margin-top:12px;padding-top:10px;font:10px/1.6 monospace;letter-spacing:.1em}.about-layout .lead{margin:0 0 35px;font-size:clamp(31px,4vw,59px);line-height:1.2;letter-spacing:-.05em}.about-layout .lead strong{color:var(--gold);font-weight:inherit}.about-layout>div>p:not(.lead){max-width:760px;color:var(--muted);font-size:16px;line-height:1.85}.about-layout dl{margin:55px 0 0;border-top:1px solid var(--ink)}.about-layout dl div{display:grid;grid-template-columns:150px 1fr;padding:16px 0;border-bottom:1px solid var(--line)}.about-layout dt{font:10px monospace;color:var(--muted)}.about-layout dd{margin:0;font-size:13px}.game-profile{border-top:1px solid var(--ink);padding-top:55px}.game-table{border-top:1px solid var(--line)}.game-table>div{display:grid;grid-template-columns:1fr 150px 1.35fr;gap:25px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.game-table strong{font-size:15px}.game-table span{font:10px monospace;color:var(--gold)}.game-table p{margin:0;color:var(--muted);font-size:13px}
.resume-grid{display:grid;grid-template-columns:1.1fr 1fr .9fr;gap:6vw;margin-top:70px}.resume-grid>div>h2{margin-bottom:42px;padding-top:14px;border-top:1px solid var(--ink);font:11px monospace;letter-spacing:.15em}.resume-grid article{margin-bottom:35px}.resume-grid time{color:var(--muted);font:10px monospace}.resume-grid h3{margin:9px 0;font-size:17px}.resume-grid p{margin:0;color:var(--muted);line-height:1.7}.solid-link{display:flex;justify-content:space-between;gap:25px;margin-top:45px;padding:16px;background:var(--ink);color:var(--paper);text-decoration:none;font-size:12px}.solid-link:hover{background:var(--accent);color:var(--ink)}.resume-projects{margin-top:8px;border:1px solid var(--ink);background:transparent;color:var(--ink)}
.contact-page{min-height:calc(100vh - 84px);padding:80px 5.2vw 28px;display:flex;flex-direction:column}.contact-page h1{margin:70px 0 auto;max-width:1200px;font-size:clamp(64px,10vw,148px);line-height:.93;letter-spacing:-.075em}.contact-row{display:flex;gap:14px;margin:70px 0}.contact-row a{flex:1;display:flex;justify-content:space-between;padding:22px 0;border-top:1px solid var(--ink);text-decoration:none}footer{display:flex;justify-content:space-between;gap:25px;padding-top:24px;border-top:1px solid var(--line);font:9px monospace;letter-spacing:.1em;color:var(--muted)}
@media(max-width:1100px){.selected-grid{grid-template-columns:1fr}.project-summary{min-height:auto}.speed-visual{grid-template-columns:auto repeat(5,auto)}.speed-visual i{display:none}}
@media(max-width:820px){.site-header{min-height:74px;padding:15px 20px;grid-template-columns:1fr auto}.site-header nav{grid-column:1/-1;order:3;width:100%;overflow-x:auto;margin-top:12px}.site-header nav button{white-space:nowrap;padding:9px 12px}.availability{font-size:9px}.hero{grid-template-columns:1fr}.hero-copy{min-height:610px;padding:46px 24px 38px}.hero-feature{min-height:500px;border-left:0;border-top:1px solid var(--ink)}.proof-strip{grid-template-columns:1fr 1fr}.proof-strip div:nth-child(2){border-right:0}.proof-strip div:nth-child(-n+2){border-bottom:1px solid var(--line)}.home-selected,.inner-page{padding:60px 24px 85px}.page-title,.section-heading,.material-note,.about-layout{grid-template-columns:1fr}.page-title{gap:24px}.page-title h1{order:-1}.project-list{grid-template-columns:1fr}.timeline article{grid-template-columns:44px 1fr;gap:16px}.timeline article time,.timeline article div{grid-column:2}.about-layout{gap:42px}.game-table>div{grid-template-columns:1fr 100px}.game-table p{grid-column:1/-1}.resume-grid{grid-template-columns:1fr}}
@media(max-width:540px){.hero h1{font-size:48px}.role-line{margin-top:45px}.hero-feature{min-height:400px}.proof-strip b{font-size:28px}.project-media{height:280px}.speed-visual{padding:20px;grid-template-columns:repeat(5,1fr)}.speed-visual>span,.speed-visual em{grid-column:1/-1;writing-mode:initial;transform:none}.speed-visual b{width:34px;height:34px}.frame-visual{grid-template-columns:1fr}.frame-visual i{display:none}.about-layout dl div{grid-template-columns:1fr;gap:7px}.contact-page{padding:60px 20px 24px}.contact-row{flex-direction:column}footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.project-links{display:grid;grid-template-columns:.75fr 1.25fr;gap:7px;margin-top:16px}.project-links>a{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border:1px solid var(--ink);font-size:11px;text-decoration:none}.project-links>a:hover{background:var(--accent);color:var(--ink)}.project-download{background:var(--ink);color:var(--paper)}.project-pending{grid-column:1/-1;margin:0;padding:12px 14px;border:1px dashed var(--line);color:var(--muted);font-size:11px}.project-card:target{outline:3px solid var(--accent);outline-offset:3px;scroll-margin-top:110px}
.project-primary-action{margin-top:18px}.project-primary-action .project-play{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border:1px solid var(--ink);background:var(--accent);color:var(--ink);font-size:var(--type-meta);font-weight:700;text-decoration:none}.project-primary-action .project-play:hover{background:var(--ink);color:var(--paper)}
.game-profile{margin-top:90px}.game-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:32px;align-items:start}.steam-proof{position:sticky;top:112px;margin:0;background:#dfe7ee;border:1px solid var(--line)}.steam-proof img{width:100%;aspect-ratio:920/962;object-fit:cover}.steam-proof figcaption{padding:12px 14px;border-top:1px solid var(--line);color:var(--muted);font:10px/1.6 monospace}.profile-lead{display:grid;grid-template-columns:1.15fr .85fr;gap:7vw;margin:70px 0 90px;padding-bottom:70px;border-bottom:1px solid var(--ink)}.profile-lead>p{margin:0;font-size:clamp(34px,4.5vw,66px);line-height:1.12;letter-spacing:-.055em}.profile-lead strong{color:var(--gold);font-weight:inherit}.profile-lead>div p{color:var(--muted);font-size:16px;line-height:1.85}.profile-lead>div p+p{margin-top:20px}
@media(max-width:820px){.profile-lead,.game-profile-grid{grid-template-columns:1fr}.steam-proof{position:static;max-width:520px}}
@media(max-width:540px){.project-links{grid-template-columns:1fr}}

.project-process a{
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  background:#171714;
}
.project-process a:hover,.project-process a:focus-visible{border-color:var(--accent)}
.project-process img{
  width:100%;
  height:auto;
  object-fit:contain;
}
.project-process-open{
  position:absolute;
  right:12px;
  bottom:12px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(23,23,20,.88);
  color:#fff;
  font-size:11px;
  backdrop-filter:blur(8px);
}
.project-process a:hover .project-process-open,.project-process a:focus-visible .project-process-open{
  border-color:var(--accent);
  background:var(--accent);
  color:var(--ink);
}
.project-process p{margin:10px 0 0}
.page-title-compact{display:block}.page-title-compact h1{margin-top:24px;text-align:left}.experience-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:5vw;align-items:start}.experience-portrait{position:sticky;top:112px;margin:42px 0 0}.experience-portrait img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center top;background:#e3e5e7}.experience-portrait figcaption{padding-top:12px;margin-top:12px;border-top:1px solid var(--ink);font:10px/1.6 monospace;letter-spacing:.1em}.experience-layout .timeline article{grid-template-columns:48px 150px 1fr}.experience-layout .timeline p{max-width:700px}
@media(max-width:1000px){.experience-layout{grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr)}.experience-layout .timeline article{grid-template-columns:42px 1fr}.experience-layout .timeline article time,.experience-layout .timeline article div{grid-column:2}}
@media(max-width:700px){.page-title-compact,.experience-layout{grid-template-columns:1fr}.experience-portrait{position:static;order:-1;max-width:440px;margin:36px 0 12px}.experience-layout .timeline article{grid-template-columns:42px 1fr}}

/* Home project carousel */
.hero-carousel{position:relative;isolation:isolate;cursor:default}
.hero-carousel:after{display:none}
.hero-slides,.hero-slide,.hero-media{position:absolute;inset:0}
.hero-slides{z-index:1}
.hero-slide{width:100%;height:100%;overflow:hidden;border:0;padding:0;background:#171714;color:#fff;text-align:left;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .65s ease,visibility .65s ease}
.hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;cursor:pointer}
.hero-slide:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.hero-media{display:block;overflow:hidden}
.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2) 0,transparent 35%,rgba(0,0,0,.86) 100%)}
.hero-media .project-image,.hero-media .project-video,.hero-media .grid-visual,.hero-media .data-visual{width:100%;height:100%}
.hero-slide:hover .project-image,.hero-slide:hover .project-video{transform:scale(1.025)}
.hero-caption{position:absolute;z-index:2;left:30px;right:30px;bottom:84px;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none}
.hero-caption>span{margin-bottom:10px;font:10px monospace;letter-spacing:.14em;text-transform:uppercase}
.hero-caption>strong{max-width:100%;font-size:clamp(27px,3vw,40px);line-height:1.05;letter-spacing:-.045em}
.hero-caption>small{margin-top:9px;color:#d9d3c9;font:10px monospace;letter-spacing:.1em}
.hero-count{position:absolute;z-index:4;top:28px;right:30px;display:flex;gap:7px;align-items:center;color:#fff;font:10px monospace;letter-spacing:.12em}
.hero-count i{opacity:.55;font-style:normal}
.hero-controls{position:absolute;z-index:4;left:30px;right:30px;bottom:26px;display:grid;grid-template-columns:34px minmax(80px,1fr) 34px;gap:10px;align-items:center}
.hero-controls>button{width:34px;height:34px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(0,0,0,.28);color:#fff;font-size:16px}
.hero-controls>button:hover,.hero-controls>button:focus-visible{border-color:var(--accent);background:var(--accent);color:var(--ink)}
.hero-dots{display:flex;gap:6px;align-items:center}
.hero-dots button{flex:1;height:18px;border:0;padding:8px 0;background:transparent}
.hero-dots button:before{content:"";display:block;height:2px;background:rgba(255,255,255,.35);transition:background .25s,transform .25s}
.hero-dots button.is-active:before,.hero-dots button:hover:before,.hero-dots button:focus-visible:before{background:#fff;transform:scaleY(2)}
@media(max-width:820px){.hero-caption{left:24px;right:24px}.hero-controls{left:24px;right:24px}.hero-count{right:24px}}
@media(max-width:540px){.hero-caption{bottom:78px}.hero-caption>strong{font-size:27px}.hero-caption>small{max-width:85%;line-height:1.45}.hero-controls{bottom:22px}.hero-count{top:22px}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}



/* Home hero: single vertical reading flow */
@media(min-width:821px){
  .hero{min-height:0;display:flex;flex-direction:column}
  .hero-copy{min-height:540px;padding:50px 5.2vw 48px}
  .role-line{margin-top:42px}
  .hero h1{max-width:1120px;margin:20px 0 24px;font-size:clamp(62px,6.4vw,96px);line-height:.96}
  .hero-intro{max-width:720px;margin:0 0 24px;font-size:16px;line-height:1.75}
  .hero-feature{width:auto;height:clamp(520px,48vw,820px);min-height:0;margin:0 5.2vw 56px;border:1px solid var(--ink)}
  .hero-carousel .project-video{object-fit:contain;background:#171714}
  .hero-caption{left:34px;right:34px;bottom:94px}
  .hero-caption>strong{font-size:clamp(34px,4vw,58px)}
  .hero-count{top:30px;right:34px}
  .hero-controls{left:34px;right:34px;bottom:28px}
}


/* Readability, alignment and project preview scale */
:root{
  --font-sans:"Avenir Next","Helvetica Neue","Segoe UI","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
body{
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3{font-family:var(--font-sans);font-weight:800}
.hero h1{letter-spacing:-.045em}
.page-title h1{letter-spacing:-.045em}
.section-heading h2{letter-spacing:-.03em}
.project-copy h2{letter-spacing:-.025em}
.profile-lead>p{letter-spacing:-.035em}
.contact-page h1{letter-spacing:-.05em}

.brand{font-size:14px}
.site-header nav button{font-size:14px}
.availability{font-size:12px}
.eyebrow{
  font-family:var(--font-sans);
  font-size:11px;
  font-weight:650;
  line-height:1.4;
  letter-spacing:.11em;
}
.role-line{font-size:14px}
.hero-intro{font-size:17px}
.hero-actions button{font-size:14px}
.proof-strip span{font-size:13px}

.section-heading>span,.section-index,.page-title>span{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  letter-spacing:.09em;
}
.page-title p{font-size:15px}
.filters button{font-size:14px}

.project-media{height:clamp(400px,32vw,560px)}
.project-media.project-media-portrait{height:clamp(560px,72vh,760px)}
.project-copy{padding:28px 26px 26px}
.project-topline{
  padding:18px 22px;
  font-family:var(--font-sans);
  font-size:11px;
  font-weight:650;
  line-height:1.4;
  letter-spacing:.08em;
}
.project-type{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:650;
  line-height:1.45;
  letter-spacing:.06em;
}
.project-summary{
  min-height:0;
  font-size:16px;
  line-height:1.78;
}
.project-meta-list{margin:15px 0}
.project-meta-list span{padding:7px 10px;font-size:12px}
.project-card summary{padding:17px 0;font-size:14px}
.project-detail h3{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.07em;
}
.project-detail p,.project-detail li{font-size:14px;line-height:1.75}
.project-links>a,.solid-link,.preview-open{font-size:13px}

.material-note span,.timeline-no,.timeline time,.about-layout dt,.resume-grid time{
  font-family:var(--font-sans);
  font-size:12px;
  line-height:1.45;
  letter-spacing:.06em;
}
.material-note p,.timeline p,.resume-grid p{font-size:15px}
.timeline h3{font-size:14px}
.about-layout figcaption,.steam-proof figcaption,.experience-portrait figcaption{
  font-family:var(--font-sans);
  font-size:12px;
  line-height:1.6;
  letter-spacing:.06em;
}
.about-layout dd{font-size:14px}
.game-table strong{font-size:16px}
.game-table span{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:650;
  line-height:1.4;
}
.game-table p{font-size:14px;line-height:1.7}
.resume-grid>div>h2{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.1em;
}
footer{
  font-family:var(--font-sans);
  font-size:11px;
  line-height:1.5;
  letter-spacing:.07em;
}
.hero-caption>span,.hero-caption>small,.hero-count{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  letter-spacing:.08em;
}

.home-selected .section-heading{
  grid-template-columns:max-content minmax(0,1fr);
  gap:clamp(36px,4vw,80px);
  align-items:start;
}
.home-selected .section-heading h2{
  max-width:none;
  white-space:nowrap;
  font-size:clamp(28px,2.9vw,50px);
}
.game-profile .section-heading{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  margin-bottom:36px;
}
.game-profile .section-heading h2{max-width:none}

@media(max-width:820px){
  .home-selected .section-heading{display:block}
  .home-selected .section-heading>span{display:block;margin-bottom:18px}
  .home-selected .section-heading h2{white-space:normal;font-size:clamp(30px,8vw,48px)}
  .project-media{height:400px}
}
@media(max-width:540px){
  body{font-size:15px}
  .site-header nav button{font-size:13px}
  .availability{font-size:10px}
  .project-media{height:330px}
  .project-media.project-media-portrait{height:520px}
  .project-copy{padding:24px 20px}
  .project-summary{font-size:15px}
}


/* Six-level typography template */
/* New content must use these semantic roles instead of one-off font sizes. */
:root{
  --type-label:12px;
  --type-meta:14px;
  --type-body:16px;
  --type-card:32px;
  --type-section:48px;
  --type-display:88px;
}
body,p,li,dd{font-size:var(--type-body)}
h1,.type-display{font-size:var(--type-display)}
h2,.type-section{font-size:var(--type-section)}
h3,.type-card{font-size:var(--type-card)}
small,.type-label{font-size:var(--type-label)}
.type-meta{font-size:var(--type-meta)}
.type-body{font-size:var(--type-body)}

.brand,.site-header nav button,.role-line,.hero-actions button,.proof-strip span,
.filters button,.preview-open,.project-card summary,.project-detail p,.project-detail li,
.project-links>a,.project-pending,.timeline h3,.about-layout dd,.game-table p,
.solid-link{
  font-size:var(--type-meta);
}
.availability,.eyebrow,.section-heading>span,.section-index,.page-title>span,
.project-topline,.project-type,.project-meta-list span,.project-detail h3,
.material-note span,.timeline-no,.timeline time,.about-layout figcaption,
.about-layout dt,.resume-grid>div>h2,.resume-grid time,.steam-proof figcaption,
.experience-portrait figcaption,.hero-caption>span,.hero-caption>small,.hero-count,
footer{
  font-size:var(--type-label);
}
.hero-intro,.page-title p,.project-summary,.material-note p,.timeline p,
.about-layout>div>p:not(.lead),.profile-lead>div p,.game-table strong,
.resume-grid h3,.resume-grid p,.contact-row a{
  font-size:var(--type-body);
}
.proof-strip b,.project-copy h2,.timeline h2{
  font-size:var(--type-card);
}
.section-heading h2,.game-profile .section-heading h2,.profile-lead>p,
.about-layout .lead{
  font-size:var(--type-section);
}
.hero h1,.page-title h1,.contact-page h1{
  font-size:var(--type-display);
}
.hero-feature>span,.hero-feature>small,.speed-visual>span,.speed-visual b,
.speed-visual em,.grid-visual>span,.grid-visual small,.data-visual>span,
.data-visual b,.frame-visual span{
  font-size:var(--type-label);
}
.hero-feature>strong,.data-visual p,.frame-visual b{
  font-size:var(--type-card);
}
.hero-caption>strong,.grid-visual b{
  font-size:var(--type-section);
}
.hero-controls>button{font-size:var(--type-body)}

@media(min-width:821px) and (max-width:1100px){
  :root{
    --type-card:30px;
    --type-section:44px;
    --type-display:72px;
  }
  .home-selected .section-heading h2{font-size:var(--type-card)}
}
@media(max-width:820px){
  :root{
    --type-card:28px;
    --type-section:40px;
    --type-display:56px;
  }
}


/* Six-level typography specificity fix */
.home-selected .section-heading h2{font-size:var(--type-section)}
@media(min-width:821px) and (max-width:1100px){
  .home-selected .section-heading h2{font-size:var(--type-card)}
}


/* Hero carousel: full 16:9 preview with separate information rail */
@media(min-width:821px){
  .hero-feature.hero-carousel{
    height:calc(50.4vw + 132px);
    max-height:none;
  }
  .hero-carousel .hero-media{
    top:0;
    right:0;
    bottom:auto;
    left:0;
    height:auto;
    aspect-ratio:16/9;
    background:#171714;
    border-bottom:1px solid rgba(255,255,255,.2);
  }
  .hero-carousel .hero-media:after{
    background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 22%);
  }
  .hero-carousel .project-image,
  .hero-carousel .project-video{
    object-fit:contain;
    background:#171714;
  }
  .hero-carousel .hero-slide:hover .project-image,
  .hero-carousel .hero-slide:hover .project-video{
    transform:none;
  }
  .hero-carousel .hero-caption{
    left:34px;
    right:34px;
    bottom:68px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
  }
  .hero-carousel .hero-caption>span,
  .hero-carousel .hero-caption>small{
    margin:0;
  }
  .hero-carousel .hero-caption>strong{
    overflow:hidden;
    font-size:var(--type-card);
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .hero-carousel .hero-caption>small{
    text-align:right;
  }
  .hero-carousel .hero-controls{
    bottom:18px;
  }
}


/* Project previews: preserve complete artwork and module boundaries */
.project-card .project-image{
  object-fit:contain;
  background:#171714;
}
#project-holiday-match .project-media,
#project-last-war .project-media{
  height:auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
#project-holiday-match .project-image,
#project-last-war .project-image{
  height:auto;
  aspect-ratio:8/5;
}
#project-holiday-match .preview-open,
#project-last-war .preview-open{
  position:static;
  align-self:flex-end;
  margin:12px 16px 16px;
}


/* Portfolio hierarchy and responsive refinement */
.resume-quick{
  justify-self:end;
  padding:10px 14px;
  border:1px solid var(--ink);
  text-decoration:none;
  font-size:var(--type-meta);
  font-weight:700;
  line-height:1;
  transition:background .2s,color .2s;
}
.resume-quick:hover,.resume-quick:focus-visible{
  background:var(--ink);
  color:var(--paper);
}
@media(min-width:821px){
  .hero-copy{
    min-height:440px;
    padding:30px 5.2vw;
  }
  .role-line{margin-top:18px}
  .hero h1{margin:12px 0 16px}
  .hero-intro{
    max-width:760px;
    margin:0 0 18px;
    line-height:1.65;
  }
  .hero-actions button{padding:14px 18px}
}
.home-project-index{
  border-top:1px solid var(--ink);
}
.home-project-item{
  display:grid;
  grid-template-columns:48px minmax(190px,.62fr) minmax(260px,1fr) minmax(220px,.78fr) 24px;
  gap:24px;
  align-items:center;
  min-height:156px;
  padding:18px 16px 18px 0;
  border-bottom:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .2s,padding .2s;
}
.home-project-item:hover,.home-project-item:focus-visible{
  padding-left:16px;
  background:rgba(200,255,61,.2);
}
.home-project-no{
  font-size:var(--type-label);
  font-weight:700;
  letter-spacing:.08em;
}
.home-project-thumb{
  display:block;
  height:118px;
  overflow:hidden;
  background:#171714;
}
.home-project-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.home-project-placeholder{
  display:grid;
  height:100%;
  place-items:center;
  color:var(--paper);
  font-size:var(--type-label);
  letter-spacing:.08em;
}
.home-project-main{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:7px;
}
.home-project-main small{
  color:var(--muted);
  font-size:var(--type-label);
  letter-spacing:.06em;
}
.home-project-main strong{
  overflow:hidden;
  font-size:var(--type-card);
  line-height:1.1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.home-project-result{
  color:var(--muted);
  font-size:var(--type-body);
  line-height:1.65;
}
.home-project-arrow{
  justify-self:end;
  font-size:var(--type-body);
}
.project-groups{
  display:flex;
  flex-direction:column;
  gap:56px;
}
.project-group+.project-group{
  padding-top:32px;
  border-top:1px solid var(--ink);
}
.project-group-heading{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-bottom:24px;
}
.project-group-heading span{
  color:var(--muted);
  font-size:var(--type-label);
  font-weight:650;
  letter-spacing:.09em;
}
.project-group-heading h2{
  margin:0;
  font-size:var(--type-card);
  line-height:1.1;
}
.project-card video[controls]{
  object-fit:contain;
  background:#171714;
}
.contact-row{flex-wrap:wrap}
.contact-row a{min-width:260px}

@media(max-width:820px){
  .resume-quick{
    padding:8px 10px;
    font-size:var(--type-label);
  }
  .hero-copy{
    min-height:0;
    padding:34px 24px 32px;
  }
  .role-line{margin-top:28px}
  .hero h1{margin:16px 0 20px}
  .hero-intro{margin-bottom:20px;line-height:1.65}
  .hero-feature.hero-carousel{
    height:calc(56.25vw + 128px);
    min-height:0;
  }
  .hero-carousel .hero-media{
    top:0;
    right:0;
    bottom:auto;
    left:0;
    height:auto;
    aspect-ratio:16/9;
    background:#171714;
    border-bottom:1px solid rgba(255,255,255,.2);
  }
  .hero-carousel .hero-media:after{
    background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 24%);
  }
  .hero-carousel .project-image,
  .hero-carousel .project-video{
    object-fit:contain;
    background:#171714;
  }
  .hero-carousel .hero-slide:hover .project-image,
  .hero-carousel .hero-slide:hover .project-video{
    transform:none;
  }
  .hero-carousel .hero-caption{
    left:20px;
    right:20px;
    bottom:58px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:3px 12px;
    align-items:end;
  }
  .hero-carousel .hero-caption>span,
  .hero-carousel .hero-caption>small{margin:0}
  .hero-carousel .hero-caption>small{text-align:right}
  .hero-carousel .hero-caption>strong{
    grid-column:1/-1;
    overflow:hidden;
    font-size:var(--type-card);
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .hero-carousel .hero-controls{
    left:20px;
    right:20px;
    bottom:12px;
  }
  .hero-carousel .hero-count{
    top:18px;
    right:20px;
  }
  .home-project-item{
    grid-template-columns:36px 108px minmax(0,1fr) 18px;
    gap:12px;
    min-height:124px;
    padding:16px 0;
  }
  .home-project-item:hover,.home-project-item:focus-visible{
    padding-left:10px;
  }
  .home-project-thumb{height:86px}
  .home-project-main strong{
    font-size:var(--type-body);
    white-space:normal;
  }
  .home-project-result{
    grid-column:3/5;
    font-size:var(--type-meta);
  }
  .home-project-arrow{
    grid-column:4;
    grid-row:1;
  }
  .project-groups{gap:48px}
  .project-group+.project-group{padding-top:28px}
  .project-group-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
}
