/* Fumei Hat Museum — editorial museum site */
/* Type system: Avenir for slogan + headings; Inter / system sans for body & UI; JetBrains Mono for labels. No italics. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nunito:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:where(*) { /* font stacks defined as CSS vars for clarity */ }

:root {
  /* Type stacks */
  --font-display: 'Avenir Next', 'Avenir', 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'San Francisco', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif-cn: var(--font-display);
  --font-serif: var(--font-display);

  --paper: #f4efe6;
  --paper-2: #ece5d6;
  --ink: #161412;
  --ink-soft: #2a2622;
  --mute: #6b645b;
  --line: #1a1816;
  --red: oklch(0.52 0.17 25);
  --red-deep: oklch(0.36 0.13 25);
  --gold: oklch(0.72 0.09 70);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.serif { font-family: var(--font-display); }
.cn { font-family: var(--font-display); }

/* Display type — Avenir for slogan + all headings */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  background: transparent;
  color: #f4efe6;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav.solid { background: rgba(244,239,230,0.92); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand-logo { height: 36px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { display: flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-cta .lang { opacity: 0.7; }
.nav-cta .lang.active { opacity: 1; font-weight: 700; }

/* Burger (mobile only) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  background: transparent;
  z-index: 110;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed; inset: 0;
  background: var(--paper);
  color: var(--ink);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 96px 28px 36px;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.42s cubic-bezier(.6,.05,.2,1);
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer a {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-drawer a span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.nav-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; gap: 10px;
  color: var(--mute);
}
.nav-drawer-foot .lang.active { color: var(--ink); font-weight: 700; }
.nav.menu-open { background: var(--paper) !important; color: var(--ink) !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0a0a0a;
  color: #f4efe6;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/exterior.jpg');
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.62) contrast(1.05) saturate(0.95);
  transform: scale(1.04);
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(-0.6%, -0.4%, 0); }
  to   { transform: scale(1.08) translate3d(0.6%, 0.4%, 0); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 70%, transparent 0%, rgba(8,6,4,0.55) 70%, rgba(8,6,4,0.85) 100%),
    linear-gradient(to bottom, rgba(8,6,4,0.35) 0%, transparent 30%, transparent 60%, rgba(8,6,4,0.6) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
}
.hat-wheel {
  position: relative;
  width: min(70vh, 70vw);
  aspect-ratio: 1/1;
  perspective: 1400px;
  cursor: ew-resize;
}
.hat-wheel .frames {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.hat-wheel .frame {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(1.05);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.08s linear;
}
.hat-wheel .frame.active { opacity: 1; }
.hat-wheel::after {
  content: ''; position: absolute; inset: -4%; border-radius: 50%;
  box-shadow: inset 0 0 200px 40px rgba(0,0,0,0.6);
  pointer-events: none;
}

.hero-overlay {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px 36px 36px;
  pointer-events: none;
}
.hero-headline {
  align-self: end;
  display: flex; flex-direction: column;
  pointer-events: auto;
}
.hero-headline .eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  color: rgba(244,239,230,0.7);
}
.hero-headline .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero-headline h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 13vw, 220px);
  line-height: 0.84;
  letter-spacing: -0.045em;
  color: #f4efe6;
}
.hero-headline h1 .em { color: var(--red);  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.hero-headline h1 .cn-stack { font-family: var(--font-display); font-weight: 900; }
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 80px;
  pointer-events: auto;
}
.hero-bottom .bcol { font-size: 12px; line-height: 1.6; color: rgba(244,239,230,0.75); max-width: 24ch; }
.hero-bottom .bcol .label { display: block; margin-bottom: 8px; color: rgba(244,239,230,0.45); }
.hero-bottom .scroll {
  justify-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,230,0.6);
}
.hero-bottom .scroll .line { width: 1px; height: 60px; background: rgba(244,239,230,0.4); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-instruction {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  transition: opacity 0.4s;
}
.hero-instruction.hidden { opacity: 0; }
.hero-instruction .arrow { width: 40px; height: 1px; background: currentColor; position: relative; }
.hero-instruction .arrow::before, .hero-instruction .arrow::after { content: ''; position: absolute; top: 50%; width: 6px; height: 1px; background: currentColor; }
.hero-instruction .arrow::before { left: 0; transform: translateY(-50%) rotate(-30deg); transform-origin: left; }
.hero-instruction .arrow::after { right: 0; transform: translateY(-50%) rotate(30deg); transform-origin: right; }

/* ---------- SECTION CHROME ---------- */
.section { padding: 120px 36px; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .num { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.section-head h2 .em {  font-family: var(--font-display); font-weight: 500; color: var(--red); letter-spacing: -0.02em; }

/* ---------- ABOUT / EXTERIOR ---------- */
.about { background: var(--paper); padding-top: 0; }
.about-bleed {
  position: relative;
  height: 100vh;
  margin-top: 0;
  margin-left: -36px; margin-right: -36px;
  overflow: hidden;
  margin: 0 -36px;
}
.about-bleed img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.about-bleed .vignette { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%); }
.about-bleed .caption {
  position: absolute; left: 36px; bottom: 36px; right: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  color: #f4efe6;
}
.about-bleed .caption h3 {
  font-family: var(--font-display);
  
  font-weight: 400;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  max-width: 18ch;
  letter-spacing: -0.01em;
}
.about-bleed .caption .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; line-height: 1.8; text-align: right; }

.about-prose {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-top: 100px;
  padding: 0 4vw;
}
.about-prose .lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.about-prose .lead .drop { font-size: 1.6em; line-height: 0.8; float: left; padding: 8px 8px 0 0; font-weight: 600; color: var(--red);  }
.about-prose p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.about-prose p + p { margin-top: 16px; }

/* ---------- EXHIBITIONS ---------- */
.exhibitions { background: var(--ink); color: var(--paper); }
.exhibitions .section-head h2 { color: var(--paper); }
.exhibitions .section-head .num { color: rgba(244,239,230,0.5); }
.exh-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.exh-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-soft);
  overflow: hidden;
  cursor: pointer;
}
.exh-card.wide { aspect-ratio: 4/5; }
.exh-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.exh-card:hover img { transform: scale(1.05); }
.exh-card .info {
  position: absolute; inset: auto 0 0 0; padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.exh-card .info .status { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--paper); margin-bottom: 16px; }
.exh-card .info .status.live { background: var(--red); border-color: var(--red); color: var(--paper); }
.exh-card .info h3 { font-family: var(--font-display);  font-weight: 500; font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; }
.exh-card .info .dates { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; margin-top: 10px; opacity: 0.75; }

.exh-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(244,239,230,0.18); padding-top: 28px;
  font-size: 13px; line-height: 1.6; color: rgba(244,239,230,0.72);
}
.exh-list .label { color: rgba(244,239,230,0.45); display: block; margin-bottom: 6px; }

/* ---------- FEATURED COLLECTION (magazine layout) ---------- */
.collection { background: var(--paper); padding-bottom: 60px; }
.coll-mag {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
/* big lead image */
.coll-mag .lead-img { grid-column: 1 / span 7; aspect-ratio: 4/5; background: #1a1816; overflow: hidden; }
.coll-mag .lead-img img { width: 100%; height: 100%; object-fit: cover; }
.coll-mag .lead-text { grid-column: 9 / span 4; padding-top: 48px; }
.coll-mag .lead-text .kicker { color: var(--red); margin-bottom: 24px; }
.coll-mag .lead-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px; line-height: 0.95; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.coll-mag .lead-text h3 .em {  font-family: var(--font-display); font-weight: 500; color: var(--red); }
.coll-mag .lead-text p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.coll-mag .lead-text dl { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 12px; }
.coll-mag .lead-text dt { color: var(--mute); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; align-self: center; }
.coll-mag .lead-text dd { font-family: var(--font-display);  font-size: 16px; }

/* second row: small text col + tall image */
.coll-mag .side-text { grid-column: 1 / span 4; padding-top: 12px; }
.coll-mag .side-text .quote {
  font-family: var(--font-display);
  
  font-size: 28px;
  line-height: 1.2;
  color: var(--red-deep);
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  margin-bottom: 28px;
}
.coll-mag .side-text p { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.coll-mag .right-img { grid-column: 6 / span 7; aspect-ratio: 16/10; background: #000; overflow: hidden; }
.coll-mag .right-img img { width: 100%; height: 100%; object-fit: cover; }

/* artifact strip */
.artifact-strip {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.artifact-card { position: relative; }
.artifact-card .frame { aspect-ratio: 3/4; background: #0a0a0a; overflow: hidden; }
.artifact-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.artifact-card:hover .frame img { transform: scale(1.04); }
.artifact-card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; gap: 24px; }
.artifact-card .meta h4 { font-family: var(--font-display);  font-weight: 500; font-size: 22px; }
.artifact-card .meta .id { font-family: var(--font-mono); font-size: 11px; color: var(--mute); }
.artifact-card .meta-2 { display: flex; gap: 16px; margin-top: 6px; font-size: 11px; color: var(--mute); font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- GALLERY (interior photos) ---------- */
.gallery { background: var(--paper-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.gallery-grid .left { display: grid; gap: 24px; }
.gallery-grid .left img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-grid .right { display: flex; flex-direction: column; gap: 24px; }
.gallery-grid .right img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.gallery-quote {
  margin-top: 80px;
  font-family: var(--font-display);
  
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.gallery-quote .em { color: var(--red); }
.gallery-quote .attr { display: block; margin-top: 24px; font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }

/* ---------- VISIT ---------- */
.visit { background: var(--ink); color: var(--paper); }
.visit .section-head h2 { color: var(--paper); }
.visit .section-head .num { color: rgba(244,239,230,0.5); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.visit-info dl { display: grid; grid-template-columns: 1fr 2fr; gap: 28px 32px; border-top: 1px solid rgba(244,239,230,0.2); padding-top: 28px; }
.visit-info dl > div { display: contents; }
.visit-info dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.6); padding-top: 6px; }
.visit-info dd { font-family: var(--font-display); font-size: 22px; line-height: 1.4; padding-bottom: 20px; border-bottom: 1px solid rgba(244,239,230,0.1); }
.visit-info dl > div:last-child dd { border-bottom: none; }

.visit-map {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--ink-soft);
  border: 1px solid rgba(244,239,230,0.15);
  overflow: hidden;
}
.visit-map .map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.visit-map .pin {
  position: absolute;
  /* Nantong at (805, 495) of 1000×850 viewBox, preserveAspectRatio meet
     in a square container. SVG fits to width, so x=80.5%; y is letterboxed:
     scale = 1000/container_w, drawn height = 850 of 1000 → 85% of width.
     For square container, vertical empty = (100-85)/2 = 7.5% top.
     y_pct = 7.5% + (495/850)*85% = 7.5% + 49.5% = 57% */
  top: 57%; left: 80.5%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 5px rgba(199,67,52,0.28), 0 0 0 14px rgba(199,67,52,0.12);
  animation: pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.visit-map .pin-label {
  position: absolute;
  top: calc(57% - 24px); left: calc(80.5% + 12px);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper);
  z-index: 2;
}
.visit-map .map-label {
  position: absolute; left: 20px; top: 20px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  z-index: 2;
}
.visit-map .map-label-coord {
  position: absolute; right: 20px; bottom: 20px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px; line-height: 1.6;
  color: rgba(244,239,230,0.7);
  z-index: 2;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 6px rgba(199,67,52,0.2), 0 0 0 16px rgba(199,67,52,0.08); } 50% { box-shadow: 0 0 0 12px rgba(199,67,52,0.18), 0 0 0 28px rgba(199,67,52,0.04); } }

.visit-cta {
  margin-top: 60px;
  display: flex; gap: 24px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.red { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.red:hover { background: var(--paper); color: var(--red); border-color: var(--paper); }
.btn .arrow { width: 24px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after { content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }

/* ---------- FOOTER ---------- */
footer { background: var(--paper); color: var(--ink); padding: 100px 36px 36px; border-top: 1px solid rgba(0,0,0,0.08); }
.foot-mega {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 18vw, 280px); line-height: 0.86; letter-spacing: -0.05em;
  margin-bottom: 80px;
}
.foot-mega .em {  font-family: var(--font-display); font-weight: 500; color: var(--red); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,0.15); }
.foot-grid h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.foot-grid ul { list-style: none; }
.foot-grid li { font-size: 14px; line-height: 1.9; }
.foot-grid li a:hover { color: var(--red); }
.foot-grid .brand-block { font-family: var(--font-display); font-size: 18px; line-height: 1.5; max-width: 28ch; }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.1); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

/* ---------- TICKER ---------- */
.ticker {
  background: var(--red); color: var(--paper);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ticker-track {
  display: inline-flex; gap: 60px;
  animation: tick 40s linear infinite;
  font-family: var(--font-display);
  
  font-size: 22px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track span::after { content: '✣'; font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- responsive ---------- */
/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 11px; }
  .section { padding: 96px 28px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .hero-overlay { padding: 100px 28px 28px; }
  .hero-bottom { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .hero-bottom .scroll { display: none; }
  .hat-wheel { width: min(60vh, 80vw); }
  .about-bleed { aspect-ratio: 4/3; height: auto; margin: 0 -28px; }
  .about-bleed .caption { left: 28px; right: 28px; bottom: 28px; gap: 24px; }
  .about-prose { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; padding: 0; }
  .about-prose .lead { grid-column: 1 / -1; }
  .exh-grid { grid-template-columns: 1fr 1fr; }
  .exh-card.wide { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .exh-list { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .coll-mag { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .coll-mag .lead-img { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .coll-mag .lead-text { grid-column: 1 / -1; padding-top: 0; }
  .coll-mag .lead-text h3 { font-size: 44px; }
  .coll-mag .side-text { grid-column: 1 / span 6; }
  .coll-mag .right-img { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .artifact-strip { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .right { flex-direction: row; }
  .gallery-grid .right img { aspect-ratio: 4/5; flex: 1; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-map { aspect-ratio: 16/10; max-height: 60vh; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid .brand-block { grid-column: 1 / -1; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav .brand-logo { height: 28px; width: auto !important; }

  .section { padding: 72px 20px; }
  .section-head h2 { font-size: clamp(40px, 11vw, 64px); }
  .section-head p { font-size: 14px; }

  .hero-overlay { padding: 88px 20px 24px; }
  .hero-headline h1 { font-size: clamp(56px, 18vw, 96px); }
  .hero-headline .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-bottom .bcol { font-size: 11px; }
  .hat-wheel { width: 90vw; }
  .hero-instruction { right: 20px; bottom: 20px; font-size: 9px; }
  .hero-instruction .arrow { width: 26px; }

  .about-bleed { aspect-ratio: 3/4; height: auto; margin: 0 -20px; }
  .about-bleed .caption { grid-template-columns: 1fr; gap: 12px; left: 20px; right: 20px; bottom: 20px; }
  .about-bleed .caption .lede { font-size: clamp(24px, 7vw, 36px); }
  .about-bleed .caption .meta { text-align: left; font-size: 10px; }
  .about-prose { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .about-prose .lead { font-size: 18px; line-height: 1.45; }

  .exh-grid { grid-template-columns: 1fr; gap: 18px; }
  .exh-card { aspect-ratio: 4/5 !important; }
  .exh-card .info { padding: 20px; }
  .exh-card .info h3 { font-size: 22px; }
  .exh-list { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }

  .coll-mag { grid-template-columns: 1fr; gap: 18px; }
  .coll-mag > * { grid-column: 1 / -1 !important; }
  .coll-mag .lead-img { aspect-ratio: 4/5; }
  .coll-mag .lead-text h3 { font-size: 36px; }
  .coll-mag .lead-text dl { grid-template-columns: 1fr; gap: 4px; }
  .coll-mag .lead-text dt { margin-top: 8px; }
  .coll-mag .right-img { aspect-ratio: 4/3; }
  .artifact-strip { grid-template-columns: 1fr; margin-top: 40px; }

  .gallery-grid .right { flex-direction: column; }
  .gallery-grid .right img { aspect-ratio: 16/10; }
  .gallery-quote { margin-top: 56px; }
  .gallery-quote blockquote { font-size: clamp(22px, 6.5vw, 32px) !important; }

  .visit-grid { gap: 32px; }
  .visit-map { aspect-ratio: 1/1; max-height: none; }
  .visit-map .pin-label { font-size: 9px; }
  .visit-map .map-label, .visit-map .map-label-coord { font-size: 9px; }

  .foot-mega { font-size: clamp(36px, 11vw, 64px) !important; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid .brand-block { font-size: 16px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .ticker-track { font-size: 16px; gap: 36px; }
  .ticker-track span { gap: 36px; }
}

/* Tighten the navbar at very narrow widths so the brand chip never wraps */
@media (max-width: 380px) {
  .nav-cta .lang { display: none; }
  .nav-cta .lang.active { display: inline; }
}