:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #20252b;
  --muted: #6f7882;
  --line: #dfe3e8;
  --accent: #526d86;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
body.modal-open { overflow: hidden; }

.container {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.text-link { transition: color 160ms ease; }
.site-nav a:hover,
.text-link:hover { color: var(--accent); }

.hero {
  min-height: 500px;
  padding-top: 112px;
  padding-bottom: 72px;
}

.hero-copy { max-width: 640px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.hero-description {
  max-width: 390px;
  margin: 24px 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-size: 0.88rem;
  font-weight: 700;
}

.works-section {
  padding-top: 18px;
  padding-bottom: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.section-heading .eyebrow { margin: 0; }
.section-heading h2 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 28px;
  margin-top: 48px;
}

.work-card { min-width: 0; cursor: pointer; }
.work-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9edf1;
}
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-placeholder {
  padding: 24px;
  color: #8995a0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.work-number {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.work-category {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}
.work-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.work-summary {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.work-tag {
  border: 1px solid var(--line);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.7rem;
}

.reserved-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 130px;
}
.reserved-section h2 {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.anchor-target { display: block; }

.about-section,
.contact-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 92px;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 64px;
  margin-top: 42px;
}

.about-content > p {
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.experience-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-content: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.experience-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.experience-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.experience-item p:not(.experience-date) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-section { padding-bottom: 112px; }
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-modal[hidden] { display: none; }
.project-modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 37, 43, 0.42);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  max-height: min(900px, calc(100vh - 64px));
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.modal-player {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #e9edf1;
}
.modal-player.media-stage--landscape {
  aspect-ratio: 16 / 9;
}
.modal-player.media-stage--portrait {
  width: min(360px, calc(70vh * 9 / 16), 100%);
  max-height: 70vh;
  aspect-ratio: 9 / 16;
  margin-right: auto;
  margin-left: auto;
  background: #1f2328;
}
.modal-media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin-top: 24px;
}
.modal-media-tabs[hidden] { display: none; }
.modal-media-tabs[hidden] + .modal-player { margin-top: 24px; }
.modal-media-tab {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}
.modal-media-tab.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.modal-player video,
.modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.modal-player iframe { aspect-ratio: auto; }
.video-state {
  max-width: 360px;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.modal-content { padding: 38px 48px 52px; }
.modal-content .eyebrow { margin-bottom: 12px; }
.modal-player {
  margin-top: 24px;
}
.modal-media-info {
  border-bottom: 1px solid var(--line);
  padding: 24px 0 28px;
}
.modal-media-info[hidden] { display: none; }
.modal-media-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.modal-media-duration {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
}
.modal-media-info > p,
.modal-media-role p,
.modal-media-role ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.modal-media-role { margin-top: 18px; }
.modal-media-creative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.modal-media-creative[hidden] { display: none; }
.modal-media-creative h4,
.modal-supporting-label,
.modal-variant-heading {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-media-creative p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.8; }
.modal-supporting {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 20px;
}
.modal-supporting[hidden],
.modal-variant-heading[hidden] { display: none; }
.modal-supporting-trigger {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}
.modal-supporting-trigger:hover { color: var(--ink); }
.modal-variant-heading { margin-top: 24px; }
.modal-media-role ul { padding-left: 18px; }
.modal-proof {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
}
.modal-proof[hidden] { display: none; }
.modal-proof-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-proof p:not(.modal-proof-label) {
  max-width: 680px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}
.modal-proof button {
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.proof-preview[hidden] { display: none; }
.proof-preview {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.proof-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 37, 43, 0.72);
}
.proof-preview-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  padding: 24px;
  background: var(--surface);
}
.proof-preview-dialog h2 {
  align-self: flex-start;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1rem;
}
.proof-preview-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.proof-preview-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-project-label { margin-top: 28px; }
.modal-content h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.modal-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.modal-summary {
  max-width: 720px;
  margin: 30px 0 0;
  font-size: 1rem;
  line-height: 1.8;
}
.modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.modal-detail-block h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.modal-detail-block p,
.modal-detail-block ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.modal-detail-block ul { padding-left: 18px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-inner { min-height: 92px; }

@media (max-width: 700px) {
  .container { width: min(calc(100% - 36px), var(--max-width)); }
  .header-inner { min-height: 64px; }
  .site-nav { gap: 14px; font-size: 0.68rem; }
  .hero {
    min-height: 430px;
    padding-top: 78px;
    padding-bottom: 56px;
  }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5.2rem); }
  .works-section { padding-top: 14px; padding-bottom: 90px; }
  .section-heading { display: block; }
  .section-heading h2 { margin: 12px 0; }
  .section-note { text-align: left; }
  .works-grid { grid-template-columns: 1fr; gap: 64px; margin-top: 42px; }
  .about-section,
  .contact-section { padding-bottom: 72px; }
  .about-content { display: block; margin-top: 34px; }
  .about-content > p { font-size: 1rem; }
  .experience-item { margin-top: 42px; }
  .contact-list { margin-top: 34px; }
  .project-modal { padding: 0; }
  .modal-dialog {
    width: 100%;
    max-height: 100vh;
    border: 0;
  }
  .modal-content { padding: 32px 24px 40px; }
  .modal-media-tabs { gap: 14px; }
  .modal-media-tab { font-size: 0.78rem; }
  .modal-media-creative { grid-template-columns: 1fr; gap: 16px; }
  .modal-player.media-stage--portrait {
    width: min(82vw, 380px, calc(72vh * 9 / 16));
    max-height: 72vh;
  }
  .modal-details { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { display: block; padding: 24px 0; }
  .footer-inner span { display: block; }
  .footer-inner span + span { margin-top: 6px; }
}
