:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #64615c;
  --line: #d9d3c9;
  --paper: #f5f3ec;
  --panel: #ffffff;
  --accent: #9a2d1f;
  --accent-strong: #5d1f19;
  --field: #e8eee3;
  --shadow: 0 18px 50px rgba(22, 19, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand span:first-child {
  font-size: 18px;
}

.brand span:last-child {
  color: var(--accent);
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.42);
}

.language-switch a {
  min-width: 42px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

body.lang-zh [data-lang="en"],
body.lang-en [data-lang="zh"],
body.lang-en [lang="zh"] {
  display: none !important;
}

.home-experience {
  background: #ece8dc;
}

.home-header {
  background: rgba(236, 232, 220, 0.9);
}

.home-board {
  position: relative;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: #ece8dc;
  --home-vermilion: #5d1f19;
}

.home-board::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: none;
  content: "";
  pointer-events: none;
}

.home-stream {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  padding: 28px clamp(18px, 4vw, 52px) 80px;
}

.home-search-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 52px);
  color: #1f2c2c;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 800;
}

.home-search-row a {
  text-decoration: none;
}

.home-title {
  align-self: center;
  justify-self: center;
  width: min(1320px, 94vw);
  max-width: none;
  margin-bottom: 0;
  text-align: center;
  transform: translateY(-3vh);
}

.home-visual-signal {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: #ece8dc;
  text-decoration: none;
}

.home-map-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: map-pan 120s linear infinite;
}

.home-map-track img {
  display: block;
  width: auto;
  max-width: none;
  height: max(100%, 100vh);
  image-rendering: auto;
}

@keyframes map-pan {
  to {
    transform: translateX(-50%);
  }
}

.home-project-list {
  display: grid;
  gap: clamp(10px, 1.35vw, 22px);
}

.home-project-name {
  display: block;
  color: var(--home-vermilion);
  -webkit-text-fill-color: var(--home-vermilion);
  font-size: clamp(56px, 8.2vw, 132px);
  font-weight: 220;
  line-height: 0.92;
  text-decoration: none;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.88),
      0 0 16px rgba(93, 31, 25, 0.3);
  transition: color 180ms ease, font-weight 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.home-project-name,
.home-project-name:link,
.home-project-name:visited,
.home-project-name span {
  color: var(--home-vermilion);
  -webkit-text-fill-color: var(--home-vermilion);
}

.home-project-name:hover,
.home-project-name:focus-visible {
  color: var(--home-vermilion);
  -webkit-text-fill-color: var(--home-vermilion);
  font-weight: 700;
  transform: scale(1.075);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95),
      0 0 18px rgba(93, 31, 25, 0.48),
      0 10px 28px rgba(93, 31, 25, 0.18);
}

.project-timeline-section {
  background: #f1eee6;
}

.project-timeline {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
}

.project-timeline-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) 1fr;
  gap: clamp(18px, 4vw, 72px);
  padding: 22px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
}

.project-timeline-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-timeline-item h3 {
  margin: 0 0 6px;
  color: #263c2b;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
}

.project-timeline-item p {
  max-width: 680px;
  margin: 0;
  color: #45423b;
  font-size: 16px;
}

.project-timeline-location {
  font-weight: 650;
}

.home-title h1 {
  max-width: none;
  margin: 0;
}

.home-title h1 span {
  display: inline;
}

.home-title-summary {
  max-width: 900px;
  margin: 30px auto 0;
  color: #152f2d;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 750;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.68),
    0 2px 12px rgba(20, 20, 20, 0.18);
}

.home-title .kicker {
  color: var(--home-vermilion);
  -webkit-text-fill-color: var(--home-vermilion);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.86),
      0 0 14px rgba(93, 31, 25, 0.28);
}

.home-news-jump {
  display: inline-flex;
  width: fit-content;
  margin-top: 34px;
  padding: 9px 0;
  border-bottom: 2px solid currentColor;
  color: var(--home-vermilion);
  -webkit-text-fill-color: var(--home-vermilion);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 900;
  text-decoration: none;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.84),
      0 0 14px rgba(93, 31, 25, 0.26);
  transition: transform 180ms ease;
}

.home-news-jump:hover,
.home-news-jump:focus-visible {
  transform: translateY(4px);
}

.home-news-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(54px, 8vw, 118px) clamp(18px, 4vw, 52px) clamp(64px, 9vw, 128px);
  background: #ece8dc;
  border-top: 1px solid rgba(20, 20, 20, 0.18);
}

.home-news-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.home-news-heading h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(46px, 6vw, 98px);
  line-height: 0.96;
}

.news-feed {
  display: grid;
  width: min(100%, 1360px);
  gap: clamp(62px, 8vw, 132px);
}

.news-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 0.72fr);
  min-width: 0;
  gap: clamp(28px, 4.6vw, 72px);
  align-items: start;
  padding: 0;
  border-top: 0;
}

.news-card:nth-child(even) {
  grid-template-columns: minmax(360px, 0.72fr) minmax(360px, 0.94fr);
}

.news-card:nth-child(even) .news-image-link {
  order: 2;
}

.news-image-link {
  display: block;
  overflow: hidden;
  min-height: clamp(300px, 39vw, 560px);
  background: #c7d2cf;
  text-decoration: none;
}

.news-card:first-child .news-image-link {
  min-height: clamp(330px, 45vw, 640px);
}

.news-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.94);
  transform: scale(1);
  transition: transform 600ms ease, filter 600ms ease;
}

.news-copy {
  align-self: start;
  max-width: 900px;
  padding-top: clamp(0px, 1vw, 12px);
  padding-bottom: 0;
  transition: transform 300ms ease;
}

.news-card:hover .news-copy,
.news-card:focus-within .news-copy {
  transform: translateX(10px);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: #5d1f19;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-copy h2 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 78px);
  line-height: 0.96;
}

.news-copy h2 a {
  text-decoration: none;
}

.news-copy h2 span {
  display: block;
  margin-top: 8px;
  color: #334530;
  font-size: clamp(28px, 3.4vw, 50px);
}

.news-description {
  position: relative;
  max-width: min(920px, 100%);
  margin-top: 20px;
  color: #34413f;
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.74;
}

.news-description p {
  margin: 0;
}

.news-description.is-collapsed {
  display: -webkit-box;
  max-height: calc(1.74em * 18);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 18;
}

.news-read-more {
  display: inline-flex;
  margin-top: 14px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #5d1f19;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 9px rgba(93, 31, 25, 0.16);
}

.news-read-more:hover,
.news-read-more:focus-visible {
  color: #5d1f19;
}

.home-menu {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(460px, 90vw);
  min-width: 0;
  padding: 34px 38px 52px 92px;
  background: #282828;
  color: #f4f0e8;
  overflow-y: auto;
  box-shadow: -22px 0 44px rgba(20, 20, 20, 0.2);
  transform: translateX(calc(100% - 64px));
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.home-menu:hover,
.home-menu:focus-within {
  box-shadow: -28px 0 58px rgba(20, 20, 20, 0.28);
  transform: translateX(0);
}

.home-menu-tab {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px;
  min-height: 100%;
  border-right: 1px solid rgba(244, 240, 232, 0.16);
  color: rgba(244, 240, 232, 0.82);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.home-menu-search {
  display: grid;
  gap: 10px;
  margin-bottom: 42px;
  color: rgba(244, 240, 232, 0.45);
  font-size: 16px;
  font-weight: 800;
}

.home-menu-search input {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.76);
  background: transparent;
  color: #f4f0e8;
  font: inherit;
  font-size: 20px;
}

.home-menu nav {
  display: grid;
  gap: 7px;
  margin-top: 36px;
}

.home-menu nav p {
  margin: 0 0 8px;
  color: rgba(244, 240, 232, 0.35);
  font-size: 15px;
  font-weight: 900;
}

.home-menu nav a {
  color: rgba(244, 240, 232, 0.82);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.home-menu nav a:hover,
.home-menu nav a:focus-visible {
  color: #ffffff;
  transform: translateX(8px);
}

.project-strip-section {
  padding: 28px clamp(18px, 4vw, 52px) 40px;
  border-top: 1px solid rgba(38, 38, 38, 0.16);
  border-bottom: 1px solid rgba(38, 38, 38, 0.16);
  background: rgba(245, 243, 236, 0.88);
  color: var(--ink);
}

.project-strip-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-strip-heading a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.project-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.project-pill {
  position: relative;
  flex: 0 0 clamp(180px, 22vw, 320px);
  min-height: 150px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #d4ded6;
  color: #fff;
  text-decoration: none;
  transition: flex-basis 280ms ease, transform 280ms ease;
}

.project-pill:hover,
.project-pill:focus-visible {
  flex-basis: clamp(220px, 28vw, 400px);
  transform: translateY(-6px);
}

.project-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
  transform: scale(1);
  transition: opacity 280ms ease, transform 400ms ease;
}

.project-pill:hover .project-thumb,
.project-pill:focus-visible .project-thumb {
  opacity: 1;
  transform: scale(1.08);
}

.project-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.home-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(18px, 4vw, 52px);
  background: #f7f4ee;
}

.home-note p {
  flex: 1 1 360px;
  margin: 0;
  color: var(--muted);
}

.intro {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(280px, 42vw) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.intro-media {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.04)),
    url("/assets/images/technical-history-map.jpg");
  background-size: cover;
  background-position: center;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: clamp(36px, 8vw, 96px);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: clamp(36px, 5vw, 72px);
}

.intro-copy > p:not(.kicker) {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #ece6da;
}

.status-strip div {
  padding: 18px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip strong {
  font-size: 12px;
  text-transform: uppercase;
}

.status-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(48px, 8vw, 112px) clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 88px;
}

.section-heading.narrow {
  max-width: 720px;
  position: static;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.archive-link-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 18px;
  margin: 24px 0;
}

.archive-link-groups p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-link-row a {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.archive-link-row a:hover,
.archive-link-row a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 10px;
  margin-bottom: 14px;
}

.site-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 24px 0 14px;
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-transform: none;
}

.search-field input {
  padding: 9px 12px;
}

.select-field select {
  padding: 8px 10px;
}

.result-count {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.search-results {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.search-result {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.search-result-type {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.search-result h3 a {
  text-decoration: none;
}

.search-result h3 span {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 16px;
}

.search-result p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  gap: 14px;
  max-width: 1180px;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.plan-image {
  min-height: 260px;
  background-color: rgba(247, 244, 238, 0.72);
  background-position: center;
  background-size: cover;
  transition: filter 260ms ease, transform 260ms ease;
}

.plan-card:hover .plan-image,
.plan-card:focus-within .plan-image {
  filter: contrast(1.08);
  transform: scale(1.015);
}

.plan-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 36px);
}

.plan-body h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
}

.plan-body h3 a {
  text-decoration: none;
}

.plan-body h3 span {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: clamp(17px, 1.7vw, 22px);
}

.plan-body p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.2);
  transform: translateY(-5px);
}

.work-image {
  aspect-ratio: 4 / 3;
  background: var(--field);
  background-position: center;
  background-size: cover;
  transform: scale(1);
  transition: transform 420ms ease, filter 420ms ease;
}

.work-card:hover .work-image,
.work-card:focus-within .work-image {
  filter: saturate(1.18) contrast(1.04);
  transform: scale(1.06);
}

.work-body {
  padding: 18px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.work-body h3 span {
  display: block;
  margin-top: 5px;
  color: var(--accent-strong);
  font-size: 16px;
}

.work-body p {
  margin: 14px 0 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--field);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link.light {
  color: #f9f3e8;
}

.index-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(52px, 9vw, 116px) clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.94), rgba(247, 244, 238, 0.78)),
    url("/assets/images/technical-history-map.jpg");
  background-position: center;
  background-size: cover;
}

.index-hero.about-hero {
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.94), rgba(247, 244, 238, 0.74)),
    url("/assets/images/technical-history-map.jpg");
  background-position: center;
  background-size: cover;
}

.index-hero h1 {
  max-width: 980px;
  font-size: clamp(54px, 8vw, 112px);
}

.index-hero p:not(.kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.practice-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #dfeaf0;
}

.practice-hero-visual {
  align-self: stretch;
  display: grid;
  align-items: center;
  margin: 0;
  background: #0733b1;
}

.practice-hero-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.practice-hero-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
}

.practice-hero-copy p:not(.kicker) {
  max-width: 720px;
  margin: 24px 0 0;
  color: #394545;
  font-size: clamp(18px, 2vw, 24px);
}

.practice-hero-copy .button {
  margin-top: 30px;
}

.call-for-submissions {
  background: #f9f7f0;
}

.call-prose {
  max-width: 880px;
}

.call-prose > p:first-child {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.call-section {
  padding-top: 8px;
}

.call-section h3 {
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 32px);
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.article-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
}

.article-card p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
}

.article-page .article-hero {
  padding-bottom: 44px;
}

.article-facts {
  max-width: 820px;
  margin-top: 30px;
}

.article-prose {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.9;
}

.article-prose p {
  margin: 0 0 1.25em;
}

.index-grid {
  margin-top: 34px;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.work-chronology {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.chronology-year {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 46px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.chronology-year > time {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.95;
}

.chronology-year-records {
  display: grid;
  gap: 12px;
}

.chronology-work {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

.chronology-work-title {
  display: inline-grid;
  gap: 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.chronology-work-title span {
  color: var(--accent-strong);
  font-size: 16px;
}

.chronology-work p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.chronology-meta,
.chronology-plan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chronology-meta span,
.chronology-plan-links a {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.chronology-plan-links a:hover,
.chronology-plan-links a:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.deck-list {
  display: grid;
  gap: 12px;
}

.deck-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.deck-card-with-cover {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.deck-cover {
  display: block;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--field);
}

.deck-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card:hover,
.deck-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(6px);
}

.deck-card h3 {
  margin: 0;
  font-size: 22px;
}

.deck-card h3 span {
  color: var(--accent-strong);
}

.deck-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.deck-card .deck-meta {
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deck-public-url {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.deck-actions {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 116px;
}

.deck-copy-button {
  color: var(--accent);
}

.publication-grid-section {
  align-items: start;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.publication-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.publication-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

a.publication-cover {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a.publication-cover:hover,
a.publication-cover:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.publication-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication-cover-placeholder {
  background: var(--field);
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.publication-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.publication-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
}

.publication-card h3 span {
  display: block;
}

.publication-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.publication-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.publication-reader-link {
  width: fit-content;
  margin-top: 4px;
}

.publication-list-section {
  align-items: start;
}

.publication-list {
  display: grid;
  max-width: 1180px;
  border-top: 1px solid var(--line);
}

.publication-list-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list-year {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.publication-list-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.publication-list-main h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.publication-list-main h3 span {
  display: block;
}

.publication-list-title-link {
  color: inherit;
  text-decoration-color: rgba(169, 45, 34, 0.35);
  text-underline-offset: 3px;
}

.publication-list-title-link:hover,
.publication-list-title-link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.publication-list-meta,
.publication-list-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.publication-list-note {
  margin: 0;
  font-weight: 500;
}

.publication-list-reader {
  align-self: start;
  white-space: nowrap;
}

.publication-related-images {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.publication-related-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.publication-related-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.publication-related-image figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.teaching-cover {
  max-width: 280px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--field);
}

.teaching-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.teaching-reader-section {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.9fr);
}

.pdf-reader-frame {
  min-height: min(86vh, 920px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(20, 20, 20, 0.08);
}

.pdf-reader-frame iframe {
  display: block;
  width: 100%;
  height: min(86vh, 920px);
  min-height: 680px;
  border: 0;
  background: #fff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 560px);
  gap: clamp(28px, 6vw, 72px);
  background: #201c18;
  color: #f9f3e8;
}

.contact h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
}

.contact-panel {
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(249, 243, 232, 0.2);
  border-radius: 6px;
}

.contact-panel p {
  margin: 0 0 18px;
  color: rgba(249, 243, 232, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px);
  color: var(--muted);
  font-size: 13px;
}

.work-record {
  min-height: calc(100vh - 64px);
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(280px, 46vw) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.work-hero-visual,
.record-visual {
  display: grid;
  align-content: stretch;
  min-width: 0;
  margin: 0;
  background: var(--field);
}

.work-hero-image {
  min-height: 620px;
  background-color: var(--field);
  background-position: center;
  background-size: cover;
}

.work-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 8vw, 96px);
}

.work-hero-copy h1 {
  font-size: clamp(42px, 6vw, 92px);
}

.image-caption {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(245, 243, 236, 0.92);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.image-gallery-section {
  border-bottom: 1px solid var(--line);
}

.image-gallery {
  display: grid;
  gap: 22px;
  max-width: 1180px;
}

.gallery-figure {
  margin: 0;
  background: var(--field);
}

.gallery-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.record-hero {
  display: grid;
  grid-template-columns: minmax(280px, 42vw) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.record-hero-wide {
  display: block;
}

.record-hero-wide .record-image {
  min-height: clamp(300px, 34vw, 680px);
  background-size: contain;
  background-repeat: no-repeat;
}

.record-hero-wide .record-copy {
  max-width: 1120px;
  padding-top: clamp(30px, 5vw, 64px);
  padding-bottom: clamp(34px, 6vw, 76px);
}

.record-image {
  min-height: 560px;
  background-color: var(--field);
  background-position: center;
  background-size: cover;
}

.record-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 8vw, 96px);
}

.record-copy h1 {
  font-size: clamp(42px, 6vw, 92px);
}

.record-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.record-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.record-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.record-facts dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-facts dd {
  margin: 0;
  color: var(--muted);
}

.record-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 72px);
}

.record-section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.record-prose {
  max-width: 760px;
}

.record-prose p,
.record-prose li {
  color: var(--muted);
  font-size: 18px;
}

.record-prose h3 {
  margin: 28px 0 10px;
}

.source-archive-hero {
  padding: clamp(58px, 10vw, 120px) clamp(18px, 5vw, 64px) clamp(28px, 6vw, 72px);
}

.source-archive-hero.compact {
  padding-bottom: 32px;
}

.source-archive-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.95;
}

.source-archive-hero p:not(.kicker) {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.source-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.source-archive-card a,
.source-record-item a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.source-archive-card a {
  min-height: 190px;
  padding: 22px;
}

.source-archive-card a:hover,
.source-archive-card a:focus-visible,
.source-record-item a:hover,
.source-record-item a:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.source-archive-card span,
.source-record-year {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-archive-card h2,
.source-record-item h2 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.12;
}

.source-archive-card p,
.source-record-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.source-record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.source-record-tree {
  display: grid;
  gap: 18px;
}

.source-record-tree-node {
  display: grid;
  gap: 10px;
}

.source-record-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-left: clamp(16px, 3vw, 42px);
  padding-left: clamp(14px, 2vw, 24px);
  border-left: 2px solid var(--line);
}

.source-record-item a {
  min-height: 190px;
  padding: 20px;
}

.source-record-parent a {
  min-height: 150px;
}

.source-record-child a {
  min-height: 140px;
  padding: 16px;
}

.source-record-item h2 {
  font-size: 23px;
}

.source-record-child h2 {
  font-size: 20px;
}

.source-entry {
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(52px, 9vw, 108px) 0;
}

.source-entry-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.source-entry-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.02;
}

.source-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.source-entry-meta span,
.source-entry-meta a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.source-entry-meta a {
  color: var(--accent);
  text-decoration: none;
}

.source-entry-prose {
  max-width: 820px;
  padding-top: 32px;
}

.source-entry-prose p,
.source-entry-prose li {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.82;
}

.source-entry-prose p {
  margin: 0 0 1em;
}

.source-entry-prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.source-record-group {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.source-record-group-section + .source-record-group-section {
  margin-top: 56px;
}

.source-entry-children {
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  padding-top: 0;
}

.source-child-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.source-entry-prose .source-media-note,
.source-empty {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--field);
  color: var(--muted);
}

.verification-note {
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--field);
  color: var(--ink);
}

.contact-panel .verification-note {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro,
  .home-news-section,
  .news-card,
  .news-card:nth-child(even),
  .work-hero,
  .practice-hero,
  .record-hero,
  .split,
  .contact,
  .record-section {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 0;
  }

  .home-board {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
  }

  .home-stream {
    min-height: calc(100vh - 64px);
  }

  .home-menu {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: auto;
    min-height: 0;
    padding: 24px 22px 30px;
    box-shadow: none;
    transform: none;
  }

  .home-menu-tab {
    display: none;
  }

  .home-visual-signal {
    inset: 0;
    width: 100%;
    height: calc(100vh - 64px);
    margin: 0;
  }

  .home-news-heading {
    position: static;
  }

  .project-timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-card:nth-child(even) .news-image-link {
    order: 0;
  }

  .intro-media {
    min-height: 300px;
  }

  .practice-hero {
    min-height: 0;
  }

  .practice-hero-image {
    max-height: 680px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .record-image {
    min-height: 300px;
  }

  .section-heading {
    position: static;
  }

  .status-strip,
  .archive-link-groups,
  .archive-tools,
  .site-search-panel,
  .plan-card,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .chronology-year {
    grid-template-columns: 1fr;
  }

  .deck-card {
    grid-template-columns: 1fr;
  }

  .deck-card-with-cover {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .deck-card-with-cover .deck-actions {
    grid-column: 1 / -1;
  }

  .deck-cover {
    width: 86px;
  }

  .deck-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .publication-list-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-list-reader {
    width: fit-content;
  }

  .teaching-reader-section {
    grid-template-columns: 1fr;
  }

  .pdf-reader-frame,
  .pdf-reader-frame iframe {
    min-height: 620px;
    height: 78vh;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .intro-copy,
  .home-stream,
  .home-news-section,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-title h1 {
    font-size: 54px;
  }

  .news-image-link,
  .news-card:first-child .news-image-link {
    min-height: 280px;
  }

  h1 {
    font-size: 50px;
  }

  .intro-actions,
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-map-track {
    animation: none;
  }
}
