:root {
  --bg: #f7f1e8;
  --paper: #fffaf3;
  --paper-strong: #ffffff;
  --ink: #211516;
  --muted: #756965;
  --line: #e5d5c8;
  --red: #930e08;
  --red-dark: #710a06;
  --sage: #9fb7a5;
  --sage-dark: #486453;
  --navy: #15283e;
  --shadow: 0 20px 60px rgba(42, 28, 20, 0.11);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(147, 14, 8, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 44%, #f4eee6 100%);
  background-size: 78px 78px, auto;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.9);
  border-bottom: 1px solid rgba(229, 213, 200, 0.85);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: max-content;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 0.96;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  border-radius: 999px;
  color: #4c403d;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(147, 14, 8, 0.08);
  color: var(--red);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 14px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 28px rgba(147, 14, 8, 0.18);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  background: rgba(255, 250, 243, 0.78);
  border-color: var(--line);
  color: var(--red);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 44px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 850px;
  margin-top: 18px;
  font-size: 64px;
  line-height: 0.96;
}

h1 em {
  color: var(--red);
  font-style: normal;
}

h2 {
  font-size: 56px;
  line-height: 0.98;
}

h3 {
  font-size: 25px;
  line-height: 1.05;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(159, 183, 165, 0.42), transparent 38%),
    linear-gradient(145deg, rgba(255, 250, 243, 0.92), rgba(229, 213, 200, 0.46));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  position: absolute;
  right: -22px;
  bottom: 0;
  width: min(580px, 112%);
  max-height: 640px;
  object-fit: contain;
}

.hero-proof {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 300px;
  background: rgba(255, 250, 243, 0.86);
  border: 1px solid rgba(229, 213, 200, 0.95);
  border-radius: 8px;
  padding: 18px;
  backdrop-filter: blur(14px);
}

.hero-proof b {
  color: var(--red);
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-slider {
  position: relative;
  min-height: calc(100svh - 76px);
  display: block;
  overflow: hidden;
  padding: 0;
  background: var(--ink);
}

.hero-slides,
.hero-slide,
.hero-slide-image,
.hero-slide-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 680ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-position, center center);
  transform: scale(1.02);
}

.hero-slide-overlay {
  background:
    linear-gradient(
      90deg,
      rgb(var(--slide-overlay-rgb, 33 21 22) / var(--slide-overlay-opacity, 0.74)) 0%,
      rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.83)) 38%,
      rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.46)) 70%,
      rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.28)) 100%
    ),
    linear-gradient(180deg, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0.36));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(76px, 11vh, 132px) 0 clamp(104px, 13vh, 150px);
  color: var(--slide-text, #fffaf3);
}

.hero-slide-content > div {
  max-width: min(760px, 62vw);
}

.hero-slide-content h1 {
  max-width: 780px;
  margin-top: 0;
  color: var(--slide-text, #fffaf3);
  text-wrap: balance;
  text-shadow: 0 22px 72px rgb(0 0 0 / 0.38);
}

.hero-slide-content h1 em {
  color: var(--slide-accent, #f4d8ce);
  font-style: normal;
}

.hero-slide-content .lead {
  color: color-mix(in srgb, var(--slide-text, #fffaf3) 82%, transparent);
  text-shadow: 0 14px 42px rgb(0 0 0 / 0.38);
}

.hero-slider .button-primary {
  background: var(--red);
  color: #fff;
}

.hero-slider .button-secondary {
  background: rgb(10 12 15 / 0.54);
  border-color: rgb(255 250 243 / 0.24);
  color: var(--slide-text, #fffaf3);
  backdrop-filter: blur(12px);
}

.hero-slider-ui {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-dots button,
.hero-arrows button {
  border: 1px solid rgb(255 250 243 / 0.28);
  background: rgb(10 12 15 / 0.38);
  color: #fffaf3;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dots button {
  width: 42px;
  height: 6px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.58;
}

.hero-dots button.is-active {
  background: var(--slide-accent, #f4d8ce);
  opacity: 1;
}

.hero-arrows button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.hero-arrows svg {
  width: 20px;
  height: 20px;
}

.hero-slider.is-single .hero-slider-ui {
  display: none;
}

.section {
  padding: 84px 0;
  scroll-margin-top: 96px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(229, 213, 200, 0.75);
  border-bottom: 1px solid rgba(229, 213, 200, 0.75);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.5fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p,
.section-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.72);
}

.metric {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.metric:last-child {
  border-right: 0;
}

.metric b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.feature-grid,
.program-grid,
.project-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.program-card,
.project-card,
.blog-card,
.contact-panel,
.form-panel {
  background: rgba(255, 250, 243, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card-media {
  display: grid;
  gap: 8px;
  margin: -6px -6px 18px;
}

.card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.card-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.contact-panel h1 {
  margin-top: 12px;
  font-size: 64px;
  line-height: 0.98;
}

.feature b,
.program-card b {
  color: var(--red);
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature h3,
.program-card h3,
.project-card h3,
.blog-card h3 {
  margin-top: 14px;
}

.feature p,
.program-card p,
.project-card p,
.blog-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.62;
}

.wide-story {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(340px, 0.6fr);
  gap: 38px;
  align-items: center;
}

.hero-grid > *,
.wide-story > *,
.section-head > *,
.contact-grid > * {
  min-width: 0;
}

.wide-story figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wide-story img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--photo-position, center center);
}

.wide-story figure.photo-contain {
  background:
    radial-gradient(circle at 28% 18%, rgba(150, 29, 20, 0.1), transparent 18rem),
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(239, 229, 216, 0.78));
}

.wide-story figure.photo-contain img {
  object-fit: contain;
}

.values-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--muted);
  line-height: 1.58;
}

.values-list b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 50%;
  color: white;
  font-family: var(--serif);
}

.route-map {
  display: grid;
  gap: 12px;
}

.route-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.route-row span {
  color: var(--red);
  font-weight: 950;
}

.route-row p {
  color: var(--muted);
  line-height: 1.55;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
}

.project-card .button,
.blog-card .button,
.program-card .button {
  margin-top: 22px;
  width: fit-content;
}

.banner {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-position, center center);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 14, 14, 0.72) 0%, rgba(20, 14, 14, 0.46) 46%, rgba(20, 14, 14, 0.12) 100%),
    linear-gradient(180deg, transparent 18%, rgba(20, 14, 14, 0.54));
}

.banner-cta {
  --banner-position: center 24%;
  min-height: 390px;
  background: linear-gradient(135deg, rgba(52, 34, 30, 0.98), rgba(126, 25, 19, 0.94));
}

.banner-cta img {
  left: auto;
  width: 60%;
  object-position: center 25%;
}

.banner-cta::after {
  background:
    linear-gradient(90deg, rgba(20, 14, 14, 0.9) 0%, rgba(20, 14, 14, 0.76) 44%, rgba(20, 14, 14, 0.28) 68%, rgba(20, 14, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(20, 14, 14, 0.05), rgba(20, 14, 14, 0.34));
}

.banner-cta .banner-content {
  max-width: min(610px, 52%);
  padding: clamp(26px, 4vw, 42px);
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #fff;
  padding: 30px;
}

.banner-content p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
}

.contact-list b {
  color: var(--ink);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  color: #4d403b;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8cbc1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 500 15px/1.4 var(--sans);
  padding: 12px 14px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 32px 0;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .reveal {
    transform: none;
    transition: none;
  }
}

@media (max-width: 1040px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .hero-grid,
  .wide-story,
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-slider,
  .hero-slide-content {
    min-height: calc(100svh - 118px);
  }

  .hero-slide-content > div {
    max-width: 82vw;
  }

  .metric-strip,
  .feature-grid,
  .program-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 58px;
  }

  h2,
  .contact-panel h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 19px;
  }
}

@media (max-width: 760px) {
  .banner-cta {
    min-height: 560px;
    align-items: end;
  }

  .banner-cta img {
    inset: 0;
    width: 100%;
    object-position: center top;
  }

  .banner-cta::after {
    background:
      linear-gradient(180deg, rgba(20, 14, 14, 0.08) 0%, rgba(20, 14, 14, 0.36) 44%, rgba(20, 14, 14, 0.88) 100%),
      linear-gradient(90deg, rgba(20, 14, 14, 0.24), transparent);
  }

  .banner-cta .banner-content {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(1180px, calc(100% - 28px));
  }

  .brand strong {
    font-size: 20px;
  }

  .nav .button {
    min-height: 40px;
    padding: 12px 13px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-slider {
    min-height: calc(100svh - 132px);
    padding-top: 0;
  }

  .hero-slide-content {
    min-height: calc(100svh - 132px);
    padding: 58px 0 104px;
  }

  .hero-slide-content > div {
    max-width: 100%;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(
        180deg,
        rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.94)) 0%,
        rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.76)) 58%,
        rgb(var(--slide-overlay-rgb, 33 21 22) / calc(var(--slide-overlay-opacity, 0.74) * 0.58)) 100%
      ),
      linear-gradient(90deg, rgb(0 0 0 / 0.18), transparent);
  }

  .hero-slider-ui {
    bottom: 18px;
  }

  .hero-arrows {
    display: none;
  }

  .hero-dots button {
    width: 34px;
  }

  h1 {
    font-size: 40px;
    line-height: 1;
  }

  h2,
  .contact-panel h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .metric b {
    font-size: 36px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual img {
    right: -64px;
    width: 124%;
  }

  .metric-strip,
  .feature-grid,
  .program-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .route-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }
}
