:root {
  --bg: #f4f5f6;
  --paper: #ffffff;
  --ink: #16191d;
  --muted: #646b73;
  --soft: #e9ecef;
  --line: #d8dce0;
  --accent: #c13f2c;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.skip-link {
  position: fixed;
  left: 20px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 246, .94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: baseline; gap: 11px; width: fit-content; }
.brand strong { font-size: 1rem; letter-spacing: -.03em; }
.brand span, .header-meta, .site-header nav a { color: var(--muted); font-size: .82rem; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-footer a:hover { color: var(--accent); }
.header-meta { justify-self: end; }

main, .site-footer { max-width: var(--max); margin: 0 auto; }
.hero {
  min-height: 660px;
  padding: 112px clamp(20px, 4vw, 56px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
  border-inline: 1px solid var(--line);
  background: var(--paper);
}
.hero > *, .section-intro > *, .about-section > * { min-width: 0; }
.hero-role {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.4rem, 6.6vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: -.07em;
  font-weight: 650;
}
.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.text-link {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 3px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}
.hero-profile { align-self: end; padding: 24px 0 0; border-top: 2px solid var(--ink); }
.hero-profile > p { margin: 0 0 2px; color: var(--muted); font-size: .78rem; }
.hero-profile > strong { display: block; margin-bottom: 22px; font-size: 1.6rem; letter-spacing: -.04em; }
.hero-profile ul { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hero-profile li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.hero-profile > span { color: var(--muted); font-size: .78rem; }

.current-work {
  padding: 112px clamp(20px, 4vw, 56px) 124px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  gap: 80px;
  align-items: end;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}
.section-intro h2, .about-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 650;
}
.section-intro > p { margin: 0 0 6px; color: var(--muted); }

.featured-projects { margin-top: 74px; border-bottom: 1px solid var(--line); }
.featured-project { border-top: 1px solid var(--line); }
.featured-button {
  width: 100%;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.featured-project:nth-child(even) .featured-visual { order: 2; }
.featured-project:nth-child(even) .featured-content { order: 1; }
.featured-visual {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.featured-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.preview-label { position: absolute; bottom: 14px; left: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.95); color: var(--muted); font-size: .73rem; }
.featured-meta { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .76rem; }
.featured-content h3 {
  margin: 18px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  font-weight: 650;
}
.featured-lead { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; }
.featured-summary { margin: 0; color: var(--muted); }
.featured-content dl { margin: 28px 0; padding: 16px 0; display: grid; gap: 12px; border-block: 1px solid var(--line); }
.featured-content dl div { display: grid; grid-template-columns: 82px 1fr; gap: 18px; }
.featured-content dt { color: var(--muted); font-size: .76rem; }
.featured-content dd { margin: 0; font-size: .84rem; }
.featured-open { color: var(--accent); font-size: .86rem; font-weight: 700; }

.project-index { margin-top: 110px; }
.index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 2px solid var(--ink); }
.index-heading h3 { margin: 0; font-size: 1.45rem; }
.index-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.filter-bar {
  margin: 36px 0 18px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filter {
  min-height: 42px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter span { margin-left: 4px; color: #a2a7ac; }
.filter:hover, .filter:focus-visible { color: var(--ink); }
.filter.active { color: var(--ink); border-bottom-color: var(--accent); }

.project-grid { border-bottom: 1px solid var(--line); }
.project-card { border-top: 1px solid var(--line); }
.project-card[hidden] { display: none; }
.card-button {
  width: 100%;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 44px minmax(210px, 1.2fr) minmax(220px, 1fr) 128px 48px;
  gap: 22px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease;
}
.card-button:hover { background: var(--bg); }
.card-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-number { color: var(--muted); font-size: .76rem; }
.card-title { display: grid; gap: 2px; }
.card-title strong { font-size: 1rem; }
.card-title small, .card-type, .card-status { color: var(--muted); font-size: .78rem; }
.card-status { text-align: right; }
.card-open { color: var(--accent); font-size: .78rem; text-align: right; }

.archive-section {
  padding: 112px clamp(20px, 4vw, 56px) 124px;
  background: var(--ink);
  color: #f6f7f8;
}
.archive-section .section-intro { border-color: rgba(255,255,255,.92); }
.archive-section .section-number { color: #ef6b55; }
.archive-section .section-intro > p { color: #a8afb6; }
.archive-list { margin-top: 70px; border-bottom: 1px solid rgba(255,255,255,.17); }
.archive-item { border-top: 1px solid rgba(255,255,255,.17); }
.archive-item summary {
  min-height: 108px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 120px minmax(260px, 1.35fr) minmax(210px, .8fr) 50px;
  gap: 26px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.archive-item summary::-webkit-details-marker { display: none; }
.archive-item summary:focus-visible { outline: 2px solid #ef6b55; outline-offset: 4px; }
.archive-period { color: #a8afb6; font-size: .8rem; }
.archive-name { display: grid; gap: 5px; }
.archive-name strong { font-size: 1.15rem; font-weight: 600; }
.archive-name small { color: #a8afb6; font-size: .76rem; }
.archive-headline { font-size: 1rem; font-weight: 600; }
.archive-toggle { color: #ef6b55; font-size: .76rem; text-align: right; }
.archive-body {
  padding: 12px 76px 44px 146px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 56px;
}
.archive-body h3 { margin: 0 0 10px; color: #a8afb6; font-size: .76rem; font-weight: 500; }
.archive-body p { margin: 0; color: #d5d9dd; font-size: .9rem; }
.archive-results { grid-column: 1 / -1; }
.archive-results ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; background: rgba(255,255,255,.17); }
.archive-results li { padding: 18px; background: var(--ink); font-size: .86rem; }

.about-section {
  padding: 120px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
  gap: clamp(70px, 10vw, 150px);
  border-inline: 1px solid var(--line);
  background: var(--paper);
}
.about-copy > p { max-width: 560px; margin: 26px 0 0; color: var(--muted); }
.capability-list { border-top: 2px solid var(--ink); }
.capability-list article { padding: 24px 0; display: grid; grid-template-columns: 46px 1fr; gap: 22px; border-bottom: 1px solid var(--line); }
.capability-list article > span { color: var(--accent); font-size: .78rem; }
.capability-list h3 { margin: 0 0 6px; font-size: 1.15rem; }
.capability-list p { margin: 0; color: var(--muted); font-size: .92rem; }

.site-footer {
  min-height: 150px;
  padding: 36px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.site-footer strong { font-size: .88rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--accent); font-size: .8rem; }

.project-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.project-dialog::backdrop { background: rgba(12, 15, 18, .68); backdrop-filter: blur(3px); }
.dialog-shell { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); position: relative; }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--ink); }
.dialog-visual { min-height: 680px; overflow: hidden; background: var(--soft); }
.dialog-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog-content { max-height: calc(100vh - 48px); padding: 76px clamp(30px, 4vw, 58px) 44px; overflow-y: auto; }
.dialog-topline { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .76rem; }
.dialog-content h2 { margin: 18px 0 16px; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; font-weight: 650; }
.dialog-summary { margin: 0; color: var(--muted); }
.dialog-meta { margin: 34px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.dialog-meta div { padding: 16px 12px 16px 0; }
.dialog-meta dt { color: var(--muted); font-size: .72rem; }
.dialog-meta dd { margin: 5px 0 0; font-size: .9rem; font-weight: 600; }
.dialog-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.dialog-case[hidden], .dialog-focus[hidden] { display: none; }
.case-block { padding: 22px 0; border-top: 1px solid var(--line); }
.case-block-wide { grid-column: 1 / -1; }
.case-block h3 { margin: 0 0 10px; color: var(--muted); font-size: .76rem; font-weight: 500; }
.case-block p { margin: 0; font-size: .92rem; line-height: 1.72; }
.case-block ul { margin: 0; padding: 0; list-style: none; }
.case-block li { position: relative; padding: 7px 0 7px 15px; font-size: .86rem; line-height: 1.62; }
.case-block li::before { content: ""; width: 4px; height: 4px; position: absolute; left: 0; top: 17px; background: var(--accent); }
.case-outcome { margin-top: 4px; padding: 18px 20px; border-top-color: var(--ink); background: var(--soft); }
.dialog-focus h3 { margin: 0 0 12px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.dialog-focus ul { margin: 0; padding: 0; list-style: none; }
.dialog-focus li { padding: 12px 0 12px 18px; border-top: 1px solid var(--line); position: relative; }
.dialog-focus li::before { content: ""; width: 5px; height: 5px; position: absolute; left: 0; top: 22px; background: var(--accent); }
.dialog-actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.primary-action, .secondary-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
}
.primary-action { background: var(--accent); border-color: var(--accent); color: white; gap: 10px; }
.primary-action:hover { background: #a72d1c; border-color: #a72d1c; }
.secondary-action { background: transparent; color: var(--ink); border-color: var(--line); }
.dialog-note { margin-top: 20px; color: #8a9096; font-size: .74rem; }

.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-links { display: flex; flex-wrap: wrap; column-gap: 28px; }
.project-index { scroll-margin-top: 96px; }
.case-action { min-height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 12px; border-radius: 100px; font-size: .84rem; }
.case-action:hover { color: var(--accent); background: #fff3ee; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.library-hint { color: var(--muted); font-size: .82rem; margin: 0 0 32px; }
.filter-bar { border: 0; gap: 8px; }
.filter { border: 1px solid var(--line); border-radius: 100px; padding: 10px 17px; min-height: 44px; font-size: .82rem; }
.filter.active { color: var(--accent); border-color: #e4bcb4; background: #fff3ee; }
.filter.active span { color: var(--accent); }
.project-grid { border: 0; }
.project-group { margin-top: 38px; }
.project-group[hidden] { display: none; }
.group-heading { margin-bottom: 18px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.group-heading h4 { margin: 0 0 3px; font-size: 1.08rem; }
.group-heading h4 span { color: var(--muted); font-size: .8rem; margin-left: 8px; font-weight: 400; }
.group-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.project-card { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 18px; display: grid; grid-template-columns: 172px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: white; }
.card-preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.card-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-preview > span { position: absolute; left: 6px; bottom: 5px; padding: 1px 7px; border-radius: 100px; font-size: .6rem; color: var(--muted); background: #fff; }
.card-eyebrow { color: var(--muted); font-size: .69rem; }
.card-info h5 { font-size: 1.1rem; margin: 6px 0 4px; }
.card-info p { margin: 0; color: var(--muted); font-size: .8rem; }
.card-info .content-warning { color: #8a5c1f; margin-top: 8px; font-size: .73rem; }
.card-actions { display: grid; justify-items: center; gap: 4px; }
.card-actions .primary-action { font-size: .82rem; white-space: nowrap; }
.project-card[hidden], .library-empty[hidden] { display: none; }
.platform-filter-row { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px; }
.platform-filter-row > span { flex-shrink: 0; font-size: .75rem; color: var(--muted); }
.platform-filter-row .filter-bar { margin: 0; padding: 0; flex-wrap: wrap; }
.platform-filter { padding: 7px 13px; font-size: .76rem; }
.card-entries { grid-column: 2 / -1; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.entry-caption { color: var(--muted); font-size: .7rem; }
.entry-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.entry-link { min-height: 42px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 15px; border: 1px solid #dec6be; border-radius: 100px; background: #fffaf7; color: #9b3626; font-size: .78rem; line-height: 1.4; }
.entry-link:hover { background: #ffede5; border-color: var(--accent); }
.entry-link.active, .entry-link.matches-platform { background: var(--accent); color: white; border-color: var(--accent); }
.library-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 26px; color: var(--muted); font-size: .9rem; }
.prototype-entry-nav { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 20px; padding: 10px 26px; border-bottom: 1px solid var(--line); max-height: 160px; overflow-y: auto; background: #fff; }
.prototype-entry-nav > span { font-size: .72rem; color: var(--muted); white-space: nowrap; padding-top: 12px; }
.prototype-entry-nav .entry-link { min-height: 38px; font-size: .74rem; }
.prototype-workspace.mobile-viewport { padding: 16px; display: flex; justify-content: center; }
.mobile-viewport #prototype-frame { width: 402px; max-width: 100%; border-radius: 18px; box-shadow: 0 4px 30px #17243318; }
.mobile-viewport .prototype-state { width: 100%; }

/* The viewer is a separate page. No live prototype is embedded in the portfolio. */
.prototype-page { height: 100vh; height: 100dvh; min-width: 320px; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.prototype-toolbar { min-height: 76px; padding: 12px 26px; display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; }
.prototype-back { justify-self: start; min-height: 44px; padding: 7px 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; font-size: .82rem; white-space: nowrap; }
.prototype-back:hover { background: var(--bg); }
.prototype-identity { text-align: center; min-width: 0; }
.prototype-identity > span { font-size: .66rem; color: var(--muted); }
.prototype-identity h1 { font-size: 1rem; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prototype-tools { display: flex; justify-content: end; align-items: center; gap: 12px; }
.demo-badge { color: #087b71; background: #e5f6f2; padding: 4px 12px; border-radius: 100px; white-space: nowrap; font-size: .72rem; }
.icon-action { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.icon-action[hidden] { display: none; }
.prototype-workspace { position: relative; flex: 1; width: 100%; max-width: none; min-height: 0; margin: 0; background: var(--bg); }
#prototype-frame { border: 0; display: block; width: 100%; height: 100%; background: white; }
#prototype-frame[hidden], .prototype-state[hidden], .prototype-notice[hidden], #prototype-retry[hidden] { display: none; }
.prototype-state { padding: 30px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.prototype-state h2 { margin: 22px 0 8px; font-size: 1.35rem; }
.prototype-state p { color: var(--muted); max-width: 460px; font-size: .9rem; }
.state-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--accent); font-size: 1.6rem; }
.prototype-state.is-error .state-mark { color: #a72d1c; }
.prototype-notice { margin: 0; padding: 9px 24px; color: #80551b; background: #fff7e6; border-bottom: 1px solid #ecddc3; font-size: .8rem; }

@media (max-width: 720px) {
  .platform-filter-row { display: block; }
  .platform-filter-row > span { display: block; margin-bottom: 10px; }
  .card-entries { grid-column: 1 / -1; }
  .entry-link { min-height: 44px; font-size: .75rem; padding: 9px 12px; }
  .prototype-entry-nav { padding: 8px 12px; gap: 10px; max-height: 148px; }
  .prototype-entry-nav > span { display: none; }
  .prototype-workspace.mobile-viewport { padding: 0; }
  .mobile-viewport #prototype-frame { border-radius: 0; }
  .project-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .card-info h5 { font-size: .94rem; }
  .card-info p { font-size: .73rem; }
  .card-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .prototype-toolbar { min-height: 68px; padding: 8px 12px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .prototype-back { padding: 7px 11px; font-size: .73rem; }
  .prototype-identity h1 { font-size: .8rem; }
  .prototype-tools .demo-badge { display: none; }
  .prototype-tools { gap: 0; }
  .filter-bar { flex-wrap: wrap !important; gap: 8px !important; }
  .filter { padding: 8px 12px; }
  .preview-label { left: 8px; bottom: 8px; font-size: .65rem; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 64px; padding-top: 96px; }
  .hero-profile { max-width: 560px; width: 100%; }
  .section-intro, .about-section { grid-template-columns: 1fr; }
  .section-intro { gap: 30px; }
  .featured-button { grid-template-columns: 1fr; gap: 32px; }
  .featured-project:nth-child(even) .featured-visual,
  .featured-project:nth-child(even) .featured-content { order: initial; }
  .archive-item summary { grid-template-columns: 100px minmax(0, 1fr) 44px; }
  .archive-headline { grid-column: 2; color: #d5d9dd; }
  .archive-toggle { grid-column: 3; grid-row: 1 / span 2; }
  .archive-body { padding-left: 126px; }
  .about-section { gap: 62px; }
  .dialog-shell { grid-template-columns: 1fr; }
  .project-dialog { overflow-y: auto; }
  .dialog-visual { min-height: 0; height: min(50vh, 480px); }
  .dialog-content { max-height: none; overflow: visible; }
  .dialog-case { grid-template-columns: 1fr; }
  .case-block { grid-column: 1; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .header-meta { display: none; }
  .hero { padding-top: 70px; padding-bottom: 68px; gap: 52px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .current-work, .archive-section, .about-section { padding-block: 82px; }
  .section-intro h2, .about-copy h2 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .featured-projects { margin-top: 52px; }
  .featured-button { padding: 30px 0; }
  .featured-content h3 { font-size: 2.2rem; }
  .featured-content dl div { grid-template-columns: 72px 1fr; }
  .project-index { margin-top: 76px; }
  .index-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .filter-bar { gap: 18px; overflow-x: auto; flex-wrap: nowrap; }
  .filter { flex: 0 0 auto; }
  .card-button {
    padding: 17px 0;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .card-number { grid-column: 1; grid-row: 1; }
  .card-title { grid-column: 2; grid-row: 1; }
  .card-open { grid-column: 3; grid-row: 1; }
  .card-type { grid-column: 2 / 4; grid-row: 2; }
  .card-status { grid-column: 2 / 4; grid-row: 3; text-align: left; }
  .archive-list { margin-top: 52px; }
  .archive-item summary { min-height: 0; padding: 22px 0; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .archive-period { grid-column: 1; }
  .archive-name { grid-column: 1; }
  .archive-headline { grid-column: 1; }
  .archive-toggle { grid-column: 2; grid-row: 1 / span 3; }
  .archive-body { padding: 0 0 34px; grid-template-columns: 1fr; gap: 24px; }
  .archive-results { grid-column: 1; }
  .archive-results ul { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; min-height: 230px; gap: 16px; }
  .project-dialog { width: 100vw; max-height: 100vh; height: 100vh; border: 0; border-radius: 0; }
  .dialog-visual { height: 38vh; }
  .dialog-content { padding: 58px 22px 40px; }
  .dialog-meta { grid-template-columns: 1fr; }
  .dialog-meta div { border-bottom: 1px solid var(--line); }
  .dialog-meta div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
