/* ==========================================================================
   Fondazione Artistica Federica Cavenati – ETS
   Design system & styles

   Aesthetic: "Dark museum" — warm charcoal ground, bone text, oxblood accent,
   high-contrast Didone (Bodoni Moda) headings + humanist sans (Hanken Grotesk).
   Federica's paintings glow out of the darkness.

   TABLE OF CONTENTS
   1.  Tokens (color, type, spacing)
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Atmosphere (grain, rules, eyebrows)
   6.  Buttons & links
   7.  Header & navigation
   8.  Language toggle / bilingual visibility
   9.  Hero
   10. Sections & components (cards, gallery, figures)
   11. Forms (contact, support, newsletter)
   12. Footer
   13. Motion / reveal-on-scroll
   14. Responsive
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* Color */
  --ink:        #16140f;   /* page ground (warm near-black)        */
  --ink-2:      #1c1a13;   /* recessed panel                       */
  --ink-3:      #24211a;   /* raised surface / card                */
  --ink-4:      #2c2820;   /* hover surface                        */

  --bone:       #ece4d2;   /* primary text (warm bone)             */
  --bone-2:     rgba(236, 228, 210, 0.70);  /* secondary text      */
  --bone-3:     rgba(236, 228, 210, 0.46);  /* tertiary / captions */
  --bone-4:     rgba(236, 228, 210, 0.14);  /* hairlines           */
  --bone-5:     rgba(236, 228, 210, 0.06);  /* faint fills         */

  --oxblood:        #7a2a24;   /* the accent                       */
  --oxblood-bright: #b04a3c;   /* link / hover on dark             */
  --oxblood-deep:   #5d1f1b;
  --brass:          #b79360;   /* rare metallic hairline           */

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.72rem;
  --fs-body:    clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  --fs-lead:    clamp(1.18rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-h4:      clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --fs-h3:      clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  --fs-h2:      clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-h1:      clamp(2.7rem, 1.9rem + 4vw, 5.6rem);
  --fs-display: clamp(3.4rem, 2rem + 6.5vw, 8rem);

  /* Spacing */
  --space-section: clamp(5rem, 3.5rem + 7vw, 10rem);
  --gutter:        clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --maxw:          1280px;
  --maxw-text:     64ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 0.9s;

  --radius: 2px;
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 350;
  line-height: 1.7;
  color: var(--bone);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--oxblood-bright);
  outline-offset: 3px;
}

/* selection */
::selection { background: var(--oxblood); color: var(--bone); }

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { max-width: var(--maxw-text); }
strong { font-weight: 600; color: var(--bone); }

.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--bone);
  font-weight: 350;
}
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.muted { color: var(--bone-2); }
.faint { color: var(--bone-3); }

/* drop / pull quote */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 22ch;
}

/* 4. LAYOUT PRIMITIVES ===================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

.divider {
  border: 0;
  border-top: 1px solid var(--bone-4);
  margin: 0;
}

.grid { display: grid; gap: var(--gutter); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.split--text-first { }
.stack > * + * { margin-top: 1.2em; }
.measure { max-width: var(--maxw-text); }

/* 5. ATMOSPHERE ============================================================ */
/* Film-grain overlay — subtle, fixed, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oxblood-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

/* small caps label (no rule) */
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.accent-rule {
  width: 64px; height: 2px;
  background: var(--oxblood);
  border: 0;
  margin: 1.5rem 0;
}
.accent-rule--center { margin-inline: auto; }

/* 6. BUTTONS & LINKS ======================================================= */
a { color: var(--oxblood-bright); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--bone); }

.prose a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--oxblood);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-color: var(--oxblood-bright); }

.btn {
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--btn-fg);
  padding: 1.05em 2em;
  border: 1px solid var(--bone-4);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--oxblood);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bone); border-color: var(--oxblood); }
.btn:hover::before { transform: translateY(0); }

.btn--solid {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--bone);
}
.btn--solid::before { background: var(--oxblood-deep); }
.btn--solid:hover { border-color: var(--oxblood-deep); }

.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* inline arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--bone-4);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.arrow-link:hover { color: var(--oxblood-bright); border-color: var(--oxblood); }
.arrow-link .arrow { transition: transform 0.4s var(--ease); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* 7. HEADER & NAV ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background-color 0.5s var(--ease), padding 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 0.85rem;
  background-color: rgba(18, 16, 11, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--bone-4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Wordmark */
.brand { line-height: 1; }
.brand a { color: var(--bone); display: flex; flex-direction: column; gap: 0.34em; }
.brand a:hover { color: var(--bone); }
.brand .brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand .brand-name em { font-style: italic; color: var(--oxblood-bright); }
.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 0.5rem + 1.6vw, 2.4rem); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 0.5rem + 1.6vw, 2.4rem);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-2);
  position: relative;
  padding-block: 0.4rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--oxblood-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* 8. LANGUAGE TOGGLE & BILINGUAL VISIBILITY ================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bone-4);
  border-radius: 99px;
  overflow: hidden;
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.45em 0.85em;
  background: transparent;
  border: 0;
  color: var(--bone-3);
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--oxblood);
  color: var(--bone);
}

/* Show/hide language content */
[data-lang="it"] .en { display: none !important; }
[data-lang="en"] .it { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  width: 44px; height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* 9. HERO ================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 24s ease-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}
/* layered scrim: darken + warm vignette so text reads and art glows.
   The 90deg layer anchors a darker wash on the left where the text sits,
   fading to clear on the right so the painting still glows. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,16,11,0.50) 0%, rgba(18,16,11,0.14) 26%, rgba(18,16,11,0.55) 66%, rgba(18,16,11,0.98) 100%),
    linear-gradient(90deg, rgba(18,16,11,0.88) 0%, rgba(18,16,11,0.55) 32%, rgba(18,16,11,0.12) 64%, rgba(18,16,11,0) 84%),
    radial-gradient(120% 90% at 78% 24%, transparent 28%, rgba(18,16,11,0.55) 100%);
}
.hero__inner {
  width: 100%;
  padding-bottom: clamp(4rem, 2rem + 7vw, 9rem);
  padding-top: 9rem;
}
.hero__content { max-width: 56rem; }
.hero h1 { margin-top: 0.5rem; }
.hero .lead { margin-top: 1.8rem; max-width: 44ch; color: var(--bone); }
/* readability for text set over artwork */
.hero .eyebrow,
.hero h1,
.hero .lead { text-shadow: 0 1px 28px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4); }
.hero__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* caption for hero artwork, bottom-corner wall label */
.hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 1rem + 1vw, 2.4rem);
  z-index: 1;
  text-align: right;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--bone-3);
  max-width: 16rem;
}
.hero__credit .serif-italic { display: block; color: var(--bone-2); font-size: 0.82rem; }

/* scroll-down cue — small elegant chevron, shown only at the top of a page.
   Injected by main.js into the hero / media page-intro; hides on scroll. */
.scroll-arrow {
  position: fixed;
  left: 50%;
  bottom: clamp(1.4rem, 1rem + 1vw, 2.3rem);
  transform: translateX(-50%);
  z-index: 80;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  opacity: 0;
  animation: scrollArrowIn 0.9s var(--ease) 1s forwards;
  transition: opacity 0.5s var(--ease);
}
/* soft oxblood halo that breathes behind the chevron (the "shimmer") */
.scroll-arrow::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,74,60,0.40) 0%, rgba(176,74,60,0) 68%);
  opacity: 0;
  animation: scrollArrowHalo 2.6s ease-in-out infinite;
}
.scroll-arrow svg {
  position: relative;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.55));
  animation: scrollArrowBob 2.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.scroll-arrow:hover { color: var(--oxblood-bright); }
.scroll-arrow:hover svg { animation-play-state: paused; transform: translateY(4px); }
.scroll-arrow.is-hidden { opacity: 0 !important; pointer-events: none; }

@keyframes scrollArrowIn { to { opacity: 1; } }
@keyframes scrollArrowBob {
  0%, 100% { transform: translateY(-3px); opacity: 0.55; }
  50%      { transform: translateY(5px);  opacity: 1; }
}
@keyframes scrollArrowHalo {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { opacity: 1; animation: none; }
  .scroll-arrow svg, .scroll-arrow::before { animation: none; }
  .scroll-arrow::before { opacity: 0; }
}

/* 10. SECTIONS & COMPONENTS =============================================== */
.section-head { max-width: 56rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 + .lead { margin-top: 1.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* generic page intro (sub-hero on inner pages) */
.page-intro {
  position: relative;
  padding-top: clamp(8rem, 6rem + 6vw, 12rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.page-intro--media { min-height: 60svh; display: flex; align-items: flex-end; }
.page-intro__media { position: absolute; inset: 0; z-index: -2; }
.page-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.page-intro__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,16,11,0.74) 0%, rgba(18,16,11,0.42) 40%, rgba(18,16,11,0.98) 100%),
    linear-gradient(90deg, rgba(18,16,11,0.82) 0%, rgba(18,16,11,0.45) 42%, rgba(18,16,11,0.06) 74%, rgba(18,16,11,0) 90%);
}
.page-intro h1 { margin-top: 1.2rem; max-width: 18ch; }
.page-intro .lead { margin-top: 1.8rem; }
/* deeper scrim for light-bodied artwork (e.g. the Swan on Support) so the
   title reads over the bright areas while the art still glows upper-right */
.page-intro--deep .page-intro__media::after {
  background:
    linear-gradient(180deg, rgba(18,16,11,0.80) 0%, rgba(18,16,11,0.50) 38%, rgba(18,16,11,0.99) 100%),
    linear-gradient(90deg, rgba(18,16,11,0.90) 0%, rgba(18,16,11,0.58) 44%, rgba(18,16,11,0.12) 80%, rgba(18,16,11,0) 96%);
}
/* readability for text set over artwork */
.page-intro--media .eyebrow,
.page-intro--media h1,
.page-intro--media .lead { text-shadow: 0 1px 28px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4); }
.bleed__inner .eyebrow,
.bleed__inner h2,
.bleed__inner .lead { text-shadow: 0 1px 28px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.38); }

/* figure with wall-label caption */
.artfig { margin: 0; position: relative; }
.artfig img {
  width: 100%;
  border: 1px solid var(--bone-4);
  background: var(--ink-2);
}
.artfig figcaption {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--bone-3);
}
.artfig figcaption .t { font-family: var(--serif); font-style: italic; color: var(--bone-2); font-size: 0.95rem; }
.artfig figcaption .m { margin-left: auto; white-space: nowrap; }

/* framed media (with mat) */
.framed {
  position: relative;
  background: var(--ink-2);
  padding: clamp(0.6rem, 0.3rem + 1vw, 1.2rem);
  border: 1px solid var(--bone-4);
}
.framed img { display: block; width: 100%; }

/* mission / value cards */
.cards { display: grid; gap: 1px; background: var(--bone-4); border: 1px solid var(--bone-4); }
.card {
  background: var(--ink);
  padding: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
  transition: background-color 0.5s var(--ease);
}
.card:hover { background: var(--ink-2); }
.card .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--oxblood-bright);
  letter-spacing: 0.1em;
}
.card h3, .card h4 { margin-top: 1.2rem; }
.card p { margin-top: 0.9rem; color: var(--bone-2); font-size: 0.98rem; }

/* people / governance */
.people { display: grid; gap: 1px; background: var(--bone-4); border: 1px solid var(--bone-4); }
.person {
  background: var(--ink);
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
}
.person .role {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--oxblood-bright);
}
.person .name { font-family: var(--serif); font-size: 1.5rem; margin-top: 0.8rem; color: var(--bone); }
.person p { margin-top: 0.6rem; color: var(--bone-2); font-size: 0.92rem; }

/* In-memoriam band */
.memoriam {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--bone-4);
  border-bottom: 1px solid var(--bone-4);
  overflow: hidden;
}
.memoriam .years {
  font-family: var(--serif);
  font-style: italic;
  color: var(--oxblood-bright);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* Events list */
.events { border-top: 1px solid var(--bone-4); }
.event {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr auto;
  gap: clamp(1rem, 0.5rem + 2vw, 3rem);
  align-items: center;
  padding-block: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  border-bottom: 1px solid var(--bone-4);
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.event:hover { background: var(--ink-2); padding-left: 1rem; }
.event__date { color: var(--bone-2); }
.event__date .day { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem); color: var(--bone); display: block; }
.event__date .mo  { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--oxblood-bright); }
.event__body h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); }
.event__body .meta { margin-top: 0.5rem; font-size: 0.82rem; color: var(--bone-3); letter-spacing: 0.04em; display: flex; gap: 1rem; flex-wrap: wrap; }
.event__body p { margin-top: 0.8rem; color: var(--bone-2); font-size: 0.95rem; max-width: 60ch; }
.event__cta { white-space: nowrap; }
.tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--bone-4);
  padding: 0.35em 0.8em;
  border-radius: 99px;
}
.tag--past { color: var(--bone-3); }
.tag--soon { color: var(--bone); border-color: var(--oxblood); background: rgba(122,42,36,0.18); }

.events-switch { display: inline-flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.events-switch button {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--bone-4);
  color: var(--bone-3); padding: 0.7em 1.3em; border-radius: 99px; cursor: pointer;
  transition: all 0.35s var(--ease);
}
.events-switch button[aria-pressed="true"] { color: var(--bone); border-color: var(--oxblood); background: var(--oxblood); }
.event[hidden] { display: none; }

/* "To be announced" placeholder — blurred content with a crisp label on top */
.event--tba { position: relative; display: block; overflow: hidden; }
.event--tba:hover { background: transparent; padding-left: 0; }
.event--tba .tba-content {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr auto;
  gap: clamp(1rem, 0.5rem + 2vw, 3rem);
  align-items: center;
  filter: blur(7px);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}
.event--tba .tba-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}
.event--tba .tba-label .k {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  color: var(--bone);
}
.event--tba .tba-label .s {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* Cursor light — a very faint white glow that trails the cursor on dark areas.
   Screen blend means it lifts the dark background but barely touches the art. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  background: radial-gradient(circle closest-side,
              rgba(255,252,242,0.085) 0%,
              rgba(255,252,242,0.05) 26%,
              rgba(255,252,242,0.018) 50%,
              rgba(255,252,242,0) 72%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.cursor-glow.is-active { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* Legacy gallery — editorial masonry-ish columns */
.gallery {
  columns: 3;
  column-gap: var(--gutter);
}
.gallery .artfig {
  break-inside: avoid;
  margin-bottom: var(--gutter);
}
.gallery .artfig img {
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.96) brightness(0.97);
}
.gallery .artfig:hover img { transform: scale(1.015); filter: saturate(1.05) brightness(1.02); }

/* feature strip (full-bleed art band) */
.bleed {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bleed__media { position: absolute; inset: 0; z-index: -2; }
.bleed__media img { width: 100%; height: 100%; object-fit: cover; }
.bleed__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Overall darkening so bone text reads at EVERY width (the text spans
     near-full-width on narrow screens), with a touch more weight to the left.
     The light drawing reads as a dim, atmospheric backdrop. */
  background:
    linear-gradient(180deg, rgba(18,16,11,0.88) 0%, rgba(18,16,11,0.78) 45%, rgba(18,16,11,0.92) 100%),
    linear-gradient(90deg, rgba(18,16,11,0.40) 0%, rgba(18,16,11,0.12) 78%, rgba(18,16,11,0.04) 100%);
}
/* On wide screens the text is constrained to the left, so let the artwork
   breathe a little more on the right. */
@media (min-width: 1100px) {
  .bleed__media::after {
    background:
      linear-gradient(90deg, rgba(18,16,11,0.92) 0%, rgba(18,16,11,0.78) 38%, rgba(18,16,11,0.4) 66%, rgba(18,16,11,0.12) 100%),
      linear-gradient(180deg, rgba(18,16,11,0.3) 0%, rgba(18,16,11,0) 30%, rgba(18,16,11,0.45) 100%);
  }
}
.bleed__inner { max-width: 40rem; padding-block: 5rem; }

/* stat / fact row */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.fact { border-top: 1px solid var(--oxblood); padding-top: 1.4rem; }
.fact .n { font-family: var(--serif); font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem); line-height: 1; color: var(--bone); }
.fact .k { margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); }

/* 11. FORMS =============================================================== */
.field { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.field label {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-3);
}
.field input,
.field textarea,
.field select,
.newsletter input {
  background: var(--ink-2);
  border: 1px solid var(--bone-4);
  border-radius: var(--radius);
  padding: 0.95em 1.1em;
  color: var(--bone);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
  width: 100%;
  font-size: 1rem; /* >=16px prevents iOS auto-zoom on focus */
}
.field input::placeholder,
.field textarea::placeholder,
.newsletter input::placeholder { color: var(--bone-3); }
.field input:focus,
.field textarea:focus,
.field select:focus,
.newsletter input:focus {
  outline: none;
  border-color: var(--oxblood-bright);
  background: var(--ink-3);
}
.field textarea { resize: vertical; min-height: 8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-note { font-size: 0.8rem; color: var(--bone-3); margin-top: 0.5rem; }
.form-status { font-size: 0.9rem; color: var(--oxblood-bright); margin-top: 1rem; min-height: 1.2em; }

/* newsletter inline */
.newsletter { display: flex; gap: 0.8rem; flex-wrap: wrap; max-width: 36rem; }
.newsletter input { flex: 1 1 14rem; }

/* donation tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bone-4); border: 1px solid var(--bone-4); }
.tier {
  background: var(--ink);
  padding: 1.6rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}
.tier:hover, .tier[aria-pressed="true"] { background: var(--ink-3); }
.tier[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--oxblood); }
.tier .amt { font-family: var(--serif); font-size: 1.8rem; color: var(--bone); }
.tier .desc { font-size: 0.72rem; color: var(--bone-3); margin-top: 0.5rem; letter-spacing: 0.04em; }

.panel {
  background: var(--ink-2);
  border: 1px solid var(--bone-4);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}
.panel h3 { margin-bottom: 1rem; }

/* contact detail list */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding-block: 1.1rem; border-bottom: 1px solid var(--bone-4); }
.contact-list li:first-child { border-top: 1px solid var(--bone-4); }
.contact-list .k { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); display: block; margin-bottom: 0.4rem; }
.contact-list .v { color: var(--bone); font-size: 1.05rem; }
.contact-list .v a { color: var(--bone); }
.contact-list .v a:hover { color: var(--oxblood-bright); }

/* 12. FOOTER ============================================================== */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--bone-4);
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-bottom: 4rem;
}
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.6rem; color: var(--bone); line-height: 1.1; }
.footer-brand .brand-name em { font-style: italic; color: var(--oxblood-bright); }
.footer-brand p { margin-top: 1.4rem; color: var(--bone-2); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-3); margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--bone-2); font-size: 0.95rem; }
.footer-col a:hover { color: var(--oxblood-bright); }
.footer-col address { font-style: normal; color: var(--bone-2); font-size: 0.95rem; line-height: 1.9; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--bone-4);
  font-size: 0.76rem;
  color: var(--bone-3);
}
.footer-bottom a { color: var(--bone-3); }
.footer-bottom a:hover { color: var(--bone); }

/* 13. MOTION / REVEAL ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal="2"] { transition-delay: 0.12s; }
[data-reveal][data-reveal="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal="4"] { transition-delay: 0.36s; }

/* hero staggered load */
.hero [data-load] {
  opacity: 0;
  transform: translateY(34px);
  animation: heroIn 1.2s var(--ease) forwards;
}
.hero [data-load="1"] { animation-delay: 0.15s; }
.hero [data-load="2"] { animation-delay: 0.38s; }
.hero [data-load="3"] { animation-delay: 0.6s; }
.hero [data-load="4"] { animation-delay: 0.82s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero [data-load] { opacity: 1; transform: none; animation: none; }
}

/* 14. RESPONSIVE ========================================================== */
@media (max-width: 1024px) {
  .gallery { columns: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    /* Explicit top/right + height (not inset/bottom anchoring): the scrolled
       header's backdrop-filter makes it the containing block for fixed
       children, so bottom:0 would resolve against the ~60px header bar and
       collapse the drawer. An explicit viewport height renders identically
       in both containing blocks. */
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 380px);
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 5rem 2.5rem;
    background: var(--ink-2);
    border-left: 1px solid var(--bone-4);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 90;
  }
  .nav-links a { font-size: 1rem; }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 95; }
  .cols-2, .cols-3, .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { padding-block: 1.4rem; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto 1fr; }
  .event__cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gallery { columns: 1; }
  .cards, .people { grid-template-columns: 1fr; }
  .hero__credit { display: none; }
  .tiers { grid-template-columns: 1fr 1fr; }
}

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }
