:root {
  --paper: #f3eddf;
  --paper-soft: #faf6ec;
  --ink: #18241d;
  --green: #103c2b;
  --green-deep: #08271c;
  --shell: #865033;
  --gold: #c99835;
  --line: rgba(24, 36, 29, .18);
  --muted: #615f55;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(24,36,29,.045) .6px, transparent .6px);
  background-size: 5px 5px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e2b85d; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 82px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 70px); color: var(--paper-soft);
  border-bottom: 1px solid rgba(255,255,255,.24);
  transition: background .3s ease, color .3s ease;
}
.site-header.scrolled { height: 68px; color: var(--ink); background: rgba(243,237,223,.94); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: flex; min-height: 44px; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; letter-spacing: .08em; }
.brand small { margin-top: 2px; font-size: 9px; letter-spacing: .21em; opacity: .72; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); font-size: 13px; letter-spacing: .08em; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-contact { border: 1px solid currentColor; padding: 9px 17px; }
.menu-button { display: none; background: none; border: 0; color: inherit; }

.hero { min-height: 850px; height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--green-deep); color: var(--paper-soft); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image { object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(8,39,28,.92) 0%, rgba(8,39,28,.75) 36%, rgba(8,39,28,.08) 69%, rgba(8,39,28,.18) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(940px, 82vw); margin-left: clamp(28px, 8vw, 150px); padding-top: 60px; }
.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, h2 { font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 600; letter-spacing: -.04em; }
.hero h1 { margin: 0; font-size: clamp(52px, 6vw, 100px); line-height: 1.08; }
.hero-intro { max-width: 660px; margin: 34px 0 0; font-size: clamp(16px, 1.45vw, 21px); color: rgba(250,246,236,.86); }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 40px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 25px; border: 1px solid transparent; cursor: pointer; }
.button-primary { color: #12251b; background: #e2b85d; }
.button-primary:hover { background: #f0cd79; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 1px solid currentColor; padding: 7px 0; }
.text-link span { margin-left: 8px; }
.hero-index { position: absolute; right: clamp(25px, 5vw, 80px); bottom: 44px; z-index: 2; display: flex; align-items: end; gap: 14px; }
.hero-index span { font-size: 9px; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-index b { font: 400 clamp(52px, 6vw, 92px)/.8 Georgia, serif; opacity: .52; }

.identity-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--green); color: var(--paper-soft); }
.identity-strip p { margin: 0; padding: 28px clamp(20px, 3vw, 46px); border-right: 1px solid rgba(255,255,255,.16); }
.identity-strip span, .identity-strip strong { display: block; }
.identity-strip span { font-size: 10px; letter-spacing: .18em; opacity: .66; }
.identity-strip strong { margin-top: 4px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; font-weight: 500; }

.section-pad { padding: clamp(90px, 10vw, 160px) clamp(24px, 7vw, 120px); }
.section-head { display: grid; grid-template-columns: .55fr 1.2fr .8fr; gap: 50px; align-items: end; max-width: var(--max); margin: auto; }
.section-head h2, .chapter-copy h2, .flow-copy h2, .timeline-copy h2, .location-panel h2, .contact-copy h2 { margin: 0; font-size: clamp(40px, 4.8vw, 76px); line-height: 1.12; }
.section-head > p:last-child { margin: 0; max-width: 440px; color: var(--muted); }
.specimen-figure { max-width: var(--max); margin: 70px auto 0; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specimen-figure img { width: 100%; aspect-ratio: 3 / 1.2; object-fit: cover; }
.specimen-figure figcaption { position: absolute; left: 0; bottom: 0; min-width: 290px; padding: 20px 26px; background: rgba(16,60,43,.94); color: white; }
.specimen-figure figcaption > * { display: block; }
.specimen-figure figcaption span, .specimen-figure figcaption small { font-size: 10px; letter-spacing: .12em; opacity: .72; }
.specimen-figure figcaption b { margin: 4px 0; font-family: serif; font-size: 21px; font-weight: 500; }

.project-chapter { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 760px; }
.project-dark { background: var(--green-deep); color: var(--paper-soft); }
.project-light { background: var(--paper-soft); }
.chapter-copy { padding: clamp(75px, 8vw, 135px); align-self: center; }
.chapter-copy > p:not(.eyebrow):not(.boundary-note) { max-width: 620px; margin: 30px 0; font-size: 17px; opacity: .78; }
.chapter-image { margin: 0; min-height: 620px; }
.chapter-image img { width: 100%; height: 100%; object-fit: cover; }
.record-list { margin: 36px 0 26px; border-top: 1px solid currentColor; }
.record-list div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.record-list dt { font-size: 11px; letter-spacing: .14em; opacity: .62; }
.record-list dd { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; }
.boundary-note { padding-left: 16px; border-left: 2px solid var(--gold); font-size: 12px; opacity: .68; }

.process-flow { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 7vw, 110px); align-items: center; background: #e6decd; }
.flow-copy p:last-child { max-width: 560px; margin-top: 30px; color: var(--muted); }
.flow-image { margin: 0; }
.flow-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.flow-line { position: absolute; left: 0; right: 0; bottom: 32px; display: flex; justify-content: space-around; border-top: 1px solid rgba(166,107,69,.45); }
.flow-line span { width: 8px; height: 8px; margin-top: -4px; background: var(--shell); border-radius: 50%; }

.timeline-section { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 850px; background: var(--paper-soft); }
.ledger-image { margin: 0; overflow: hidden; }
.ledger-image img { width: 100%; height: 100%; object-fit: cover; }
.timeline-copy { align-self: center; padding: clamp(70px, 8vw, 130px); }
.timeline { list-style: none; margin: 45px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { color: var(--shell); font: 600 19px Georgia, serif; }
.timeline p { margin: 0; }

.location-section { position: relative; min-height: 650px; display: grid; align-items: center; }
.location-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,39,28,.85), rgba(8,39,28,.22)); }
.location-panel { position: relative; z-index: 1; margin-left: clamp(24px, 9vw, 150px); max-width: 610px; color: white; }
.location-panel p { margin-bottom: 8px; }
.location-panel address { font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(22px, 2.4vw, 36px); font-style: normal; }
.location-panel small { display: block; max-width: 560px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35); opacity: .72; }

.contact-section { position: relative; display: grid; grid-template-columns: .75fr 1fr; gap: 8vw; padding: clamp(90px, 10vw, 150px) clamp(24px, 8vw, 140px); overflow: hidden; }
.contact-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.contact-copy { align-self: start; padding-top: 35px; }
.contact-copy p:last-child { max-width: 510px; }
.contact-form { padding: clamp(28px, 4vw, 55px); background: rgba(250,246,236,.94); box-shadow: inset 0 2px 0 var(--green); }
.contact-form label { display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: .05em; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; color: var(--ink); }
.contact-form textarea { resize: vertical; }
.form-status { min-height: 1.65em; margin: 14px 0 0; color: #782e20; font-weight: 700; }

.site-footer { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: end; padding: 55px clamp(24px, 6vw, 100px); background: var(--green-deep); color: var(--paper-soft); }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; }
.site-footer span { margin-top: 7px; font-size: 9px; letter-spacing: .18em; opacity: .56; }
.site-footer nav { display: flex; gap: 18px; font-size: 12px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; }
.site-footer p { margin: 0; font-size: 11px; opacity: .58; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { height: 68px; }
  .menu-button { display: grid; min-width: 70px; min-height: 44px; grid-template-columns: auto 24px; gap: 10px; align-items: center; position: relative; z-index: 3; color: inherit; }
  .menu-button span { grid-column: 1; grid-row: 1; font-size: 12px; }
  .menu-button i { display: block; grid-column: 2; grid-row: 1; width: 24px; height: 1px; background: currentColor; transition: transform .18s ease; }
  .menu-button i:first-of-type { transform: translateY(-4px); }
  .menu-button i:last-of-type { transform: translateY(4px); }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 2; display: flex; width: 100%; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 100px 12vw; gap: 28px; background: var(--green-deep); color: white; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 26px; visibility: hidden; pointer-events: none; transform: translateY(-105%); transition: transform .18s ease, visibility 0s linear .18s; }
  .site-nav.open { visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .site-nav a { display: flex; min-height: 44px; align-items: center; }
  .nav-contact { margin-top: 10px; }
  .hero { min-height: 780px; }
  .hero-copy { margin-left: 7vw; width: 78vw; }
  .hero-image { object-position: 60% center; }
  .identity-strip { grid-template-columns: 1fr 1fr; }
  .identity-strip p { border-bottom: 1px solid rgba(255,255,255,.16); }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .project-chapter, .process-flow, .timeline-section, .contact-section { grid-template-columns: 1fr; }
  .project-light .chapter-image { order: 2; }
  .project-light .chapter-copy { order: 1; }
  .chapter-image { min-height: 480px; }
  .process-flow { gap: 50px; }
  .timeline-section { min-height: 0; }
  .ledger-image { max-height: 580px; }
  .contact-copy { color: var(--paper-soft); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 18px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { height: auto; min-height: 760px; align-items: end; padding-bottom: 82px; }
  .hero-image { object-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,39,28,.97) 0%, rgba(8,39,28,.77) 58%, rgba(8,39,28,.24) 100%); }
  .hero-copy { width: auto; margin: 0 22px; padding-top: 150px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 28px; }
  .hero-index { right: 20px; bottom: 24px; }
  .identity-strip { grid-template-columns: 1fr; }
  .identity-strip p { padding: 20px 24px; border-right: 0; }
  .section-pad { padding: 74px 20px; }
  .section-head h2, .chapter-copy h2, .flow-copy h2, .timeline-copy h2, .location-panel h2, .contact-copy h2 { font-size: clamp(38px, 11vw, 52px); }
  .specimen-figure { margin-top: 42px; }
  .specimen-figure img { min-height: 360px; object-position: center; }
  .specimen-figure figcaption { position: static; min-width: 0; }
  .chapter-copy, .timeline-copy { padding: 70px 22px; }
  .chapter-image { min-height: 390px; }
  .record-list div { grid-template-columns: 100px 1fr; }
  .process-flow { padding: 74px 20px 96px; }
  .timeline li { grid-template-columns: 86px 1fr; gap: 16px; }
  .location-section { min-height: 660px; align-items: end; padding-bottom: 70px; }
  .location-section::after { background: linear-gradient(0deg, rgba(8,39,28,.94), rgba(8,39,28,.18)); }
  .location-panel { margin: 0 22px; }
  .contact-section { padding: 74px 18px; gap: 36px; }
  .contact-form { padding: 28px 20px; }
  .site-footer { padding: 48px 22px; }
  .site-footer nav { flex-wrap: wrap; }
}

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