:root {
  --bg: #f5f0e7;
  --bg-strong: #efe6d7;
  --surface: rgba(255, 251, 245, 0.8);
  --surface-strong: #fffaf2;
  --text: #201813;
  --muted: #6b5d52;
  --line: rgba(56, 39, 23, 0.12);
  --brand: #a35d2e;
  --brand-deep: #6c3918;
  --accent: #244b46;
  --shadow: 0 24px 50px rgba(51, 31, 18, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui);
  background:
    radial-gradient(circle at top left, rgba(163, 93, 46, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 75, 70, 0.12), transparent 24%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 45%, #f7f1e8 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.site-header,
.hero,
.program-card,
.category-card,
.snapshot-card,
.partner-card,
.timeline-grid article,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  position: sticky;
  top: 12px;
  z-index: 10;
}

.brand {
  text-decoration: none;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-deep);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  border-radius: 36px;
  margin-top: 18px;
  overflow: hidden;
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--brand-deep);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.98;
}

h1 {
  font-size: clamp(3.3rem, 6vw, 6.2rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.7rem;
}

.lead,
.program-card p,
.category-copy p,
.partner-card p,
.timeline-grid p,
.hero-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 58ch;
  margin: 18px 0 0;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
}

.hero-metrics div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 100%;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 18px;
  border-radius: 22px;
  background: rgba(18, 16, 13, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-card .eyebrow,
.hero-card p {
  color: rgba(255, 255, 255, 0.88);
}

/* Stats Bar */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Sections */

section {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  max-width: 20ch;
}

/* Programs / Capabilities */

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

.program-card {
  padding: 28px;
  border-radius: 26px;
}

.program-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--bg-strong);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Categories */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  overflow: hidden;
  border-radius: 28px;
}

.category-card-large {
  grid-row: span 2;
}

.category-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card-large img {
  aspect-ratio: 5 / 6;
}

.category-copy {
  padding: 20px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.category-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-deep);
}

/* Supply Chain / Timeline */

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

.timeline-grid article {
  padding: 28px;
  border-radius: 26px;
}

.timeline-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--bg-strong);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 16px;
}

.timeline-grid h3 {
  margin-bottom: 12px;
}

/* Partner Section */

.partner {
  margin-top: 22px;
}

.partner-inner {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(36, 75, 70, 0.06) 0%, rgba(163, 93, 46, 0.06) 100%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 36px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.partner-card {
  padding: 24px;
  border-radius: 22px;
}

.partner-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-strong);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

.partner-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 20px;
  margin-top: 22px;
  color: var(--muted);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 0.82rem;
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
}

/* Contact Page */

.contact-hero {
  margin-top: 18px;
  padding: 36px 0 0;
}

.contact-hero h1 {
  max-width: 20ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 28px;
}

.contact-form-section {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ui);
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 93, 82, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b5d52' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-submit .button {
  border: none;
  cursor: pointer;
  font-family: var(--ui);
}

.form-submit .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status-success {
  background: rgba(36, 75, 70, 0.1);
  color: var(--accent);
  border: 1px solid rgba(36, 75, 70, 0.2);
}

.form-status-error {
  background: rgba(163, 93, 46, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(163, 93, 46, 0.2);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.expect-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expect-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.expect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* Responsive */

@media (max-width: 980px) {
  .hero,
  .program-grid,
  .partner-grid,
  .timeline-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .category-card-large {
    grid-row: auto;
  }

  .hero-visual img,
  .category-card-large img {
    aspect-ratio: 4 / 3;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .partner-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 16px, 1200px);
    padding-top: 10px;
  }

  .site-header {
    position: static;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .program-card,
  .partner-card,
  .timeline-grid article,
  .partner-inner {
    padding: 20px;
  }

  h1 {
    max-width: none;
  }

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

  .contact-form-section {
    padding: 20px;
  }

  .form-submit {
    flex-direction: column;
    align-items: flex-start;
  }
}
