:root {
  --navy: #082a41;
  --navy-2: #0f3b55;
  --navy-3: #19516f;
  --ink: #102d43;
  --ink-soft: #415869;
  --paper: #f4efe6;
  --paper-2: #fbf8f2;
  --white: #fffdf9;
  --copper: #b94f2c;
  --copper-dark: #8e351d;
  --blue: #7ba4bb;
  --blue-soft: #dfeaf0;
  --sand: #e6d9ca;
  --line: rgba(12, 42, 64, 0.15);
  --shadow: 0 24px 70px rgba(7, 35, 54, 0.14);
  --shadow-soft: 0 12px 35px rgba(7, 35, 54, 0.1);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 34px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 12%, rgba(123, 164, 187, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: rgba(185, 79, 44, 0.2); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  color: white;
  background: var(--navy);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 106px 0; position: relative; }
.section--tight { padding: 76px 0; }
.section--paper { background: rgba(255, 253, 249, 0.62); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--white); }
.section--blue { background: #e8f0f4; border-block: 1px solid rgba(8, 42, 65, 0.1); }

.eyebrow {
  margin: 0 0 15px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}
.section--navy .eyebrow { color: #f3a886; }
.display,
h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
h1 { font-size: clamp(3rem, 6vw, 5.95rem); }
h2 { margin-bottom: 26px; font-size: clamp(2.35rem, 4.7vw, 4.65rem); }
h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 2.3vw, 2.2rem); }
h4 { margin-bottom: 10px; font-size: 1.24rem; }
p { margin-top: 0; }
.lead {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.52;
}
.section--navy .lead { color: rgba(255, 253, 249, 0.78); }
.small { font-size: 0.9rem; }
.muted { color: var(--ink-soft); }
.kicker-line { width: 68px; height: 2px; margin: 24px 0; background: var(--copper); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(123, 164, 187, 0.55); outline-offset: 3px; }
.btn--primary { color: white; background: var(--navy); box-shadow: 0 10px 25px rgba(8, 42, 65, 0.18); }
.btn--primary:hover { background: var(--navy-2); box-shadow: 0 14px 30px rgba(8, 42, 65, 0.24); }
.btn--copper { color: white; background: var(--copper); box-shadow: 0 10px 24px rgba(185, 79, 44, 0.2); }
.btn--copper:hover { background: var(--copper-dark); }
.btn--ghost { border-color: rgba(8, 42, 65, 0.26); background: rgba(255, 253, 249, 0.72); }
.btn--ghost:hover { border-color: var(--navy); background: white; }
.btn--light { color: var(--navy); background: var(--white); }
.btn--light:hover { background: #f5ede2; }
.btn svg { width: 18px; height: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(8, 42, 65, 0.11);
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { width: 205px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  position: relative;
  padding: 9px 0;
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
}
.site-nav a:not(.nav-official)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-official {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 10px 14px !important;
  border-radius: 6px;
  color: white;
  background: var(--copper);
}
.nav-official:hover { background: var(--copper-dark); }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }
.nav-open .nav-toggle-lines { background: transparent; }
.nav-open .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding: 78px 0 84px; }
.hero::before {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  top: -250px;
  right: -170px;
  border: 50px solid rgba(185, 79, 44, 0.09);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 280px;
  right: -12vw;
  bottom: -145px;
  border: 24px solid rgba(60, 115, 143, 0.13);
  border-radius: 50%;
  transform: rotate(-8deg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.93fr); align-items: center; gap: clamp(42px, 7vw, 96px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 830px; margin-bottom: 25px; }
.hero-copy .lead { max-width: 700px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-note {
  display: flex;
  max-width: 680px;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.7);
  font-size: 0.9rem;
}
.hero-note svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.hero-visual { position: relative; z-index: 1; min-height: 620px; }
.hero-frame {
  position: absolute;
  inset: 0 0 0 52px;
  overflow: hidden;
  border-radius: 48% 48% 18px 18px / 18% 18% 18px 18px;
  box-shadow: var(--shadow);
  background: #b9cbd7;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(5, 30, 47, 0.2)); }
.hero-caption {
  position: absolute;
  right: -1px;
  bottom: 28px;
  z-index: 2;
  width: min(330px, 88%);
  padding: 19px 22px;
  border-radius: 12px 0 0 12px;
  color: white;
  background: rgba(8, 42, 65, 0.92);
  box-shadow: var(--shadow-soft);
}
.hero-caption strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-size: 1.1rem; }
.hero-caption span { color: rgba(255,255,255,0.77); font-size: 0.82rem; }
.hero-scribble {
  position: absolute;
  top: 28px;
  left: -2px;
  z-index: 3;
  width: 128px;
  color: var(--navy);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.35rem;
  line-height: 1.2;
  transform: rotate(-7deg);
}
.hero-scribble::after { content: ""; display: block; width: 92px; height: 7px; margin-top: 12px; border-radius: 50%; background: var(--copper); transform: rotate(8deg); opacity: 0.9; }

.fact-strip { position: relative; z-index: 3; margin-top: -12px; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-soft);
}
.fact { min-height: 138px; padding: 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-number { display: block; margin-bottom: 6px; color: var(--copper); font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.fact p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }

.section-heading { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: end; gap: 70px; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .lead { margin-bottom: 0; }

.artist-grid { display: grid; grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(46px, 8vw, 112px); }
.portrait-card { position: relative; }
.portrait-card::before {
  content: "";
  position: absolute;
  inset: 34px -28px -28px 34px;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(185, 79, 44, 0.18), rgba(123, 164, 187, 0.25));
}
.portrait-card img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.portrait-label {
  position: absolute;
  right: -18px;
  bottom: 24px;
  max-width: 230px;
  padding: 15px 18px;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  font-size: 0.83rem;
  box-shadow: var(--shadow-soft);
}
.artist-copy p { color: var(--ink-soft); }
.artist-copy .lead { color: var(--ink); }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.theme-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,249,0.64); }
.theme-icon { display: grid; width: 39px; height: 39px; place-items: center; margin-bottom: 14px; border-radius: 50%; color: white; background: var(--copper); }
.theme-icon svg { width: 20px; height: 20px; }
.theme-card h4 { margin-bottom: 6px; }
.theme-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }

.museum-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr); align-items: stretch; gap: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow); }
.museum-copy { padding: clamp(42px, 6vw, 76px); color: white; }
.museum-copy h2 { color: white; }
.museum-copy p { color: rgba(255,255,255,0.76); }
.museum-copy .lead { color: white; }
.museum-points { display: grid; gap: 15px; margin: 28px 0 34px; }
.museum-point { display: flex; align-items: flex-start; gap: 12px; }
.museum-point span:first-child { display: grid; flex: 0 0 auto; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--navy); background: #f1ad8c; font-weight: 800; font-size: 0.78rem; }
.museum-point strong { display: block; margin-bottom: 2px; }
.museum-image { min-height: 620px; }
.museum-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.discovery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.discovery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 9px 26px rgba(8,42,65,0.07); }
.discovery-card figure { margin: 0; }
.discovery-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 0.45s ease; }
.discovery-card:hover img { transform: scale(1.035); }
.discovery-card figcaption { padding: 20px; }
.discovery-card h3 { margin-bottom: 8px; font-size: 1.45rem; }
.discovery-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }

.composition { position: relative; overflow: hidden; min-height: 580px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.composition img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.composition-copy {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: min(470px, 47%);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 18px;
  color: white;
  background: rgba(8,42,65,0.9);
  backdrop-filter: blur(10px);
}
.composition-copy h2 { margin-bottom: 14px; color: white; font-size: clamp(2rem, 3.2vw, 3.55rem); }
.composition-copy p { margin-bottom: 0; color: rgba(255,255,255,0.79); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 44px; }
.timeline::before { content: ""; position: absolute; top: 18px; right: 0; left: 0; height: 2px; background: rgba(255,255,255,0.18); }
.timeline-item { position: relative; padding: 52px 22px 0 0; }
.timeline-item::before { content: ""; position: absolute; top: 10px; left: 0; width: 16px; height: 16px; border: 4px solid var(--navy); border-radius: 50%; background: #f1ad8c; box-shadow: 0 0 0 2px rgba(241,173,140,0.35); }
.timeline-year { display: block; margin-bottom: 8px; color: #f3a886; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.25rem; }
.timeline-item p { margin: 0; color: rgba(255,255,255,0.68); font-size: 0.85rem; line-height: 1.5; }

.visit-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
.visit-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,249,0.78); box-shadow: var(--shadow-soft); }
.visit-card--accent { color: white; background: var(--copper); }
.visit-card--accent h2, .visit-card--accent h3 { color: white; }
.visit-card--accent p { color: rgba(255,255,255,0.84); }
.visit-list { display: grid; gap: 0; margin: 24px 0 30px; }
.visit-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.visit-row:first-child { border-top: 1px solid var(--line); }
.visit-row svg { width: 23px; height: 23px; margin-top: 2px; color: var(--copper); }
.visit-row strong { display: block; margin-bottom: 2px; }
.visit-row span { color: var(--ink-soft); font-size: 0.9rem; }
.official-links { display: grid; gap: 12px; margin: 24px 0 0; }
.official-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.38); border-radius: 9px; color: white; text-decoration: none; background: rgba(255,255,255,0.08); }
.official-link:hover { background: rgba(255,255,255,0.14); }
.official-link svg { flex: 0 0 auto; width: 20px; height: 20px; }

.editorial-note { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px; padding: 26px; border: 1px solid rgba(8,42,65,0.15); border-radius: 14px; background: #e9f0f4; }
.editorial-note-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: white; background: var(--navy); }
.editorial-note-icon svg { width: 24px; height: 24px; }
.editorial-note h3 { margin-bottom: 8px; font-size: 1.45rem; }
.editorial-note p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.faq-grid { display: grid; grid-template-columns: 0.66fr 1.34fr; gap: 68px; }
.faq-intro { position: sticky; top: 122px; align-self: start; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,253,249,0.74); }
summary { position: relative; padding: 19px 54px 19px 20px; font-family: var(--serif); font-size: 1.18rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; top: 50%; right: 21px; width: 14px; height: 2px; background: var(--navy); transition: transform 0.2s ease; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
.details-body { padding: 0 20px 20px; color: var(--ink-soft); }
.details-body p:last-child { margin-bottom: 0; }

.contact-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border-radius: var(--radius-lg); color: white; background: var(--navy); box-shadow: var(--shadow); }
.contact-copy { padding: clamp(42px, 6vw, 76px); }
.contact-copy h2 { color: white; }
.contact-copy p { color: rgba(255,255,255,0.72); }
.contact-details { display: grid; align-content: center; gap: 1px; padding: 24px; background: rgba(255,255,255,0.07); }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 23px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 24px; height: 24px; margin-top: 3px; color: #f3a886; }
.contact-item strong { display: block; margin-bottom: 3px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.68); }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }

.site-footer { color: rgba(255,255,255,0.76); background: #061f31; }
.footer-main { display: grid; grid-template-columns: 1.2fr 0.85fr 0.85fr; gap: 60px; padding: 70px 0 50px; }
.footer-logo { width: 260px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.96; }
.footer-about { max-width: 460px; font-size: 0.9rem; }
.footer-title { margin: 0 0 15px; color: white; font-family: var(--serif); font-size: 1.22rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-bottom-links button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(8,42,65,0.17);
  border-radius: 15px;
  background: rgba(255,253,249,0.97);
  box-shadow: 0 20px 80px rgba(5,27,43,0.25);
  backdrop-filter: blur(14px);
}
.cookie-banner[hidden] { display: none; }
.cookie-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: white; background: var(--navy); }
.cookie-icon svg { width: 24px; height: 24px; }
.cookie-copy strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-size: 1.15rem; }
.cookie-copy p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-actions .btn { min-height: 43px; padding: 10px 14px; font-size: 0.8rem; }

.cookie-dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow: auto; padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper-2); box-shadow: 0 30px 100px rgba(0,0,0,0.35); }
.cookie-dialog::backdrop { background: rgba(3,20,31,0.67); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 2rem; }
.dialog-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.dialog-body { padding: 25px 26px; }
.dialog-body > p { color: var(--ink-soft); }
.cookie-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-option:last-child { border-bottom: 1px solid var(--line); }
.cookie-option strong { display: block; margin-bottom: 3px; }
.cookie-option span { display: block; color: var(--ink-soft); font-size: 0.84rem; }
.pill { padding: 5px 9px; border-radius: 999px; color: var(--navy); background: #dfeaf0; font-size: 0.72rem; font-weight: 800; }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #b8c3c9; transition: background 0.2s ease; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(22px); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 19px 26px 25px; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding: 78px 0 70px; color: white; background: var(--navy); }
.page-hero::after { content: ""; position: absolute; width: 560px; height: 210px; right: -80px; bottom: -130px; border: 27px solid rgba(185,79,44,0.4); border-radius: 50%; transform: rotate(-7deg); }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.55fr; align-items: end; gap: 80px; }
.page-hero h1 { margin-bottom: 20px; color: white; font-size: clamp(3.2rem, 6vw, 6rem); }
.page-hero .lead { margin-bottom: 0; color: rgba(255,255,255,0.76); }
.page-hero-mark { justify-self: end; color: #f3a886; font-family: "Segoe Print", "Bradley Hand", cursive; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.18; transform: rotate(-7deg); }
.breadcrumbs { padding: 14px 0; border-bottom: 1px solid var(--line); background: rgba(255,253,249,0.58); font-size: 0.82rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { margin-inline: 8px; color: var(--copper); }
.legal-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 68px; }
.legal-toc { position: sticky; top: 118px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,249,0.78); }
.legal-toc strong { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 1.18rem; }
.legal-toc a { display: block; padding: 7px 0; color: var(--ink-soft); font-size: 0.85rem; text-decoration: none; }
.legal-toc a:hover { color: var(--copper); }
.legal-content { max-width: 840px; }
.legal-content h2 { margin-top: 56px; margin-bottom: 18px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.5rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li + li { margin-top: 7px; }
.legal-callout { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--copper); border-radius: 7px; background: #e8f0f4; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.84rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 0.9rem; }
.legal-table th, .legal-table td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); background: #e8f0f4; }
.legal-table td { color: var(--ink-soft); background: rgba(255,253,249,0.6); }
.credit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.credit-card { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,249,0.7); }
.credit-card h3 { margin-top: 0; }
.not-found { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 80px 20px; text-align: center; }
.not-found-inner { max-width: 720px; }
.not-found-code { color: var(--copper); font-family: var(--serif); font-size: clamp(6rem, 20vw, 13rem); font-weight: 700; line-height: 0.8; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  :root { --wrap: min(100% - 32px, 1000px); }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.8rem; }
  .hero-grid { grid-template-columns: 1fr 0.78fr; gap: 42px; }
  .hero-visual { min-height: 560px; }
  .fact { padding: 22px; }
  .discovery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .timeline-item::before { top: 4px; }
  .timeline-item { padding-top: 38px; }
}

@media (max-width: 900px) {
  :root { --header-height: 75px; }
  .brand img { width: 177px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 20px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(251,248,242,0.98);
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav-open .site-nav { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .site-nav a:last-child { margin-top: 14px; border-bottom: 0; justify-content: center; }
  .hero { padding-top: 58px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { min-height: 590px; max-width: 620px; width: 100%; margin: 0 auto; }
  .hero-frame { left: 42px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .artist-grid, .museum-grid, .visit-grid, .faq-grid, .contact-panel { grid-template-columns: 1fr; }
  .artist-grid { gap: 62px; }
  .portrait-card { width: min(560px, calc(100% - 20px)); }
  .museum-image { min-height: 520px; order: -1; }
  .composition-copy { width: min(520px, calc(100% - 48px)); }
  .faq-intro { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .page-hero-mark { justify-self: start; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .cookie-banner { grid-template-columns: auto 1fr; }
  .cookie-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 64px; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 24px, 600px); }
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 58px 0; }
  .hero { padding: 44px 0 62px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 470px; }
  .hero-frame { inset: 0; border-radius: 140px 140px 16px 16px / 58px 58px 16px 16px; }
  .hero-scribble { display: none; }
  .hero-caption { right: 0; bottom: 14px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .theme-grid, .discovery-grid, .timeline, .credit-grid { grid-template-columns: 1fr; }
  .portrait-card::before { inset: 24px -12px -18px 22px; }
  .portrait-label { right: 0; max-width: min(230px, 78%); }
  .museum-image { min-height: 420px; }
  .composition, .composition img { min-height: 660px; }
  .composition-copy { right: 16px; bottom: 16px; left: 16px; width: auto; padding: 24px; }
  .visit-card { padding: 28px 22px; }
  .contact-copy { padding: 38px 26px; }
  .contact-details { padding: 8px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .cookie-icon { display: none; }
  .cookie-actions { grid-column: auto; padding-left: 0; }
  .cookie-actions .btn { flex: 1 1 auto; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .legal-table { display: block; overflow-x: auto; }
}

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