:root {
  --ink: #151b25;
  --muted: #657080;
  --line: #dfe3e9;
  --paper: #fafbfc;
  --blue: #264fe2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.site-header { position: sticky; top: 0; z-index: 8; background: #fafbfcec; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 23px max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.wordmark span { font-size: 12px; font-weight: 500; letter-spacing: .11em; margin-left: 17px; color: #637082; }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a:hover { color: var(--blue); }
main { max-width: 1540px; margin: auto; padding: 0 max(5vw, 24px); }
.hero { min-height: 670px; padding: 68px 0 74px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: stretch; }
.overline { color: var(--blue); font-size: 13px; line-height: 1.5; letter-spacing: .16em; font-weight: 600; margin: 0 0 22px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0; }
h1 { margin: 0 0 26px; font-size: clamp(58px, 6vw, 90px); letter-spacing: -.06em; line-height: 1.15; font-weight: 650; }
.hero-description { font-size: 19px; color: var(--muted); line-height: 1.9; margin: 0 0 32px; }
.hero-bottom { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hero-bottom > span { font-size: 13px; color: var(--muted); }
.primary-link { padding: 12px 23px; border-radius: 5px; color: white; font-size: 14px; background: var(--ink); }
.primary-link:hover { background: var(--blue); }
.hero-gallery { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr 1fr; gap: 13px; height: 510px; }
.hero-frame { position: relative; padding: 0; border: 0; background: #e7ebef; border-radius: 8px; overflow: hidden; text-align: left; }
.hero-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.hero-frame:hover > img { transform: scale(1.045); }
.hero-frame > span { position: absolute; bottom: 0; padding: 42px 21px 18px; left: 0; right: 0; color: white; line-height: 1.5; font-size: 16px; font-weight: 550; background: linear-gradient(transparent, #111c30b5); }
.hero-frame > span > span { display: block; font-size: 12px; font-weight: 400; opacity: .8; margin-top: 3px; }
.hero-product { grid-column: 1 / 3; }
.hero-product > img { object-position: center 47%; }
.hero-poster > img { object-position: center 49%; }
.hero-ip > img { object-position: center 9%; }
.work-section { padding: 30px 0 80px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading .overline { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.4; }
.section-heading h2 span { color: var(--muted); font-weight: 400; font-size: 14px; letter-spacing: 0; margin-left: 20px; }
.section-heading > p { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.work-toolbar { position: sticky; top: 80px; z-index: 6; background: #fafbfcf2; backdrop-filter: blur(14px); margin: 0 0 28px; padding: 9px 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); border-radius: 40px; padding: 9px 19px; background: transparent; color: #555f70; font-size: 14px; transition: background .2s; }
.filters .active { background: var(--ink); border-color: var(--ink); color: white; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; }
.work-card { display: block; min-width: 0; border: 0; padding: 0; background: transparent; text-align: left; }
.work-card[hidden] { display: none; }
.cover { display: block; aspect-ratio: 1.17; border-radius: 7px; overflow: hidden; background: #e8edf0; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s; }
.work-card:hover .cover img { transform: scale(1.035); }
.cover.contain img { object-fit: contain; padding: 16px; }
.work-card[data-id="craft"] .cover, .work-card[data-id="cherry"] .cover { background: #edece7; }
.work-card[data-id="craft"] .cover img, .work-card[data-id="cherry"] .cover img { object-fit: contain; padding: 19px; }
.work-card[data-id="lyrion"] .cover img { object-position: top; }
.work-card[data-id="soul"] .cover img { object-position: 30% 50%; }
.cover .video-symbol { position: absolute; width: 50px; height: 50px; background: #ffffffed; border-radius: 50%; top: calc(50% - 25px); left: calc(50% - 25px); display: grid; place-items: center; color: #1a2332; font-size: 19px; }
.card-category { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin: 18px 0 5px; }
.card-title { font-size: 23px; line-height: 1.4; font-weight: 600; margin: 0 0 4px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.card-subtitle { font-size: 15px; color: #454e5c; margin: 0 0 9px; }
.card-description { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.7; }
.about-section { border-top: 1px solid var(--line); padding: 68px 0 82px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.about-section h2 { font-size: 45px; line-height: 1.3; margin: 0; letter-spacing: -.04em; font-weight: 600; }
.about-body > p { font-size: 20px; line-height: 1.9; margin: 0 0 34px; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 30px; }
.capabilities h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.capabilities p { font-size: 14px; color: var(--muted); margin: 0; }
footer { background: #101a2c; color: #f5f7fc; padding: 35px max(5vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer .wordmark span { color: #adb8cd; }
footer p, footer > a:last-child { color: #adb8cd; font-size: 13px; }
dialog { color: var(--ink); border: 0; padding: 0; background: #fafbfc; }
dialog::backdrop { background: #101a2cba; backdrop-filter: blur(12px); }
#projectDialog { width: min(1320px, 96vw); max-height: 95vh; border-radius: 10px; }
.detail-top { position: sticky; top: 0; z-index: 4; background: #fafbfcf5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 14px 34px; gap: 16px; }
.detail-top > span { font-size: 12px; letter-spacing: .09em; color: var(--muted); }
.text-button { border: 1px solid var(--line); border-radius: 40px; padding: 7px 18px; font-size: 14px; background: white; }
.detail-intro { padding: 44px 46px 30px; }
.detail-intro .overline { margin-bottom: 14px; }
.detail-intro h2 { font-size: clamp(30px, 4vw, 51px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin: 0 0 12px; overflow-wrap: anywhere; }
.detail-subtitle { color: #526079; font-size: 23px; margin: 0 0 20px; }
.detail-summary { color: #465162; font-size: 17px; max-width: 900px; margin: 0; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 23px 0 0; }
.skill-list span { padding: 5px 11px; background: #edf0f6; color: #50617e; font-size: 13px; border-radius: 3px; }
.detail-highlights { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 27px 0 0; margin-top: 29px; }
.detail-highlights h3 { font-size: 15px; margin: 0 0 8px; }
.detail-highlights p { font-size: 14px; margin: 0; color: var(--muted); }
.gallery-header { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; padding: 0 46px 19px; color: var(--muted); }
.gallery-header > span:first-child { color: var(--ink); font-weight: 600; }
.project-gallery { padding: 0 28px 30px; display: grid; gap: 28px; }
.project-gallery figure { margin: 0; min-width: 0; }
.image-button { border: 1px solid #00000007; padding: 0; width: 100%; display: block; background: #eef0f3; border-radius: 5px; overflow: hidden; cursor: zoom-in; }
.image-button img { width: 100%; height: auto; display: block; }
.project-gallery figcaption { padding: 12px 2px 0; font-size: 13px; color: var(--muted); }
.project-gallery.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 46px 35px; gap: 30px; align-items: start; }
.project-gallery.posters.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-video { padding: 0 28px 32px; }
.project-video video { display: block; width: 100%; max-height: 75vh; border-radius: 5px; background: #080c15; }
.related-heading { border-top: 1px solid var(--line); margin: 0 46px; padding: 23px 0 10px; font-size: 14px; color: var(--muted); }
.related-projects { padding: 0 46px 35px; display: flex; flex-wrap: wrap; gap: 10px; }
.related-projects button { border: 1px solid var(--line); border-radius: 4px; background: white; padding: 9px 15px; font-size: 14px; }
body.modal-open { overflow: hidden; }
#imageDialog { width: 98vw; max-width: 98vw; height: 96vh; max-height: 96vh; background: #101722; border-radius: 6px; color: white; }
.image-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #101722; border-bottom: 1px solid #ffffff25; gap: 20px; }
.image-toolbar > span { font-size: 14px; }
.image-toolbar > div { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.image-toolbar a { font-size: 14px; color: #cdd8ed; }
.image-scroll { height: calc(100% - 66px); overflow: auto; padding: 24px; display: block; }
.image-scroll img { display: block; width: max(100%, 1500px); max-width: none; height: auto; margin: 0 auto; }
@media (min-width:1600px) { .hero-gallery { height: 550px; } }
@media (max-width:1050px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; min-height: auto; }
  .hero-gallery { height: 480px; }
  h1 { font-size: 65px; }
  .hero-description { font-size: 17px; }
  .hero-bottom > span { display: none; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 24px; }
  .about-section { gap: 35px; }
}
@media (max-width:650px) {
  .site-header { padding: 17px 20px; }
  .wordmark { font-size: 19px; }
  .wordmark span { font-size: 10px; margin-left: 10px; }
  nav { gap: 17px; font-size: 13px; }
  main { padding: 0 20px; }
  .hero { padding: 36px 0 40px; grid-template-columns: 1fr; gap: 29px; }
  .hero-copy { padding: 0; }
  .overline { margin-bottom: 16px; font-size: 12px; }
  h1 { font-size: 62px; margin-bottom: 20px; }
  .hero-description { font-size: 16px; margin-bottom: 24px; }
  .hero-bottom { padding: 0; }
  .hero-bottom > span { display: block; font-size: 12px; }
  .hero-gallery { height: 350px; gap: 10px; }
  .hero-frame > span { font-size: 14px; padding: 35px 15px 12px; }
  .hero-frame > span > span { font-size: 11px; }
  .work-section { padding: 26px 0 44px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading h2 span { font-size: 12px; margin-left: 12px; }
  .section-heading > p { display: none; }
  .work-toolbar { top: 69px; margin-bottom: 20px; }
  .filters { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters button { flex-shrink: 0; padding: 8px 13px; font-size: 13px; }
  .work-grid { gap: 30px 14px; }
  .cover { aspect-ratio: .95; }
  .card-category { font-size: 11px; margin-top: 13px; }
  .card-title { font-size: 18px; line-height: 1.3; }
  .card-subtitle { font-size: 12px; margin: 6px 0; }
  .card-description { font-size: 12px; line-height: 1.6; }
  .cover.contain img { padding: 7px; }
  .work-card[data-id="craft"] .cover img, .work-card[data-id="cherry"] .cover img { padding: 7px; }
  .about-section { grid-template-columns: 1fr; gap: 25px; padding: 38px 0 45px; }
  .about-section h2 { font-size: 36px; }
  .about-body > p { font-size: 17px; margin-bottom: 28px; }
  .capabilities { gap: 22px; }
  .capabilities p { font-size: 13px; }
  footer { padding: 28px 20px; flex-wrap: wrap; gap: 12px; }
  footer > p { display: none; }
  #projectDialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .detail-top { padding: 12px 18px; }
  .detail-top > span { font-size: 10px; }
  .detail-intro { padding: 30px 20px 25px; }
  .detail-subtitle { font-size: 19px; }
  .detail-summary { font-size: 16px; }
  .detail-highlights { grid-template-columns: 1fr; gap: 17px; margin-top: 24px; padding-top: 23px; }
  .gallery-header { padding: 0 20px 15px; font-size: 12px; }
  .project-gallery, .project-gallery.posters, .project-gallery.posters.three { grid-template-columns: 1fr; padding: 0 14px 26px; gap: 20px; }
  .project-gallery.posters { padding: 0 28px 25px; }
  .project-video { padding: 0 14px 25px; }
  .related-heading { margin: 0 20px; }
  .related-projects { padding: 0 20px 28px; }
  .image-toolbar { gap: 10px; padding: 10px; }
  .image-toolbar > span { font-size: 11px; max-width: 35%; }
  .image-toolbar > div { gap: 12px; }
  .image-toolbar a, .image-toolbar button { font-size: 12px; }
  .image-scroll { padding: 12px; }
  .image-scroll img { width: max(100%, 1400px); }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.download-project { display: inline-block; margin: 0 46px 25px; padding: 9px 17px; border: 1px solid var(--line); background: white; border-radius: 4px; font-size: 14px; }
@media (max-width:650px) {
  .download-project { margin-left: 20px; }
  .card-category { font-size: 12px; }
  .card-subtitle, .card-description { font-size: 14px; }
  .capabilities p { font-size: 14px; }
}
