:root {
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink: #111111;
  --soft: #5c5c58;
  --faint: #8a8a84;
  --line: #d8d8d2;
  --line-dark: #b8b8b1;
  --max: 1400px;
  --gutter: clamp(22px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--ink); }
.shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); background: rgba(247,247,244,.95); }
.wordmark { font-size: 1.08rem; font-weight: 800; letter-spacing: -.04em; }
.site-nav { display: flex; gap: clamp(18px, 2.5vw, 40px); font-size: .82rem; }
.site-nav a { position: relative; padding-block: 8px; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 220ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { padding-top: clamp(78px, 10vw, 150px); padding-bottom: clamp(76px, 10vw, 142px); }
.hero-index, .section-number, .project-type, .work-meta, .detail-eyebrow { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-index { margin-bottom: clamp(38px, 6vw, 84px); color: var(--soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .7fr); gap: clamp(36px, 8vw, 130px); align-items: end; }
.hero h1 { max-width: 960px; margin: 0; font-size: clamp(3.1rem, 5.2vw, 5.2rem); font-weight: 500; letter-spacing: -.075em; line-height: 1.02; }
.keep-together { white-space: nowrap; }
.hero-copy { padding-bottom: .5rem; }
.hero-copy p { margin: 0 0 1.1rem; font-size: clamp(1rem, 1.35vw, 1.22rem); }
.muted-copy { color: var(--soft); }
.hero-rule { display: flex; align-items: center; height: 8px; margin-top: clamp(54px, 8vw, 110px); border-top: 1px solid var(--ink); }
.hero-rule span { width: 16%; height: 7px; margin-top: -1px; background: var(--ink); }

.archive-section { padding-top: clamp(72px, 9vw, 132px); padding-bottom: clamp(80px, 10vw, 150px); }
.archive-section--border, .about-section, .contact-section { border-top: 1px solid var(--line-dark); }
.section-header { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(280px, .55fr); gap: 40px; align-items: end; margin-bottom: clamp(42px, 6vw, 82px); }
.section-header h2, .about-section h2, .contact-section h2 { margin: 7px 0 0; font-size: clamp(2.1rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.section-header > p { max-width: 520px; margin: 0; color: var(--soft); font-size: .95rem; }
.section-number { color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 100px; background: transparent; cursor: pointer; font-size: .77rem; transition: color 160ms, background 160ms, border-color 160ms; }
.filter:hover, .filter:focus-visible, .filter.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) clamp(26px, 4vw, 58px); }
.work-card--feature { grid-column: 1 / -1; }
.work-card[hidden] { display: none; }
.work-cover { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 20px; overflow: hidden; color: var(--ink); border: 1px solid var(--line-dark); background: var(--white); }
.work-card--feature .work-cover { aspect-ratio: 16 / 7; }
.work-cover::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--ink); transition: border-width 220ms ease; pointer-events: none; }
.work-cover:hover::after, .work-cover:focus-visible::after { border-width: 8px; }
.cover-sequence { position: absolute; top: 24px; left: 26px; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.cover-title { position: absolute; left: 26px; bottom: 46px; max-width: 80%; font-size: clamp(2rem, 4vw, 5.4rem); font-weight: 800; letter-spacing: -.07em; line-height: .83; }
.work-card:not(.work-card--feature) .cover-title { font-size: clamp(2rem, 3.6vw, 4.2rem); }
.cover-note { position: absolute; right: 22px; bottom: 18px; color: var(--soft); font-size: .62rem; }
.cover-income { background: linear-gradient(90deg, #ecece7 0 33.33%, #d9d9d2 33.33% 66.66%, #bebeb6 66.66%); }
.cover-income .cover-title { mix-blend-mode: multiply; }
.cover-codex { background: #e4e4df; }
.cover-diagram { position: absolute; top: 23%; right: 10%; bottom: 25%; left: 48%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cover-diagram i { border: 1px solid var(--ink); background: rgba(255,255,255,.5); transform: translateY(12%); }
.cover-diagram i:nth-child(2) { transform: translateY(-6%); }
.cover-diagram i:nth-child(3) { transform: translateY(18%); background: var(--ink); }
.cover-gig { background: #191919; color: var(--white); }
.cover-gig::before { content: ""; position: absolute; top: -10%; right: 8%; width: 36%; height: 120%; border-right: 1px solid #fff; border-left: 1px solid #fff; transform: skew(-16deg); opacity: .65; }
.cover-gig .cover-note { color: #bdbdb8; }
.work-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--soft); }
.work-card h3 { max-width: 920px; margin: 0 0 10px; font-size: clamp(1.45rem, 2.6vw, 2.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.work-card p { max-width: 740px; margin: 0 0 16px; color: var(--soft); font-size: .92rem; }
.text-link, .mail-link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .78rem; }
.text-link span, .mail-link span { transition: transform 180ms ease; }
.text-link:hover span, .mail-link:hover span { transform: translate(3px,-3px); }
.filter-empty { margin: 30px 0 0; color: var(--soft); }

.project-list { border-top: 1px solid var(--ink); }
.project-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 180px; gap: clamp(20px, 4vw, 58px); padding: clamp(26px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.project-date, .project-status { margin: 0; font-size: .72rem; line-height: 1.5; }
.project-date span, .project-status { color: var(--soft); }
.project-type { margin-bottom: 12px; color: var(--faint); }
.project-row h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.4vw, 2.5rem); font-weight: 500; letter-spacing: -.04em; }
.project-row div > p:last-child { max-width: 700px; margin: 0; color: var(--soft); font-size: .9rem; }
.project-status { text-align: right; }

.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.notes-grid article { min-height: 300px; padding: clamp(24px, 4vw, 54px); background: var(--paper); }
.notes-grid time { color: var(--faint); font-size: .68rem; }
.notes-grid h3 { max-width: 430px; margin: clamp(38px, 6vw, 74px) 0 12px; font-size: clamp(1.4rem, 2.4vw, 2.5rem); font-weight: 500; letter-spacing: -.04em; }
.notes-grid p { max-width: 490px; margin: 0 0 28px; color: var(--soft); }
.placeholder-label { display: inline-block; padding: 5px 9px; border: 1px solid var(--line-dark); color: var(--soft); font-size: .65rem; }

.about-section, .contact-section { padding-top: clamp(70px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(300px, 1fr); gap: clamp(40px, 9vw, 160px); margin-top: 22px; }
.about-grid p, .contact-grid p { max-width: 710px; color: var(--soft); }
.about-grid .about-lead { color: var(--ink); font-size: clamp(1.25rem, 2vw, 2rem); letter-spacing: -.025em; }
.contact-section { color: var(--white); background: var(--ink); }
.contact-section .section-number, .contact-grid p { color: #a2a29d; }
.mail-link { margin-top: 26px; font-size: clamp(1rem, 1.8vw, 1.5rem); }

.site-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); color: var(--soft); font-size: .7rem; }
.site-footer .icp-record { text-align: center; }
.site-footer .footer-top { text-align: right; }

/* Detail pages */
.detail-main { padding-bottom: 120px; }
.detail-hero { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(55px, 7vw, 96px); }
.detail-back { display: inline-block; margin-bottom: clamp(56px, 8vw, 110px); color: var(--soft); font-size: .75rem; }
.detail-back:hover { color: var(--ink); }
.detail-title-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .55fr); gap: clamp(36px, 8vw, 120px); align-items: end; }
.detail-hero h1 { max-width: 930px; margin: 12px 0 0; font-size: clamp(3rem, 6.6vw, 6.8rem); font-weight: 500; letter-spacing: -.07em; line-height: .96; }
.detail-summary { margin: 0 0 7px; color: var(--soft); font-size: 1.02rem; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(54px, 8vw, 106px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--line); }
.detail-facts div { padding: 19px 0; background: var(--paper); }
.detail-facts div + div { padding-left: 22px; }
.detail-facts span { display: block; margin-bottom: 5px; color: var(--faint); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-facts strong { font-size: .78rem; font-weight: 500; }
.detail-section { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: clamp(36px, 8vw, 130px); padding-top: clamp(70px, 9vw, 126px); padding-bottom: clamp(70px, 9vw, 126px); border-top: 1px solid var(--line-dark); }
.detail-section > header h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.8rem); font-weight: 500; letter-spacing: -.045em; }
.video-stage { min-height: 430px; display: grid; place-items: center; padding: 32px; color: var(--white); background: #151515; text-align: center; }
.video-stage strong { display: block; margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 3.3rem); font-weight: 500; letter-spacing: -.045em; }
.video-stage p { max-width: 500px; margin: 0 auto 24px; color: #a9a9a5; }
.video-stage a { display: inline-block; padding: 10px 15px; border: 1px solid #777; font-size: .75rem; }
.outline-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.outline-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.outline-list span { color: var(--faint); font-size: .72rem; }
.outline-list strong { display: block; margin-bottom: 6px; font-size: 1.1rem; font-weight: 500; }
.outline-list p { margin: 0; color: var(--soft); font-size: .9rem; }
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot-placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--line-dark); background: #ecece7; color: var(--soft); font-size: .72rem; text-align: center; }
.resource-box { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line-dark); }
.resource-box h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 500; }
.resource-box p { max-width: 650px; margin: 0 0 22px; color: var(--soft); }
.disabled-download { display: inline-block; padding: 11px 15px; border: 1px solid var(--line-dark); color: var(--faint); cursor: not-allowed; font-size: .72rem; }
.feedback-form { display: grid; gap: 16px; max-width: 760px; }
.feedback-form label { display: grid; gap: 7px; font-size: .72rem; }
.feedback-form input, .feedback-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line-dark); border-radius: 0; color: var(--ink); background: var(--white); }
.feedback-form textarea { min-height: 150px; resize: vertical; }
.feedback-form button { justify-self: start; min-height: 42px; padding: 0 17px; color: var(--white); border: 1px solid var(--ink); background: var(--ink); cursor: pointer; }
.form-note, .form-status { margin: 0; color: var(--soft); font-size: .72rem; }
.form-status { color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.related-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line-dark); transition: color 160ms, background 160ms; }
.related-card:hover { color: var(--white); background: var(--ink); }
.related-card span { font-size: .65rem; }
.related-card strong { max-width: 420px; font-size: clamp(1.15rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.2; }

@media (max-width: 780px) {
  .site-header { height: 64px; }
  .menu-toggle { display: block; padding: 8px 0; cursor: pointer; font-size: .78rem; }
  .site-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--ink); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .section-header, .about-grid, .contact-grid, .detail-title-grid, .detail-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 5.4rem); }
  .hero-copy { max-width: 520px; }
  .section-header { gap: 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--feature { grid-column: auto; }
  .work-card--feature .work-cover, .work-cover { aspect-ratio: 4 / 3; }
  .cover-title, .work-card--feature .cover-title { font-size: clamp(2rem, 11vw, 4rem); }
  .project-row { grid-template-columns: 75px minmax(0, 1fr); }
  .project-status { grid-column: 2; text-align: left; }
  .notes-grid { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts div { padding: 15px 0; }
  .detail-facts div + div { padding-left: 0; border-top: 1px solid var(--line); }
  .detail-section { gap: 28px; }
  .video-stage { min-height: 300px; }
  .shot-grid, .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .hero h1 { font-size: 2.65rem; }
  .hero h1 br { display: none; }
  .project-row { grid-template-columns: 1fr; gap: 14px; }
  .project-status { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer .icp-record { text-align: right; }
  .site-footer .footer-top { display: none; }
  .detail-hero h1 { font-size: 2.75rem; }
  .outline-list li { grid-template-columns: 34px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
