:root {
  --paper: #f4efe7;
  --paper-deep: #e9dfd1;
  --ink: #28231f;
  --muted: #746a61;
  --clay: #9a5a3a;
  --clay-dark: #663c2c;
  --gold: #b89968;
  --line: rgba(57, 45, 36, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Serif SC", "Songti SC", "STSong", serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); color: #fff; background: linear-gradient(to bottom, rgba(20,15,12,.65), transparent); transition: .3s ease; }
.topbar.scrolled { color: var(--ink); background: rgba(244,239,231,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .12em; }
.brand small { margin-top: 3px; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: .14em; opacity: .72; }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); }
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 760px; height: 100svh; color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: url("./assets/museum-1.webp") center/cover no-repeat; animation: hero-in 1.4s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,12,9,.78) 0%, rgba(17,12,9,.37) 54%, rgba(17,12,9,.12) 100%), linear-gradient(0deg, rgba(17,12,9,.5), transparent 40%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 88vw); padding-top: clamp(160px, 24vh, 250px); margin-left: clamp(24px, 9vw, 150px); }
.eyebrow, .section-no { margin: 0 0 18px; color: var(--clay); font: 600 12px/1.4 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #dcc8a8; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(42px, 6.3vw, 86px); font-weight: 500; line-height: 1.16; letter-spacing: .03em; }
.hero-copy { max-width: 560px; margin: 28px 0 38px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.9; }
.primary-button { display: inline-flex; align-items: center; gap: 26px; padding: 16px 24px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px; font-size: 14px; letter-spacing: .1em; transition: .25s; }
.primary-button:hover { color: var(--ink); background: #fff; }
.hero-index { position: absolute; right: clamp(24px, 5vw, 72px); bottom: 42px; z-index: 2; display: flex; align-items: end; gap: 12px; }
.hero-index b { font: 400 42px/1 Arial, sans-serif; }
.hero-index span { padding-bottom: 5px; font-size: 12px; opacity: .7; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; padding: 110px 0; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 500; line-height: 1.3; }
.intro > p { margin: 32px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }

.forms, .timeline, .gallery { padding: 110px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-card { position: relative; min-height: 360px; padding: 32px; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.38); transition: transform .25s, color .25s, background .25s; cursor: pointer; }
.form-card:hover, .form-card.is-open { color: #fff; background: var(--clay-dark); transform: translateY(-5px); }
.form-glyph { position: relative; display: block; width: 106px; height: 126px; margin: 4px auto 38px; color: var(--clay); transition: color .25s; }
.form-card:hover .form-glyph, .form-card.is-open .form-glyph { color: #d9ba8d; }
.form-glyph::before, .form-glyph::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid currentColor; }
.bowl::before { bottom: 18px; width: 86px; height: 52px; border-radius: 8px 8px 52px 52px; }
.bowl::after { bottom: 10px; width: 38px; border-width: 0 0 2px; }
.plate::before { bottom: 18px; width: 94px; height: 28px; border-radius: 50%; }
.plate::after { bottom: 24px; width: 70px; height: 14px; border-radius: 50%; opacity: .55; }
.vase::before { bottom: 8px; width: 76px; height: 96px; border-radius: 8px 8px 38px 38px; clip-path: polygon(28% 0, 72% 0, 70% 20%, 100% 40%, 90% 100%, 10% 100%, 0 40%, 30% 20%); }
.vase::after { top: 12px; width: 34px; height: 9px; border-radius: 50%; }
.jar::before { bottom: 9px; width: 92px; height: 82px; border-radius: 12px 12px 43px 43px; }
.jar::after { top: 27px; width: 46px; height: 12px; border-radius: 50%; }
.pot::before { bottom: 10px; width: 74px; height: 74px; border-radius: 16px 16px 36px 36px; }
.pot::after { top: 47px; left: 80%; width: 42px; height: 16px; border-left: 0; border-radius: 0 12px 12px 0; transform: rotate(-20deg); }
.censer::before { bottom: 20px; width: 88px; height: 54px; border-radius: 7px 7px 40px 40px; }
.censer::after { bottom: 5px; width: 64px; height: 20px; border-width: 0 2px 2px; clip-path: polygon(0 0, 24% 0, 12% 100%, 0 100%, 8% 18%, 92% 18%, 100% 100%, 88% 100%, 76% 0, 100% 0); }
.form-title { display: flex; gap: 13px; align-items: center; }
.form-title span { font: 12px Arial, sans-serif; opacity: .55; }
.form-title h3 { margin: 0; font-size: 21px; font-weight: 600; }
.form-card p { max-height: 0; margin: 0; color: rgba(255,255,255,.72); line-height: 1.8; opacity: 0; overflow: hidden; transition: .3s; }
.form-card.is-open p, .form-card:hover p { max-height: 120px; margin-top: 18px; opacity: 1; }
.form-card button { position: absolute; right: 26px; bottom: 22px; padding: 0; color: inherit; border: 0; background: transparent; font-size: 12px; opacity: .65; }

.anatomy { display: grid; grid-template-columns: 1.3fr .7fr; min-height: 720px; background: #28211c; }
.anatomy-image { min-height: 560px; background: linear-gradient(90deg, transparent 65%, #28211c 100%), url("./assets/museum-2.webp") center/cover no-repeat; }
.anatomy-panel { padding: 95px clamp(36px, 6vw, 96px) 70px 40px; color: #fff; }
.section-no.light { color: #c9aa78; }
.anatomy ol { padding: 0; margin: 48px 0 0; list-style: none; counter-reset: steps; }
.anatomy li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.anatomy li b { color: #d8bd95; font-size: 18px; }
.anatomy li span { color: rgba(255,255,255,.67); line-height: 1.65; }

.timeline { border-bottom: 1px solid var(--line); }
.timeline-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 34px; }
.timeline-track::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline article { position: relative; padding: 20px 28px 0 0; }
.timeline article::before { content: ""; position: absolute; top: -30px; left: 0; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.timeline time { color: var(--clay); font: 12px Arial, sans-serif; letter-spacing: .1em; }
.timeline h3 { margin: 16px 0 12px; font-size: 22px; }
.timeline p { margin: 0; color: var(--muted); line-height: 1.8; }

.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, 260px); gap: 16px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--paper-deep); }
.gallery figure.wide { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; left: 18px; bottom: 16px; padding: 8px 12px; color: #fff; background: rgba(25,18,14,.58); font-size: 12px; backdrop-filter: blur(8px); }

.closing { padding: 130px 24px; color: #fff; text-align: center; background: linear-gradient(rgba(46,31,23,.78), rgba(46,31,23,.88)), url("./assets/museum-4.webp") center/cover fixed; }
.closing p { color: #dbc6a4; letter-spacing: .26em; }
.closing h2 { margin: 26px auto 42px; }
.closing a { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(24px, 5vw, 72px); color: var(--muted); background: #e9e0d5; font: 11px Arial, sans-serif; letter-spacing: .06em; }

@keyframes hero-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 780px) {
  .topbar { height: 64px; padding: 0 18px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .menu-button { display: block; color: inherit; }
  .nav { position: absolute; top: 58px; right: 16px; display: none; width: 160px; padding: 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: rgba(250,247,242,.97); box-shadow: 0 12px 36px rgba(39,26,17,.16); }
  .nav.open { display: grid; }
  .nav a { padding: 12px; }
  .hero { min-height: 680px; }
  .hero-shade { background: linear-gradient(0deg, rgba(17,12,9,.82), rgba(17,12,9,.13) 88%); }
  .hero-content { padding-top: 250px; margin: 0 24px; }
  .hero h1 { font-size: clamp(39px, 11vw, 56px); }
  .hero-copy { line-height: 1.75; }
  .hero-index { right: 22px; bottom: 24px; }
  .section-shell { width: calc(100% - 36px); }
  .intro { grid-template-columns: 1fr; gap: 18px; padding: 74px 0; }
  .intro > p { margin-top: 4px; font-size: 16px; }
  .forms, .timeline, .gallery { padding: 78px 0; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { margin-top: 18px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-card { min-height: 280px; padding: 22px 18px; }
  .form-glyph { width: 82px; height: 96px; margin-bottom: 24px; transform: scale(.82); transform-origin: bottom center; }
  .form-title h3 { font-size: 17px; }
  .form-card p { font-size: 13px; }
  .form-card button { right: 18px; bottom: 16px; }
  .anatomy { grid-template-columns: 1fr; }
  .anatomy-image { min-height: 380px; background: linear-gradient(0deg, #28211c 0%, transparent 25%), url("./assets/museum-2.webp") center/cover no-repeat; }
  .anatomy-panel { padding: 10px 24px 62px; }
  .timeline-track { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 24px; }
  .timeline-track::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .timeline article { padding: 0 0 38px 12px; }
  .timeline article::before { top: 5px; left: -24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 180px; }
  .gallery figure.wide { grid-column: 1 / 3; grid-row: auto; }
  .closing { padding: 94px 22px; background-attachment: scroll; }
  footer { display: grid; text-align: center; }
}

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