:root {
  --ink: #111111;
  --ink-soft: #2c2c2c;
  --stone: #5c5c5c;
  --muted: #7a7a7a;
  --line: #dcdcdc;
  --paper: #fafafa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  --radius: 18px;
  --max: 72rem;
  --header-h: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.88rem, 2.2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 0.25rem 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.35rem 0.1rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}

h1, h2, h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.7rem, 6.2vw, 3.1rem);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-copy p { color: var(--stone); max-width: 42rem; }

.hero-media,
.hero-logo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}

.hero-logo {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  place-items: center;
}

.hero-logo img {
  width: 100%;
  max-width: 22rem;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.figure img {
  width: 100%;
  object-fit: cover;
}

.figure figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--stone);
}

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

.section.alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-intro p,
.prose p {
  color: var(--stone);
  margin: 0 0 1rem;
}

.prose { max-width: 46rem; }
.prose p:last-child { margin-bottom: 0; }

.fines,
.entity,
.programs,
.contact-grid,
.project-list {
  display: grid;
  gap: 1.15rem;
}

.fines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1fr 1fr; }
.project-list { grid-template-columns: 1fr; }

.fines > *,
.contact-grid > *,
.project-card > *,
.programs > * { min-width: 0; }

.fine,
.entity-card,
.program,
.contact-card,
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
}

.fine-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.55rem;
}

.fine p,
.program p,
.entity-card p,
.contact-card p { margin: 0.4rem 0 0; color: var(--stone); }

.entity-card dt,
.contact-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.entity-card dd {
  margin: 0;
  font-weight: 700;
}

.program img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card.light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.project-copy,
.project-aside {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.project-copy .eyebrow { color: #cfcfcf; }
.project-card.light .project-copy .eyebrow { color: var(--stone); }
.project-copy p { color: #d8d8d8; margin: 0 0 1.5rem; max-width: 36rem; }
.project-card.light .project-copy p { color: var(--stone); }

.project-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 16rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  min-height: 3.1rem;
}

.cta:hover { background: #f0f0f0; }
.cta:focus-visible { outline-color: var(--white); }

.cta.solid {
  background: var(--ink);
  color: var(--white);
}

.cta.solid:hover { background: #2a2a2a; }

.text-link {
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.contact-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-sheet-head {
  background: var(--ink);
  color: #e8e8e8;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.contact-sheet-head .eyebrow { color: #cfcfcf; }
.contact-sheet-head p { margin: 1rem 0 0; color: #d0d0d0; }

.contact-email {
  display: inline-block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.3;
  word-break: break-word;
}

.contact-email:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.id-list {
  margin: 0;
  padding: 0.35rem 0;
}

.id-list > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.38fr) 1fr;
  gap: 1rem;
  padding: 1.05rem clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}

.id-list > div:last-child { border-bottom: 0; }

.id-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.id-list dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.id-list dd span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  color: var(--stone);
}

.contact-note {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  color: var(--stone);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

footer {
  background: var(--ink);
  color: #e8e8e8;
  padding: 2.5rem 0 2rem;
}

footer h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 1.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

footer dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0b0b0;
}

footer dd { margin: 0.25rem 0 0; color: var(--white); font-weight: 600; }
footer a { color: var(--white); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: #d0d0d0; font-size: 0.92rem; }

.copyright {
  margin: 1.25rem 0 0;
  color: #bdbdbd;
  font-size: 0.95rem;
}

.battlements {
  display: block;
  width: 100%;
  height: 18px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .footer-legal { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid,
  .fines,
  .entity,
  .programs,
  .project-card,
  .contact-grid,
  .contact-sheet,
  .footer-legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo img { max-width: 16rem; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .id-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  header .wrap { padding-block: 0.55rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  nav ul { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand img { width: 2.8rem; height: 2.8rem; }
  .brand-text strong { font-size: 0.86rem; }
  h1 { font-size: 1.65rem; }
  .hero { padding-top: 2.25rem; }
}
