/* ============================================================
   SIREH — editorial public-site redesign
   Inspired by conservation archives, museum publications and
   digital-heritage interfaces. Admin styles remain in style.css.
   ============================================================ */

:root {
  --ink: #181914;
  --ink-soft: #5d6056;
  --paper: #f4f1e9;
  --paper-deep: #e7e1d5;
  --white: #fffef9;
  --line: #b9b1a2;
  --line-soft: rgba(24, 25, 20, 0.16);
  --primary: #173f42;
  --primary-dark: #102f32;
  --primary-deep: #091d1f;
  --accent: #a6854f;
  --accent-dark: #765e36;
  --accent-soft: #e8deca;
  --gold: #c3a46d;
  --radius: 0;
  --shadow: none;
  --shadow-lift: none;
  --header-height: 88px;
  --font-display: Georgia, "Times New Roman", "Noto Sans Armenian", serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.72;
  letter-spacing: -0.005em;
}

body.nav-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
  background-image: radial-gradient(rgba(24, 25, 20, 0.12) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
}

::selection { background: var(--accent); color: var(--white); }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 { font-size: clamp(3.4rem, 7vw, 7.2rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2.5rem, 4.7vw, 5.2rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.08; }
h4 { font-size: 1.15rem; line-height: 1.2; }

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.container {
  width: 100%;
  max-width: 1440px;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}

.narrow { max-width: 900px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

/* Header ---------------------------------------------------- */

main { padding-top: var(--header-height); }
.page-public-index main { padding-top: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(244, 241, 233, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.page-public-index .site-header:not(.is-scrolled) {
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 12, 10, 0.7), transparent);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
}

.header-inner {
  height: 100%;
  max-width: none;
  padding: 0 clamp(1.2rem, 3vw, 3.5rem);
  gap: 2rem;
}

.brand { gap: 0.8rem; }
.brand-logo { width: 48px; height: 48px; transition: filter 200ms ease; }
.page-public-index .site-header:not(.is-scrolled) .brand-logo { filter: brightness(0) invert(1); }

.brand-name {
  color: currentColor;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-tagline {
  max-width: 22rem;
  color: currentColor;
  opacity: 0.65;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.site-nav {
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 1.35rem;
}

.site-nav > a {
  position: relative;
  padding: 0.4rem 0;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav > a:hover,
.site-nav > a.active { color: currentColor; background: transparent; }
.site-nav > a:hover::after,
.site-nav > a.active::after { transform: scaleX(1); transform-origin: left; }

.site-nav > a.nav-donate,
.nav-donate {
  margin-left: 0.3rem;
  padding: 0.72rem 1rem;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
}

.site-nav > a.nav-donate::after { display: none; }
.site-nav > a.nav-donate:hover { color: var(--ink); background: var(--paper); }
.page-public-index .site-header:not(.is-scrolled) .site-nav > a.nav-donate:hover {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.lang-switch {
  display: flex;
  gap: 0.42rem;
  padding-left: 1.1rem;
  border-left: 1px solid currentColor;
}

.lang-switch a {
  padding: 0;
  border-radius: 0;
  color: currentColor;
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.48;
}

.lang-switch a.active,
.lang-switch a:hover { color: currentColor; background: transparent; opacity: 1; }

.nav-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-size: 1.1rem;
}

/* Hero ------------------------------------------------------ */

.hero {
  min-height: min(940px, 100svh);
  padding: calc(var(--header-height) + 5rem) 0 3rem;
  color: var(--white);
  background: var(--primary-deep);
}

.hero--fallback {
  background:
    linear-gradient(90deg, rgba(5, 14, 15, 0.9) 0%, rgba(5, 14, 15, 0.5) 47%, rgba(5, 14, 15, 0.08) 78%),
    url("../img/heritage-hero.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 12.5vw 12.5vw;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero::after {
  background: linear-gradient(0deg, rgba(6, 13, 13, 0.72), transparent 48%);
}

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(min(940px, 100svh) - var(--header-height) - 8rem);
}

.hero-edition {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-copy {
  max-width: 860px;
  padding-block: clamp(4rem, 10vh, 8rem);
}

.hero .kicker { color: var(--gold); }
.hero h1 {
  max-width: 850px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(4.3rem, 8.8vw, 9.2rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 690px;
  padding-left: clamp(0rem, 8vw, 7.5rem);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.86;
}

.hero-actions {
  padding-left: clamp(0rem, 8vw, 7.5rem);
  margin-top: 2rem;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 5vw, 5rem);
  bottom: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.hero-scroll:hover { color: var(--ink); background: var(--white); }

.slideshow-toggle {
  right: auto;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 5rem);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 20, 20, 0.45);
}

/* Sections and editorial hierarchy ------------------------- */

.section { padding: clamp(5rem, 9vw, 9rem) 0; }

.section-alt {
  background: var(--paper-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-dark {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .kicker { color: var(--gold); }

.grid-2 { gap: clamp(3rem, 8vw, 9rem); }
.grid-detail { grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr); gap: clamp(3rem, 7vw, 7rem); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 5rem); }

.section-head-editorial {
  display: grid;
  grid-template-columns: minmax(3rem, 0.2fr) minmax(0, 1fr) auto;
  align-items: end;
  padding-top: 1.2rem;
  border-top: 1px solid currentColor;
}

.section-head-editorial h2 { margin: 0; }
.section-index {
  align-self: start;
  padding-top: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-dark .section-index { color: var(--gold); }

.section-intro { background: var(--white); }
.home-intro-grid { grid-template-columns: 1.4fr 0.6fr; align-items: end; }
.home-intro-copy { max-width: 850px; }
.home-intro-copy h2 { max-width: 800px; }
.home-intro-copy > p:not(:last-child) { max-width: 64ch; font-size: 1.08rem; }

.stats {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.stat:last-child { border-right: 0; }
.stat-number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.08em;
}
.stat-label { color: var(--ink-soft); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }

.fields-grid {
  counter-reset: fields;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.field-card {
  counter-increment: fields;
  position: relative;
  min-height: 320px;
  padding: 5rem 1.5rem 1.5rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: color 220ms ease, background 220ms ease;
}

.field-card::before {
  content: "0" counter(fields);
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  color: var(--accent-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.field-card::after {
  content: "↗";
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.field-card:hover { color: var(--white); background: var(--primary); }
.field-card:hover::before { color: var(--gold); }
.field-card:hover::after { opacity: 1; transform: none; }
.field-card h3 { color: currentColor; font-size: clamp(1.5rem, 2vw, 2.25rem); }
.field-card p { color: currentColor; font-size: 0.9rem; opacity: 0.72; }

/* Buttons and links ---------------------------------------- */

.btn {
  position: relative;
  padding: 0.88rem 2.8rem 0.88rem 1.15rem;
  border-radius: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn::after {
  content: "↗";
  position: absolute;
  right: 1rem;
  font-size: 0.95rem;
  line-height: 1;
}

button.btn::after { content: "→"; }
.btn-primary { color: var(--white); background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { color: var(--white); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { color: var(--white); background: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; border-color: currentColor; }
.btn-ghost:hover { color: var(--white); background: var(--ink); }
.hero .btn-ghost:hover,
.section-dark .btn-ghost:hover { color: var(--ink); background: var(--white); }
.btn-small { padding: 0.55rem 2.3rem 0.55rem 0.8rem; font-size: 0.58rem; }
.btn-danger { color: var(--white); background: var(--danger); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after { content: "→"; font-size: 1rem; transition: transform 180ms ease; }
.text-link:hover { text-decoration: none; }
.text-link:hover::after { transform: translateX(0.35rem); }

/* Cards ----------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.card {
  grid-column: span 4;
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
  overflow: hidden;
  transition: background 220ms ease;
}

.card:hover { transform: none; box-shadow: none; background: var(--white); }
.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  filter: saturate(0.7) contrast(1.03);
  transition: filter 400ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}

.card:hover .card-image { filter: saturate(1) contrast(1); transform: scale(1.025); }
.card-image-placeholder {
  background:
    linear-gradient(135deg, transparent 48%, rgba(195, 164, 109, 0.45) 49%, transparent 50%),
    radial-gradient(circle at 72% 22%, rgba(195, 164, 109, 0.4), transparent 24%),
    linear-gradient(140deg, #0b292c, #265659);
  background-size: 42px 42px, auto, auto;
}

.card-body { position: relative; padding: 1.5rem 1.5rem 2rem; }
.card-body::after {
  content: "↗";
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translate(-4px, 4px);
}
.card:hover .card-body::after { opacity: 1; transform: none; }
.card-body h3 { max-width: 92%; font-size: clamp(1.45rem, 2.1vw, 2.2rem); }
.card-body p { max-width: 44ch; margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.88rem; }
.card-meta { color: var(--accent-dark); font-size: 0.62rem; letter-spacing: 0.12em; margin-bottom: 0.75rem; }

.cards-featured .card:first-child { grid-column: span 8; grid-row: span 2; }
.cards-featured .card:first-child .card-image { aspect-ratio: 16 / 9; }
.cards-featured .card:not(:first-child) { grid-column: span 4; }
.cards-featured .card:not(:first-child) .card-image { aspect-ratio: 16 / 8; }

.cards-news .card { background: var(--paper-deep); }

.status-badge,
.badge,
.tag,
a.tag,
.chip {
  border-radius: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge { padding: 0.2rem 0.5rem; }
.status-in-progress { color: var(--primary); background: transparent; border-color: var(--primary); }
.status-registration-open { color: #456044; background: transparent; border-color: #456044; }
.status-completed { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.badge-accent { color: var(--accent-dark); background: transparent; }
.tag, a.tag { padding: 0.22rem 0.55rem; }

/* Page headers and long-form content ------------------------ */

.page-head {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.page-head::after {
  content: "SIREH";
  position: absolute;
  right: -0.04em;
  bottom: -0.23em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 24rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(24, 25, 20, 0.07);
  pointer-events: none;
}

.page-head .container { position: relative; z-index: 1; }
.page-head h1 { max-width: 1100px; }
.page-intro {
  max-width: 850px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1.42;
}

.breadcrumb {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.breadcrumb a { color: inherit; }
.page-meta { gap: 0.55rem; }

.prose { max-width: 76ch; }
.prose > p { margin-bottom: 1.35em; }
.prose h2 {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.lead {
  max-width: 850px;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.45;
}

.rounded-image,
.detail-cover { border-radius: 0; box-shadow: none; }
.detail-cover { margin-bottom: clamp(3rem, 6vw, 6rem); }
.ws-hero-image { width: 100%; max-height: 680px; object-fit: cover; }

.panel {
  padding: 1.6rem;
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  background: var(--paper-deep);
  box-shadow: none;
}

.panel h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.contact-panel { position: relative; }

.info-list dt {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--accent-dark);
  font-size: 0.59rem;
  letter-spacing: 0.13em;
}
.info-list dt:first-child { border-top: 0; }
.info-list dd { margin-bottom: 0.9rem; }

/* Directory, filters and navigation ------------------------ */

.people-nav { margin-top: 2.3rem; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.people-nav a {
  padding: 0.7rem 1rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.people-nav a:hover,
.people-nav a.active { color: var(--white); background: var(--primary); border-color: var(--primary); }

.archive-layout { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.filters-panel { top: calc(var(--header-height) + 2rem); }
.filters-box { border: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.filters-box summary { padding: 1rem; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.filters-body { padding: 0 1rem 1rem; }
.filter-group > .filter-label { color: var(--accent-dark); font-size: 0.58rem; letter-spacing: 0.13em; }
.filter-group select,
.filter-group input[type="search"] {
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.tag-cloud { gap: 0.3rem; }
.tag-cloud a { border-radius: 0; color: var(--ink-soft); background: transparent; font-size: 0.68rem; }
.tag-cloud a:hover,
.tag-cloud a.active { color: var(--white); border-color: var(--primary); background: var(--primary); }

.results-bar { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.results-count { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; }
.per-page-form label { font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; }
.per-page-form select { border-radius: 0; font-size: 0.68rem; }
.view-toggle { border-radius: 0; background: transparent; }
.view-toggle button { border-radius: 0; font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; }
.view-toggle button.active { color: var(--white); background: var(--primary); }

.org-list { gap: 0; border-top: 1px solid var(--line); }
.org-row {
  padding: 1.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: padding 180ms ease, background 180ms ease;
}
.org-row:hover { padding-inline: 1rem; transform: none; background: var(--white); box-shadow: none; }
.assoc-logo { border-radius: 0; background: var(--white); }
.assoc-logo-placeholder { background: var(--primary); }
.assoc-detail-head { gap: 1.8rem; }
.assoc-logo-lg { width: 110px; height: 110px; }

.pagination { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pagination a { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.empty-state { border-radius: 0; background: var(--paper-deep); }

/* People, gallery and materials ----------------------------- */

.people-group { margin-top: clamp(5rem, 9vw, 9rem); }
.people-group h2 { padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: clamp(2.6rem, 5vw, 5rem); }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.person-card { border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
.person-photo {
  filter: saturate(1) contrast(1);
  transition: filter 300ms ease, transform 400ms cubic-bezier(.2,.7,.2,1);
}
.person-card:hover .person-photo {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}
.person-photo-placeholder { border-radius: 0; background: var(--primary); }
.person-body { padding: 1.3rem 1.3rem 1.7rem; }
.person-body h3 { font-size: 1.65rem; }
.person-role { color: var(--accent-dark); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }

.gallery-grid { grid-template-columns: repeat(12, 1fr); gap: 0.4rem; }
.gallery-thumb { grid-column: span 4; border-radius: 0; }
.gallery-thumb:nth-child(5n + 1) { grid-column: span 8; }

.materials-list { gap: 0; border-top: 1px solid var(--line); }
.material-item { padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.material-kind { border-radius: 0; background: var(--primary); }

/* Home hub and calls to action ------------------------------ */

.home-hub-section { overflow: hidden; }
.home-hub-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.7) 50%, transparent 50.2%),
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 5rem;
}
.home-hub-section .container { position: relative; z-index: 1; }
.home-hub-section .grid-2 > div { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.28); }

.logo-strip { gap: 0; border-top: 1px solid rgba(255,255,255,.28); }
.logo-strip a {
  flex: 1 1 220px;
  padding: 0.75rem;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.section-dark .logo-strip a { border-color: rgba(255,255,255,.28); }
.logo-strip a:hover { color: var(--ink); background: var(--white); }
.logo-strip .assoc-logo { border-radius: 0; }

.searchbar { max-width: none; gap: 0; margin-top: 2rem; }
.searchbar input {
  padding: 0.85rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
}
.section-dark .searchbar input { border-color: rgba(255,255,255,.48); color: var(--white); }
.section-dark .searchbar input::placeholder { color: rgba(255,255,255,.55); }

.cta-box {
  position: relative;
  padding: clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.cta-box::after {
  content: "↗";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  color: var(--accent-soft);
  font-family: var(--font-sans);
  font-size: clamp(10rem, 24vw, 24rem);
  line-height: 1;
  z-index: -1;
}
.cta-box p { max-width: 680px; margin-left: 0; }

.donate-band { text-align: left; }
.donate-band h2 { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; }
.donate-band p { max-width: 760px; margin-left: 0; }
.donate-code { border-radius: 0; background: var(--paper); }

/* Footer ---------------------------------------------------- */

.site-footer {
  padding: clamp(5rem, 9vw, 9rem) 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: #11120f;
  border-top: 0;
}

.footer-inner {
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-brand { align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand .brand-name { color: var(--white); font-size: 2rem; }
.site-footer h3 {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-nav,
.footer-social { gap: 0; }
.footer-nav a,
.footer-social a {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.footer-bottom { margin-top: 5rem; padding-top: 1.2rem; border-top-color: rgba(255,255,255,.25); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Motion ---------------------------------------------------- */

.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}
.reveal-ready.is-visible { opacity: 1; transform: none; }
.card.reveal-ready:nth-child(2),
.field-card.reveal-ready:nth-child(2),
.person-card.reveal-ready:nth-child(2) { transition-delay: 80ms; }
.card.reveal-ready:nth-child(3),
.field-card.reveal-ready:nth-child(3),
.person-card.reveal-ready:nth-child(3) { transition-delay: 160ms; }
.field-card.reveal-ready:nth-child(4) { transition-delay: 240ms; }

/* Responsive ------------------------------------------------ */

@media (max-width: 1220px) {
  .brand-tagline { display: none; }
  .site-nav { gap: 0.85rem; }
  .site-nav > a { font-size: 0.61rem; }
}

@media (max-width: 1020px) {
  :root { --header-height: 74px; }
  .brand-logo { width: 42px; height: 42px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-height) + 2rem) clamp(1.5rem, 8vw, 5rem) 3rem;
    overflow-y: auto;
    color: var(--white);
    background: rgba(17, 18, 15, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { color: var(--white); background: #11120f; border-bottom-color: rgba(255,255,255,.2); }
  .nav-open .brand-logo { filter: brightness(0) invert(1); }
  .site-nav > a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none;
  }
  .site-nav > a::after { display: none; }
  .site-nav > a.nav-donate { margin: 1rem 0 0; padding: 0.8rem 1rem; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
  .lang-switch { margin-top: 1.3rem; padding-left: 0; border-left: 0; }
  .lang-switch a { font-size: 0.72rem; }
  .hero { min-height: 850px; }
  .hero-layout { min-height: calc(850px - var(--header-height) - 8rem); }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .field-card { min-height: 280px; }
  .cards-featured .card:first-child { grid-column: span 12; grid-row: auto; }
  .cards-featured .card:not(:first-child) { grid-column: span 6; }
  .card { grid-column: span 6; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .container { padding-inline: 1.25rem; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 4rem); }
  .hero { min-height: 760px; padding-top: calc(var(--header-height) + 3rem); background-position: 63% center; }
  .hero-layout { min-height: calc(760px - var(--header-height) - 6rem); }
  .hero-edition { font-size: 0.56rem; }
  .hero-copy { padding-block: 3rem; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.4rem); line-height: 0.85; }
  .hero-subtitle,
  .hero-actions { padding-left: 0; }
  .hero-subtitle { max-width: 90%; font-size: 0.95rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 260px; }
  .hero-actions .btn { text-align: left; }
  .hero-scroll { right: 1.25rem; }
  .section { padding: 5rem 0; }
  .grid-2,
  .grid-detail,
  .home-intro-grid,
  .archive-layout { grid-template-columns: 1fr; gap: 3rem; }
  .section-head-editorial { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .section-head-editorial > .text-link { grid-column: 2; margin-top: 1rem; }
  .stats { max-width: 100%; }
  .fields-grid { grid-template-columns: 1fr; }
  .field-card { min-height: 230px; }
  .card,
  .cards-featured .card:first-child,
  .cards-featured .card:not(:first-child) { grid-column: span 12; }
  .cards-featured .card:not(:first-child) .card-image,
  .cards-featured .card:first-child .card-image { aspect-ratio: 4 / 3; }
  .page-head { padding-top: 5rem; }
  .page-head::after { display: none; }
  .people-nav { flex-direction: column; }
  .people-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .filters-panel { position: static; }
  .assoc-detail-head { align-items: flex-start; flex-direction: column; }
  .assoc-logo-lg { width: 84px; height: 84px; }
  .gallery-thumb,
  .gallery-thumb:nth-child(5n + 1) { grid-column: span 6; }
  .material-item { align-items: flex-start; }
  .material-actions { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .brand-name { font-size: 1.1rem; }
  .brand-logo { width: 38px; height: 38px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .stat { min-height: 150px; padding-inline: 0.8rem; }
  .gallery-thumb,
  .gallery-thumb:nth-child(5n + 1) { grid-column: span 12; }
  .cta-box { padding: 2rem 1.4rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
  .card-image,
  .person-photo,
  [data-association-results-content],
  .site-header { transition: none; }
  .person-card:hover .person-photo { transform: none; }
}
