:root {
  --paper: #f3f0e8;
  --paper-2: #e8e1d5;
  --paper-3: #ded4c5;
  --ink: #1b1a18;
  --muted: #6d6860;
  --line: rgba(27, 26, 24, .18);
  --accent: #7f2f29;
  --accent-dark: #55201c;
  --accent-soft: #caa796;
  --max: 1180px;
  --text: 760px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: white; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .6rem .8rem;
  background: var(--ink);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(14px);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.08;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
}
.brand span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  border: 0;
  padding: .5rem 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: .81rem;
  letter-spacing: .035em;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.42rem;
  height: 2px;
  background: var(--accent);
  transition: right .2s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }

main { overflow: hidden; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), var(--text)); margin: 0 auto; }

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .86;
}
.lead {
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  line-height: 1.35;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}
h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Home hero ---------- */
.hero {
  min-height: calc(88vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.home-hero {
  position: relative;
  background:
    linear-gradient(118deg, transparent 0 68%, rgba(127,47,41,.065) 68% 100%),
    var(--paper);
}
.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34vw;
  height: 13px;
  background: var(--accent);
}
.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.home-hero-copy { position: relative; z-index: 1; }
.home-hero h1 {
  font-size: clamp(4.2rem, 9.5vw, 8.4rem);
}
.home-hero .home-name {
  letter-spacing: -.025em;
  font-kerning: none;
  font-feature-settings: "kern" 0;
  text-rendering: geometricPrecision;
}
.home-hero .home-name span {
  letter-spacing: inherit;
}
.home-hero h1 span { display: block; }
.home-hero .lead { margin-top: .35rem; }
.hero-art-panel {
  min-height: 390px;
  display: grid;
  align-items: center;
  justify-items: end;
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2.8vw, 2rem);
}
.home-logo-frame {
  max-width: min(100%, 470px);
  width: 100%;
  margin: 0;
  transform: rotate(-1.2deg);
}
.home-logo-frame .page-image {
  width: 100%;
  height: auto;
}

/* ---------- Page heroes ---------- */
.page-hero {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(125deg, transparent 0 74%, rgba(127,47,41,.045) 74%),
    var(--paper);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8vw;
  width: 1px;
  height: 100%;
  background: var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, .58fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
}
.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3.7rem, 8vw, 7.25rem);
}
.page-hero .lead { max-width: 760px; }

.hero-image-frame {
  position: relative;
  width: 100%;
  padding: clamp(.65rem, 1.3vw, 1rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 18px 18px 0 var(--accent-soft);
}
.hero-image-frame::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 76px;
  height: 76px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  pointer-events: none;
}
.page-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 0;
  background: transparent;
}
.portrait-frame { max-width: 420px; justify-self: end; }
.portrait-frame .page-image { width: 100%; max-height: none; margin: 0 auto; }
.legal-frame, .history-frame, .social-frame { max-width: 490px; justify-self: end; }
.history-frame { transform: rotate(1deg); }
.legal-frame { transform: rotate(-1deg); }
.social-frame { max-width: 430px; }

.page-hero-grid-graphic { grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr); }
.hero-symbol {
  justify-self: end;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(6rem, 13vw, 11rem);
  line-height: 1;
}
.year-mark {
  justify-self: end;
  min-width: min(100%, 330px);
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}
.year-mark span { display: block; }
.year-mark span:last-child { text-align: right; color: var(--accent-soft); }
.year-mark i {
  display: block;
  margin: 1rem 0;
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: 1rem;
  font-style: normal;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.page-hero + .section { border-top: 0; }
.section-tint { background: var(--paper-2); }
.section-grid {
  display: grid;
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
}
.section-kicker {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.prose { max-width: var(--text); }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Home notices ---------- */
.notice {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.16);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.notice + .notice { margin-top: 1.2rem; }
.notice:hover {
  transform: translateX(6px);
  background: var(--paper-2);
  border-color: rgba(127,47,41,.35);
}
.notice::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 5px;
  background: var(--accent);
}
.notice time,
.meta {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.notice h3 { margin-bottom: .55rem; }
.notice p { margin: 0; max-width: 760px; }
.link-arrow {
  display: inline-flex;
  gap: .5rem;
  align-items: baseline;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after { content: "↗"; font-weight: 400; }
.link-arrow.internal::after { content: "→"; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.card {
  position: relative;
  min-height: 230px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.card::after {
  content: "↗";
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .2s ease, color .2s ease;
}
.card:hover {
  z-index: 2;
  color: var(--paper);
  background: var(--accent);
  transform: translateY(-4px);
}
.card:hover::after { color: var(--paper); transform: translate(3px,-3px); }
.card span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card:hover span, .card:hover p { color: rgba(255,255,255,.78); }
.card h3 { margin: 2.4rem 0 .6rem; }
.card p { margin: 0; max-width: 85%; color: var(--muted); }
.page-home .cards .card:nth-child(2) { background: rgba(127,47,41,.055); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 1.35rem 1rem 1.55rem 0;
  border-top: 1px solid var(--line);
  transition: background .18s ease, padding-left .18s ease;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 141px;
  top: 1.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.timeline li:hover { background: rgba(127,47,41,.045); padding-left: .65rem; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time {
  color: var(--accent);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.timeline p { margin: 0; max-width: 780px; }
.memberships {
  margin-top: 3rem;
  padding: 1.6rem;
  border-left: 5px solid var(--accent);
  background: var(--paper-2);
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Publications ---------- */
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication {
  display: grid;
  grid-template-columns: 125px 1fr auto;
  gap: 1.25rem 2rem;
  align-items: start;
  padding: 1.75rem 1rem 1.8rem 0;
  border-top: 1px solid var(--line);
  transition: background .18s ease, padding-left .18s ease;
}
.publication:hover { padding-left: 1rem; background: var(--paper-2); }
.publication:last-child { border-bottom: 1px solid var(--line); }
.publication-year { color: var(--accent); font-weight: 650; }
.publication h3 { margin: 0 0 .35rem; }
.publication p { margin: 0; color: var(--muted); }
.publication .open {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

/* ---------- EGV archive ---------- */
.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.archive-grid a {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  background: transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.archive-grid a:nth-child(4n+2),
.archive-grid a:nth-child(4n+3) { background: rgba(127,47,41,.04); }
.archive-grid a:hover {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-4px);
}
.archive-grid strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.archive-grid small { color: var(--muted); }
.archive-grid a:hover small { color: var(--paper-2); }

/* ---------- History stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 3rem 0;
}
.stat { padding: 1.6rem; background: var(--paper-2); }
.stat:nth-child(2) { background: var(--accent); color: var(--paper); }
.stat:nth-child(2) span { color: rgba(255,255,255,.75); }
.stat strong {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -.04em;
}
.stat span { color: var(--muted); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-block-single { grid-template-columns: minmax(0, 760px); }
.contact-email {
  display: inline-block;
  margin: .5rem 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.contact-email-compact {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  border-bottom-width: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.footer-title { font-family: var(--serif); font-size: 1.25rem; }
.footer-meta { margin-top: .25rem; color: rgba(255,255,255,.55); font-size: .78rem; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; font-size: .78rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent-soft); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 20px 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }

  .hero { min-height: auto; }
  .home-hero-layout, .page-hero-grid, .page-hero-grid-graphic { grid-template-columns: 1fr; }
  .hero-art-panel {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
    padding-left: 0;
    justify-items: start;
  }
  .home-logo-frame { max-width: 560px; transform: none; }

  .page-hero::before { display: none; }
  .hero-image-frame, .portrait-frame, .legal-frame, .history-frame, .social-frame {
    justify-self: start;
    max-width: 560px;
    transform: none;
  }
  .portrait-frame { max-width: 370px; }
  .hero-symbol, .year-mark { justify-self: start; }
  .hero-symbol { width: min(58vw, 300px); }

  .section-grid { grid-template-columns: 1fr; }
  .section-kicker { position: static; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .publication { grid-template-columns: 100px 1fr; }
  .publication .open { grid-column: 2; justify-self: start; }
  .timeline li::before { left: 92px; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .header-inner, .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .brand span { display: none; }
  h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .home-hero h1 { font-size: clamp(3.7rem, 18vw, 5.3rem); }
  .home-hero .home-name { letter-spacing: -.018em; }
  .home-hero::after { width: 55vw; }

  .hero-image-frame { box-shadow: 10px 10px 0 var(--accent-soft); }
  .hero-image-frame::after { right: -8px; top: -8px; width: 48px; height: 48px; }

  .timeline li { grid-template-columns: 1fr; gap: .35rem; padding-left: 1rem; }
  .timeline li::before { left: 0; top: 1.85rem; }
  .timeline li:hover { padding-left: 1rem; }

  .publication { grid-template-columns: 1fr; gap: .4rem; padding-left: 0; }
  .publication:hover { padding-left: .7rem; }
  .publication .open { grid-column: 1; margin-top: .5rem; }

  .archive-head { align-items: start; flex-direction: column; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid a:nth-child(4n+2), .archive-grid a:nth-child(4n+3) { background: transparent; }
  .archive-grid a:nth-child(even) { background: rgba(127,47,41,.04); }

  .stat-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 205px; }
  .contact-block { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
