:root {
  --paper: #eef0f2;
  --paper-deep: #dfe4e8;
  --ink: #11161b;
  --ink-soft: #5c6670;
  --line: #cbd2d8;
  --accent: #2455ff;
  --accent-soft: #d6deff;
  --content-width: 1180px;
  --display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header,
.hero,
.project-section,
.about-section,
.site-footer {
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.site-nav,
.language-switch,
.site-footer { letter-spacing: .02em; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 25px;
  height: 25px;
  padding: 4px;
  border: 1px solid var(--ink);
}

.wordmark-mark span { background: var(--ink); }
.wordmark-mark span:last-child { background: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 11px;
  font-weight: 600;
}

.site-nav a:not(.language-switch) { color: var(--ink-soft); }
.site-nav a:not(.language-switch):hover { color: var(--accent); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  font-size: 10px;
}

.language-switch:hover { background: var(--ink); color: var(--paper); }
.language-slash { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(42px, 6vw, 94px);
  align-items: center;
  min-height: 610px;
  padding-block: 64px 78px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 520px;
  margin-bottom: 27px;
}

.eyebrow,
.hero-index,
.section-index,
.project-meta,
.route-label,
.visual-tag,
.project-footer,
.mono {
  font-family: var(--mono);
  letter-spacing: .03em;
}

.eyebrow,
.section-index,
.project-meta,
.route-label,
.visual-tag { color: var(--accent); font-size: 10px; font-weight: 600; }
.hero-index { color: var(--ink-soft); font-size: 10px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -.055em;
  line-height: 1.02;
}

h1 {
  max-width: 600px;
  margin-bottom: 27px;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 700;
}

h1 em,
h2 em { color: var(--accent); font-style: normal; }

.hero-summary {
  max-width: 430px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 150px;
  padding: 14px 17px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-3px); }
.button-accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-accent:hover { border-color: var(--ink); background: var(--ink); }

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.footnote-mark { color: var(--accent); font-size: 16px; }

.hero-visual { margin: 0; }

.visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.38;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 14px 14px 0 var(--accent-soft);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
  mix-blend-mode: multiply;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.hero-visual:hover img { transform: scale(1.025); }
.visual-tag { position: absolute; top: 16px; left: 16px; padding: 6px 8px; background: var(--paper); }
.visual-corner { position: absolute; right: 14px; bottom: 5px; color: var(--accent); font-family: var(--display); font-size: 34px; }

.hero-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 11px;
}

.hero-visual figcaption .mono { color: var(--ink); font-size: 10px; white-space: nowrap; }

.project-section {
  padding-block: 71px 112px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-index { margin-bottom: 18px; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(44px, 5.5vw, 72px); }
.section-note { max-width: 380px; margin-bottom: 5px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

.project-list { display: grid; gap: 17px; min-width: 0; }

.project-card {
  min-width: 0;
  border: 1px solid var(--ink);
  background: #f5f6f7;
  transition: transform 180ms ease, background 180ms ease;
}

.project-card:hover { transform: translateX(7px); background: #fff; }

.project-top,
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 23px;
}

.project-top { border-bottom: 1px solid var(--line); }
.project-source { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.project-source:hover { color: var(--accent); }

.project-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr);
  gap: 45px;
  padding: 31px 23px 34px;
}

.project-card h3 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 65px); }
.project-description { max-width: 480px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

.project-route { align-self: end; padding: 19px; border-left: 2px solid var(--accent); background: var(--paper-deep); }
.route-label { display: block; margin-bottom: 17px; }
.route-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.route-dot { flex: 0 0 7px; width: 7px; height: 7px; background: var(--accent); }
.route-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.route-arrow { margin-left: auto; color: var(--accent); font-size: 18px; }

.project-footer { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.project-footer .course-link { color: var(--ink); font-weight: 700; }
.project-footer .course-link:hover { color: var(--accent); }

.about-section {
  display: grid;
  grid-template-columns: 90px minmax(300px, 1.15fr) minmax(260px, .85fr);
  gap: 36px;
  align-items: start;
  padding-block: 94px;
  border-top: 1px solid var(--line);
}

.about-mark { color: var(--accent); font-family: var(--mono); font-size: 12px; line-height: 1; }
.about-section h2 { font-size: clamp(42px, 5vw, 66px); }
.about-copy { max-width: 355px; margin-top: 32px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

@media (max-width: 820px) {
  .site-header, .hero, .project-section, .about-section, .site-footer { width: min(calc(100% - 38px), var(--content-width)); }
  .site-header { min-height: 72px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.language-switch) { display: none; }
  .hero { display: block; min-height: 0; padding-block: 54px 77px; }
  h1 { font-size: clamp(52px, 14vw, 76px); }
  .hero-visual { margin-top: 60px; }
  .visual-frame { box-shadow: 9px 9px 0 var(--accent-soft); }
  .hero-visual figcaption { display: block; }
  .hero-visual figcaption .mono { display: block; margin-top: 8px; }
  .section-heading { display: block; }
  .section-note { margin-top: 22px; }
  .project-main { grid-template-columns: 1fr; gap: 29px; }
  .project-route { width: 100%; }
  .about-section { grid-template-columns: 44px 1fr; gap: 19px; }
  .about-copy { grid-column: 2; margin-top: 0; }
}

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