/* Browinner — shared museum gallery styles */
:root {
  --forest: #163c2d;
  --forest-deep: #0c251c;
  --cream: #f4eddf;
  --cream-deep: #e3d7c4;
  --copper: #b96b47;
  --copper-light: #dd9a6f;
  --charcoal: #282925;
  --mist: #c8d0c0;
  --line: rgba(22, 60, 45, 0.16);
  --shadow: 0 22px 55px rgba(12, 37, 28, 0.18);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0.24;
  pointer-events: none;
  background-image: radial-gradient(rgba(12, 37, 28, 0.15) 0.6px, transparent 0.8px);
  background-size: 9px 9px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cream); color: var(--forest-deep); padding: 0.65rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 237, 223, 0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.header-inner { width: min(1180px, calc(100% - 2.5rem)); min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--forest-deep); text-decoration: none; letter-spacing: 0.04em; font-family: var(--serif); font-size: 1.35rem; font-weight: 800; }
.brand-mark { width: 2rem; height: 2rem; display: inline-grid; place-items: center; position: relative; border: 2px solid var(--copper); border-radius: 50%; color: var(--copper); font: 800 1rem/1 var(--sans); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; width: 0.32rem; height: 0.32rem; background: var(--copper); border-radius: 50%; }
.brand-mark::before { left: -0.2rem; }
.brand-mark::after { right: -0.2rem; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--forest); padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a { position: relative; padding: 0.55rem 0.85rem; color: var(--forest); text-decoration: none; font-size: 0.92rem; font-weight: 700; }
.site-nav a::after { position: absolute; bottom: 0.2rem; left: 0.85rem; right: 0.85rem; height: 2px; content: ''; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }

main { overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; color: var(--copper); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 800; }
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--forest-deep); font-family: var(--serif); line-height: 1.06; }
h1 { max-width: 13ch; margin-bottom: 1.2rem; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.055em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 0.55rem; font-size: 1.45rem; }
p { max-width: 65ch; }
.lede { color: #425148; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--forest); font-weight: 800; text-decoration: none; }
.text-link::after { content: '→'; color: var(--copper); font-size: 1.2em; transition: transform 180ms ease; }
.text-link:hover::after { transform: translateX(4px); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: 0.7rem 1.05rem; border: 1px solid var(--forest); border-radius: 0; color: var(--cream); background: var(--forest); box-shadow: 4px 4px 0 var(--copper); font-size: 0.9rem; font-weight: 800; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--copper); }
.button--outline { color: var(--forest); background: transparent; box-shadow: none; }
.button--outline:hover { background: rgba(22, 60, 45, 0.08); }

.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 4.5rem; background: linear-gradient(115deg, var(--cream) 0 55%, #e8dfcf 55% 100%); }
.hero::after { position: absolute; right: -5vw; top: 8%; width: 38vw; aspect-ratio: 1; content: ''; border: 1px solid rgba(185, 107, 71, 0.35); border-radius: 50%; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); }
.hero-copy { padding-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: 0.7rem; margin-top: 2.2rem; color: var(--forest); font-size: 0.82rem; font-weight: 700; }
.hero-note::before { width: 2.6rem; height: 2.6rem; content: '✦'; display: grid; place-items: center; color: var(--cream); background: var(--copper); border-radius: 50%; font-size: 1rem; }
.hero-art { position: relative; isolation: isolate; padding: 1rem 0 2.2rem 1.2rem; }
.hero-art::before { position: absolute; left: 0; bottom: 0; width: 82%; height: 88%; z-index: -1; content: ''; background: var(--forest); }
.hero-art::after { position: absolute; right: 2rem; bottom: 1rem; z-index: -1; width: 43%; height: 58%; content: ''; border: 1px solid var(--copper); transform: translate(1rem, 1rem); }
.hero-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--deep { color: var(--cream); background: var(--forest-deep); }
.section--deep h2, .section--deep h3 { color: var(--cream); }
.section--deep .lede { color: var(--mist); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-heading > p { margin: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.collection-card { display: flex; flex-direction: column; min-height: 100%; color: var(--charcoal); background: #faf6ec; border: 1px solid rgba(22, 60, 45, 0.12); box-shadow: 0 13px 28px rgba(12, 37, 28, 0.09); transition: transform 200ms ease, box-shadow 200ms ease; overflow: hidden; }
.collection-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.collection-card__art { position: relative; overflow: hidden; background: var(--forest); }
.collection-card__art::after { position: absolute; inset: 0; content: ''; opacity: 0.14; background: linear-gradient(130deg, transparent 0 48%, var(--cream) 49% 51%, transparent 52%); mix-blend-mode: screen; }
.collection-card__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 450ms ease; }
.collection-card:hover .collection-card__art img { transform: scale(1.04); }
.collection-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.3rem 1.25rem 1.5rem; }
.card-kicker { margin-bottom: 0.5rem; color: var(--copper); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.69rem; font-weight: 800; }
.collection-card p { color: #5b635d; font-size: 0.93rem; }
.collection-card .text-link { margin-top: auto; padding-top: 1rem; }

.rail { border-top: 1px solid rgba(244, 237, 223, 0.3); border-bottom: 1px solid rgba(244, 237, 223, 0.3); }
.rail-inner { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; color: var(--cream); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 800; white-space: nowrap; overflow: auto; }
.feature-split { display: grid; grid-template-columns: 0.86fr 1.14fr; align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.feature-split__stamp { width: min(100%, 330px); aspect-ratio: 1; display: grid; place-items: center; padding: 2rem; color: var(--cream); border: 1px solid rgba(244, 237, 223, 0.45); border-radius: 50%; text-align: center; }
.feature-split__stamp span { display: block; color: var(--copper-light); letter-spacing: 0.17em; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.feature-split__stamp strong { display: block; margin: 0.6rem 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.7rem); line-height: 0.9; }

.page-intro { padding: clamp(3.7rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); color: var(--cream); background: var(--forest-deep); }
.page-intro h1 { color: var(--cream); }
.page-intro .lede { color: var(--mist); }
.page-intro--copper { color: var(--charcoal); background: linear-gradient(120deg, var(--copper) 0%, var(--copper-light) 100%); }
.page-intro--copper h1 { color: var(--forest-deep); }
.page-intro--copper .lede { color: #3e302a; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.story-figure { position: sticky; top: 6.7rem; }
.story-figure img { aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 1rem 1rem 0 var(--cream-deep); }
.story-copy > * + * { margin-top: 1.4rem; }
.story-copy h2 { margin-top: 3rem; }
.story-copy h2:first-child { margin-top: 0; }
.note { padding: 1.4rem 1.5rem; color: var(--forest-deep); border-left: 4px solid var(--copper); background: rgba(185, 107, 71, 0.11); font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }

.collections-list { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.collection-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.95fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.collection-feature:nth-child(even) .collection-feature__image { order: 2; }
.collection-feature__image { position: relative; }
.collection-feature__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.collection-feature__image::before { position: absolute; z-index: -1; content: ''; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--copper); }
.collection-feature__index { display: inline-block; margin-bottom: 0.7rem; color: var(--copper); font-weight: 800; letter-spacing: 0.12em; font-size: 0.76rem; }
.collection-feature p { color: #536158; }

.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 7vw, 8rem); }
.contact-aside { padding: 2rem; color: var(--cream); background: var(--forest); }
.contact-aside h2 { color: var(--cream); }
.contact-aside a { color: var(--cream); font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.8rem); overflow-wrap: anywhere; }
.contact-aside small { display: block; margin-top: 2rem; color: var(--mist); }
.contact-form { padding: clamp(1.2rem, 4vw, 2.8rem); background: #faf6ec; border: 1px solid var(--line); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { color: var(--forest); font-size: 0.83rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(22, 60, 45, 0.33); border-radius: 0; padding: 0.82rem 0.9rem; color: var(--charcoal); background: var(--cream); }
.field textarea { min-height: 9rem; resize: vertical; }
.form-note, .form-status { margin: 1rem 0 0; color: #5d6860; font-size: 0.83rem; }
.form-status { min-height: 1.4em; color: var(--forest); font-weight: 700; }

.policy { max-width: 760px; }
.policy h2 { margin-top: 2.9rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.policy p, .policy li { color: #4d5850; }
.policy ul { padding-left: 1.25rem; }
.policy li + li { margin-top: 0.5rem; }

.site-footer { color: var(--cream); background: var(--charcoal); }
.footer-main { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand { color: var(--cream); }
.footer-brand .brand-mark { color: var(--copper-light); border-color: var(--copper-light); }
.footer-brand .brand-mark::before, .footer-brand .brand-mark::after { background: var(--copper-light); }
.footer-main p { color: #c7c6bd; font-size: 0.92rem; }
.footer-title { margin-bottom: 1rem; color: var(--copper-light); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; font-weight: 800; }
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--copper-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid rgba(244, 237, 223, 0.18); color: #bfbfb8; font-size: 0.76rem; }

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

@media (max-width: 820px) {
  .header-inner, .wrap { width: min(100% - 2rem, 1180px); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; gap: 0; max-height: 0; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); transition: max-height 220ms ease; }
  .site-nav.is-open { max-height: 22rem; }
  .site-nav a { padding: 0.95rem 1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current='page'] { color: var(--cream); background: var(--forest); }
  .hero { padding-top: 3.7rem; }
  .hero-grid, .feature-split, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; }
  .story-figure { position: static; max-width: 570px; }
  .story-figure img { aspect-ratio: 4 / 3; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.85rem, 16vw, 4.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; gap: 0.5rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-feature, .collection-feature:nth-child(even) { grid-template-columns: 1fr; }
  .collection-feature:nth-child(even) .collection-feature__image { order: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > :first-child { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .rail-inner { justify-content: flex-start; }
}

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