/* ============================================================
   Matteo Piantedosi — Official Website
   Shared Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --teal:      #123D43;
  --teal-dark: #0c2d32;
  --teal-mid:  #1b5059;
  --travertine:#F1EEE5;
  --burgundy:  #7A303C;
  --burgundy-dark: #5e242d;
  --sage:      #A8B6AC;
  --graphite:  #252D30;
  --porcelain: #FFFFFF;
  --warm-grey: #D8D4CA;
  --warm-grey-light: #E8E5DE;

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --max-w-text: 780px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--graphite);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
  color: var(--teal);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 80px 0; }
.section--dark { background: var(--teal); color: var(--travertine); }
.section--tint { background: var(--travertine); }
.section--grey { background: #F7F5F0; }
.divider {
  width: 60px;
  height: 3px;
  background: var(--burgundy);
  margin-bottom: 1.5rem;
}
.divider--center { margin-left: auto; margin-right: auto; }
.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}
.section-header {
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }

/* Screen-reader only */
.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;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--teal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--travertine);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(241,238,229,0.8);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--travertine); }
.nav-menu a.active {
  border-bottom: 2px solid var(--burgundy);
  padding-bottom: calc(0.4rem - 2px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--travertine);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page Hero ---------- */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--teal);
  position: relative;
  overflow: hidden;
}
.page-hero--image {
  min-height: 320px;
  max-height: 420px;
  height: clamp(320px, 35vh, 420px);
  display: flex;
  align-items: flex-end;
}
.page-hero--solid {
  padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
}
.page-hero--solid .page-hero__content {
  padding-top: 0;
  padding-bottom: 0;
}
.page-hero--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.4;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.page-hero__content .label-tag { color: var(--sage); }
.page-hero__content h1 { color: var(--travertine); }
.page-hero__content p {
  color: rgba(241,238,229,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.page-hero__line {
  width: 48px;
  height: 3px;
  background: var(--burgundy);
  margin: 1rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--burgundy);
  color: var(--travertine);
  border-color: var(--burgundy);
}
.btn--primary:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: var(--travertine); }
.btn--outline-light {
  background: transparent;
  color: var(--travertine);
  border-color: rgba(241,238,229,0.6);
}
.btn--outline-light:hover { background: rgba(241,238,229,0.1); border-color: var(--travertine); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.75rem; }

/* ---------- HOME HERO ---------- */
.home-hero {
  margin-top: var(--nav-h);
  background: var(--teal);
  /* Explicit height (not min-height) so the grid has a definite size —
     without this the portrait image's natural height expands the grid
     beyond the viewport and breaks justify-content: center */
  height: clamp(560px, calc(100vh - var(--nav-h)), 700px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.home-hero__image {
  position: relative;
  background: var(--teal-dark);
  overflow: hidden;
  /* Explicit height = grid cell height so the img height:100% resolves */
  height: 100%;
}
.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.home-hero__image::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--teal));
}
.home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem 3rem 2rem;
  position: relative;
  z-index: 1;
  /* Explicit height = grid cell height so justify-content: center works */
  height: 100%;
  overflow: hidden;
}
.home-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.home-hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--travertine);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.home-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 400;
  color: var(--sage);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.home-hero__rule {
  width: 52px;
  height: 3px;
  background: var(--burgundy);
  margin-bottom: 1.25rem;
}
.home-hero__intro {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(241,238,229,0.82);
  max-width: 420px;
  margin-bottom: 2rem;
}
.home-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.home-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  animation: scrollBounce 2s ease-in-out infinite;
}
.home-hero__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--burgundy);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Two-Column Sections ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-section--reverse { direction: rtl; }
.split-section--reverse > * { direction: ltr; }
.split-col {
  padding: 4rem 3rem;
}
.split-col--image {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.split-col--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--porcelain);
  border: 1px solid var(--warm-grey);
  padding: 2rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 30px rgba(18,61,67,0.1);
  transform: translateY(-3px);
}
.card--dark {
  background: var(--teal);
  border-color: transparent;
  color: var(--travertine);
}
.card--dark h3 { color: var(--travertine); }
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--burgundy);
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p { font-size: 0.92rem; line-height: 1.6; color: inherit; }
.card--dark p { color: rgba(241,238,229,0.8); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 1.25rem;
  transition: gap 0.2s;
}
.card__link:hover { gap: 0.7rem; }
.card--dark .card__link { color: var(--sage); }

/* ---------- News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--porcelain);
  border: 1px solid var(--warm-grey);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(18,61,67,0.12);
  transform: translateY(-4px);
}
.news-card__image,
.news-card__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--teal-dark);
}
.news-card__image img,
.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s var(--ease);
}
.news-card:hover .news-card__image img,
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 1.5rem; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.news-card__date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}
.news-card__tag,
.news-card__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--warm-grey);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  margin-right: 0.4rem;
}
.news-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--teal);
}
.news-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}
.news-card__source {
  font-size: 0.72rem;
  color: var(--sage);
  font-style: italic;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--warm-grey);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--porcelain);
  box-shadow: 0 0 0 2px var(--warm-grey);
}
.timeline-item--major::before {
  width: 14px;
  height: 14px;
  left: -1.7rem;
  top: 6px;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--warm-grey);
}
.timeline-item__year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}
.timeline-item h3 {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.timeline-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ---------- Quote Block ---------- */
.quote-block {
  border-left: 4px solid var(--burgundy);
  padding: 1.5rem 2rem;
  background: var(--travertine);
  margin: 2rem 0;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.quote-block cite {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-style: normal;
}

/* ---------- Stat Bar ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--warm-grey);
  border: 1px solid var(--warm-grey);
}
.stat-item {
  background: var(--teal);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--travertine);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Feature Image Section ---------- */
.feature-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  background: var(--graphite);
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 25%;
}
.feature-image__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(18,61,67,0.85));
  padding: 3rem 2rem 1.25rem;
  color: rgba(241,238,229,0.85);
  font-size: 0.8rem;
  font-style: italic;
}

/* ---------- Publications / Document List ---------- */
.doc-list { display: flex; flex-direction: column; gap: 1px; }
.doc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--porcelain);
  border: 1px solid var(--warm-grey);
  transition: border-color 0.2s, background 0.2s;
}
.doc-item:hover { background: var(--travertine); border-color: var(--teal); }
.doc-item__icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  flex-shrink: 0;
}
.doc-item__body h4 {
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.doc-item__body p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}
.doc-item__meta {
  text-align: right;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ---------- Speeches Archive ---------- */
.speeches-list { display: flex; flex-direction: column; gap: 2rem; }
.speech-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--warm-grey);
}
.speech-item:last-child { border-bottom: none; padding-bottom: 0; }
.speech-item__date {
  text-align: right;
  padding-top: 0.25rem;
}
.speech-item__date .year {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--teal);
  line-height: 1;
}
.speech-item__date .day-month {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 0.25rem;
}
.speech-item__content h3 {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.speech-item__venue {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.speech-item__content p { font-size: 0.9rem; color: #555; }

/* ---------- Contact Page ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--warm-grey);
}
.contact-item:first-of-type { border-top: 1px solid var(--warm-grey); }
.contact-item__icon {
  width: 24px;
  height: 24px;
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.25rem;
}
.contact-item__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal);
}
.contact-item__value a:hover { color: var(--burgundy); }
.contact-map {
  background: var(--travertine);
  border: 1px solid var(--warm-grey);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: var(--travertine);
  padding: 4rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .wordmark { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand .wordmark span { color: var(--sage); }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(241,238,229,0.65);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(241,238,229,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border-radius: 2px;
}
.footer-social a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--travertine);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-nav h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(241,238,229,0.65);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--travertine); }
.footer-contact-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-contact-col p {
  font-size: 0.85rem;
  color: rgba(241,238,229,0.65);
  line-height: 1.7;
  margin-bottom: 0;
}
.footer-contact-col a:hover { color: var(--travertine); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.78rem;
  color: rgba(241,238,229,0.4);
}
.footer-bottom a { color: rgba(241,238,229,0.6); }
.footer-bottom a:hover { color: var(--travertine); }

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-hero__scroll { animation: none; }
}

/* ---------- Passcode Page ---------- */
.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  padding: 2rem;
}
.gate-card {
  background: var(--travertine);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 380px;
  position: relative;
}
.gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--burgundy);
}
.gate-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.gate-emblem svg {
  width: 52px;
  height: 52px;
  color: var(--teal);
}
.gate-card h1 {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--teal);
}
.gate-card p {
  font-size: 0.82rem;
  text-align: center;
  color: var(--sage);
  margin-bottom: 2rem;
}
.gate-form { display: flex; flex-direction: column; gap: 1rem; }
.gate-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--graphite);
  background: var(--porcelain);
  border: 1.5px solid var(--warm-grey);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 2px;
}
.gate-input:focus { border-color: var(--teal); }
.gate-input.error { border-color: var(--burgundy); }
.gate-error {
  font-size: 0.8rem;
  color: var(--burgundy);
  text-align: center;
  display: none;
  padding: 0.5rem;
  background: rgba(122,48,60,0.08);
}
.gate-error.visible { display: block; }
.gate-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--teal);
  color: var(--travertine);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.gate-submit:hover { background: var(--teal-mid); }
.gate-submit:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; }
.gate-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--sage);
  margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-menu a { padding: 0.4rem 0.5rem; font-size: 0.72rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--teal-dark);
    padding: 1rem 0 2rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    border-bottom: none;
  }
  .nav-menu a.active {
    border-bottom: none;
    border-left: 3px solid var(--burgundy);
    padding-left: calc(2rem - 3px);
  }
  .home-hero {
    grid-template-columns: 1fr;
    height: auto;        /* let content determine height in stacked layout */
  }
  .home-hero__image {
    height: clamp(320px, 55vw, 480px);  /* proportional to viewport width */
    order: -1;
  }
  .home-hero__content {
    height: auto;
    padding: 3rem 2rem;
  }
  .home-hero__image::after { display: none; }
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section--reverse { direction: ltr; }
  .split-col--image { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .speech-item { grid-template-columns: 80px 1fr; gap: 1rem; }
  .speech-item__date { text-align: left; }
  .speech-item__date .year { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 1.25rem; }
  .home-hero__image { height: clamp(260px, 70vw, 380px); }
  .home-hero__content { padding: 2.5rem 1.25rem; }
  .home-hero__name { font-size: 2.2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .speech-item { grid-template-columns: 1fr; }
  .speech-item__date { text-align: left; }
  .split-col { padding: 2.5rem 1.25rem; }
  .doc-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .doc-item__meta { text-align: left; }
  .page-hero--image { height: clamp(240px, 42vw, 300px); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .gate-card { padding: 2.5rem 1.5rem; }
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

/* ---------- Misc Helpers ---------- */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-burgundy { color: var(--burgundy); }
.text-travertine { color: var(--travertine); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: block;
  margin-bottom: 0.5rem;
}
.section--dark .section-eyebrow { color: var(--sage); }

.fine-rule {
  border: none;
  border-top: 1px solid var(--warm-grey);
  margin: 3rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--sage);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--sage); }
.breadcrumb a:hover { color: var(--travertine); }
.breadcrumb__sep { opacity: 0.5; }

/* Sidebar layout */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sidebar-layout { grid-template-columns: 1fr; }
}

.sidebar-box {
  background: var(--travertine);
  border: 1px solid var(--warm-grey);
  padding: 2rem;
}
.sidebar-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--warm-grey);
}
.sidebar-box p { font-size: 0.88rem; color: #555; }
.sidebar-box ul { font-size: 0.88rem; }
.sidebar-box ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--warm-grey-light);
  color: #555;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li strong { color: var(--teal); }

/* Institutional diagram */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-box {
  background: var(--teal);
  color: var(--travertine);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 240px;
  position: relative;
}
.org-box--secondary {
  background: var(--travertine);
  color: var(--teal);
  border: 1px solid var(--warm-grey);
}
.org-connector {
  width: 1px;
  height: 32px;
  background: var(--warm-grey);
}
.org-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}
