:root {
  --paper: #f7f5ef;
  --ink: #11110f;
  --muted: #66615a;
  --line: #1d1c19;
  --wood: #9a6a3a;
  --moss: #6d8060;
  --clay: #c7b59f;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px) 40px;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

.kicker,
.section-index,
.meta-line,
figcaption,
footer {
  font-family: "Courier New", monospace;
}

.kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--moss);
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(56px, 9.2vw, 118px);
  font-weight: 900;
}

h1 span {
  display: block;
  font-size: clamp(34px, 4.7vw, 60px);
  white-space: nowrap;
}

h2 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(32px, 4vw, 58px);
}

.subtitle {
  max-width: 680px;
  margin: 28px 0 26px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-line span {
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  margin: 0;
  align-self: end;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 16px 16px 0 var(--wood);
}

.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(58vh, 620px);
  object-fit: cover;
  background: var(--ink);
}

.band,
.split-section,
.logic-grid,
.scenes,
.render-section,
.effects-section,
.evolution,
.drawing-section,
.board-section,
.exhibition-section {
  padding: clamp(54px, 8vw, 112px) clamp(20px, 5vw, 72px);
  border-bottom: 2px solid var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 80px);
  background: var(--ink);
  color: var(--paper);
}

.intro p:last-child,
.section-title p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
}

.section-index {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: 18px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.split-section.reverse .section-title {
  order: 2;
}

.section-title {
  max-width: 560px;
}

.section-title h2 {
  margin-bottom: 18px;
}

.wide-image,
.logic-image,
.evolution figure,
.board-image,
.drawing-wrap {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.wide-image img,
.logic-image img,
.evolution img,
.board-image img {
  object-fit: contain;
}

.logic-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: stretch;
  background: var(--white);
}

.logic-panel {
  border: 3px solid var(--ink);
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logic-panel p:last-child {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

.logic-image img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.compact {
  max-width: 920px;
  margin-bottom: 30px;
}

.scene-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scene-row figure {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.scene-row img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.effects-section {
  background: #fbfaf6;
}

.effect-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.effect-strip figure {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.effect-strip img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

figcaption {
  padding: 10px 12px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.render-section {
  background: #ece8dd;
}

.render-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.render-grid figure {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.render-grid img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.render-grid .tall img {
  object-position: center 42%;
}

.evolution {
  background: var(--white);
}

.drawing-section {
  background: var(--paper);
}

.drawing-wrap {
  padding: clamp(10px, 2vw, 24px);
}

.drawing-wrap img {
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.board-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(320px, 0.55fr);
  align-items: start;
  gap: clamp(24px, 4vw, 58px);
  background: var(--ink);
  color: var(--paper);
}

.exhibition-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px),
    #fbfaf6;
  background-size: 34px 34px;
}

.exhibition-label,
.exhibition-card {
  border: 3px solid var(--ink);
  background: var(--white);
}

.exhibition-label {
  padding: clamp(26px, 4vw, 52px);
  box-shadow: 12px 12px 0 var(--clay);
}

.label-kicker {
  margin: 0 0 10px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 900;
  color: var(--moss);
}

.exhibition-label p:not(.section-index):not(.label-kicker) {
  max-width: 720px;
  font-size: 18px;
  font-weight: 700;
}

.external-link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.exhibition-card {
  display: block;
  padding: 24px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.7;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.exhibition-card:hover,
.exhibition-card:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--wood);
  outline: none;
}

.exhibition-card p {
  margin: 0 0 16px;
}

.exhibition-card .code-line {
  padding: 12px;
  border: 2px dashed var(--wood);
  font-family: "Courier New", monospace;
  font-size: 15px;
  word-break: break-all;
  background: #f1eadf;
}

.board-image {
  max-width: 520px;
  justify-self: center;
  border-color: var(--paper);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-top: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}

footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .split-section,
  .split-section.reverse,
  .logic-grid,
  .board-section,
  .exhibition-section {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .section-title {
    order: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    box-shadow: 10px 10px 0 var(--wood);
  }

  .hero-media video {
    min-height: auto;
  }

  .scene-row,
  .effect-strip,
  .render-grid {
    grid-template-columns: 1fr;
  }

  .logic-image img,
  .render-grid img {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .meta-line span {
    width: 100%;
  }

  h1 span {
    font-size: clamp(32px, 11vw, 48px);
    white-space: normal;
  }

  .band,
  .split-section,
  .logic-grid,
  .scenes,
  .render-section,
  .evolution,
  .drawing-section,
  .board-section,
  .exhibition-section {
    padding-inline: 16px;
  }

}
