:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-soft: #f1ebe4;
  --ink: #1f2933;
  --ink-soft: #556170;
  --ink-muted: #73808d;
  --line: rgba(31, 41, 51, 0.1);
  --maroon: #7b1113;
  --maroon-deep: #560b0d;
  --maroon-soft: #a53a3d;
  --slate: #18212b;
  --gold: #c7a66b;
  --white: #ffffff;
  --shadow-sm: 0 10px 24px rgba(19, 24, 30, 0.08);
  --shadow-md: 0 18px 44px rgba(19, 24, 30, 0.12);
  --shadow-lg: 0 26px 60px rgba(19, 24, 30, 0.18);
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --max-width: 1180px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(123, 17, 19, 0.05), transparent 30%),
    linear-gradient(180deg, #fbf9f5 0%, var(--bg) 100%);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

p {
  color: var(--ink-soft);
}

.container {
  width: min(100% - 1.5rem, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--maroon);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 0 0 12px 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(123, 17, 19, 0.08);
  box-shadow: 0 10px 30px rgba(19, 24, 30, 0.05);
}

.nav-shell {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.brand__title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand__sub {
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-toggle-label span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(247, 244, 239, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 17, 19, 0.08);
  transition: max-height 220ms ease;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
}

.site-nav a {
  display: block;
  padding: 0.9rem 0.3rem;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--maroon);
}

.nav-toggle:checked ~ .site-nav {
  max-height: 16rem;
}

main {
  overflow: hidden;
}

.hero-section,
.page-banner {
  padding: 4.5rem 0 3.5rem;
}

.hero-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(123, 17, 19, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(123, 17, 19, 0.02));
}

.hero-grid,
.split-layout,
.contact-grid,
.footer-shell,
.timeline-grid,
.stat-grid,
.value-grid,
.gallery-grid,
.activity-grid,
.activity-preview-grid,
.profiles-grid,
.stack-grid,
.mini-profile-list {
  display: grid;
  gap: 1.25rem;
}

.hero-grid,
.split-layout,
.contact-grid {
  align-items: center;
}

.hero-copy h1,
.page-banner h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-meta li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(123, 17, 19, 0.1);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.84);
}

.button,
.text-link {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-soft));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(123, 17, 19, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 36px rgba(123, 17, 19, 0.34);
}

.button--secondary {
  background: transparent;
  border-color: rgba(123, 17, 19, 0.2);
  color: var(--maroon);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(123, 17, 19, 0.06);
}

.button--full {
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section--compact {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section--tint {
  background: linear-gradient(180deg, rgba(123, 17, 19, 0.06), rgba(123, 17, 19, 0.015));
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(199, 166, 107, 0.08), transparent 28%),
    linear-gradient(180deg, #171d24 0%, #10161d 100%);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-head--light h2,
.section-head--light p {
  color: var(--white);
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 41, 51, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.card--image {
  overflow: hidden;
  padding: 0;
}

.card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--image figcaption {
  padding: 1rem 1.1rem 1.15rem;
  color: var(--ink-soft);
}

.card--dark figcaption,
.card--dark strong {
  color: var(--white);
}

.lift-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.lift-card:hover,
.lift-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 17, 19, 0.14);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(123, 17, 19, 0.08);
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.stat-grid,
.value-grid,
.activity-preview-grid,
.gallery-grid,
.activity-grid,
.profiles-grid {
  grid-template-columns: 1fr;
}

.stat-card__value,
.timeline-card__year {
  display: block;
  color: var(--maroon);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.value-card h3,
.stat-card h3,
.timeline-card h3,
.profile-card h3,
.text-profile h3,
.mini-profile h3,
.contact-note h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.split-layout > div > p + p {
  margin-top: 1rem;
}

.gallery-grid--feature {
  grid-template-columns: 1fr;
}

.gallery-grid__lead {
  min-height: 100%;
}

.mini-profile-list,
.stack-grid {
  margin-top: 1.35rem;
}

.mini-profile,
.text-profile {
  padding: 1.4rem;
}

.mini-profile p,
.text-profile p,
.profile-card p,
.contact-note p {
  color: var(--ink-soft);
}

.profile-card {
  display: grid;
  gap: 1rem;
  padding: 0;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.profile-card > div {
  padding: 0 1.2rem 1.2rem;
}

.contact-section {
  padding-bottom: 5.5rem;
}

.contact-note {
  margin-top: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

label {
  font-weight: 700;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 14px;
  background: var(--white);
  padding: 0.9rem 1rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(123, 17, 19, 0.42);
  box-shadow: 0 0 0 4px rgba(123, 17, 19, 0.1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--maroon);
  font-weight: 800;
  margin-top: 1.1rem;
}

.text-link::after {
  content: "→";
}

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.8rem 0 2rem;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.footer-shell {
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
}

@media (min-width: 720px) {
  .container {
    width: min(100% - 2.5rem, var(--max-width));
  }

  .hero-section,
  .page-banner {
    padding: 5.4rem 0 4rem;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid,
  .value-grid,
  .activity-preview-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid--feature {
    grid-template-columns: 1.2fr 1fr;
  }

  .gallery-grid__lead {
    grid-row: span 2;
  }

  .activity-grid,
  .profiles-grid,
  .mini-profile-list,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .profile-card img {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (min-width: 980px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
  }

  .site-nav a {
    border-bottom: 0;
    padding: 0;
    position: relative;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 100%;
    height: 2px;
    background: var(--maroon);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }

  .split-layout--balanced {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: 1.1fr repeat(3, 1fr);
  }

  .activity-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .section {
    padding: 6rem 0;
  }

  .section--compact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
